Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.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.OneMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",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.001261/0.001261, allocations: 184 kB / 8.138 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.078/1.078, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0008787/0.0008787, allocations: 96.67 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09288/0.09379, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.2661, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07947/0.3456, allocations: 80.21 MB / 467.2 MB, free: 6.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.3459, allocations: 79.89 kB / 467.3 MB, free: 6.48 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.02483/0.3707, allocations: 10.39 MB / 477.7 MB, free: 12.01 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.3707, allocations: 8 kB / 477.7 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.3709, allocations: 67.25 kB / 477.8 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005611/0.3714, allocations: 389.6 kB / 478.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.3716, allocations: 54.34 kB / 478.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.14e-05/0.3716, allocations: 24 kB / 478.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004596/0.3721, allocations: 257.2 kB / 478.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005309/0.3726, allocations: 391.7 kB / 478.8 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.3727, allocations: 0 / 478.8 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.3727, allocations: 0 / 478.8 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3727, allocations: 11.94 kB / 478.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00199/0.3747, allocations: 1.224 MB / 480.1 MB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.3751, allocations: 221.8 kB / 480.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.3753, allocations: 145 kB / 480.4 MB, free: 9.074 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.747e-05/0.3754, allocations: 15.97 kB / 480.5 MB, free: 9.059 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.3754, allocations: 42.56 kB / 480.5 MB, free: 9.008 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 1.463e-06/0.3754, allocations: 0 / 480.5 MB, free: 9.008 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.0006846/0.3761, allocations: 358.9 kB / 480.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/0.3763, allocations: 448.9 kB / 481.3 MB, free: 8.102 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003894/0.3767, allocations: 345.2 kB / 481.6 MB, free: 7.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.3768, allocations: 25.7 kB / 481.6 MB, free: 7.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.3769, allocations: 180.3 kB / 481.8 MB, free: 7.547 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.377, allocations: 130 kB / 481.9 MB, free: 7.418 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.698e-05/0.377, allocations: 4 kB / 482 MB, free: 7.414 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3771, allocations: 350.8 kB / 482.3 MB, free: 7.062 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.3773, allocations: 100 kB / 482.4 MB, free: 6.965 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002736/0.3776, allocations: 231.2 kB / 482.6 MB, free: 6.688 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001959/0.3778, allocations: 124.4 kB / 482.7 MB, free: 6.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.3778, allocations: 0 / 482.7 MB, free: 6.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006369/0.3785, allocations: 390.2 kB / 483.1 MB, free: 6.172 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.3785, allocations: 4 kB / 483.1 MB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3785, allocations: 2.969 kB / 483.1 MB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002092/0.3787, allocations: 53.69 kB / 483.2 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004294/0.3791, allocations: 99.91 kB / 483.3 MB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.3812, allocations: 2.613 MB / 485.9 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.3815, allocations: 55.7 kB / 485.9 MB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.3816, allocations: 12.66 kB / 486 MB, free: 3.098 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 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: 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 (38): * Single equations (assignments): 35 * 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 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.3817, allocations: 112.9 kB / 486.1 MB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-05/0.3818, allocations: 55.42 kB / 486.1 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.574e-05/0.3819, allocations: 48.58 kB / 486.2 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3819, allocations: 4 kB / 486.2 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3819, allocations: 0 / 486.2 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005451/0.3825, allocations: 0.6568 MB / 486.8 MB, free: 2.109 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.3836, allocations: 0.8813 MB / 487.7 MB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3836, allocations: 0 / 487.7 MB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.3841, allocations: 103.9 kB / 487.8 MB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3841, allocations: 0 / 487.8 MB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.3842, allocations: 3.984 kB / 487.8 MB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.3842, allocations: 15.84 kB / 487.8 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3842, allocations: 0 / 487.8 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006541/0.3848, allocations: 0.5385 MB / 488.4 MB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001379/0.3862, allocations: 1.361 MB / 489.7 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.3864, allocations: 168.6 kB / 489.9 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.562e-05/0.3865, allocations: 4 kB / 489.9 MB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.3868, allocations: 27.97 kB / 489.9 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.683e-05/0.3869, allocations: 27.97 kB / 490 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.3869, allocations: 7.906 kB / 490 MB, free: 14.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002535/0.3871, allocations: 275.2 kB / 490.2 MB, free: 14.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009492/0.3881, allocations: 135.8 kB / 490.4 MB, free: 14.48 MB / 378.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 (36): * Single equations (assignments): 36 * 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.0001404/0.3883, allocations: 119.3 kB / 490.5 MB, free: 14.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006789/0.3889, allocations: 0.5055 MB / 491 MB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.389, allocations: 0 / 491 MB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.3892, allocations: 143.9 kB / 491.1 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.3896, allocations: 107.3 kB / 491.2 MB, free: 13.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.3909, allocations: 0.6455 MB / 491.9 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004998/0.3914, allocations: 0.8934 MB / 492.8 MB, free: 12 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3914, allocations: 0 / 492.8 MB, free: 12 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_OneMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_OneMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat does not exist to compare? outputFormat=mat