Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001065/0.001066, allocations: 180.1 kB / 8.477 MB, free: 1.867 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.219/1.219, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.0008658/0.000866, allocations: 87.27 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1799/0.1808, allocations: 52.96 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07988/0.2607, allocations: 47.57 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2729/0.5337, allocations: 80.13 MB / 442.8 MB, free: 10.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.5339, allocations: 65.33 kB / 442.8 MB, free: 10.76 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.023/0.557, allocations: 9.926 MB / 452.7 MB, free: 7.809 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.557, allocations: 7.5 kB / 452.7 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001579/0.5572, allocations: 65.41 kB / 452.8 MB, free: 7.777 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005346/0.5577, allocations: 369.2 kB / 453.2 MB, free: 7.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.69e-05/0.5578, allocations: 56.59 kB / 453.2 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.332e-05/0.5579, allocations: 18.84 kB / 453.2 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004165/0.5583, allocations: 234.7 kB / 453.5 MB, free: 7.449 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004712/0.5588, allocations: 395.2 kB / 453.9 MB, free: 7.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.5588, allocations: 6.188 kB / 453.9 MB, free: 7.227 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.5588, allocations: 0 / 453.9 MB, free: 7.227 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.5589, allocations: 7.719 kB / 453.9 MB, free: 7.227 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.5607, allocations: 1.177 MB / 455.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005053/0.5612, allocations: 350.8 kB / 455.4 MB, free: 6.434 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.5614, allocations: 130.8 kB / 455.5 MB, free: 6.418 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.818e-05/0.5614, allocations: 7.406 kB / 455.5 MB, free: 6.418 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.5615, allocations: 35.41 kB / 455.6 MB, free: 6.379 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.433e-06/0.5615, allocations: 0 / 455.6 MB, free: 6.379 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.0006652/0.5621, allocations: 315.5 kB / 455.9 MB, free: 6.281 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.914e-05/0.5622, allocations: 450.8 kB / 456.3 MB, free: 5.746 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003194/0.5626, allocations: 334.8 kB / 456.6 MB, free: 5.613 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.5626, allocations: 29.69 kB / 456.7 MB, free: 5.578 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.5627, allocations: 183.2 kB / 456.8 MB, free: 5.438 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.654e-05/0.5628, allocations: 115.8 kB / 457 MB, free: 5.348 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.5628, allocations: 3.969 kB / 457 MB, free: 5.348 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.51e-05/0.5628, allocations: 347.6 kB / 457.3 MB, free: 5.023 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.563, allocations: 89.28 kB / 457.4 MB, free: 5.023 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.5632, allocations: 225.7 kB / 457.6 MB, free: 4.871 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.5634, allocations: 113.3 kB / 457.7 MB, free: 4.855 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.5634, allocations: 0 / 457.7 MB, free: 4.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005893/0.564, allocations: 368.6 kB / 458.1 MB, free: 4.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.564, allocations: 3.844 kB / 458.1 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.564, allocations: 3.688 kB / 458.1 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002965/0.5643, allocations: 77.61 kB / 458.2 MB, free: 4.711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/0.5647, allocations: 72.3 kB / 458.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/0.5665, allocations: 2.63 MB / 460.9 MB, free: 2.199 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.5668, allocations: 39 kB / 460.9 MB, free: 2.176 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.5668, allocations: 15.22 kB / 460.9 MB, free: 2.176 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.000143/0.567, allocations: 110 kB / 461 MB, free: 2.066 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.15e-05/0.5671, allocations: 47.12 kB / 461.1 MB, free: 2.043 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.088e-05/0.5672, allocations: 47.86 kB / 461.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.5672, allocations: 3.812 kB / 461.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.5672, allocations: 0 / 461.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005355/0.5677, allocations: 0.6151 MB / 461.7 MB, free: 17.46 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.5688, allocations: 0.8244 MB / 462.6 MB, free: 17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5689, allocations: 1.344 kB / 462.6 MB, free: 17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003922/0.5693, allocations: 71.48 kB / 462.6 MB, free: 16.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.5693, allocations: 5.25 kB / 462.6 MB, free: 16.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.5693, allocations: 8.719 kB / 462.6 MB, free: 16.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.5693, allocations: 5.312 kB / 462.7 MB, free: 16.97 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5693, allocations: 1.312 kB / 462.7 MB, free: 16.97 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006788/0.57, allocations: 482.7 kB / 463.1 MB, free: 16.79 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001248/0.5713, allocations: 1.211 MB / 464.3 MB, free: 16.22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.5715, allocations: 158.6 kB / 464.5 MB, free: 16.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.249e-05/0.5716, allocations: 5.281 kB / 464.5 MB, free: 16.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.5718, allocations: 11.95 kB / 464.5 MB, free: 16.08 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.54e-05/0.5719, allocations: 20.61 kB / 464.5 MB, free: 16.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.5719, allocations: 12.95 kB / 464.5 MB, free: 16.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002955/0.5722, allocations: 259.1 kB / 464.8 MB, free: 15.97 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001037/0.5732, allocations: 137.7 kB / 464.9 MB, free: 15.95 MB / 330.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.0001814/0.5734, allocations: 108.5 kB / 465 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008949/0.5743, allocations: 491.9 kB / 465.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.5744, allocations: 1.406 kB / 465.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.5745, allocations: 117.9 kB / 465.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.5751, allocations: 100.9 kB / 465.7 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.5764, allocations: 0.6123 MB / 466.3 MB, free: 15.22 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005384/0.577, allocations: 0.8777 MB / 467.2 MB, free: 14.45 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.577, allocations: 4 kB / 467.2 MB, free: 14.45 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat does not exist to compare? outputFormat=mat