Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001522/0.001522, allocations: 190.9 kB / 8.133 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.174/1.174, allocations: 194.2 MB / 202.8 MB, free: 8.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001842/0.001842, allocations: 120.5 kB / 247.7 MB, free: 6.312 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.068e-05/1.07e-05, allocations: 4 kB / 297.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0723/0.07233, allocations: 44.49 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.23/4.302, allocations: 2.844 GB / 3.178 GB, free: 24.45 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03482/4.337, allocations: 10.91 MB / 3.188 GB, free: 13.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.4217/4.759, allocations: 109.5 MB / 3.295 GB, free: 58.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/4.759, allocations: 8 kB / 3.295 GB, free: 58.34 MB / 394.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.004398/4.763, allocations: 1.137 MB / 3.296 GB, free: 57.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/4.763, allocations: 8.031 kB / 3.296 GB, free: 57.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001667/4.765, allocations: 199.5 kB / 3.297 GB, free: 56.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/4.765, allocations: 254.7 kB / 3.297 GB, free: 56.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/4.765, allocations: 12 kB / 3.297 GB, free: 56.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/4.766, allocations: 15.91 kB / 3.297 GB, free: 56.64 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005164/4.766, allocations: 344.7 kB / 3.297 GB, free: 56.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/4.766, allocations: 278.6 kB / 3.297 GB, free: 56.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/4.766, allocations: 0 / 3.297 GB, free: 56.01 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/4.767, allocations: 0 / 3.297 GB, free: 56.01 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/4.767, allocations: 8 kB / 3.297 GB, free: 56 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/4.768, allocations: 1.315 MB / 3.299 GB, free: 54.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/4.768, allocations: 228.5 kB / 3.299 GB, free: 54.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/4.768, allocations: 133.4 kB / 3.299 GB, free: 54.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07256/4.841, allocations: 37.44 MB / 3.336 GB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/4.841, allocations: 38.84 kB / 3.336 GB, free: 12.28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 3.316e-06/4.841, allocations: 0 / 3.336 GB, free: 12.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.001752/4.843, allocations: 0.5229 MB / 3.336 GB, free: 11.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/4.843, allocations: 59.34 kB / 3.336 GB, free: 11.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.474e-05/4.843, allocations: 109.9 kB / 3.336 GB, free: 11.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/4.843, allocations: 25.7 kB / 3.336 GB, free: 11.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.373e-05/4.843, allocations: 116.6 kB / 3.337 GB, free: 11.42 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.043e-05/4.843, allocations: 106.3 kB / 3.337 GB, free: 11.31 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.654e-05/4.843, allocations: 4 kB / 3.337 GB, free: 11.31 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.164e-05/4.843, allocations: 326.8 kB / 3.337 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/4.843, allocations: 108 kB / 3.337 GB, free: 10.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/4.843, allocations: 180.2 kB / 3.337 GB, free: 10.67 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005679/4.844, allocations: 140.2 kB / 3.337 GB, free: 10.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/4.844, allocations: 0 / 3.337 GB, free: 10.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001586/4.846, allocations: 0.5712 MB / 3.338 GB, free: 9.957 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/4.846, allocations: 4 kB / 3.338 GB, free: 9.953 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/4.846, allocations: 0 / 3.338 GB, free: 9.953 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/4.846, allocations: 4 kB / 3.338 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003284/4.846, allocations: 95.73 kB / 3.338 GB, free: 9.855 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/4.846, allocations: 5.406 kB / 3.338 GB, free: 9.852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/4.846, allocations: 43.7 kB / 3.338 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/4.846, allocations: 15.98 kB / 3.338 GB, free: 9.793 MB / 394.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 7.779e-05/4.846, allocations: 112.9 kB / 3.338 GB, free: 9.676 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007445/4.847, allocations: 231.5 kB / 3.338 GB, free: 9.449 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/4.849, allocations: 2.269 MB / 3.341 GB, free: 7.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.218e-05/4.849, allocations: 23.97 kB / 3.341 GB, free: 7.156 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/4.849, allocations: 3.984 kB / 3.341 GB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/4.849, allocations: 4 kB / 3.341 GB, free: 7.148 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007096/4.85, allocations: 0.8397 MB / 3.341 GB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/4.85, allocations: 0 / 3.341 GB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/4.85, allocations: 75.91 kB / 3.342 GB, free: 6.203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/4.85, allocations: 0 / 3.342 GB, free: 6.203 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/4.85, allocations: 11.98 kB / 3.342 GB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/4.85, allocations: 0 / 3.342 GB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/4.85, allocations: 0 / 3.342 GB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003596/4.854, allocations: 2.519 MB / 3.344 GB, free: 3.656 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/4.854, allocations: 120.4 kB / 3.344 GB, free: 3.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.102e-05/4.854, allocations: 8 kB / 3.344 GB, free: 3.512 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/4.854, allocations: 19.89 kB / 3.344 GB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/4.854, allocations: 27.95 kB / 3.344 GB, free: 3.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.849e-05/4.854, allocations: 12 kB / 3.344 GB, free: 3.453 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.333e-05/4.854, allocations: 91.27 kB / 3.344 GB, free: 3.363 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003759/4.858, allocations: 0.9989 MB / 3.345 GB, free: 2.363 MB / 394.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: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.006666/4.865, allocations: 1.405 MB / 3.347 GB, free: 1.012 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008751/4.866, allocations: 0.9972 MB / 3.348 GB, free: 16 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/4.866, allocations: 0 / 3.348 GB, free: 16 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1007/4.967, allocations: 1.014 MB / 3.349 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005723/4.967, allocations: 72.28 kB / 3.349 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/4.969, allocations: 1.321 MB / 3.35 GB, free: 104.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003052/4.969, allocations: 0.9191 MB / 3.351 GB, free: 104.1 MB / 394.7 MB Notification: Performance of SimCode: time 7.11e-07/4.969, allocations: 0.9375 kB / 3.351 GB, free: 104.1 MB / 394.7 MB Notification: Performance of Templates: time 0.03381/5.003, allocations: 29.39 MB / 3.38 GB, free: 103.9 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)