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/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.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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00322/0.00322, allocations: 178.5 kB / 7.454 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04594/0.04594, allocations: 8.667 MB / 16.54 MB, free: 200 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.2 MB / 223.8 MB, free: 4.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009211/0.0009208, allocations: 95.38 kB / 273.3 MB, free: 2.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.171e-05/1.173e-05, allocations: 7.938 kB / 328.6 MB, free: 11.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.292, allocations: 49.17 MB / 377.7 MB, free: 41.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.488/5.781, allocations: 2.851 GB / 3.22 GB, free: 11.48 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/5.781, allocations: 67.97 kB / 3.22 GB, free: 11.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.6351/6.416, allocations: 169.8 MB / 3.385 GB, free: 22.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.05e-05/6.416, allocations: 0 / 3.385 GB, free: 22.32 MB / 442.7 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.00846/6.424, allocations: 1.41 MB / 3.387 GB, free: 20.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/6.425, allocations: 8.031 kB / 3.387 GB, free: 20.86 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.981e-05/6.425, allocations: 19.8 kB / 3.387 GB, free: 20.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/6.425, allocations: 179.9 kB / 3.387 GB, free: 20.62 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/6.425, allocations: 4 kB / 3.387 GB, free: 20.62 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/6.425, allocations: 8 kB / 3.387 GB, free: 20.61 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002755/6.425, allocations: 136 kB / 3.387 GB, free: 20.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/6.425, allocations: 170.7 kB / 3.387 GB, free: 20.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/6.425, allocations: 0 / 3.387 GB, free: 20.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/6.425, allocations: 7.938 kB / 3.387 GB, free: 20.28 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/6.425, allocations: 8 kB / 3.387 GB, free: 20.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009595/6.426, allocations: 1.044 MB / 3.388 GB, free: 19.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/6.427, allocations: 143.9 kB / 3.389 GB, free: 18.97 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.509e-05/6.427, allocations: 62.69 kB / 3.389 GB, free: 18.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147/7.573, allocations: 252.2 MB / 3.635 GB, free: 93.31 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.857e-05/7.573, allocations: 37.69 kB / 3.635 GB, free: 93.27 MB / 442.8 MB Notification: Performance of pre-optimization done (n=12): time 3.887e-06/7.573, allocations: 3.094 kB / 3.635 GB, free: 93.27 MB / 442.8 MB Notification: Performance of matching and sorting (n=12): time 0.001245/7.575, allocations: 292.2 kB / 3.635 GB, free: 93.24 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/7.575, allocations: 108 kB / 3.635 GB, free: 93.11 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/7.575, allocations: 130.7 kB / 3.635 GB, free: 93.02 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/7.575, allocations: 25.7 kB / 3.635 GB, free: 92.99 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.365e-05/7.575, allocations: 108.9 kB / 3.636 GB, free: 92.91 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.779e-05/7.575, allocations: 40.36 kB / 3.636 GB, free: 92.9 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.058e-05/7.575, allocations: 0 / 3.636 GB, free: 92.9 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 6.933e-05/7.575, allocations: 326.1 kB / 3.636 GB, free: 92.58 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.635e-05/7.575, allocations: 30.44 kB / 3.636 GB, free: 92.58 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.066e-05/7.575, allocations: 93.27 kB / 3.636 GB, free: 92.52 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/7.575, allocations: 48.66 kB / 3.636 GB, free: 92.52 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/7.575, allocations: 3.688 kB / 3.636 GB, free: 92.52 MB / 442.8 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0009155/7.576, allocations: 314.8 kB / 3.636 GB, free: 92.48 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/7.576, allocations: 3.969 kB / 3.636 GB, free: 92.48 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/7.576, allocations: 3.906 kB / 3.636 GB, free: 92.48 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/7.576, allocations: 3.5 kB / 3.636 GB, free: 92.48 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/7.577, allocations: 66.17 kB / 3.636 GB, free: 92.48 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/7.577, allocations: 0 / 3.636 GB, free: 92.48 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/7.577, allocations: 37.7 kB / 3.637 GB, free: 92.48 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/7.577, allocations: 11.34 kB / 3.637 GB, free: 92.48 MB / 442.8 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.057e-05/7.577, allocations: 119.9 kB / 3.637 GB, free: 92.37 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005303/7.578, allocations: 165.2 kB / 3.637 GB, free: 92.37 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/7.579, allocations: 1.406 MB / 3.638 GB, free: 92.24 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.065e-05/7.579, allocations: 22.11 kB / 3.638 GB, free: 92.24 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/7.579, allocations: 0 / 3.638 GB, free: 92.24 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/7.579, allocations: 0 / 3.638 GB, free: 92.24 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005454/7.58, allocations: 0.5219 MB / 3.639 GB, free: 92.07 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/7.58, allocations: 3.75 kB / 3.639 GB, free: 92.07 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/7.58, allocations: 50.31 kB / 3.639 GB, free: 92.07 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/7.58, allocations: 0.9375 kB / 3.639 GB, free: 92.07 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/7.58, allocations: 7.812 kB / 3.639 GB, free: 92.06 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/7.58, allocations: 0 / 3.639 GB, free: 92.06 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/7.58, allocations: 6.672 kB / 3.639 GB, free: 92.06 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001123/7.581, allocations: 1.239 MB / 3.64 GB, free: 91.68 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/7.581, allocations: 130.8 kB / 3.64 GB, free: 91.57 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.239e-05/7.581, allocations: 0 / 3.64 GB, free: 91.57 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/7.581, allocations: 27.23 kB / 3.64 GB, free: 91.57 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/7.582, allocations: 19.64 kB / 3.64 GB, free: 91.56 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/7.582, allocations: 8.219 kB / 3.64 GB, free: 91.56 MB / 442.8 MB Notification: Performance of sort global known variables: time 5.039e-05/7.582, allocations: 106.6 kB / 3.64 GB, free: 91.49 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.007091/7.589, allocations: 1.474 MB / 3.642 GB, free: 91.49 MB / 442.8 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 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.01392/7.603, allocations: 2.035 MB / 3.644 GB, free: 91.29 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.0006568/7.603, allocations: 0.5283 MB / 3.644 GB, free: 91.28 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/7.603, allocations: 0 / 3.644 GB, free: 91.28 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005032/7.604, allocations: 0.5773 MB / 3.645 GB, free: 91.28 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005351/7.604, allocations: 50.25 kB / 3.645 GB, free: 91.27 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/7.605, allocations: 0.7562 MB / 3.646 GB, free: 91.12 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/7.606, allocations: 0.8285 MB / 3.646 GB, free: 90.41 MB / 442.8 MB Notification: Performance of SimCode: time 4.01e-07/7.606, allocations: 4 kB / 3.646 GB, free: 90.41 MB / 442.8 MB Notification: Performance of Templates: time 0.05914/7.665, allocations: 38.95 MB / 3.684 GB, free: 88.17 MB / 442.8 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)