Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.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.PumpDropOut,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001163/0.001163, allocations: 168.9 kB / 8.469 MB, free: 1.855 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.307/1.307, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0009325/0.0009325, allocations: 83.3 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1995/0.2005, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08301/0.2835, allocations: 47.57 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2671/0.5506, allocations: 81.16 MB / 443.8 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002393/0.5509, allocations: 74.11 kB / 443.9 MB, free: 10.71 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.02562/0.5766, allocations: 10.82 MB / 454.7 MB, free: 7.152 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.5766, allocations: 11.83 kB / 454.7 MB, free: 7.148 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/0.5769, allocations: 69.91 kB / 454.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007487/0.5776, allocations: 388.5 kB / 455.1 MB, free: 6.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.854e-05/0.5777, allocations: 50.22 kB / 455.2 MB, free: 6.805 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.731e-05/0.5778, allocations: 22.09 kB / 455.2 MB, free: 6.805 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004755/0.5783, allocations: 272.2 kB / 455.5 MB, free: 6.785 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005325/0.5788, allocations: 413 kB / 455.9 MB, free: 6.566 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.5788, allocations: 3.906 kB / 455.9 MB, free: 6.562 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.575e-05/0.5789, allocations: 0 / 455.9 MB, free: 6.562 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.5789, allocations: 11.16 kB / 455.9 MB, free: 6.562 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.581, allocations: 1.279 MB / 457.2 MB, free: 5.867 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006484/0.5817, allocations: 417.2 kB / 457.6 MB, free: 5.711 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/0.5819, allocations: 147 kB / 457.7 MB, free: 5.699 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.093e-05/0.582, allocations: 8.828 kB / 457.7 MB, free: 5.699 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.582, allocations: 41.47 kB / 457.8 MB, free: 5.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 1.703e-06/0.582, allocations: 4 kB / 457.8 MB, free: 5.656 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.0008281/0.5829, allocations: 360.8 kB / 458.1 MB, free: 5.555 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.583, allocations: 443.3 kB / 458.6 MB, free: 5.023 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004543/0.5834, allocations: 355.8 kB / 458.9 MB, free: 4.895 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.5835, allocations: 27.23 kB / 458.9 MB, free: 4.863 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.682e-05/0.5836, allocations: 187.9 kB / 459.1 MB, free: 4.715 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.883e-05/0.5837, allocations: 123.4 kB / 459.2 MB, free: 4.621 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-05/0.5837, allocations: 4 kB / 459.2 MB, free: 4.617 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.193e-05/0.5838, allocations: 359.1 kB / 459.6 MB, free: 4.289 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.584, allocations: 100.9 kB / 459.7 MB, free: 4.289 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.5843, allocations: 243.4 kB / 459.9 MB, free: 4.141 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.5845, allocations: 125.3 kB / 460.1 MB, free: 4.121 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.5845, allocations: 0 / 460.1 MB, free: 4.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006949/0.5852, allocations: 400 kB / 460.4 MB, free: 4.012 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.5852, allocations: 5.25 kB / 460.4 MB, free: 4.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.5852, allocations: 1.312 kB / 460.5 MB, free: 4.012 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002357/0.5855, allocations: 55.69 kB / 460.5 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004762/0.586, allocations: 100.6 kB / 460.6 MB, free: 3.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001801/0.5878, allocations: 2.617 MB / 463.2 MB, free: 1.469 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004166/0.5882, allocations: 64.59 kB / 463.3 MB, free: 1.438 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.252e-05/0.5883, allocations: 8.594 kB / 463.3 MB, free: 1.438 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: 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.0001895/0.5885, allocations: 117.8 kB / 463.4 MB, free: 1.324 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.5886, allocations: 57.72 kB / 463.5 MB, free: 1.293 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.749e-05/0.5887, allocations: 51.73 kB / 463.5 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.5887, allocations: 4.031 kB / 463.5 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.5887, allocations: 3.938 kB / 463.5 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006253/0.5893, allocations: 0.6568 MB / 464.2 MB, free: 16.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.5907, allocations: 0.9186 MB / 465.1 MB, free: 16.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5907, allocations: 1.438 kB / 465.1 MB, free: 16.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005136/0.5912, allocations: 103.8 kB / 465.2 MB, free: 16.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.5912, allocations: 2.125 kB / 465.2 MB, free: 16.2 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.5913, allocations: 9.031 kB / 465.2 MB, free: 16.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.5913, allocations: 1.688 kB / 465.2 MB, free: 16.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5913, allocations: 0 / 465.2 MB, free: 16.2 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008782/0.5922, allocations: 0.5635 MB / 465.8 MB, free: 16 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001765/0.594, allocations: 1.408 MB / 467.2 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/0.5942, allocations: 174.2 kB / 467.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.434e-05/0.5943, allocations: 2.312 kB / 467.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003584/0.5947, allocations: 24.61 kB / 467.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/0.5947, allocations: 29.52 kB / 467.4 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.5948, allocations: 13.81 kB / 467.4 MB, free: 15.26 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003093/0.5951, allocations: 278.5 kB / 467.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001043/0.5961, allocations: 143.8 kB / 467.8 MB, free: 15.14 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 (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.0001795/0.5963, allocations: 111.7 kB / 467.9 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008176/0.5971, allocations: 0.511 MB / 468.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5972, allocations: 1.375 kB / 468.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002228/0.5974, allocations: 154.8 kB / 468.6 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005598/0.598, allocations: 113.6 kB / 468.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.5995, allocations: 0.6542 MB / 469.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006692/0.6002, allocations: 0.9051 MB / 470.3 MB, free: 13.6 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.6002, allocations: 0 / 470.3 MB, free: 13.6 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat does not exist to compare? outputFormat=mat