Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7353/0.7353, allocations: 150.8 MB / 166.1 MB, free: 15.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.427e-05/1.429e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1307, allocations: 31.97 MB / 236.8 MB, free: 5.441 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.422/1.553, allocations: 293.4 MB / 0.5178 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0375/1.591, allocations: 36.95 MB / 0.5538 GB, free: 8.844 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/1.591, allocations: 0 / 0.5538 GB, free: 8.844 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002497/1.591, allocations: 79.61 kB / 0.5539 GB, free: 8.766 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/1.591, allocations: 67.52 kB / 0.554 GB, free: 8.699 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01749/1.609, allocations: 7.296 MB / 0.5611 GB, free: 1.398 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/1.609, allocations: 262.8 kB / 0.5614 GB, free: 1.141 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/1.609, allocations: 92.14 kB / 0.5614 GB, free: 1.051 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/1.609, allocations: 103.4 kB / 0.5615 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.809e-05/1.609, allocations: 79.58 kB / 0.5616 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/1.609, allocations: 8 kB / 0.5616 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02589/1.635, allocations: 17.8 MB / 0.579 GB, free: 15.04 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 4.513e-05/1.635, allocations: 23.86 kB / 0.579 GB, free: 15.02 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/1.636, allocations: 133.1 kB / 0.5792 GB, free: 14.88 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0147/1.65, allocations: 8.288 MB / 0.5873 GB, free: 6.57 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/1.65, allocations: 4 kB / 0.5873 GB, free: 6.566 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.883e-06/1.65, allocations: 0 / 0.5873 GB, free: 6.566 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.587e-06/1.65, allocations: 0 / 0.5873 GB, free: 6.566 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.003354/1.654, allocations: 1.361 MB / 0.5886 GB, free: 5.152 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/1.654, allocations: 8.031 kB / 0.5886 GB, free: 5.145 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.734e-05/1.654, allocations: 35.64 kB / 0.5886 GB, free: 5.109 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/1.654, allocations: 227.2 kB / 0.5888 GB, free: 4.848 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/1.654, allocations: 16.38 kB / 0.5889 GB, free: 4.832 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/1.654, allocations: 16 kB / 0.5889 GB, free: 4.816 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003986/1.654, allocations: 259 kB / 0.5891 GB, free: 4.547 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/1.654, allocations: 7.938 kB / 0.5891 GB, free: 4.539 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/1.655, allocations: 8 kB / 0.5891 GB, free: 4.531 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/1.655, allocations: 11.98 kB / 0.5892 GB, free: 4.52 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/1.655, allocations: 156.8 kB / 0.5893 GB, free: 4.367 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01775/1.673, allocations: 9.557 MB / 0.5986 GB, free: 9.836 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/1.673, allocations: 82.55 kB / 0.5987 GB, free: 9.746 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.969e-05/1.673, allocations: 64.89 kB / 0.5988 GB, free: 9.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1413/1.814, allocations: 77.93 MB / 0.6749 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/1.814, allocations: 34.56 kB / 0.6749 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.404e-06/1.814, allocations: 0 / 0.6749 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0004996/1.815, allocations: 210.2 kB / 0.6751 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/1.815, allocations: 51.41 kB / 0.6752 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/1.815, allocations: 228.8 kB / 0.6754 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/1.815, allocations: 25.7 kB / 0.6754 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.62e-05/1.815, allocations: 148.2 kB / 0.6755 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/1.815, allocations: 70.86 kB / 0.6756 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-05/1.815, allocations: 29.64 kB / 0.6756 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.525e-05/1.815, allocations: 338.8 kB / 0.676 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/1.815, allocations: 47.98 kB / 0.676 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/1.816, allocations: 104.8 kB / 0.6761 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/1.816, allocations: 152.1 kB / 0.6763 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/1.816, allocations: 4 kB / 0.6763 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003185/1.816, allocations: 199.1 kB / 0.6765 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/1.816, allocations: 4 kB / 0.6765 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/1.816, allocations: 4 kB / 0.6765 GB, free: 1.258 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/1.816, allocations: 3.938 kB / 0.6765 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007079/1.817, allocations: 132 kB / 0.6766 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/1.817, allocations: 0 / 0.6766 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/1.817, allocations: 35.59 kB / 0.6766 GB, free: 1.09 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/1.817, allocations: 4 kB / 0.6766 GB, free: 1.086 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001042/1.817, allocations: 137.7 kB / 0.6768 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.708e-05/1.817, allocations: 27.75 kB / 0.6768 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004132/1.818, allocations: 324.6 kB / 0.6771 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002259/1.818, allocations: 161.8 kB / 0.6772 GB, free: 412 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/1.818, allocations: 3.938 kB / 0.6773 GB, free: 408 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/1.818, allocations: 3.984 kB / 0.6773 GB, free: 404 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007698/1.819, allocations: 0.608 MB / 0.6778 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/1.819, allocations: 7.938 kB / 0.6779 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005743/1.819, allocations: 123.9 kB / 0.678 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/1.819, allocations: 4 kB / 0.678 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/1.819, allocations: 8 kB / 0.678 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/1.819, allocations: 0 / 0.678 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/1.819, allocations: 4 kB / 0.678 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003768/1.82, allocations: 294.4 kB / 0.6783 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/1.82, allocations: 120.7 kB / 0.6784 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/1.82, allocations: 4 kB / 0.6784 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/1.82, allocations: 7.984 kB / 0.6784 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.623e-05/1.82, allocations: 15.92 kB / 0.6784 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-06/1.82, allocations: 4 kB / 0.6784 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001828/1.82, allocations: 206 kB / 0.6786 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.82, allocations: 3.938 kB / 0.6786 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002473/1.823, allocations: 1.175 MB / 0.6798 GB, free: 13.73 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00464/1.827, allocations: 1.746 MB / 0.6815 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000386/1.828, allocations: 201.5 kB / 0.6817 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/1.828, allocations: 0 / 0.6817 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001495/1.828, allocations: 79.91 kB / 0.6817 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/1.829, allocations: 106.1 kB / 0.6818 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006863/1.829, allocations: 0.5554 MB / 0.6824 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/1.83, allocations: 0.7634 MB / 0.6831 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.966e-05/1.83, allocations: 25.94 kB / 0.6832 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.186e-05/1.83, allocations: 23.44 kB / 0.6832 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/1.83, allocations: 0 / 0.6832 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of Templates: time 0.1882/2.018, allocations: 40.75 MB / 0.723 GB, free: 217.9 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) Environment - environmentSimulation: