Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001056/0.001056, allocations: 196.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008597/0.0008596, allocations: 88.84 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.871e-06/5.911e-06, allocations: 0 / 343.1 MB, free: 8.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09339/0.09341, allocations: 51.48 MB / 394.6 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.246/0.3395, allocations: 81.23 MB / 475.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.3398, allocations: 70.97 kB / 475.9 MB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04518/0.385, allocations: 18.75 MB / 494.7 MB, free: 12.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.942e-05/0.3851, allocations: 31.92 kB / 494.7 MB, free: 12.83 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.002498/0.3876, allocations: 1.16 MB / 495.9 MB, free: 11.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.3876, allocations: 19.97 kB / 495.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003687/0.388, allocations: 122.7 kB / 496 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.3893, allocations: 0.6039 MB / 496.6 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002457/0.3896, allocations: 135.1 kB / 496.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.3898, allocations: 44 kB / 496.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00125/0.391, allocations: 0.5189 MB / 497.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.3926, allocations: 0.8176 MB / 498.1 MB, free: 9.727 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.3926, allocations: 4 kB / 498.1 MB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.61e-05/0.3927, allocations: 4 kB / 498.1 MB, free: 9.719 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.3927, allocations: 16 kB / 498.1 MB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004519/0.3973, allocations: 2.436 MB / 0.4888 GB, free: 7.758 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.3985, allocations: 0.6864 MB / 0.4895 GB, free: 7.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005585/0.3991, allocations: 305.9 kB / 0.4898 GB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.338e-05/0.3992, allocations: 18 kB / 0.4898 GB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.3992, allocations: 52.84 kB / 0.4899 GB, free: 6.973 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 3.086e-06/0.3993, allocations: 0 / 0.4899 GB, free: 6.973 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.00143/0.4007, allocations: 0.6678 MB / 0.4905 GB, free: 6.449 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004003/0.4011, allocations: 0.9517 MB / 0.4914 GB, free: 5.273 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000778/0.4019, allocations: 0.5743 MB / 0.492 GB, free: 4.801 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.752e-05/0.402, allocations: 29.7 kB / 0.492 GB, free: 4.766 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.4022, allocations: 293.6 kB / 0.4923 GB, free: 4.473 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.4024, allocations: 248.2 kB / 0.4925 GB, free: 4.227 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.681e-05/0.4024, allocations: 0 / 0.4925 GB, free: 4.227 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.4026, allocations: 341.9 kB / 0.4929 GB, free: 3.887 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.403, allocations: 213.5 kB / 0.4931 GB, free: 3.676 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000658/0.4037, allocations: 0.5139 MB / 0.4936 GB, free: 3.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/0.4042, allocations: 274 kB / 0.4938 GB, free: 2.777 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.4042, allocations: 0 / 0.4938 GB, free: 2.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001464/0.4057, allocations: 0.787 MB / 0.4946 GB, free: 1.961 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.4057, allocations: 7.906 kB / 0.4946 GB, free: 1.953 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.4057, allocations: 3.984 kB / 0.4946 GB, free: 1.949 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005759/0.4063, allocations: 164.2 kB / 0.4948 GB, free: 1.773 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008086/0.4071, allocations: 173.6 kB / 0.4949 GB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007213/0.4144, allocations: 6.471 MB / 0.5013 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.4157, allocations: 83.45 kB / 0.5013 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/0.4159, allocations: 33.58 kB / 0.5014 GB, free: 10.44 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.0004228/0.4164, allocations: 135.6 kB / 0.5015 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003773/0.4168, allocations: 94.97 kB / 0.5016 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003277/0.4171, allocations: 88.72 kB / 0.5017 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.4171, allocations: 8.141 kB / 0.5017 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.4171, allocations: 0 / 0.5017 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001748/0.4189, allocations: 0.8944 MB / 0.5026 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004052/0.423, allocations: 1.571 MB / 0.5041 GB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.732e-05/0.423, allocations: 3.984 kB / 0.5041 GB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/0.4245, allocations: 167.8 kB / 0.5043 GB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001382/0.4246, allocations: 32.78 kB / 0.5043 GB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.236e-05/0.4247, allocations: 4 kB / 0.5043 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.4259, allocations: 1.241 MB / 0.5055 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4259, allocations: 4.062 kB / 0.5055 GB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002293/0.4282, allocations: 0.9585 MB / 0.5064 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00066/0.4289, allocations: 255.8 kB / 0.5067 GB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002748/0.4292, allocations: 4 kB / 0.5067 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009617/0.4301, allocations: 39.95 kB / 0.5067 GB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.4303, allocations: 40.59 kB / 0.5068 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.125e-05/0.4304, allocations: 16 kB / 0.5068 GB, free: 4.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001027/0.4314, allocations: 455.2 kB / 0.5072 GB, free: 4.129 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00123/0.4326, allocations: 275.4 kB / 0.5075 GB, free: 3.859 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.0002875/0.4329, allocations: 128.7 kB / 0.5076 GB, free: 3.727 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003329/0.4363, allocations: 1.184 MB / 0.5088 GB, free: 2.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.4363, allocations: 4 kB / 0.5088 GB, free: 2.477 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000817/0.4371, allocations: 376 kB / 0.5091 GB, free: 2.098 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/0.4387, allocations: 219 kB / 0.5093 GB, free: 1.895 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004412/0.4431, allocations: 1.256 MB / 0.5106 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/0.4444, allocations: 1.094 MB / 0.5116 GB, free: 15.48 MB / 394.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4444, allocations: 0 / 0.5116 GB, free: 15.48 MB / 394.7 MB Notification: Performance of Templates: time 0.03742/0.4819, allocations: 15.22 MB / 0.5265 GB, free: 0.6016 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1)