Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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/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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",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.001039/0.001039, allocations: 174 kB / 8.477 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.296/1.296, allocations: 205.2 MB / 214.1 MB, free: 1.895 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001167/0.001167, allocations: 75.41 kB / 262.1 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1868/0.188, allocations: 52.97 MB / 315.1 MB, free: 22.97 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09734/0.2854, allocations: 47.58 MB / 362.6 MB, free: 7.332 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.655/5.941, allocations: 3.02 GB / 3.374 GB, free: 12.42 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02013/5.961, allocations: 10.98 MB / 3.385 GB, free: 1.336 MB / 426.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.5434/6.504, allocations: 110.6 MB / 3.493 GB, free: 66.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/6.504, allocations: 8 kB / 3.493 GB, free: 66.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001668/6.506, allocations: 195.5 kB / 3.493 GB, free: 66.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00041/6.507, allocations: 258.7 kB / 3.493 GB, free: 66.19 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.732e-05/6.507, allocations: 19.89 kB / 3.493 GB, free: 66.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.894e-05/6.507, allocations: 16 kB / 3.493 GB, free: 66.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006307/6.507, allocations: 344.7 kB / 3.494 GB, free: 65.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004928/6.508, allocations: 280.8 kB / 3.494 GB, free: 65.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/6.508, allocations: 0 / 3.494 GB, free: 65.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.044e-05/6.508, allocations: 0 / 3.494 GB, free: 65.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/6.508, allocations: 8 kB / 3.494 GB, free: 65.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/6.51, allocations: 1.317 MB / 3.495 GB, free: 64.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003257/6.51, allocations: 215.1 kB / 3.495 GB, free: 63.87 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/6.511, allocations: 137.4 kB / 3.496 GB, free: 63.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07902/6.59, allocations: 37.44 MB / 3.532 GB, free: 21.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.585e-05/6.59, allocations: 46.81 kB / 3.532 GB, free: 21.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 5.791e-06/6.59, allocations: 0 / 3.532 GB, free: 21.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.002032/6.592, allocations: 0.5152 MB / 3.533 GB, free: 21.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/6.592, allocations: 63.39 kB / 3.533 GB, free: 21.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/6.592, allocations: 109.1 kB / 3.533 GB, free: 21.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/6.592, allocations: 25.7 kB / 3.533 GB, free: 21.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.041e-05/6.592, allocations: 120.4 kB / 3.533 GB, free: 20.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.793e-05/6.592, allocations: 110.3 kB / 3.533 GB, free: 20.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.567e-05/6.592, allocations: 4 kB / 3.533 GB, free: 20.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.36e-05/6.592, allocations: 326.8 kB / 3.533 GB, free: 20.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/6.592, allocations: 108 kB / 3.534 GB, free: 20.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/6.593, allocations: 167.7 kB / 3.534 GB, free: 20.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005113/6.593, allocations: 148.1 kB / 3.534 GB, free: 20.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/6.593, allocations: 3.906 kB / 3.534 GB, free: 20.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001552/6.595, allocations: 0.5636 MB / 3.534 GB, free: 19.47 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/6.595, allocations: 7.906 kB / 3.534 GB, free: 19.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/6.595, allocations: 0 / 3.534 GB, free: 19.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/6.595, allocations: 7.938 kB / 3.534 GB, free: 19.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/6.595, allocations: 91.88 kB / 3.535 GB, free: 19.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/6.595, allocations: 4 kB / 3.535 GB, free: 19.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/6.595, allocations: 35.77 kB / 3.535 GB, free: 19.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/6.595, allocations: 16 kB / 3.535 GB, free: 19.31 MB / 426.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.0001001/6.595, allocations: 113.3 kB / 3.535 GB, free: 19.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006988/6.596, allocations: 231.5 kB / 3.535 GB, free: 18.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/6.599, allocations: 2.266 MB / 3.537 GB, free: 16.69 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-05/6.599, allocations: 27.95 kB / 3.537 GB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/6.599, allocations: 0 / 3.537 GB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/6.599, allocations: 7.969 kB / 3.537 GB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000784/6.599, allocations: 0.8432 MB / 3.538 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/6.599, allocations: 0 / 3.538 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/6.6, allocations: 79.89 kB / 3.538 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/6.6, allocations: 3.938 kB / 3.538 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/6.6, allocations: 12 kB / 3.538 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/6.6, allocations: 0 / 3.538 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/6.6, allocations: 0 / 3.538 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003588/6.603, allocations: 2.511 MB / 3.541 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004119/6.607, allocations: 3.513 MB / 3.544 GB, free: 9.629 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.346e-05/6.608, allocations: 124.4 kB / 3.544 GB, free: 9.488 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.181e-05/6.608, allocations: 0 / 3.544 GB, free: 9.488 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/6.608, allocations: 11.98 kB / 3.544 GB, free: 9.477 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.829e-05/6.608, allocations: 32.02 kB / 3.544 GB, free: 9.445 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/6.608, allocations: 19.92 kB / 3.544 GB, free: 9.426 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.988e-05/6.608, allocations: 87.28 kB / 3.544 GB, free: 9.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005904/6.614, allocations: 1.081 MB / 3.545 GB, free: 8.258 MB / 426.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.008543/6.622, allocations: 1.402 MB / 3.547 GB, free: 6.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001021/6.624, allocations: 0.9936 MB / 3.548 GB, free: 5.914 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/6.624, allocations: 0 / 3.548 GB, free: 5.914 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007285/6.624, allocations: 1.021 MB / 3.549 GB, free: 4.895 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005669/6.625, allocations: 69.58 kB / 3.549 GB, free: 4.828 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/6.626, allocations: 1.321 MB / 3.55 GB, free: 3.484 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004217/6.627, allocations: 0.9195 MB / 3.551 GB, free: 2.535 MB / 426.7 MB Notification: Performance of SimCode: time 2.6e-07/6.627, allocations: 0 / 3.551 GB, free: 2.535 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)