Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001147/0.001148, allocations: 204.2 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 225.5 MB / 234.4 MB, free: 3.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009148/0.0009149, allocations: 95.3 kB / 286.3 MB, free: 5.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1145/0.1154, allocations: 56.9 MB / 343.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.2175, allocations: 51.47 MB / 394.7 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.571/5.789, allocations: 3.026 GB / 3.412 GB, free: 98.26 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0191/5.808, allocations: 11.25 MB / 3.423 GB, free: 97.52 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.2871/6.095, allocations: 111.5 MB / 3.531 GB, free: 33.67 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/6.095, allocations: 15.98 kB / 3.531 GB, free: 33.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001442/6.097, allocations: 195.6 kB / 3.532 GB, free: 33.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/6.097, allocations: 262.6 kB / 3.532 GB, free: 33.17 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/6.097, allocations: 8 kB / 3.532 GB, free: 33.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.524e-05/6.097, allocations: 15.94 kB / 3.532 GB, free: 33.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005095/6.097, allocations: 340.7 kB / 3.532 GB, free: 32.81 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003796/6.098, allocations: 282.7 kB / 3.532 GB, free: 32.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/6.098, allocations: 3.938 kB / 3.532 GB, free: 32.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/6.098, allocations: 1.406 kB / 3.532 GB, free: 32.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/6.098, allocations: 4 kB / 3.532 GB, free: 32.51 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/6.099, allocations: 1.306 MB / 3.534 GB, free: 31.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/6.1, allocations: 223.1 kB / 3.534 GB, free: 30.84 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/6.1, allocations: 133.4 kB / 3.534 GB, free: 30.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.226/6.326, allocations: 43.41 MB / 3.576 GB, free: 89.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/6.326, allocations: 33.47 kB / 3.576 GB, free: 89.87 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 2.545e-06/6.326, allocations: 0 / 3.576 GB, free: 89.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.001642/6.327, allocations: 0.5333 MB / 3.577 GB, free: 89.84 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.01e-05/6.327, allocations: 55.38 kB / 3.577 GB, free: 89.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.13e-05/6.328, allocations: 109.8 kB / 3.577 GB, free: 89.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/6.328, allocations: 29.42 kB / 3.577 GB, free: 89.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/6.328, allocations: 115.3 kB / 3.577 GB, free: 89.57 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.921e-05/6.328, allocations: 116.1 kB / 3.577 GB, free: 89.51 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.523e-05/6.328, allocations: 0 / 3.577 GB, free: 89.51 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.388e-05/6.328, allocations: 325.3 kB / 3.578 GB, free: 89.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/6.328, allocations: 108.2 kB / 3.578 GB, free: 89.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/6.328, allocations: 173 kB / 3.578 GB, free: 89.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004739/6.329, allocations: 142.2 kB / 3.578 GB, free: 89.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/6.329, allocations: 3.938 kB / 3.578 GB, free: 89.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001404/6.33, allocations: 0.5664 MB / 3.579 GB, free: 89.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/6.33, allocations: 3.875 kB / 3.579 GB, free: 89.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/6.33, allocations: 3.875 kB / 3.579 GB, free: 89.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/6.33, allocations: 3.938 kB / 3.579 GB, free: 89.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/6.33, allocations: 91.95 kB / 3.579 GB, free: 89.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/6.33, allocations: 7.078 kB / 3.579 GB, free: 89.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/6.331, allocations: 31.73 kB / 3.579 GB, free: 89.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.518e-05/6.331, allocations: 15.47 kB / 3.579 GB, free: 89.07 MB / 442.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 8.143e-05/6.331, allocations: 127.2 kB / 3.579 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006535/6.331, allocations: 234.2 kB / 3.579 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002108/6.333, allocations: 2.26 MB / 3.581 GB, free: 88.81 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.343e-05/6.334, allocations: 23.02 kB / 3.581 GB, free: 88.81 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/6.334, allocations: 0 / 3.581 GB, free: 88.81 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/6.334, allocations: 2.719 kB / 3.581 GB, free: 88.81 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006985/6.334, allocations: 0.849 MB / 3.582 GB, free: 88.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/6.334, allocations: 0 / 3.582 GB, free: 88.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/6.335, allocations: 69.38 kB / 3.582 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/6.335, allocations: 3.938 kB / 3.582 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/6.335, allocations: 14.8 kB / 3.582 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/6.335, allocations: 3.812 kB / 3.582 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/6.335, allocations: 0 / 3.582 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003377/6.338, allocations: 2.513 MB / 3.585 GB, free: 88.37 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004095/6.342, allocations: 3.509 MB / 3.588 GB, free: 87.74 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.403e-05/6.342, allocations: 122.8 kB / 3.588 GB, free: 87.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.955e-05/6.342, allocations: 0 / 3.588 GB, free: 87.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/6.342, allocations: 19.31 kB / 3.588 GB, free: 87.61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.699e-05/6.342, allocations: 25.34 kB / 3.588 GB, free: 87.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-05/6.343, allocations: 17.88 kB / 3.588 GB, free: 87.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.549e-05/6.343, allocations: 89.03 kB / 3.588 GB, free: 87.54 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004834/6.347, allocations: 1.102 MB / 3.59 GB, free: 87.54 MB / 442.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.004621/6.352, allocations: 1.431 MB / 3.591 GB, free: 87.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009625/6.353, allocations: 1.001 MB / 3.592 GB, free: 87.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/6.353, allocations: 0 / 3.592 GB, free: 87.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007562/6.354, allocations: 1.016 MB / 3.593 GB, free: 87.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/6.354, allocations: 65.36 kB / 3.593 GB, free: 87.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/6.356, allocations: 1.318 MB / 3.594 GB, free: 87.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003752/6.356, allocations: 0.9188 MB / 3.595 GB, free: 86.53 MB / 442.7 MB Notification: Performance of SimCode: time 3.6e-07/6.356, allocations: 3.828 kB / 3.595 GB, free: 86.53 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)