Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.00182/0.00182, allocations: 189.5 kB / 8.136 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.104/1.104, allocations: 194.2 MB / 202.8 MB, free: 9.137 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001881/0.001881, allocations: 110.3 kB / 247.7 MB, free: 6.199 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.821e-06/5.851e-06, allocations: 0 / 297.6 MB, free: 8.113 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06894/0.06896, allocations: 44.49 MB / 342.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1881/0.2571, allocations: 74.9 MB / 417 MB, free: 20.33 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001673/0.2573, allocations: 69.77 kB / 417 MB, free: 20.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02201/0.2794, allocations: 8.721 MB / 425.7 MB, free: 13.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.2794, allocations: 12 kB / 425.8 MB, free: 13.27 MB / 314.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.0008723/0.2803, allocations: 0.6823 MB / 426.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.2803, allocations: 8.031 kB / 426.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.2805, allocations: 62.84 kB / 426.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004871/0.281, allocations: 366.8 kB / 426.9 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.688e-05/0.2811, allocations: 46.36 kB / 426.9 MB, free: 12.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.073e-05/0.2811, allocations: 19.91 kB / 426.9 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004367/0.2816, allocations: 242 kB / 427.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000476/0.282, allocations: 381.2 kB / 427.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.2821, allocations: 6.953 kB / 427.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.2821, allocations: 4 kB / 427.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.2821, allocations: 8 kB / 427.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.2839, allocations: 1.157 MB / 428.7 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/0.2845, allocations: 355.2 kB / 429.1 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.2847, allocations: 121.8 kB / 429.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.114e-05/0.2847, allocations: 12.28 kB / 429.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.631e-05/0.2848, allocations: 42.39 kB / 429.2 MB, free: 10.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.894e-06/0.2848, allocations: 0 / 429.2 MB, free: 10.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.0006432/0.2854, allocations: 306.4 kB / 429.5 MB, free: 9.957 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.2855, allocations: 448.5 kB / 430 MB, free: 9.418 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.2858, allocations: 316.1 kB / 430.3 MB, free: 9.172 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.2858, allocations: 33.7 kB / 430.3 MB, free: 9.133 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.432e-05/0.2859, allocations: 173.6 kB / 430.5 MB, free: 8.973 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.247e-05/0.286, allocations: 109.3 kB / 430.6 MB, free: 8.875 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.752e-05/0.286, allocations: 0 / 430.6 MB, free: 8.875 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.599e-05/0.2861, allocations: 355.5 kB / 430.9 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.2862, allocations: 87.44 kB / 431 MB, free: 8.488 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.2864, allocations: 233 kB / 431.2 MB, free: 8.262 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000185/0.2866, allocations: 115.1 kB / 431.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.2866, allocations: 0 / 431.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005859/0.2872, allocations: 369.8 kB / 431.7 MB, free: 7.906 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.2873, allocations: 5.25 kB / 431.7 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2873, allocations: 0 / 431.7 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002893/0.2876, allocations: 75.94 kB / 431.8 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003643/0.2879, allocations: 76.61 kB / 431.9 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001791/0.2897, allocations: 2.624 MB / 434.5 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.29, allocations: 35.72 kB / 434.5 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.2901, allocations: 10.81 kB / 434.5 MB, free: 5.02 MB / 314.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.0001248/0.2902, allocations: 116.9 kB / 434.7 MB, free: 4.898 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.447e-05/0.2903, allocations: 43.53 kB / 434.7 MB, free: 4.855 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.606e-05/0.2904, allocations: 42.92 kB / 434.7 MB, free: 4.832 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2904, allocations: 4 kB / 434.7 MB, free: 4.828 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2904, allocations: 144 / 434.7 MB, free: 4.828 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004068/0.2908, allocations: 0.629 MB / 435.4 MB, free: 4.152 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009591/0.2918, allocations: 0.8094 MB / 436.2 MB, free: 3.469 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2918, allocations: 0 / 436.2 MB, free: 3.469 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/0.2922, allocations: 75.2 kB / 436.3 MB, free: 3.398 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.2922, allocations: 0 / 436.3 MB, free: 3.398 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.2923, allocations: 3.938 kB / 436.3 MB, free: 3.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.2923, allocations: 6.031 kB / 436.3 MB, free: 3.391 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2923, allocations: 4 kB / 436.3 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005518/0.2928, allocations: 482.5 kB / 436.7 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.907e-05/0.2929, allocations: 123.2 kB / 436.9 MB, free: 2.883 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.634e-05/0.293, allocations: 0 / 436.9 MB, free: 2.883 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002782/0.2933, allocations: 21.73 kB / 436.9 MB, free: 2.863 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.2934, allocations: 23.56 kB / 436.9 MB, free: 2.844 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.2934, allocations: 8 kB / 436.9 MB, free: 2.836 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002287/0.2936, allocations: 246.9 kB / 437.2 MB, free: 2.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004159/0.294, allocations: 129.8 kB / 437.3 MB, free: 2.535 MB / 314.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.0001272/0.2942, allocations: 107.1 kB / 437.4 MB, free: 2.422 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008/0.295, allocations: 498.9 kB / 437.9 MB, free: 1.992 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.295, allocations: 0 / 437.9 MB, free: 1.992 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.2952, allocations: 120.9 kB / 438 MB, free: 1.906 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.2956, allocations: 94.22 kB / 438.1 MB, free: 1.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.2969, allocations: 0.5923 MB / 438.7 MB, free: 1.281 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003283/0.2973, allocations: 0.8692 MB / 439.5 MB, free: 400 kB / 314.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2973, allocations: 0 / 439.5 MB, free: 400 kB / 314.7 MB Notification: Performance of Templates: time 0.01236/0.3096, allocations: 6.6 MB / 446.1 MB, free: 9.871 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1)