Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.WaterIF97.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.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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/Complex 3.2.2+maint.om/package.mo): time 0.001797/0.001797, allocations: 192.7 kB / 8.14 MB, free: 0.8711 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.171/1.171, allocations: 194.2 MB / 202.8 MB, free: 2.051 MB / 162.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001909/0.001909, allocations: 124.3 kB / 247.8 MB, free: 5.066 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 6.111e-06/6.151e-06, allocations: 0 / 297.6 MB, free: 8.18 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0666/0.06662, allocations: 44.49 MB / 342 MB, free: 11.57 MB / 258.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.744/3.811, allocations: 2.614 GB / 2.948 GB, free: 70.24 MB / 402.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/3.811, allocations: 67.83 kB / 2.948 GB, free: 70.18 MB / 402.8 MB Notification: Performance of FrontEnd: time 0.4051/4.216, allocations: 104 MB / 3.049 GB, free: 75.87 MB / 402.8 MB Notification: Performance of Transformations before backend: time 1.186e-05/4.216, allocations: 5.438 kB / 3.049 GB, free: 75.87 MB / 402.8 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.006117/4.222, allocations: 1.168 MB / 3.05 GB, free: 75.26 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/4.222, allocations: 11.59 kB / 3.05 GB, free: 75.26 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005354/4.223, allocations: 59.97 kB / 3.051 GB, free: 75.25 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/4.223, allocations: 221.5 kB / 3.051 GB, free: 75.05 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/4.223, allocations: 3.906 kB / 3.051 GB, free: 75.05 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.667e-05/4.223, allocations: 7.781 kB / 3.051 GB, free: 75.05 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003806/4.223, allocations: 209.7 kB / 3.051 GB, free: 75.05 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002552/4.224, allocations: 204.2 kB / 3.051 GB, free: 74.95 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/4.224, allocations: 3.281 kB / 3.051 GB, free: 74.95 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/4.224, allocations: 3.875 kB / 3.051 GB, free: 74.95 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/4.224, allocations: 8.828 kB / 3.051 GB, free: 74.95 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/4.225, allocations: 1.187 MB / 3.052 GB, free: 73.96 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/4.225, allocations: 130.1 kB / 3.052 GB, free: 73.89 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/4.225, allocations: 89.64 kB / 3.053 GB, free: 73.87 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09123/4.317, allocations: 47.21 MB / 3.099 GB, free: 43.66 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/4.317, allocations: 48.94 kB / 3.099 GB, free: 43.61 MB / 402.8 MB Notification: Performance of pre-optimization done (n=23): time 2.394e-06/4.317, allocations: 0 / 3.099 GB, free: 43.61 MB / 402.8 MB Notification: Performance of matching and sorting (n=33): time 0.003945/4.321, allocations: 1.082 MB / 3.1 GB, free: 43.21 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/4.321, allocations: 110.6 kB / 3.1 GB, free: 43.09 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/4.321, allocations: 108.1 kB / 3.1 GB, free: 42.99 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/4.321, allocations: 25.7 kB / 3.1 GB, free: 42.96 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.014e-05/4.321, allocations: 100.4 kB / 3.1 GB, free: 42.86 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.305e-05/4.321, allocations: 116.3 kB / 3.1 GB, free: 42.77 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.381e-05/4.321, allocations: 4.062 kB / 3.1 GB, free: 42.77 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 4.957e-05/4.321, allocations: 330.1 kB / 3.1 GB, free: 42.45 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/4.321, allocations: 99.94 kB / 3.101 GB, free: 42.4 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/4.321, allocations: 165.6 kB / 3.101 GB, free: 42.29 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003596/4.322, allocations: 137.5 kB / 3.101 GB, free: 42.23 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/4.322, allocations: 3.938 kB / 3.101 GB, free: 42.22 MB / 402.8 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001143/4.323, allocations: 434.7 kB / 3.101 GB, free: 42.06 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/4.323, allocations: 10.94 kB / 3.101 GB, free: 42.05 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/4.323, allocations: 0 / 3.101 GB, free: 42.05 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001747/4.323, allocations: 33.5 kB / 3.101 GB, free: 42.04 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005334/4.324, allocations: 90.7 kB / 3.101 GB, free: 42.04 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000303/4.324, allocations: 0.5545 MB / 3.102 GB, free: 41.5 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/4.324, allocations: 27.11 kB / 3.102 GB, free: 41.49 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/4.324, allocations: 15.72 kB / 3.102 GB, free: 41.49 MB / 402.8 MB 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.0001004/4.324, allocations: 116.8 kB / 3.102 GB, free: 41.37 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/4.325, allocations: 91.58 kB / 3.102 GB, free: 41.35 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/4.327, allocations: 1.379 MB / 3.104 GB, free: 40.77 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/4.327, allocations: 23.45 kB / 3.104 GB, free: 40.75 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/4.327, allocations: 3.969 kB / 3.104 GB, free: 40.75 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/4.327, allocations: 0 / 3.104 GB, free: 40.75 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002137/4.329, allocations: 1.703 MB / 3.105 GB, free: 39.88 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/4.329, allocations: 3.906 kB / 3.105 GB, free: 39.87 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004839/4.329, allocations: 89.77 kB / 3.105 GB, free: 39.86 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002286/4.33, allocations: 60.12 kB / 3.105 GB, free: 39.84 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/4.33, allocations: 10.22 kB / 3.105 GB, free: 39.84 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002739/4.33, allocations: 0.621 MB / 3.106 GB, free: 39.27 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/4.33, allocations: 0 / 3.106 GB, free: 39.27 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00189/4.332, allocations: 1.787 MB / 3.108 GB, free: 38.25 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/4.332, allocations: 106.5 kB / 3.108 GB, free: 38.14 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.951e-05/4.332, allocations: 3.406 kB / 3.108 GB, free: 38.14 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000467/4.332, allocations: 22.91 kB / 3.108 GB, free: 38.13 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.578e-05/4.333, allocations: 31.75 kB / 3.108 GB, free: 38.13 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-05/4.333, allocations: 26.86 kB / 3.108 GB, free: 38.12 MB / 402.8 MB Notification: Performance of sort global known variables: time 7.125e-05/4.333, allocations: 90.2 kB / 3.108 GB, free: 38.04 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.004259/4.337, allocations: 0.9663 MB / 3.109 GB, free: 37.85 MB / 402.8 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.006936/4.344, allocations: 1.337 MB / 3.11 GB, free: 37.46 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.001159/4.345, allocations: 0.6709 MB / 3.111 GB, free: 37.19 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/4.345, allocations: 0 / 3.111 GB, free: 37.19 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000705/4.346, allocations: 0.6166 MB / 3.112 GB, free: 36.89 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006839/4.347, allocations: 62 kB / 3.112 GB, free: 36.88 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/4.349, allocations: 1.02 MB / 3.113 GB, free: 36.33 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003933/4.349, allocations: 0.8419 MB / 3.113 GB, free: 35.61 MB / 402.8 MB Notification: Performance of SimCode: time 7.21e-07/4.349, allocations: 1.781 kB / 3.113 GB, free: 35.61 MB / 402.8 MB Notification: Performance of Templates: time 0.04191/4.391, allocations: 29.46 MB / 3.142 GB, free: 25.1 MB / 402.8 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.2_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.2_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.2_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.2_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Media.Examples.WaterIF97.pipe 2>&1)