Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001159/0.001159, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008589/0.000859, allocations: 93.78 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09483/0.09571, allocations: 56.89 MB / 343.2 MB, free: 8.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08492/0.1806, allocations: 51.48 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2256/0.4063, allocations: 81.34 MB / 476 MB, free: 11.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001838/0.4065, allocations: 78 kB / 476.1 MB, free: 11.04 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.02376/0.4303, allocations: 10.74 MB / 486.9 MB, free: 2.852 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.4303, allocations: 12 kB / 486.9 MB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.4304, allocations: 67.25 kB / 486.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005015/0.4309, allocations: 405.2 kB / 487.3 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.16e-05/0.431, allocations: 46.48 kB / 487.4 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.876e-05/0.4311, allocations: 27.98 kB / 487.4 MB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004548/0.4316, allocations: 259.8 kB / 487.7 MB, free: 2.152 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005178/0.4321, allocations: 412 kB / 488.1 MB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.4321, allocations: 3.906 kB / 488.1 MB, free: 1.789 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.4322, allocations: 4 kB / 488.1 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.4322, allocations: 8 kB / 488.1 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.434, allocations: 1.268 MB / 489.3 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006253/0.4347, allocations: 410.8 kB / 489.7 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/0.4349, allocations: 145.9 kB / 489.9 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.981e-05/0.4349, allocations: 11.98 kB / 489.9 MB, free: 316 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.504e-05/0.4349, allocations: 42.17 kB / 489.9 MB, free: 268 kB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 1.773e-06/0.4349, allocations: 4 kB / 489.9 MB, free: 264 kB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0006841/0.4356, allocations: 362.5 kB / 490.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/0.4358, allocations: 448.9 kB / 490.7 MB, free: 15.44 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000366/0.4362, allocations: 353.7 kB / 491.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/0.4362, allocations: 29.7 kB / 491.1 MB, free: 15.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.445e-05/0.4363, allocations: 180.1 kB / 491.3 MB, free: 14.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.535e-05/0.4364, allocations: 134.4 kB / 491.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.791e-05/0.4364, allocations: 0 / 491.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4366, allocations: 359.2 kB / 491.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.4367, allocations: 104.1 kB / 491.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002666/0.437, allocations: 240.7 kB / 492.1 MB, free: 14.24 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.4372, allocations: 119.7 kB / 492.2 MB, free: 14.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4372, allocations: 4 kB / 492.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006741/0.4379, allocations: 401.6 kB / 492.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.4379, allocations: 4 kB / 492.6 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.4379, allocations: 0 / 492.6 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002207/0.4382, allocations: 58.75 kB / 492.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004655/0.4386, allocations: 99.28 kB / 492.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002094/0.4407, allocations: 2.619 MB / 495.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003813/0.4411, allocations: 55.7 kB / 495.5 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/0.4412, allocations: 11.44 kB / 495.5 MB, free: 10.93 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.0001587/0.4414, allocations: 129 kB / 495.6 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.904e-05/0.4414, allocations: 55.34 kB / 495.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.728e-05/0.4415, allocations: 46.69 kB / 495.7 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.4416, allocations: 4 kB / 495.7 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.4416, allocations: 0 / 495.7 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005763/0.4421, allocations: 0.664 MB / 496.4 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.4433, allocations: 0.9156 MB / 497.3 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4433, allocations: 4 kB / 497.3 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005368/0.4439, allocations: 99.75 kB / 497.4 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.4439, allocations: 4 kB / 497.4 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.999e-05/0.4439, allocations: 7.984 kB / 497.4 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4439, allocations: 0 / 497.4 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4439, allocations: 0 / 497.4 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007186/0.4447, allocations: 0.5666 MB / 498 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0015/0.4462, allocations: 1.396 MB / 499.3 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.4464, allocations: 167.7 kB / 499.5 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.079e-05/0.4464, allocations: 4 kB / 499.5 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000338/0.4468, allocations: 32.09 kB / 499.5 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.012e-05/0.4469, allocations: 23.14 kB / 499.6 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.4469, allocations: 11.38 kB / 499.6 MB, free: 7.477 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002876/0.4472, allocations: 280.5 kB / 499.9 MB, free: 7.273 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001024/0.4482, allocations: 135.7 kB / 500 MB, free: 7.141 MB / 362.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.0001715/0.4484, allocations: 124.1 kB / 0.4884 GB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007254/0.4491, allocations: 0.5142 MB / 0.4889 GB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4492, allocations: 0 / 0.4889 GB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002451/0.4494, allocations: 146.9 kB / 0.489 GB, free: 6.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005328/0.4499, allocations: 125 kB / 0.4891 GB, free: 6.387 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.4513, allocations: 0.6521 MB / 0.4898 GB, free: 5.781 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000501/0.4518, allocations: 0.9032 MB / 0.4907 GB, free: 4.863 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4518, allocations: 3.938 kB / 0.4907 GB, free: 4.859 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat does not exist to compare? outputFormat=mat