Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.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.SinglePhase_setState_b_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water") translateModel(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00138/0.00138, allocations: 193.2 kB / 16.25 MB, free: 6.625 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.522/1.522, 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.04597/0.04597, allocations: 9.094 MB / 278.5 MB, free: 12.36 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.001355/0.001355, allocations: 71.84 kB / 337.5 MB, free: 25.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1081, allocations: 48.16 MB / 385.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01719/0.1253, allocations: 13.28 MB / 399 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02088/0.1462, allocations: 17.88 MB / 416.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.1465, allocations: 0 / 416.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002513/0.1468, allocations: 51.78 kB / 416.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.147, allocations: 59.52 kB / 416.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01841/0.1654, allocations: 5.891 MB / 422.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.1657, allocations: 170.9 kB / 423 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.44e-05/0.1657, allocations: 9.125 kB / 423 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.1659, allocations: 63.78 kB / 423.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.879e-05/0.166, allocations: 67.7 kB / 423.1 MB, free: 4 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.1661, allocations: 4 kB / 423.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2274/0.3935, allocations: 10.65 MB / 433.8 MB, free: 16.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.691e-05/0.3936, allocations: 17.17 kB / 433.8 MB, free: 16.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.3937, allocations: 68.66 kB / 433.9 MB, free: 16.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02416/0.4179, allocations: 6.102 MB / 440 MB, free: 16.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.4179, allocations: 3.719 kB / 440 MB, free: 16.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.418, allocations: 0 / 440 MB, free: 16.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.418, allocations: 0 / 440 MB, free: 16.71 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.008874/0.4269, allocations: 1.347 MB / 441.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.4269, allocations: 12.59 kB / 441.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.87e-05/0.427, allocations: 17.94 kB / 441.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.4271, allocations: 188.8 kB / 441.5 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.4272, allocations: 9.625 kB / 441.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.83e-05/0.4272, allocations: 8.875 kB / 441.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008995/0.4281, allocations: 328.1 kB / 441.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.4281, allocations: 3.062 kB / 441.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.4281, allocations: 0 / 441.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.4282, allocations: 3.281 kB / 441.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008458/0.429, allocations: 314.3 kB / 442.2 MB, free: 15.65 MB / 318.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.0008024/0.4298, allocations: 1.045 MB / 443.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008725/0.4307, allocations: 296.7 kB / 443.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.4309, allocations: 87.8 kB / 443.6 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.618/1.049, allocations: 183.1 MB / 0.612 GB, free: 147.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/1.049, allocations: 36.94 kB / 0.6121 GB, free: 147.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 2.876e-06/1.049, allocations: 0 / 0.6121 GB, free: 147.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.00177/1.051, allocations: 497.5 kB / 0.6125 GB, free: 146.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/1.051, allocations: 102.8 kB / 0.6126 GB, free: 146.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/1.051, allocations: 161.7 kB / 0.6128 GB, free: 146.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/1.051, allocations: 29.64 kB / 0.6128 GB, free: 146.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.163e-05/1.051, allocations: 111.8 kB / 0.6129 GB, free: 146.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.347e-05/1.051, allocations: 42.58 kB / 0.613 GB, free: 146.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-05/1.051, allocations: 41.42 kB / 0.613 GB, free: 146.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.467e-05/1.051, allocations: 326.8 kB / 0.6133 GB, free: 146.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/1.051, allocations: 55.69 kB / 0.6134 GB, free: 146.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/1.052, allocations: 111.7 kB / 0.6135 GB, free: 146 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003377/1.052, allocations: 176 kB / 0.6137 GB, free: 145.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/1.052, allocations: 0 / 0.6137 GB, free: 145.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004543/1.052, allocations: 216.3 kB / 0.6139 GB, free: 145.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/1.052, allocations: 4 kB / 0.6139 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/1.052, allocations: 0 / 0.6139 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/1.052, allocations: 4 kB / 0.6139 GB, free: 145.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/1.053, allocations: 45.91 kB / 0.6139 GB, free: 145.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/1.053, allocations: 8.688 kB / 0.6139 GB, free: 145.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/1.053, allocations: 30.92 kB / 0.6139 GB, free: 145.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/1.053, allocations: 8 kB / 0.614 GB, free: 145.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (state_ps.phase,state.phase,state_ph.phase,state_dT.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 8.471e-05/1.053, allocations: 127 kB / 0.6141 GB, free: 145.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.161e-05/1.053, allocations: 14.06 kB / 0.6141 GB, free: 145.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000944/1.054, allocations: 1.147 MB / 0.6152 GB, free: 144.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/1.054, allocations: 11.67 kB / 0.6152 GB, free: 144.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/1.054, allocations: 4 kB / 0.6152 GB, free: 144.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/1.054, allocations: 7.922 kB / 0.6152 GB, free: 144.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005003/1.055, allocations: 0.5696 MB / 0.6158 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/1.055, allocations: 8 kB / 0.6158 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/1.055, allocations: 32.09 kB / 0.6158 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/1.055, allocations: 4 kB / 0.6158 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/1.055, allocations: 7.062 kB / 0.6158 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/1.055, allocations: 5.812 kB / 0.6158 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/1.055, allocations: 0 / 0.6158 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007467/1.056, allocations: 0.8548 MB / 0.6167 GB, free: 143.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.156e-05/1.056, allocations: 131.8 kB / 0.6168 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/1.056, allocations: 4 kB / 0.6168 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/1.056, allocations: 19.41 kB / 0.6168 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.28e-05/1.056, allocations: 23.23 kB / 0.6168 GB, free: 143.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/1.056, allocations: 4.938 kB / 0.6169 GB, free: 143.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.696e-05/1.056, allocations: 113.7 kB / 0.617 GB, free: 143.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/1.056, allocations: 3.844 kB / 0.617 GB, free: 143.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007083/1.063, allocations: 1.433 MB / 0.6184 GB, free: 142 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.009196/1.072, allocations: 1.69 MB / 0.62 GB, free: 140.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007471/1.073, allocations: 312.2 kB / 0.6203 GB, free: 140.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/1.073, allocations: 5.312 kB / 0.6203 GB, free: 140.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003192/1.073, allocations: 282.6 kB / 0.6206 GB, free: 140.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006033/1.074, allocations: 43.55 kB / 0.6206 GB, free: 140.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008628/1.075, allocations: 0.8936 MB / 0.6215 GB, free: 139.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001695/1.075, allocations: 0.7921 MB / 0.6223 GB, free: 138.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001444/1.075, allocations: 111.2 kB / 0.6224 GB, free: 138.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.779e-05/1.075, allocations: 27.31 kB / 0.6224 GB, free: 138.5 MB / 462.1 MB Notification: Performance of SimCode: time 3.61e-07/1.075, allocations: 0 / 0.6224 GB, free: 138.5 MB / 462.1 MB Notification: Performance of Templates: time 0.04719/1.122, allocations: 51.23 MB / 0.6724 GB, free: 87.32 MB / 462.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe 2>&1)