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: "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water",fmuType="me",version="2.0",platforms={"static"}) [: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.002097/0.002097, allocations: 178.9 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04097/0.04097, allocations: 8.665 MB / 16.54 MB, free: 192 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.039/1.039, allocations: 205.2 MB / 223.7 MB, free: 4.105 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.0008357/0.0008358, allocations: 88.75 kB / 273.3 MB, free: 2.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08356/0.08442, allocations: 55.32 MB / 328.7 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.241, allocations: 49.17 MB / 377.8 MB, free: 41.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.43/3.671, allocations: 2.851 GB / 3.22 GB, free: 9.02 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001721/3.671, allocations: 63.97 kB / 3.22 GB, free: 8.957 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.5128/4.184, allocations: 171.2 MB / 3.387 GB, free: 18.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.974e-05/4.184, allocations: 8 kB / 3.387 GB, free: 18.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.294e-05/4.184, allocations: 15.81 kB / 3.387 GB, free: 18.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.186e-05/4.184, allocations: 183.7 kB / 3.387 GB, free: 17.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/4.184, allocations: 4 kB / 3.387 GB, free: 17.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/4.184, allocations: 9.5 kB / 3.387 GB, free: 17.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002365/4.184, allocations: 143.9 kB / 3.387 GB, free: 17.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/4.184, allocations: 170.7 kB / 3.387 GB, free: 17.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/4.185, allocations: 0 / 3.387 GB, free: 17.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/4.185, allocations: 4 kB / 3.387 GB, free: 17.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/4.185, allocations: 4 kB / 3.387 GB, free: 17.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006554/4.185, allocations: 1.045 MB / 3.388 GB, free: 16.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000179/4.185, allocations: 151.8 kB / 3.389 GB, free: 16.29 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.549e-05/4.185, allocations: 50.58 kB / 3.389 GB, free: 16.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.8446/5.03, allocations: 252.2 MB / 3.635 GB, free: 94.04 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/5.03, allocations: 40.88 kB / 3.635 GB, free: 94 MB / 442.8 MB Notification: Performance of pre-optimization done (n=12): time 2.044e-06/5.03, allocations: 0 / 3.635 GB, free: 94 MB / 442.8 MB Notification: Performance of matching and sorting (n=12): time 0.001031/5.031, allocations: 294.1 kB / 3.635 GB, free: 93.96 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.341e-05/5.031, allocations: 107.1 kB / 3.635 GB, free: 93.84 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.211e-05/5.031, allocations: 124.7 kB / 3.636 GB, free: 93.75 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/5.031, allocations: 29.5 kB / 3.636 GB, free: 93.72 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 2.931e-05/5.031, allocations: 105.2 kB / 3.636 GB, free: 93.64 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/5.031, allocations: 45.09 kB / 3.636 GB, free: 93.62 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.447e-06/5.031, allocations: 0 / 3.636 GB, free: 93.62 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 3.856e-05/5.031, allocations: 329.2 kB / 3.636 GB, free: 93.31 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.658e-05/5.032, allocations: 35.5 kB / 3.636 GB, free: 93.31 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.818e-05/5.032, allocations: 87.69 kB / 3.636 GB, free: 93.25 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002402/5.032, allocations: 54.8 kB / 3.636 GB, free: 93.25 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/5.032, allocations: 0 / 3.636 GB, free: 93.25 MB / 442.8 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0008379/5.033, allocations: 312.5 kB / 3.636 GB, free: 93.21 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/5.033, allocations: 10.75 kB / 3.636 GB, free: 93.21 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/5.033, allocations: 0 / 3.636 GB, free: 93.21 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/5.033, allocations: 3.594 kB / 3.637 GB, free: 93.21 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002266/5.033, allocations: 63.73 kB / 3.637 GB, free: 93.21 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/5.033, allocations: 6.875 kB / 3.637 GB, free: 93.21 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/5.033, allocations: 32.84 kB / 3.637 GB, free: 93.21 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/5.033, allocations: 11.05 kB / 3.637 GB, free: 93.21 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 5.387e-05/5.033, allocations: 111.7 kB / 3.637 GB, free: 93.1 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004784/5.034, allocations: 164.5 kB / 3.637 GB, free: 93.09 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/5.035, allocations: 1.411 MB / 3.638 GB, free: 92.97 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/5.035, allocations: 17.25 kB / 3.638 GB, free: 92.97 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/5.035, allocations: 3.969 kB / 3.638 GB, free: 92.97 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/5.035, allocations: 3.562 kB / 3.638 GB, free: 92.97 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004142/5.036, allocations: 0.5213 MB / 3.639 GB, free: 92.79 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/5.036, allocations: 0 / 3.639 GB, free: 92.79 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/5.036, allocations: 56.73 kB / 3.639 GB, free: 92.79 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/5.036, allocations: 0 / 3.639 GB, free: 92.79 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/5.036, allocations: 7.656 kB / 3.639 GB, free: 92.79 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/5.036, allocations: 3.469 kB / 3.639 GB, free: 92.79 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/5.036, allocations: 7.781 kB / 3.639 GB, free: 92.79 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009578/5.037, allocations: 1.235 MB / 3.64 GB, free: 92.41 MB / 442.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001117/5.038, allocations: 1.671 MB / 3.642 GB, free: 91.66 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.186e-05/5.038, allocations: 125.6 kB / 3.642 GB, free: 91.55 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.852e-05/5.038, allocations: 2.625 kB / 3.642 GB, free: 91.55 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/5.038, allocations: 32.89 kB / 3.642 GB, free: 91.55 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/5.038, allocations: 10.33 kB / 3.642 GB, free: 91.55 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/5.038, allocations: 9.453 kB / 3.642 GB, free: 91.55 MB / 442.8 MB Notification: Performance of sort global known variables: time 3.817e-05/5.038, allocations: 112.9 kB / 3.642 GB, free: 91.47 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.005096/5.043, allocations: 1.604 MB / 3.644 GB, free: 91.47 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.005894/5.049, allocations: 2.029 MB / 3.646 GB, free: 91.3 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.000423/5.05, allocations: 0.5312 MB / 3.646 GB, free: 91.3 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/5.05, allocations: 3.625 kB / 3.646 GB, free: 91.3 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003499/5.05, allocations: 0.5717 MB / 3.647 GB, free: 91.3 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/5.051, allocations: 44.86 kB / 3.647 GB, free: 91.3 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007147/5.051, allocations: 0.7537 MB / 3.647 GB, free: 91.14 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002276/5.051, allocations: 0.8351 MB / 3.648 GB, free: 90.44 MB / 442.8 MB Notification: Performance of SimCode: time 2.4e-07/5.051, allocations: 0 / 3.648 GB, free: 90.44 MB / 442.8 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe 2>&1)