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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",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.0009533/0.0009533, allocations: 185.8 kB / 8.137 MB, free: 2.211 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.065/1.065, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0008707/0.0008707, allocations: 104.3 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08916/0.09007, allocations: 55.81 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.269, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07873/0.3478, allocations: 80.41 MB / 467.4 MB, free: 6.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/0.348, allocations: 77.41 kB / 467.5 MB, free: 6.254 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.04713/0.3952, allocations: 19.9 MB / 487.4 MB, free: 2.219 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.3952, allocations: 8 kB / 487.4 MB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002372/0.3954, allocations: 122.7 kB / 487.5 MB, free: 2.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009209/0.3964, allocations: 0.6024 MB / 488.1 MB, free: 1.445 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.3966, allocations: 143 kB / 488.3 MB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.712e-05/0.3967, allocations: 40 kB / 488.3 MB, free: 1.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009022/0.3976, allocations: 0.5233 MB / 488.8 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.3987, allocations: 0.8223 MB / 489.6 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.3987, allocations: 11.84 kB / 489.6 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.512e-05/0.3988, allocations: 0 / 489.6 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.3988, allocations: 16 kB / 489.7 MB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003731/0.4025, allocations: 2.425 MB / 492.1 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.4038, allocations: 0.6853 MB / 492.8 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004928/0.4043, allocations: 310.7 kB / 493.1 MB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.939e-05/0.4043, allocations: 24.56 kB / 493.1 MB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.4044, allocations: 51.12 kB / 493.1 MB, free: 12.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 1.763e-06/0.4044, allocations: 0 / 493.1 MB, free: 12.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.001265/0.4057, allocations: 0.6632 MB / 493.8 MB, free: 11.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003149/0.406, allocations: 0.9489 MB / 494.8 MB, free: 10.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006572/0.4066, allocations: 0.5782 MB / 495.3 MB, free: 9.668 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.37e-05/0.4067, allocations: 30.25 kB / 495.4 MB, free: 9.633 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.4069, allocations: 288.2 kB / 495.7 MB, free: 9.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.4071, allocations: 248.2 kB / 495.9 MB, free: 9.098 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.4071, allocations: 0 / 495.9 MB, free: 9.098 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.4072, allocations: 334 kB / 496.2 MB, free: 8.766 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.4076, allocations: 217.5 kB / 496.4 MB, free: 8.551 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005708/0.4081, allocations: 0.5139 MB / 496.9 MB, free: 7.914 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.4086, allocations: 281.1 kB / 497.2 MB, free: 7.645 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.4086, allocations: 0 / 497.2 MB, free: 7.645 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001328/0.4099, allocations: 0.7831 MB / 498 MB, free: 6.832 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.4099, allocations: 8 kB / 498 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.4099, allocations: 0 / 498 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005194/0.4105, allocations: 164.1 kB / 498.2 MB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007398/0.4112, allocations: 171.8 kB / 498.3 MB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1011/0.5123, allocations: 6.477 MB / 0.493 GB, free: 129.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007212/0.513, allocations: 96.23 kB / 0.4931 GB, free: 129.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.327e-05/0.5131, allocations: 22.84 kB / 0.4931 GB, free: 129.5 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.0002043/0.5133, allocations: 144.1 kB / 0.4932 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.5134, allocations: 97.41 kB / 0.4933 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001557/0.5136, allocations: 92.92 kB / 0.4934 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.5136, allocations: 9.969 kB / 0.4934 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.5136, allocations: 0 / 0.4934 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007782/0.5144, allocations: 0.8773 MB / 0.4943 GB, free: 128.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.5162, allocations: 1.574 MB / 0.4958 GB, free: 128.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.5162, allocations: 0 / 0.4958 GB, free: 128.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007662/0.517, allocations: 175.6 kB / 0.496 GB, free: 128.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.167e-05/0.5171, allocations: 21.78 kB / 0.496 GB, free: 128.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.5171, allocations: 9.891 kB / 0.496 GB, free: 128.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005528/0.5177, allocations: 1.239 MB / 0.4972 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.5177, allocations: 0 / 0.4972 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001129/0.5188, allocations: 0.9651 MB / 0.4982 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002292/0.5211, allocations: 2.19 MB / 0.5003 GB, free: 126.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002769/0.5214, allocations: 258.5 kB / 0.5006 GB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.5215, allocations: 5.281 kB / 0.5006 GB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004803/0.522, allocations: 28.77 kB / 0.5006 GB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.5221, allocations: 42.2 kB / 0.5006 GB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.5221, allocations: 18.5 kB / 0.5006 GB, free: 126.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000431/0.5226, allocations: 453.6 kB / 0.5011 GB, free: 126.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001177/0.5238, allocations: 281 kB / 0.5013 GB, free: 126.3 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.0001673/0.5239, allocations: 128 kB / 0.5015 GB, free: 126.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.5256, allocations: 1.189 MB / 0.5026 GB, free: 125.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5256, allocations: 0 / 0.5026 GB, free: 125.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003768/0.526, allocations: 381.6 kB / 0.503 GB, free: 125.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007602/0.5268, allocations: 217.9 kB / 0.5032 GB, free: 125.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.529, allocations: 1.288 MB / 0.5045 GB, free: 125.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005797/0.5296, allocations: 1.103 MB / 0.5055 GB, free: 124.5 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5296, allocations: 0 / 0.5055 GB, free: 124.5 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat does not exist to compare? outputFormat=mat