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.001367/0.001367, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00163/0.001631, allocations: 191 kB / 16.25 MB, free: 6.621 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.504/1.504, allocations: 205.1 MB / 222.1 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04391/0.04391, allocations: 9.085 MB / 278.5 MB, free: 12.35 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.00128/0.00128, allocations: 63.91 kB / 337.5 MB, free: 25.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09367, allocations: 48.17 MB / 385.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01765/0.1114, allocations: 17.89 MB / 403.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01421/0.1256, allocations: 17.01 MB / 420.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.1258, allocations: 0 / 420.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006919/0.1265, allocations: 254.9 kB / 420.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004283/0.127, allocations: 194.8 kB / 421 MB, free: 6.117 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.1901/0.3171, allocations: 6.441 MB / 427.5 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000309/0.3175, allocations: 294.9 kB / 427.8 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.638e-05/0.3175, allocations: 15.17 kB / 427.8 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.3177, allocations: 124.4 kB / 427.9 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.073e-05/0.3178, allocations: 69.91 kB / 428 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.3178, allocations: 3.531 kB / 428 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01393/0.3318, allocations: 9.803 MB / 437.8 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.123e-05/0.3318, allocations: 19.03 kB / 437.8 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002277/0.3321, allocations: 77.72 kB / 437.9 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.3427, allocations: 4.389 MB / 442.3 MB, free: 18.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3428, allocations: 0 / 442.3 MB, free: 18.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3428, allocations: 0 / 442.3 MB, free: 18.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.3428, allocations: 0 / 442.3 MB, free: 18.22 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.002187/0.345, allocations: 0.9919 MB / 443.2 MB, free: 17.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.345, allocations: 11.69 kB / 443.3 MB, free: 17.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.972e-05/0.3451, allocations: 17.8 kB / 443.3 MB, free: 17.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.612e-05/0.3452, allocations: 180.8 kB / 443.4 MB, free: 17.28 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.3452, allocations: 3.438 kB / 443.5 MB, free: 17.28 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.3452, allocations: 4.078 kB / 443.5 MB, free: 17.28 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.3455, allocations: 165.7 kB / 443.6 MB, free: 17.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3455, allocations: 4 kB / 443.6 MB, free: 17.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.3455, allocations: 1.875 kB / 443.6 MB, free: 17.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.3455, allocations: 15.77 kB / 443.6 MB, free: 17.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001983/0.3458, allocations: 110.2 kB / 443.7 MB, free: 17.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000507/0.3463, allocations: 0.521 MB / 444.3 MB, free: 16.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.3464, allocations: 139.7 kB / 444.4 MB, free: 16.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.3466, allocations: 121.1 kB / 444.5 MB, free: 16.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.134/0.4806, allocations: 85.22 MB / 0.5173 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.4807, allocations: 30.56 kB / 0.5174 GB, free: 3.684 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.954e-06/0.4807, allocations: 0 / 0.5174 GB, free: 3.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0006914/0.4814, allocations: 372.6 kB / 0.5177 GB, free: 3.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.4815, allocations: 51.41 kB / 0.5178 GB, free: 3.254 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.4816, allocations: 121.7 kB / 0.5179 GB, free: 3.125 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.4816, allocations: 29.7 kB / 0.5179 GB, free: 3.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.552e-05/0.4817, allocations: 89.05 kB / 0.518 GB, free: 2.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.163e-05/0.4818, allocations: 135.4 kB / 0.5181 GB, free: 2.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.413e-05/0.4818, allocations: 45.69 kB / 0.5182 GB, free: 2.816 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.482, allocations: 326.8 kB / 0.5185 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.4821, allocations: 83.95 kB / 0.5186 GB, free: 2.406 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.4823, allocations: 122.1 kB / 0.5187 GB, free: 2.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003222/0.4826, allocations: 230.4 kB / 0.5189 GB, free: 2.051 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.4827, allocations: 0 / 0.5189 GB, free: 2.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004092/0.4831, allocations: 271.4 kB / 0.5191 GB, free: 1.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.4831, allocations: 7.562 kB / 0.5192 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.4831, allocations: 7.938 kB / 0.5192 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.4831, allocations: 0 / 0.5192 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.212e-05/0.4832, allocations: 11.98 kB / 0.5192 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.4832, allocations: 4.062 kB / 0.5192 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.4833, allocations: 23.92 kB / 0.5192 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.4834, allocations: 7.984 kB / 0.5192 GB, free: 1.73 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.0001581/0.4835, allocations: 121.8 kB / 0.5193 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.4836, allocations: 11.81 kB / 0.5193 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005041/0.4841, allocations: 314 kB / 0.5196 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/0.4841, allocations: 11.98 kB / 0.5196 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.4841, allocations: 0 / 0.5196 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.4841, allocations: 4 kB / 0.5196 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002769/0.4844, allocations: 263.9 kB / 0.5199 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/0.4844, allocations: 4 kB / 0.5199 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.111e-05/0.4845, allocations: 7.984 kB / 0.5199 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.4845, allocations: 0 / 0.5199 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.4845, allocations: 15.88 kB / 0.5199 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4845, allocations: 0 / 0.5199 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4845, allocations: 0 / 0.5199 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004149/0.485, allocations: 362.4 kB / 0.5203 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.839e-05/0.4851, allocations: 106.4 kB / 0.5204 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.4851, allocations: 3.938 kB / 0.5204 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.4852, allocations: 8 kB / 0.5204 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.4852, allocations: 14.03 kB / 0.5204 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.4853, allocations: 4 kB / 0.5204 GB, free: 444 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.757e-05/0.4853, allocations: 91.27 kB / 0.5205 GB, free: 352 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.422e-06/0.4853, allocations: 4 kB / 0.5205 GB, free: 348 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.003831/0.4892, allocations: 1.107 MB / 0.5216 GB, free: 15.23 MB / 414.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.006979/0.4961, allocations: 1.662 MB / 0.5232 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005683/0.4967, allocations: 252.8 kB / 0.5234 GB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4967, allocations: 0 / 0.5234 GB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.497, allocations: 153.4 kB / 0.5236 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008557/0.4978, allocations: 148 kB / 0.5237 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006849/0.4985, allocations: 417.4 kB / 0.5241 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.4989, allocations: 0.7245 MB / 0.5248 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.499, allocations: 8 kB / 0.5248 GB, free: 12.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.477e-05/0.499, allocations: 15.44 kB / 0.5249 GB, free: 12 MB / 414.1 MB Notification: Performance of SimCode: time 9.12e-07/0.499, allocations: 0 / 0.5249 GB, free: 12 MB / 414.1 MB Notification: Performance of Templates: time 0.04287/0.5419, allocations: 29.82 MB / 0.554 GB, free: 14.32 MB / 446.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.makefile (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)