Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.WaterIF97") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.7417/0.7417, allocations: 110.8 MB / 118 MB, free: 14.7 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001928/0.001928, allocations: 152 kB / 143.7 MB, free: 5.023 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.093e-06/7.273e-06, allocations: 0 / 173.4 MB, free: 23.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04639/0.04642, allocations: 25.17 MB / 198.6 MB, free: 13.97 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.739/2.785, allocations: 1.423 GB / 1.617 GB, free: 33.93 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/2.785, allocations: 55.97 kB / 1.617 GB, free: 33.93 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.3985/3.184, allocations: 106 MB / 1.72 GB, free: 31.68 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.599e-05/3.184, allocations: 0 / 1.72 GB, free: 31.68 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.007402/3.191, allocations: 1.168 MB / 1.721 GB, free: 31.12 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/3.191, allocations: 7.625 kB / 1.721 GB, free: 31.12 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.999e-05/3.191, allocations: 15.62 kB / 1.721 GB, free: 31.11 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/3.192, allocations: 226.8 kB / 1.722 GB, free: 30.9 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.717e-05/3.192, allocations: 3.906 kB / 1.722 GB, free: 30.9 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.001e-05/3.192, allocations: 7.594 kB / 1.722 GB, free: 30.9 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00038/3.192, allocations: 210.2 kB / 1.722 GB, free: 30.9 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/3.192, allocations: 203.5 kB / 1.722 GB, free: 30.8 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/3.193, allocations: 3.562 kB / 1.722 GB, free: 30.8 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/3.193, allocations: 4.266 kB / 1.722 GB, free: 30.8 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/3.193, allocations: 9.531 kB / 1.722 GB, free: 30.8 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/3.194, allocations: 1.299 MB / 1.723 GB, free: 29.71 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/3.194, allocations: 117 kB / 1.723 GB, free: 29.65 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/3.194, allocations: 80.73 kB / 1.723 GB, free: 29.62 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0928/3.287, allocations: 46.47 MB / 1.769 GB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.987e-05/3.287, allocations: 45.09 kB / 1.769 GB, free: 15.79 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 2.344e-06/3.287, allocations: 0 / 1.769 GB, free: 15.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.004561/3.292, allocations: 1.099 MB / 1.77 GB, free: 15.47 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/3.292, allocations: 107.9 kB / 1.77 GB, free: 15.34 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/3.292, allocations: 110 kB / 1.77 GB, free: 15.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/3.292, allocations: 25.7 kB / 1.77 GB, free: 15.22 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/3.292, allocations: 102.5 kB / 1.77 GB, free: 15.12 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.837e-05/3.292, allocations: 122.6 kB / 1.77 GB, free: 15.04 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-05/3.292, allocations: 0 / 1.77 GB, free: 15.04 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/3.292, allocations: 331.7 kB / 1.771 GB, free: 14.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/3.292, allocations: 103.3 kB / 1.771 GB, free: 14.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/3.293, allocations: 158.2 kB / 1.771 GB, free: 14.66 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005392/3.293, allocations: 139.4 kB / 1.771 GB, free: 14.66 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/3.293, allocations: 1.375 kB / 1.771 GB, free: 14.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001269/3.294, allocations: 419.5 kB / 1.771 GB, free: 14.6 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/3.294, allocations: 8.781 kB / 1.771 GB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/3.294, allocations: 5.688 kB / 1.771 GB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002073/3.295, allocations: 30.39 kB / 1.771 GB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005583/3.295, allocations: 95.59 kB / 1.772 GB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005557/3.296, allocations: 0.5599 MB / 1.772 GB, free: 14.06 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003906/3.296, allocations: 19.38 kB / 1.772 GB, free: 14.06 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.768e-05/3.296, allocations: 22.97 kB / 1.772 GB, free: 14.06 MB / 250.7 MB Warning: Assuming fixed start value for the following 3 variables: V:VARIABLE(start = 0.1 unit = "m3" ) type: Real medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 100000.0 unit = "J/kg" nominal = 1000000.0 stateSelect=StateSelect.prefer ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, 2000.0)) max = min(100000000.0, min(100000000.0, 1000000000.0)) start = 100000.0 unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003707/3.297, allocations: 124 kB / 1.772 GB, free: 13.95 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003026/3.297, allocations: 60.23 kB / 1.772 GB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002738/3.3, allocations: 1.27 MB / 1.774 GB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.78e-05/3.3, allocations: 19.33 kB / 1.774 GB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/3.3, allocations: 1.969 kB / 1.774 GB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/3.3, allocations: 4.953 kB / 1.774 GB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002865/3.303, allocations: 1.592 MB / 1.775 GB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/3.303, allocations: 1.75 kB / 1.775 GB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005245/3.303, allocations: 80.86 kB / 1.775 GB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002712/3.304, allocations: 74.08 kB / 1.775 GB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.695e-05/3.304, allocations: 9.266 kB / 1.775 GB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004726/3.304, allocations: 0.6198 MB / 1.776 GB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/3.304, allocations: 6.781 kB / 1.776 GB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002379/3.306, allocations: 1.731 MB / 1.778 GB, free: 12.34 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.726e-05/3.307, allocations: 107.4 kB / 1.778 GB, free: 12.22 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.841e-05/3.307, allocations: 3.625 kB / 1.778 GB, free: 12.22 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004356/3.307, allocations: 25.2 kB / 1.778 GB, free: 12.21 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.739e-05/3.307, allocations: 34.58 kB / 1.778 GB, free: 12.21 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.812e-05/3.307, allocations: 18.8 kB / 1.778 GB, free: 12.2 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.04e-05/3.307, allocations: 90.64 kB / 1.778 GB, free: 12.12 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.005109/3.312, allocations: 1.015 MB / 1.779 GB, free: 11.52 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00795/3.32, allocations: 1.413 MB / 1.78 GB, free: 10.3 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001094/3.321, allocations: 0.6113 MB / 1.781 GB, free: 9.734 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/3.321, allocations: 0 / 1.781 GB, free: 9.734 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007757/3.322, allocations: 0.5613 MB / 1.781 GB, free: 9.211 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006443/3.323, allocations: 64.14 kB / 1.781 GB, free: 9.168 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/3.325, allocations: 0.9658 MB / 1.782 GB, free: 8.281 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005118/3.325, allocations: 0.8428 MB / 1.783 GB, free: 7.461 MB / 250.7 MB Notification: Performance of SimCode: time 4.31e-07/3.325, allocations: 4 kB / 1.783 GB, free: 7.457 MB / 250.7 MB Notification: Performance of Templates: time 0.1295/3.455, allocations: 29.51 MB / 1.812 GB, free: 65.5 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.1_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.1_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.1_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.1_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Media.Examples.WaterIF97.pipe 2>&1)