Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) [: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.0009132/0.0009132, allocations: 183.4 kB / 8.135 MB, free: 2.223 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.047/1.047, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0008574/0.0008575, allocations: 100.6 kB / 280.8 MB, free: 1.309 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08759/0.08847, allocations: 55.81 MB / 336.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.2572, allocations: 50.39 MB / 387 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.075/0.3322, allocations: 79.53 MB / 466.5 MB, free: 7.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.3324, allocations: 75.89 kB / 466.6 MB, free: 7.246 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.02309/0.3555, allocations: 9.775 MB / 476.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.3556, allocations: 12 kB / 476.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.3557, allocations: 60.38 kB / 476.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004877/0.3562, allocations: 376.1 kB / 476.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.886e-05/0.3563, allocations: 42.36 kB / 476.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.3563, allocations: 23.98 kB / 476.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004456/0.3568, allocations: 245.3 kB / 477.1 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.3573, allocations: 387.7 kB / 477.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.3573, allocations: 0 / 477.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.3574, allocations: 4 kB / 477.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3574, allocations: 11.97 kB / 477.5 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.3593, allocations: 1.177 MB / 478.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005619/0.3599, allocations: 364.2 kB / 479 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.3601, allocations: 117.4 kB / 479.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.3601, allocations: 12.27 kB / 479.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.3601, allocations: 38.84 kB / 479.2 MB, free: 10.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.825e-06/0.3601, allocations: 4 kB / 479.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.0006152/0.3608, allocations: 317.2 kB / 479.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.3609, allocations: 445 kB / 480 MB, free: 9.504 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003443/0.3613, allocations: 328.8 kB / 480.3 MB, free: 9.176 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.3613, allocations: 29.7 kB / 480.3 MB, free: 9.141 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.599e-05/0.3614, allocations: 184.2 kB / 480.5 MB, free: 8.957 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.044e-05/0.3615, allocations: 114.3 kB / 480.6 MB, free: 8.844 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/0.3615, allocations: 0 / 480.6 MB, free: 8.844 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.3616, allocations: 346.8 kB / 480.9 MB, free: 8.496 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.3618, allocations: 99.77 kB / 481 MB, free: 8.398 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.362, allocations: 219.7 kB / 481.2 MB, free: 8.129 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/0.3622, allocations: 121.5 kB / 481.4 MB, free: 8.012 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3622, allocations: 0 / 481.4 MB, free: 8.012 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006022/0.3629, allocations: 364.6 kB / 481.7 MB, free: 7.645 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.3629, allocations: 8.031 kB / 481.7 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3629, allocations: 0 / 481.7 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000273/0.3632, allocations: 73.66 kB / 481.8 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003385/0.3635, allocations: 71.91 kB / 481.9 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00207/0.3656, allocations: 2.629 MB / 484.5 MB, free: 4.621 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.3659, allocations: 31.81 kB / 484.5 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.3659, allocations: 11.98 kB / 484.5 MB, free: 4.578 MB / 362.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.0001371/0.3661, allocations: 116.9 kB / 484.7 MB, free: 4.457 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.816e-05/0.3661, allocations: 43.53 kB / 484.7 MB, free: 4.414 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.147e-05/0.3662, allocations: 52.28 kB / 484.8 MB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.3662, allocations: 0 / 484.8 MB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3662, allocations: 4 kB / 484.8 MB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000465/0.3667, allocations: 0.6182 MB / 485.4 MB, free: 3.637 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.3677, allocations: 0.81 MB / 486.2 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.3678, allocations: 0 / 486.2 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/0.3681, allocations: 83.83 kB / 486.3 MB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3681, allocations: 0 / 486.3 MB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/0.3682, allocations: 3.906 kB / 486.3 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.3682, allocations: 4 kB / 486.3 MB, free: 2.688 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3682, allocations: 3.984 kB / 486.3 MB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005783/0.3688, allocations: 490.5 kB / 486.8 MB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001118/0.3699, allocations: 1.207 MB / 488 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.3701, allocations: 156.5 kB / 488.1 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.741e-05/0.3701, allocations: 7.984 kB / 488.1 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.3704, allocations: 11.91 kB / 488.1 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.196e-05/0.3705, allocations: 21.09 kB / 488.2 MB, free: 0.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.3705, allocations: 4 kB / 488.2 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002649/0.3708, allocations: 267.3 kB / 488.4 MB, free: 500 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009328/0.3717, allocations: 127.7 kB / 488.5 MB, free: 372 kB / 362.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.0001406/0.3718, allocations: 115.2 kB / 488.7 MB, free: 248 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007942/0.3726, allocations: 489.4 kB / 489.1 MB, free: 15.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3727, allocations: 0 / 489.1 MB, free: 15.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.3728, allocations: 119.9 kB / 489.3 MB, free: 15.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000447/0.3733, allocations: 100.3 kB / 489.4 MB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.3745, allocations: 0.6146 MB / 490 MB, free: 14.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004386/0.375, allocations: 0.8858 MB / 490.9 MB, free: 13.98 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.375, allocations: 0 / 490.9 MB, free: 13.98 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat does not exist to compare? outputFormat=mat