Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.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.PumpDropOut,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut",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.00101/0.001009, allocations: 180.5 kB / 8.133 MB, free: 2.215 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.052/1.052, allocations: 221.4 MB / 229.9 MB, free: 3.266 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.0008674/0.0008673, allocations: 107.9 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0839/0.0848, allocations: 55.81 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.2489, allocations: 50.4 MB / 387 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07328/0.3223, allocations: 80.52 MB / 467.5 MB, free: 6.246 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.3225, allocations: 76.39 kB / 467.6 MB, free: 6.172 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.02559/0.3481, allocations: 10.68 MB / 478.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.3482, allocations: 8 kB / 478.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.3483, allocations: 67.25 kB / 478.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.3488, allocations: 405.7 kB / 478.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.222e-05/0.3489, allocations: 46.48 kB / 478.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.863e-05/0.349, allocations: 20 kB / 478.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00048/0.3495, allocations: 273.5 kB / 479.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005533/0.35, allocations: 413.3 kB / 479.5 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.3501, allocations: 0 / 479.5 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.3501, allocations: 3.906 kB / 479.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.3501, allocations: 8 kB / 479.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.3522, allocations: 1.267 MB / 480.8 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006861/0.3529, allocations: 411.5 kB / 481.2 MB, free: 8.324 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.3532, allocations: 155 kB / 481.3 MB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.156e-05/0.3532, allocations: 7.984 kB / 481.3 MB, free: 8.164 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.3532, allocations: 46.56 kB / 481.4 MB, free: 8.109 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 1.773e-06/0.3533, allocations: 0 / 481.4 MB, free: 8.109 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.0007385/0.354, allocations: 363.4 kB / 481.7 MB, free: 7.742 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.3542, allocations: 445.2 kB / 482.2 MB, free: 7.203 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003805/0.3546, allocations: 357.2 kB / 482.5 MB, free: 6.848 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.3546, allocations: 29.64 kB / 482.5 MB, free: 6.812 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.769e-05/0.3547, allocations: 184.6 kB / 482.7 MB, free: 6.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.129e-05/0.3548, allocations: 134 kB / 482.9 MB, free: 6.496 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.761e-05/0.3548, allocations: 0 / 482.9 MB, free: 6.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.3549, allocations: 351.7 kB / 483.2 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.3551, allocations: 104 kB / 483.3 MB, free: 6.043 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002844/0.3554, allocations: 242.1 kB / 483.5 MB, free: 5.758 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.3556, allocations: 123.9 kB / 483.7 MB, free: 5.637 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3556, allocations: 0 / 483.7 MB, free: 5.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006791/0.3563, allocations: 407.2 kB / 484.1 MB, free: 5.227 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.3564, allocations: 4 kB / 484.1 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3564, allocations: 0 / 484.1 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002307/0.3566, allocations: 53.69 kB / 484.1 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004593/0.3571, allocations: 111.9 kB / 484.2 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002001/0.3591, allocations: 2.609 MB / 486.8 MB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003727/0.3595, allocations: 59.7 kB / 486.9 MB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.3595, allocations: 8.234 kB / 486.9 MB, free: 2.148 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: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 (40): * Single equations (assignments): 37 * 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.0001509/0.3597, allocations: 117.6 kB / 487 MB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.943e-05/0.3598, allocations: 63.34 kB / 487.1 MB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.703e-05/0.3599, allocations: 48.61 kB / 487.1 MB, free: 1.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3599, allocations: 4 kB / 487.1 MB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.3599, allocations: 0 / 487.1 MB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005628/0.3604, allocations: 0.6605 MB / 487.8 MB, free: 1.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/0.3617, allocations: 0.9152 MB / 488.7 MB, free: 188 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3617, allocations: 7.938 kB / 488.7 MB, free: 180 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004894/0.3622, allocations: 107.9 kB / 488.8 MB, free: 72 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3622, allocations: 0 / 488.8 MB, free: 72 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.3622, allocations: 8 kB / 488.8 MB, free: 64 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3622, allocations: 4 kB / 488.8 MB, free: 60 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.3622, allocations: 0 / 488.8 MB, free: 60 kB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007124/0.363, allocations: 0.5653 MB / 489.4 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001433/0.3644, allocations: 1.408 MB / 490.8 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.3646, allocations: 168.5 kB / 491 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.491e-05/0.3647, allocations: 4 kB / 491 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003298/0.365, allocations: 31.97 kB / 491 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.206e-05/0.3651, allocations: 19.97 kB / 491 MB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.3651, allocations: 12 kB / 491 MB, free: 13.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002782/0.3654, allocations: 279.2 kB / 491.3 MB, free: 13.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009636/0.3664, allocations: 143.7 kB / 491.4 MB, free: 13.39 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 (38): * Single equations (assignments): 38 * 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.0001562/0.3665, allocations: 107.2 kB / 491.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000702/0.3673, allocations: 0.5129 MB / 492.1 MB, free: 12.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3673, allocations: 0 / 492.1 MB, free: 12.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.3675, allocations: 147.9 kB / 492.2 MB, free: 12.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005022/0.368, allocations: 117.8 kB / 492.3 MB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.3693, allocations: 0.6554 MB / 493 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005059/0.3698, allocations: 0.909 MB / 493.9 MB, free: 10.87 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3698, allocations: 0 / 493.9 MB, free: 10.87 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat does not exist to compare? outputFormat=mat