Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 179.1 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.256/1.256, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009426/0.0009425, allocations: 85.97 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2091/0.2101, allocations: 52.96 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08571/0.2958, allocations: 47.58 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3067/0.6026, allocations: 81.19 MB / 443.8 MB, free: 10.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.6029, allocations: 71.2 kB / 443.9 MB, free: 10.96 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.06543/0.6684, allocations: 20.26 MB / 464.2 MB, free: 3.883 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.6685, allocations: 9.625 kB / 464.2 MB, free: 3.883 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004968/0.669, allocations: 127.4 kB / 464.3 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.6704, allocations: 0.6037 MB / 464.9 MB, free: 3.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/0.6707, allocations: 138.1 kB / 465 MB, free: 3.352 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.6708, allocations: 40.19 kB / 465.1 MB, free: 3.352 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001263/0.6721, allocations: 0.528 MB / 465.6 MB, free: 3.316 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.6735, allocations: 0.8056 MB / 466.4 MB, free: 2.875 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.6735, allocations: 3.938 kB / 466.4 MB, free: 2.871 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-05/0.6736, allocations: 11.33 kB / 466.4 MB, free: 2.863 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.6736, allocations: 15.81 kB / 466.4 MB, free: 2.863 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004558/0.6782, allocations: 2.435 MB / 468.9 MB, free: 1.582 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.6796, allocations: 0.684 MB / 469.5 MB, free: 1.418 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006148/0.6802, allocations: 308.9 kB / 469.8 MB, free: 1.391 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.081e-05/0.6803, allocations: 13.83 kB / 469.9 MB, free: 1.391 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.949e-05/0.6804, allocations: 49.59 kB / 469.9 MB, free: 1.352 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 3.066e-06/0.6804, allocations: 3.938 kB / 469.9 MB, free: 1.348 MB / 314.7 MB Notification: Performance of matching and sorting (n=74): time 0.001545/0.6819, allocations: 0.6718 MB / 470.6 MB, free: 1.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002187/0.6822, allocations: 0.9489 MB / 471.5 MB, free: 16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008505/0.683, allocations: 0.5787 MB / 472.1 MB, free: 15.83 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.344e-05/0.6831, allocations: 31.81 kB / 472.1 MB, free: 15.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.6833, allocations: 296.8 kB / 472.4 MB, free: 15.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002184/0.6835, allocations: 242 kB / 472.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.705e-05/0.6836, allocations: 1.062 kB / 472.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.6837, allocations: 341.6 kB / 473 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003775/0.6841, allocations: 213.2 kB / 473.2 MB, free: 15.08 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006341/0.6847, allocations: 0.5213 MB / 473.7 MB, free: 14.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004916/0.6852, allocations: 269.9 kB / 474 MB, free: 14.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.6852, allocations: 0 / 474 MB, free: 14.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00145/0.6867, allocations: 0.7801 MB / 474.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.6867, allocations: 8.344 kB / 474.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.6867, allocations: 2.062 kB / 474.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005567/0.6873, allocations: 164.9 kB / 474.9 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007869/0.6881, allocations: 168.3 kB / 475.1 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005059/0.6932, allocations: 6.491 MB / 481.6 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000859/0.694, allocations: 87.44 kB / 481.7 MB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.268e-05/0.6941, allocations: 27.75 kB / 481.7 MB, free: 7.672 MB / 330.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.0002645/0.6944, allocations: 138 kB / 481.9 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/0.6946, allocations: 98.95 kB / 481.9 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002117/0.6949, allocations: 86.42 kB / 482 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.6949, allocations: 8 kB / 482 MB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.6949, allocations: 0 / 482 MB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009926/0.6959, allocations: 0.8885 MB / 482.9 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.6984, allocations: 1.575 MB / 484.5 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.6984, allocations: 0 / 484.5 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000852/0.6993, allocations: 166.3 kB / 484.7 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.416e-05/0.6994, allocations: 27.28 kB / 484.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.074e-05/0.6994, allocations: 7.922 kB / 484.7 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000776/0.7002, allocations: 1.247 MB / 485.9 MB, free: 3.809 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.7002, allocations: 4.031 kB / 486 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001359/0.7016, allocations: 0.9563 MB / 486.9 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002762/0.7044, allocations: 2.19 MB / 489.1 MB, free: 1.582 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004824/0.7049, allocations: 256 kB / 489.3 MB, free: 1.363 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001931/0.7051, allocations: 11.98 kB / 489.4 MB, free: 1.352 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.7057, allocations: 27.98 kB / 489.4 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.493e-05/0.7058, allocations: 39.33 kB / 489.4 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-05/0.7058, allocations: 23.8 kB / 489.4 MB, free: 1.273 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0006048/0.7065, allocations: 453 kB / 489.9 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00147/0.7079, allocations: 279.4 kB / 490.2 MB, free: 0.5742 MB / 330.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.0002204/0.7082, allocations: 119 kB / 490.3 MB, free: 460 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.7104, allocations: 1.193 MB / 491.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.7104, allocations: 4 kB / 491.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.7109, allocations: 376.1 kB / 491.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000968/0.7119, allocations: 220.7 kB / 492.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.7148, allocations: 1.289 MB / 493.3 MB, free: 13.28 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007899/0.7156, allocations: 1.114 MB / 494.5 MB, free: 12.14 MB / 346.7 MB Notification: Performance of SimCode: time 4.91e-07/0.7156, allocations: 0 / 494.5 MB, free: 12.14 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat does not exist to compare? outputFormat=mat