Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|heatCapacitor.T|innerPipe.T|outerPipe.T|pipe1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|heatCapacitor.T|innerPipe.T|outerPipe.T|pipe1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling") [: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 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 182.5 kB / 8.134 MB, free: 2.137 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008801/0.0008801, allocations: 97.64 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.208e-06/9.238e-06, allocations: 8 kB / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2005, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08755/0.2881, allocations: 80.41 MB / 467.3 MB, free: 6.371 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.2883, allocations: 76.47 kB / 467.4 MB, free: 6.297 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04795/0.3363, allocations: 18.7 MB / 486.1 MB, free: 3.535 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.565e-05/0.3364, allocations: 24 kB / 486.1 MB, free: 3.512 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.001785/0.3382, allocations: 1.166 MB / 487.3 MB, free: 2.277 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.3382, allocations: 12.03 kB / 487.3 MB, free: 2.266 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.3384, allocations: 126.6 kB / 487.4 MB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008984/0.3393, allocations: 0.6071 MB / 488 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.3395, allocations: 139.1 kB / 488.2 MB, free: 1.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.075e-05/0.3396, allocations: 40 kB / 488.2 MB, free: 1.301 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000944/0.3406, allocations: 0.5233 MB / 488.7 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.3417, allocations: 0.8146 MB / 489.5 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.3417, allocations: 7.891 kB / 489.5 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.726e-05/0.3418, allocations: 4 kB / 489.5 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.3418, allocations: 19.94 kB / 489.6 MB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003732/0.3455, allocations: 2.428 MB / 492 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.3468, allocations: 0.682 MB / 492.7 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005132/0.3473, allocations: 306.7 kB / 493 MB, free: 12.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.01e-05/0.3474, allocations: 16.62 kB / 493 MB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.3474, allocations: 55.12 kB / 493 MB, free: 12.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 1.814e-06/0.3474, allocations: 0.7656 kB / 493 MB, free: 12.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.001295/0.3487, allocations: 0.6632 MB / 493.7 MB, free: 11.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000384/0.3491, allocations: 0.9528 MB / 494.7 MB, free: 10.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007107/0.3498, allocations: 0.5742 MB / 495.2 MB, free: 9.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.222e-05/0.3499, allocations: 29.7 kB / 495.3 MB, free: 9.695 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.3501, allocations: 296.1 kB / 495.6 MB, free: 9.398 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.3503, allocations: 252.2 kB / 495.8 MB, free: 9.148 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.3503, allocations: 3.938 kB / 495.8 MB, free: 9.145 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3505, allocations: 334 kB / 496.1 MB, free: 8.812 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003736/0.3508, allocations: 205.6 kB / 496.3 MB, free: 8.609 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006/0.3515, allocations: 0.5217 MB / 496.9 MB, free: 7.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004227/0.3519, allocations: 269.1 kB / 497.1 MB, free: 7.707 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3519, allocations: 0 / 497.1 MB, free: 7.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00138/0.3533, allocations: 0.7908 MB / 497.9 MB, free: 6.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.3533, allocations: 4 kB / 497.9 MB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3533, allocations: 4 kB / 497.9 MB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005663/0.3539, allocations: 164.2 kB / 498.1 MB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007555/0.3547, allocations: 171.8 kB / 498.2 MB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1377/0.4923, allocations: 6.483 MB / 0.4929 GB, free: 127 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009995/0.4934, allocations: 95.33 kB / 0.493 GB, free: 127 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.228e-05/0.4935, allocations: 24.66 kB / 0.493 GB, free: 127 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.H_flow:VARIABLE(flow=true unit = "W" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: outerPump.flowPort_b.H_flow:VARIABLE(flow=true unit = "W" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: absolutePressure.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: innerPipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 4 {1 3,1 1,1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002402/0.4937, allocations: 133.5 kB / 0.4931 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.4938, allocations: 102.3 kB / 0.4932 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001779/0.494, allocations: 89.7 kB / 0.4933 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.494, allocations: 10.28 kB / 0.4933 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.494, allocations: 0 / 0.4933 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008293/0.4949, allocations: 0.8792 MB / 0.4942 GB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001911/0.4968, allocations: 1.569 MB / 0.4957 GB, free: 126 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4968, allocations: 1.969 kB / 0.4957 GB, free: 126 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008271/0.4977, allocations: 170.8 kB / 0.4959 GB, free: 126 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.426e-05/0.4978, allocations: 30.98 kB / 0.4959 GB, free: 126 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/0.4978, allocations: 3.25 kB / 0.4959 GB, free: 126 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006099/0.4984, allocations: 1.247 MB / 0.4971 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4984, allocations: 2.5 kB / 0.4971 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001237/0.4997, allocations: 0.958 MB / 0.4981 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003167/0.5, allocations: 253.4 kB / 0.4983 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.5002, allocations: 3.375 kB / 0.4983 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000503/0.5007, allocations: 37.02 kB / 0.4984 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.832e-05/0.5007, allocations: 42.22 kB / 0.4984 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.855e-05/0.5008, allocations: 21.58 kB / 0.4984 GB, free: 124.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000466/0.5013, allocations: 453.1 kB / 0.4989 GB, free: 124.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007011/0.502, allocations: 279.3 kB / 0.4991 GB, free: 124.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (heatCapacitor.T,pipe1.T,outerPipe.T,innerPipe.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 71 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001893/0.5022, allocations: 119.2 kB / 0.4992 GB, free: 124.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.5039, allocations: 1.193 MB / 0.5004 GB, free: 123.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.504, allocations: 5.156 kB / 0.5004 GB, free: 123.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004005/0.5044, allocations: 376.5 kB / 0.5008 GB, free: 123.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008108/0.5052, allocations: 216.2 kB / 0.501 GB, free: 123.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.5075, allocations: 1.259 MB / 0.5022 GB, free: 123.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005855/0.5081, allocations: 1.089 MB / 0.5033 GB, free: 122.6 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.5081, allocations: 0 / 0.5033 GB, free: 122.6 MB / 378.7 MB Notification: Performance of Templates: time 0.02506/0.5332, allocations: 15.23 MB / 0.5181 GB, free: 121 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1)