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.0009475/0.0009477, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007695/0.007695, allocations: 173.9 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.731/1.731, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04914/0.04914, allocations: 9.08 MB / 279.8 MB, free: 12.15 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.0005851/0.0005851, allocations: 16.2 kB / 339.7 MB, free: 25.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1236, allocations: 49.19 MB / 388.9 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01918/0.1428, allocations: 17.63 MB / 406.6 MB, free: 6.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01643/0.1593, allocations: 17.27 MB / 423.8 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.1596, allocations: 0 / 423.8 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008571/0.1605, allocations: 250.8 kB / 424.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006176/0.1611, allocations: 194.9 kB / 424.3 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3438/0.505, allocations: 5.832 MB / 430.1 MB, free: 17.31 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004928/0.5055, allocations: 284.4 kB / 430.4 MB, free: 17.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.5056, allocations: 11.52 kB / 430.4 MB, free: 17.31 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003032/0.5059, allocations: 120.2 kB / 430.5 MB, free: 17.31 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.5061, allocations: 72.88 kB / 430.6 MB, free: 17.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.5061, allocations: 3.75 kB / 430.6 MB, free: 17.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02793/0.534, allocations: 9.229 MB / 439.8 MB, free: 17.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.92e-05/0.5342, allocations: 11.19 kB / 439.8 MB, free: 17.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003808/0.5346, allocations: 110 kB / 439.9 MB, free: 17.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01735/0.5519, allocations: 4.224 MB / 444.2 MB, free: 16.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.552, allocations: 0 / 444.2 MB, free: 16.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.328e-06/0.552, allocations: 0 / 444.2 MB, free: 16.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.895e-05/0.552, allocations: 3.938 kB / 444.2 MB, free: 16.54 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.003436/0.5555, allocations: 0.9752 MB / 445.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.5555, allocations: 13.75 kB / 445.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.868e-05/0.5556, allocations: 18.12 kB / 445.2 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.5557, allocations: 184.5 kB / 445.3 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.5558, allocations: 6.5 kB / 445.3 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.5558, allocations: 0 / 445.3 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.5561, allocations: 168.1 kB / 445.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.5562, allocations: 5.812 kB / 445.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.5562, allocations: 4.938 kB / 445.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.105e-05/0.5562, allocations: 10.3 kB / 445.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.5565, allocations: 118.9 kB / 445.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006688/0.5571, allocations: 0.5291 MB / 446.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.5574, allocations: 147.8 kB / 446.3 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.5575, allocations: 126.4 kB / 446.4 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1339/0.6914, allocations: 83.48 MB / 0.5175 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.272e-05/0.6915, allocations: 34.56 kB / 0.5175 GB, free: 4.484 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.053e-06/0.6916, allocations: 3.938 kB / 0.5175 GB, free: 4.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007304/0.6923, allocations: 392 kB / 0.5179 GB, free: 4.191 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.6924, allocations: 51.41 kB / 0.518 GB, free: 4.129 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.6925, allocations: 117.7 kB / 0.5181 GB, free: 4.012 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.6925, allocations: 25.7 kB / 0.5181 GB, free: 3.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.42e-05/0.6926, allocations: 94.5 kB / 0.5182 GB, free: 3.887 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.614e-05/0.6927, allocations: 129.1 kB / 0.5183 GB, free: 3.773 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.085e-05/0.6927, allocations: 32.88 kB / 0.5183 GB, free: 3.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.6929, allocations: 327.6 kB / 0.5187 GB, free: 3.422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.6931, allocations: 101.7 kB / 0.5188 GB, free: 3.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.6932, allocations: 127.8 kB / 0.5189 GB, free: 3.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003607/0.6936, allocations: 238 kB / 0.5191 GB, free: 3.066 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.6936, allocations: 0 / 0.5191 GB, free: 3.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000423/0.6941, allocations: 278.8 kB / 0.5194 GB, free: 2.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.6941, allocations: 8 kB / 0.5194 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.6941, allocations: 3.938 kB / 0.5194 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.6941, allocations: 0 / 0.5194 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.729e-05/0.6942, allocations: 15.98 kB / 0.5194 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.6942, allocations: 3.938 kB / 0.5194 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.6943, allocations: 33.88 kB / 0.5194 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.6944, allocations: 8 kB / 0.5194 GB, free: 2.719 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_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.6945, allocations: 117.8 kB / 0.5196 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.618e-05/0.6945, allocations: 15.81 kB / 0.5196 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005507/0.6951, allocations: 334.3 kB / 0.5199 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.6951, allocations: 4 kB / 0.5199 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.6951, allocations: 0 / 0.5199 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.6951, allocations: 3.984 kB / 0.5199 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/0.6954, allocations: 253.3 kB / 0.5201 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.6954, allocations: 4 kB / 0.5201 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.114e-05/0.6955, allocations: 7.984 kB / 0.5201 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.6955, allocations: 5.641 kB / 0.5202 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.6955, allocations: 3.938 kB / 0.5202 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.6955, allocations: 4 kB / 0.5202 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.6955, allocations: 1.531 kB / 0.5202 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004351/0.696, allocations: 378.6 kB / 0.5205 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.996e-05/0.6961, allocations: 112.8 kB / 0.5206 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.6961, allocations: 3.938 kB / 0.5206 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.6962, allocations: 11.98 kB / 0.5206 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.751e-05/0.6962, allocations: 7.125 kB / 0.5207 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.6962, allocations: 1.062 kB / 0.5207 GB, free: 1.391 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.007e-05/0.6963, allocations: 98.98 kB / 0.5207 GB, free: 1.297 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6963, allocations: 0 / 0.5207 GB, free: 1.297 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003847/0.7002, allocations: 1.106 MB / 0.5218 GB, free: 196 kB / 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 (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.005439/0.7056, allocations: 1.663 MB / 0.5235 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000516/0.7061, allocations: 253.6 kB / 0.5237 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.7062, allocations: 1.75 kB / 0.5237 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.7064, allocations: 170 kB / 0.5239 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009582/0.7074, allocations: 144.3 kB / 0.524 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007493/0.7081, allocations: 416.8 kB / 0.5244 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.7085, allocations: 0.7289 MB / 0.5251 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.369e-05/0.7086, allocations: 9.734 kB / 0.5251 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.7087, allocations: 16.97 kB / 0.5251 GB, free: 12.92 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.7087, allocations: 0 / 0.5251 GB, free: 12.92 MB / 414.1 MB Notification: Performance of Templates: time 0.0421/0.7508, allocations: 29.61 MB / 0.554 GB, free: 15.41 MB / 446.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: