Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState") translateModel(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 99.78 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.4 MB / 222.1 MB, free: 5.895 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05048/0.05048, allocations: 9.066 MB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005041/0.0005041, allocations: 16.22 kB / 339.1 MB, free: 26.05 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1022, allocations: 49.2 MB / 388.3 MB, free: 8.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.0176/0.1198, allocations: 14.92 MB / 403.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.1358, allocations: 14.46 MB / 417.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002253/0.136, allocations: 0 / 417.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008173/0.1369, allocations: 251.1 kB / 417.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006111/0.1375, allocations: 195.5 kB / 418.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01909/0.1566, allocations: 5.74 MB / 423.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004229/0.157, allocations: 203.6 kB / 424 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.023e-05/0.1571, allocations: 9.688 kB / 424 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004025/0.1575, allocations: 167.5 kB / 424.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.1577, allocations: 67.72 kB / 424.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.1577, allocations: 4 kB / 424.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2275/0.3852, allocations: 9.185 MB / 433.5 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.834e-05/0.3853, allocations: 17.55 kB / 433.5 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.3855, allocations: 60.52 kB / 433.5 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008941/0.3944, allocations: 2.52 MB / 436.1 MB, free: 17.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3945, allocations: 0.5625 kB / 436.1 MB, free: 17.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.3945, allocations: 1.75 kB / 436.1 MB, free: 17.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.3945, allocations: 1.125 kB / 436.1 MB, free: 17.9 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.004109/0.3986, allocations: 0.9779 MB / 437 MB, free: 17.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3987, allocations: 10 kB / 437.1 MB, free: 17.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.347e-05/0.3987, allocations: 18.47 kB / 437.1 MB, free: 17.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001481/0.3989, allocations: 180.1 kB / 437.2 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.3989, allocations: 3.031 kB / 437.3 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.3989, allocations: 2.188 kB / 437.3 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003093/0.3993, allocations: 170.6 kB / 437.4 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.3993, allocations: 3.891 kB / 437.4 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.3993, allocations: 2.562 kB / 437.4 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.3993, allocations: 9.906 kB / 437.4 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002654/0.3996, allocations: 114.9 kB / 437.5 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007023/0.4003, allocations: 0.5328 MB / 438.1 MB, free: 16.62 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003021/0.4006, allocations: 136.6 kB / 438.2 MB, free: 16.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.14/0.5407, allocations: 83.73 MB / 0.5097 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.5408, allocations: 39.81 kB / 0.5097 GB, free: 11.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.585e-06/0.5408, allocations: 0 / 0.5097 GB, free: 11.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.001082/0.5419, allocations: 0.8447 MB / 0.5106 GB, free: 10.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.5419, allocations: 55.41 kB / 0.5106 GB, free: 10.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.542, allocations: 119.1 kB / 0.5107 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.5421, allocations: 29.7 kB / 0.5108 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.993e-05/0.5422, allocations: 96.92 kB / 0.5109 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.98e-05/0.5423, allocations: 131.5 kB / 0.511 GB, free: 9.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/0.5423, allocations: 3.125 kB / 0.511 GB, free: 9.996 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.5424, allocations: 325.6 kB / 0.5113 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.5426, allocations: 87.56 kB / 0.5114 GB, free: 9.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.5428, allocations: 139.2 kB / 0.5115 GB, free: 9.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.543, allocations: 110.2 kB / 0.5116 GB, free: 9.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.543, allocations: 0 / 0.5116 GB, free: 9.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000431/0.5434, allocations: 267.7 kB / 0.5119 GB, free: 9.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.5434, allocations: 4 kB / 0.5119 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.5435, allocations: 3.984 kB / 0.5119 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.5435, allocations: 4 kB / 0.5119 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-05/0.5436, allocations: 20.56 kB / 0.5119 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.5436, allocations: 4 kB / 0.5119 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.5438, allocations: 23.73 kB / 0.5119 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.5438, allocations: 6.734 kB / 0.5119 GB, free: 9.195 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.5439, allocations: 127.4 kB / 0.5121 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.199e-05/0.544, allocations: 11.81 kB / 0.5121 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000566/0.5445, allocations: 331.8 kB / 0.5124 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.798e-05/0.5446, allocations: 7.859 kB / 0.5124 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.5446, allocations: 3 kB / 0.5124 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.5446, allocations: 4 kB / 0.5124 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003535/0.545, allocations: 257.9 kB / 0.5126 GB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.545, allocations: 3.984 kB / 0.5127 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.447e-05/0.545, allocations: 12 kB / 0.5127 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.545, allocations: 0 / 0.5127 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.5451, allocations: 4 kB / 0.5127 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.5451, allocations: 3.984 kB / 0.5127 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.5451, allocations: 0.8594 kB / 0.5127 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000508/0.5456, allocations: 370.4 kB / 0.513 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.5457, allocations: 105 kB / 0.5131 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.5458, allocations: 5.438 kB / 0.5131 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.5459, allocations: 11.98 kB / 0.5131 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.032e-05/0.5459, allocations: 10.92 kB / 0.5132 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.455e-06/0.546, allocations: 0 / 0.5132 GB, free: 8.078 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.722e-05/0.546, allocations: 94.2 kB / 0.5132 GB, free: 7.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.546, allocations: 4 kB / 0.5132 GB, free: 7.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004955/0.551, allocations: 1.099 MB / 0.5143 GB, free: 6.914 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008567/0.5596, allocations: 1.663 MB / 0.5159 GB, free: 5.461 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005786/0.5602, allocations: 262.9 kB / 0.5162 GB, free: 5.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5602, allocations: 0 / 0.5162 GB, free: 5.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002392/0.5605, allocations: 160.3 kB / 0.5163 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009329/0.5614, allocations: 148.2 kB / 0.5165 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006384/0.5621, allocations: 413.5 kB / 0.5169 GB, free: 4.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.5624, allocations: 0.7328 MB / 0.5176 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.274e-05/0.5625, allocations: 11.98 kB / 0.5176 GB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.542e-05/0.5625, allocations: 15.44 kB / 0.5176 GB, free: 3.871 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5625, allocations: 0 / 0.5176 GB, free: 3.871 MB / 398.1 MB Notification: Performance of Templates: time 0.05103/0.6136, allocations: 29.33 MB / 0.5463 GB, free: 6.715 MB / 430.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.makefile Environment - environmentSimulation: (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1) Environment - environmentSimulation: