Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.0008927/0.0008927, allocations: 183 kB / 8.134 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.067/1.067, allocations: 221.4 MB / 229.9 MB, free: 3.043 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.0008511/0.0008511, allocations: 99.59 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09043/0.09132, allocations: 55.81 MB / 336.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.2731, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07988/0.353, allocations: 80.84 MB / 467.8 MB, free: 5.961 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001563/0.3532, allocations: 74.56 kB / 467.9 MB, free: 5.891 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.04117/0.3944, allocations: 16.96 MB / 484.9 MB, free: 4.809 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.3944, allocations: 12 kB / 484.9 MB, free: 4.797 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002282/0.3946, allocations: 114.8 kB / 485 MB, free: 4.684 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009198/0.3956, allocations: 0.5438 MB / 485.5 MB, free: 4.098 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.3958, allocations: 126.4 kB / 485.7 MB, free: 3.953 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.594e-05/0.3959, allocations: 43.84 kB / 485.7 MB, free: 3.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008264/0.3967, allocations: 478.5 kB / 486.2 MB, free: 3.445 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009755/0.3977, allocations: 0.6939 MB / 486.9 MB, free: 2.648 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.3977, allocations: 0 / 486.9 MB, free: 2.648 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.45e-05/0.3978, allocations: 4 kB / 486.9 MB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.3978, allocations: 12 kB / 486.9 MB, free: 2.633 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003214/0.401, allocations: 1.988 MB / 488.9 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006739/0.4017, allocations: 441 kB / 489.3 MB, free: 124 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005526/0.4023, allocations: 358.7 kB / 489.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-05/0.4023, allocations: 12.64 kB / 489.7 MB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.4024, allocations: 59.16 kB / 489.7 MB, free: 15.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 1.793e-06/0.4024, allocations: 0 / 489.7 MB, free: 15.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.002025/0.4044, allocations: 0.8458 MB / 490.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003713/0.4048, allocations: 0.8234 MB / 491.4 MB, free: 13.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006102/0.4054, allocations: 0.4918 MB / 491.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.4055, allocations: 29.7 kB / 491.9 MB, free: 13.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.4056, allocations: 230.7 kB / 492.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.4058, allocations: 252.2 kB / 492.4 MB, free: 12.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.243e-05/0.4059, allocations: 0 / 492.4 MB, free: 12.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.406, allocations: 386.7 kB / 492.8 MB, free: 12.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003393/0.4064, allocations: 201.6 kB / 493 MB, free: 12.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005714/0.4069, allocations: 472.2 kB / 493.4 MB, free: 11.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004245/0.4074, allocations: 245.3 kB / 493.7 MB, free: 11.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.4074, allocations: 4 kB / 493.7 MB, free: 11.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002045/0.4094, allocations: 0.9109 MB / 494.6 MB, free: 10.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.4095, allocations: 8 kB / 494.6 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.4095, allocations: 0 / 494.6 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006031/0.4101, allocations: 203.3 kB / 494.8 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006875/0.4108, allocations: 155.8 kB / 494.9 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006491/0.4173, allocations: 6.066 MB / 0.4893 GB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007264/0.418, allocations: 107.4 kB / 0.4894 GB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/0.4181, allocations: 20.06 kB / 0.4894 GB, free: 3.453 MB / 378.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: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 63 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002133/0.4183, allocations: 131.8 kB / 0.4895 GB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.4185, allocations: 83.06 kB / 0.4896 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001676/0.4187, allocations: 83.72 kB / 0.4897 GB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.4187, allocations: 8 kB / 0.4897 GB, free: 3.141 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4187, allocations: 4 kB / 0.4897 GB, free: 3.137 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001902/0.4206, allocations: 1.134 MB / 0.4908 GB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003132/0.4237, allocations: 1.749 MB / 0.4925 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4237, allocations: 0 / 0.4925 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.09778/0.5215, allocations: 156.1 kB / 0.4926 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004044/0.522, allocations: 163.8 kB / 0.4928 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.339e-05/0.5221, allocations: 14.39 kB / 0.4928 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004152/0.5262, allocations: 4.634 MB / 0.4973 GB, free: 129 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.5262, allocations: 0 / 0.4973 GB, free: 129 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002237/0.5285, allocations: 1.241 MB / 0.4985 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003394/0.5319, allocations: 2.563 MB / 0.5011 GB, free: 128.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003396/0.5323, allocations: 237.4 kB / 0.5013 GB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.5324, allocations: 7.812 kB / 0.5013 GB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005601/0.533, allocations: 47.33 kB / 0.5013 GB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.5331, allocations: 43.41 kB / 0.5014 GB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.984e-05/0.5331, allocations: 22.62 kB / 0.5014 GB, free: 128.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004137/0.5336, allocations: 391.6 kB / 0.5018 GB, free: 128 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00133/0.5349, allocations: 267 kB / 0.502 GB, free: 128 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001996/0.5351, allocations: 114.5 kB / 0.5021 GB, free: 127.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.5367, allocations: 1.123 MB / 0.5032 GB, free: 127.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5368, allocations: 1.5 kB / 0.5032 GB, free: 127.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008767/0.5376, allocations: 0.6733 MB / 0.5039 GB, free: 127.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007424/0.5384, allocations: 182.6 kB / 0.5041 GB, free: 127.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.5406, allocations: 1.253 MB / 0.5053 GB, free: 126.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005687/0.5412, allocations: 1.049 MB / 0.5063 GB, free: 126.1 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5412, allocations: 0 / 0.5063 GB, free: 126.1 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat