Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [: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.1+maint.om/package.mo): time 0.006304/0.006304, allocations: 174.7 kB / 7.444 MB, free: 2.32 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.353/1.353, allocations: 170.6 MB / 178.4 MB, free: 15.38 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001942/0.001942, allocations: 119.8 kB / 217.7 MB, free: 8.141 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.007e-05/1.021e-05, allocations: 0 / 261.7 MB, free: 26.51 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09195/0.09198, allocations: 38.75 MB / 300.5 MB, free: 3.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.939/7.031, allocations: 2.734 GB / 3.028 GB, free: 30.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0215/7.052, allocations: 10.73 MB / 3.038 GB, free: 19.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.513/7.565, allocations: 107.6 MB / 3.143 GB, free: 43.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.732e-05/7.565, allocations: 8 kB / 3.143 GB, free: 43.59 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.006578/7.572, allocations: 1.131 MB / 3.144 GB, free: 42.49 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/7.572, allocations: 8.031 kB / 3.144 GB, free: 42.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001762/7.574, allocations: 196.2 kB / 3.144 GB, free: 42.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004592/7.574, allocations: 261 kB / 3.145 GB, free: 42.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.019e-05/7.574, allocations: 12 kB / 3.145 GB, free: 42.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.375e-05/7.574, allocations: 12 kB / 3.145 GB, free: 42.06 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000617/7.575, allocations: 354.3 kB / 3.145 GB, free: 41.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004611/7.576, allocations: 283.7 kB / 3.145 GB, free: 41.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/7.576, allocations: 3.906 kB / 3.145 GB, free: 41.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.402e-05/7.576, allocations: 0 / 3.145 GB, free: 41.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/7.576, allocations: 4 kB / 3.145 GB, free: 41.49 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/7.577, allocations: 1.327 MB / 3.147 GB, free: 40.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/7.578, allocations: 220.6 kB / 3.147 GB, free: 39.97 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/7.578, allocations: 133.1 kB / 3.147 GB, free: 39.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07761/7.656, allocations: 36.81 MB / 3.183 GB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.349e-05/7.656, allocations: 34.84 kB / 3.183 GB, free: 0.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 3.907e-06/7.656, allocations: 0 / 3.183 GB, free: 0.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.2107/7.866, allocations: 0.528 MB / 3.183 GB, free: 86.22 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/7.866, allocations: 55.38 kB / 3.183 GB, free: 86.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/7.867, allocations: 108.8 kB / 3.184 GB, free: 86.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.929e-05/7.867, allocations: 25.7 kB / 3.184 GB, free: 86.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.262e-05/7.867, allocations: 117.8 kB / 3.184 GB, free: 85.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.04e-05/7.867, allocations: 111.6 kB / 3.184 GB, free: 85.9 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.848e-05/7.867, allocations: 0 / 3.184 GB, free: 85.9 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.233e-05/7.867, allocations: 324.4 kB / 3.184 GB, free: 85.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/7.867, allocations: 109.6 kB / 3.184 GB, free: 85.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/7.867, allocations: 176 kB / 3.184 GB, free: 85.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007085/7.868, allocations: 135.7 kB / 3.185 GB, free: 85.51 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/7.868, allocations: 0 / 3.185 GB, free: 85.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001544/7.87, allocations: 0.5718 MB / 3.185 GB, free: 85.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/7.87, allocations: 7.938 kB / 3.185 GB, free: 85.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/7.87, allocations: 1.688 kB / 3.185 GB, free: 85.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/7.87, allocations: 3.969 kB / 3.185 GB, free: 85.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003486/7.87, allocations: 91.73 kB / 3.185 GB, free: 85.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/7.87, allocations: 3.938 kB / 3.185 GB, free: 85.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/7.87, allocations: 40.52 kB / 3.185 GB, free: 85.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.732e-05/7.87, allocations: 19.08 kB / 3.185 GB, free: 85.46 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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 0.0001121/7.87, allocations: 122.2 kB / 3.185 GB, free: 85.35 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006633/7.871, allocations: 236 kB / 3.186 GB, free: 85.34 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002223/7.873, allocations: 2.037 MB / 3.188 GB, free: 85.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.587e-05/7.873, allocations: 17.89 kB / 3.188 GB, free: 85.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/7.873, allocations: 7.781 kB / 3.188 GB, free: 85.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/7.873, allocations: 7.453 kB / 3.188 GB, free: 85.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007935/7.874, allocations: 0.7709 MB / 3.188 GB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/7.874, allocations: 3.906 kB / 3.188 GB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/7.875, allocations: 69.33 kB / 3.188 GB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/7.875, allocations: 0 / 3.188 GB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/7.875, allocations: 14.3 kB / 3.188 GB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/7.875, allocations: 1.594 kB / 3.188 GB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/7.875, allocations: 0 / 3.188 GB, free: 85.02 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003407/7.878, allocations: 2.236 MB / 3.191 GB, free: 84.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.454e-05/7.878, allocations: 117.9 kB / 3.191 GB, free: 84.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/7.878, allocations: 0 / 3.191 GB, free: 84.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/7.878, allocations: 14.91 kB / 3.191 GB, free: 84.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.34e-05/7.878, allocations: 27.97 kB / 3.191 GB, free: 84.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/7.878, allocations: 15.77 kB / 3.191 GB, free: 84.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.268e-05/7.879, allocations: 100.9 kB / 3.191 GB, free: 84.58 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006038/7.885, allocations: 0.983 MB / 3.192 GB, free: 84.58 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 11 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01015/7.895, allocations: 1.394 MB / 3.193 GB, free: 84.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0014/7.896, allocations: 0.9327 MB / 3.194 GB, free: 84.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/7.896, allocations: 0 / 3.194 GB, free: 84.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009725/7.897, allocations: 0.9378 MB / 3.195 GB, free: 84.47 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007929/7.898, allocations: 72.89 kB / 3.195 GB, free: 84.47 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002181/7.9, allocations: 1.178 MB / 3.196 GB, free: 84.31 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005589/7.901, allocations: 0.8853 MB / 3.197 GB, free: 83.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.833e-06/7.901, allocations: 0 / 3.197 GB, free: 83.6 MB / 346.7 MB Notification: Performance of Templates: time 0.04619/7.947, allocations: 29.02 MB / 3.225 GB, free: 83.36 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)