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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001258/0.001258, allocations: 182.8 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0492/0.0492, allocations: 9.088 MB / 25.82 MB, free: 3.426 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.605/1.605, allocations: 205.1 MB / 233.2 MB, free: 14.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 95.55 kB / 282.1 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 51.92 kB / 341.1 MB, free: 4.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2746, allocations: 48.15 MB / 389.2 MB, free: 38.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01712/0.2918, allocations: 18.16 MB / 407.4 MB, free: 20.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01388/0.3057, allocations: 17.45 MB / 424.8 MB, free: 2.816 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002778/0.306, allocations: 0 / 424.8 MB, free: 2.816 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008547/0.307, allocations: 254.8 kB / 425.1 MB, free: 2.566 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005341/0.3075, allocations: 198.8 kB / 425.3 MB, free: 2.371 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02221/0.3297, allocations: 5.82 MB / 431.1 MB, free: 12.54 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006953/0.3304, allocations: 282.4 kB / 431.4 MB, free: 12.26 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.936e-05/0.3305, allocations: 9.688 kB / 431.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003613/0.3309, allocations: 127.3 kB / 431.5 MB, free: 12.13 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.3311, allocations: 67.72 kB / 431.6 MB, free: 12.06 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.142e-05/0.3311, allocations: 8 kB / 431.6 MB, free: 12.05 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01977/0.3509, allocations: 9.218 MB / 440.8 MB, free: 2.816 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.259e-05/0.351, allocations: 19.86 kB / 440.8 MB, free: 2.797 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002396/0.3512, allocations: 79.61 kB / 440.9 MB, free: 2.719 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01584/0.3671, allocations: 4.237 MB / 445.1 MB, free: 14.47 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.3672, allocations: 0 / 445.1 MB, free: 14.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3672, allocations: 4 kB / 445.1 MB, free: 14.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.3672, allocations: 0 / 445.1 MB, free: 14.46 MB / 330.7 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.002827/0.37, allocations: 0.9939 MB / 446.1 MB, free: 13.42 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3701, allocations: 8.031 kB / 446.1 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.942e-05/0.3701, allocations: 15.81 kB / 446.1 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.3703, allocations: 190.7 kB / 446.3 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.3704, allocations: 4 kB / 446.3 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.3704, allocations: 4 kB / 446.3 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.3707, allocations: 164.2 kB / 446.5 MB, free: 12.99 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.3707, allocations: 0 / 446.5 MB, free: 12.99 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.537e-06/0.3708, allocations: 0 / 446.5 MB, free: 12.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.3708, allocations: 11.98 kB / 446.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00025/0.371, allocations: 111.9 kB / 446.6 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007368/0.3718, allocations: 0.5239 MB / 447.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.372, allocations: 138.5 kB / 447.3 MB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.3722, allocations: 120.8 kB / 447.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3675/0.7398, allocations: 85.2 MB / 0.5201 GB, free: 108 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.7398, allocations: 40 kB / 0.5202 GB, free: 108 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 4.519e-06/0.7398, allocations: 4.312 kB / 0.5202 GB, free: 108 MB / 394.7 MB Notification: Performance of matching and sorting (n=42): time 0.0007421/0.7406, allocations: 372.6 kB / 0.5205 GB, free: 107.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.48e-05/0.7406, allocations: 51.41 kB / 0.5206 GB, free: 107.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.879e-05/0.7407, allocations: 123.7 kB / 0.5207 GB, free: 107.6 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.7407, allocations: 29.02 kB / 0.5207 GB, free: 107.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.388e-05/0.7408, allocations: 91.58 kB / 0.5208 GB, free: 107.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.491e-05/0.7409, allocations: 132.6 kB / 0.5209 GB, free: 107.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.575e-05/0.7409, allocations: 43.2 kB / 0.521 GB, free: 107.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.863e-05/0.741, allocations: 328.6 kB / 0.5213 GB, free: 107 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.7411, allocations: 87.23 kB / 0.5214 GB, free: 107 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.7413, allocations: 120.9 kB / 0.5215 GB, free: 106.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002841/0.7416, allocations: 237.7 kB / 0.5217 GB, free: 106.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.7416, allocations: 3.188 kB / 0.5217 GB, free: 106.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003566/0.742, allocations: 263.6 kB / 0.522 GB, free: 106.6 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.742, allocations: 5.406 kB / 0.522 GB, free: 106.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.742, allocations: 2.094 kB / 0.522 GB, free: 106.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.742, allocations: 14.14 kB / 0.522 GB, free: 106.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.604e-05/0.7421, allocations: 5.156 kB / 0.522 GB, free: 106.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.7421, allocations: 4.5 kB / 0.522 GB, free: 106.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.7423, allocations: 21.05 kB / 0.522 GB, free: 106.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.7423, allocations: 3.719 kB / 0.522 GB, free: 106.6 MB / 394.7 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 7.621e-05/0.7424, allocations: 117.8 kB / 0.5221 GB, free: 106.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.812e-05/0.7424, allocations: 21.72 kB / 0.5221 GB, free: 106.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004551/0.7429, allocations: 321.8 kB / 0.5224 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.7429, allocations: 10.27 kB / 0.5225 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.7429, allocations: 0 / 0.5225 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.7429, allocations: 0 / 0.5225 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.7431, allocations: 257.3 kB / 0.5227 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.7431, allocations: 3.984 kB / 0.5227 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.517e-05/0.7432, allocations: 4 kB / 0.5227 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.7432, allocations: 10.31 kB / 0.5227 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.7432, allocations: 3.938 kB / 0.5227 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.7432, allocations: 0 / 0.5227 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.7432, allocations: 3.984 kB / 0.5227 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007061/0.7439, allocations: 1.034 MB / 0.5237 GB, free: 104.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.082e-05/0.744, allocations: 107.4 kB / 0.5238 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.744, allocations: 4 kB / 0.5238 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.7441, allocations: 7.984 kB / 0.5239 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.7442, allocations: 3.984 kB / 0.5239 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.7442, allocations: 8 kB / 0.5239 GB, free: 104.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.919e-05/0.7442, allocations: 95.27 kB / 0.524 GB, free: 104.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7443, allocations: 3.156 kB / 0.524 GB, free: 104.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003199/0.7475, allocations: 1.117 MB / 0.525 GB, free: 103.6 MB / 394.7 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.004396/0.7519, allocations: 1.666 MB / 0.5267 GB, free: 102.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004688/0.7524, allocations: 257.3 kB / 0.5269 GB, free: 101.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.7524, allocations: 0 / 0.5269 GB, free: 101.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.7525, allocations: 153.6 kB / 0.5271 GB, free: 101.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009012/0.7534, allocations: 153.9 kB / 0.5272 GB, free: 101.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006597/0.7541, allocations: 0.6361 MB / 0.5278 GB, free: 100.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/0.7543, allocations: 0.7328 MB / 0.5286 GB, free: 100.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.334e-05/0.7544, allocations: 7.656 kB / 0.5286 GB, free: 100.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.29e-05/0.7544, allocations: 15.44 kB / 0.5286 GB, free: 100.1 MB / 394.7 MB Notification: Performance of SimCode: time 3.8e-07/0.7544, allocations: 8 kB / 0.5286 GB, free: 100.1 MB / 394.7 MB Notification: Performance of Templates: time 0.03123/0.7856, allocations: 29.73 MB / 0.5576 GB, free: 70.39 MB / 394.7 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)