Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") [: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.1+maint.om/package.mo): time 0.005363/0.005363, allocations: 175.4 kB / 7.45 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.236/1.236, allocations: 170.6 MB / 178.4 MB, free: 15.39 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00196/0.00196, allocations: 115.8 kB / 217.7 MB, free: 8.156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.475e-06/7.734e-06, allocations: 0 / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08494/0.08497, allocations: 38.75 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2812/0.3662, allocations: 69.57 MB / 370.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.3666, allocations: 67.72 kB / 370.1 MB, free: 15.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.02528/0.3919, allocations: 8.7 MB / 378.8 MB, free: 8.082 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.397e-05/0.392, allocations: 14.41 kB / 378.8 MB, free: 8.07 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001389/0.3934, allocations: 0.6774 MB / 379.5 MB, free: 7.371 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.3934, allocations: 8.031 kB / 379.5 MB, free: 7.363 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.3937, allocations: 59.34 kB / 379.6 MB, free: 7.305 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007566/0.3944, allocations: 362.7 kB / 379.9 MB, free: 6.953 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.3946, allocations: 50.34 kB / 380 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.401e-05/0.3946, allocations: 20 kB / 380 MB, free: 6.879 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005264/0.3952, allocations: 240.9 kB / 380.2 MB, free: 6.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006208/0.3958, allocations: 393.8 kB / 380.6 MB, free: 6.379 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.3958, allocations: 0 / 380.6 MB, free: 6.379 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.747e-05/0.3959, allocations: 0 / 380.6 MB, free: 6.379 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.3959, allocations: 8 kB / 380.6 MB, free: 6.371 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002255/0.3982, allocations: 1.144 MB / 381.8 MB, free: 5.426 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006398/0.3988, allocations: 359.5 kB / 382.1 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.399, allocations: 123.3 kB / 382.3 MB, free: 5.051 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.3991, allocations: 12.25 kB / 382.3 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.3991, allocations: 38.16 kB / 382.3 MB, free: 4.996 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.673e-06/0.3992, allocations: 3.938 kB / 382.3 MB, free: 4.992 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007424/0.3999, allocations: 312.2 kB / 382.6 MB, free: 4.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002715/0.4002, allocations: 448.4 kB / 383 MB, free: 4.211 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004065/0.4006, allocations: 320.9 kB / 383.4 MB, free: 3.961 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.4007, allocations: 29.7 kB / 383.4 MB, free: 3.926 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.4008, allocations: 176.1 kB / 383.6 MB, free: 3.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.012e-05/0.4009, allocations: 111.8 kB / 383.7 MB, free: 3.672 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.591e-05/0.4009, allocations: 0 / 383.7 MB, free: 3.672 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.4011, allocations: 352.5 kB / 384 MB, free: 3.332 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.4012, allocations: 89.5 kB / 384.1 MB, free: 3.285 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002797/0.4015, allocations: 233 kB / 384.3 MB, free: 3.059 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.4017, allocations: 103.5 kB / 384.4 MB, free: 3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.4018, allocations: 3.984 kB / 384.4 MB, free: 2.996 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006483/0.4024, allocations: 366.8 kB / 384.8 MB, free: 2.715 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.4024, allocations: 7.906 kB / 384.8 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.4024, allocations: 8 kB / 384.8 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003326/0.4028, allocations: 67.47 kB / 384.9 MB, free: 2.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/0.4032, allocations: 79.2 kB / 385 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002714/0.4059, allocations: 2.615 MB / 387.6 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003218/0.4062, allocations: 39.78 kB / 387.6 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/0.4063, allocations: 11.12 kB / 387.6 MB, free: 15.81 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.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: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002101/0.4065, allocations: 120.8 kB / 387.7 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.999e-05/0.4066, allocations: 43.53 kB / 387.8 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.614e-05/0.4067, allocations: 45.19 kB / 387.8 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.4067, allocations: 4 kB / 387.8 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.4067, allocations: 0 / 387.8 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006009/0.4073, allocations: 0.6164 MB / 388.4 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.4086, allocations: 0.8003 MB / 389.2 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.4086, allocations: 0 / 389.2 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003861/0.409, allocations: 83.58 kB / 389.3 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.409, allocations: 4 kB / 389.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.4091, allocations: 3.938 kB / 389.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.4091, allocations: 0 / 389.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4091, allocations: 0 / 389.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006693/0.4097, allocations: 0.4901 MB / 389.8 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.4099, allocations: 124 kB / 389.9 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.618e-05/0.41, allocations: 8.062 kB / 390 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.4102, allocations: 11.98 kB / 390 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/0.4103, allocations: 15.67 kB / 390 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.4103, allocations: 7.984 kB / 390 MB, free: 13.62 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0002777/0.4106, allocations: 248 kB / 390.2 MB, free: 13.44 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004952/0.4111, allocations: 131.1 kB / 390.4 MB, free: 13.31 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.0002189/0.4113, allocations: 115.9 kB / 390.5 MB, free: 13.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009644/0.4123, allocations: 483 kB / 390.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.4123, allocations: 0 / 390.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.4125, allocations: 118.2 kB / 391.1 MB, free: 12.69 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.413, allocations: 91.3 kB / 391.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.4147, allocations: 0.612 MB / 391.8 MB, free: 12.05 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006389/0.4153, allocations: 0.8691 MB / 392.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4154, allocations: 0 / 392.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of Templates: time 0.01413/0.4295, allocations: 6.523 MB / 399.2 MB, free: 4.637 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1)