Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut.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.ParallelPumpDropOut,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_ParallelPumpDropOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_ParallelPumpDropOut",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.001347/0.001347, allocations: 179.5 kB / 8.477 MB, free: 1.883 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.206/1.206, allocations: 205.2 MB / 214.1 MB, free: 5.172 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.0008955/0.0008959, allocations: 97.91 kB / 262.1 MB, free: 5.207 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1908/0.1918, allocations: 52.95 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07602/0.2678, allocations: 47.58 MB / 362.6 MB, free: 9.895 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.238/0.5058, allocations: 81.99 MB / 444.6 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.5061, allocations: 73.62 kB / 444.7 MB, free: 10.73 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.0453/0.5514, allocations: 17.85 MB / 462.5 MB, free: 4.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.5515, allocations: 9.625 kB / 462.5 MB, free: 4.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003925/0.5519, allocations: 119.3 kB / 462.7 MB, free: 4.281 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.5531, allocations: 0.5592 MB / 463.2 MB, free: 3.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002152/0.5533, allocations: 125.4 kB / 463.3 MB, free: 3.832 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.5535, allocations: 40.69 kB / 463.4 MB, free: 3.828 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001051/0.5545, allocations: 498.9 kB / 463.9 MB, free: 3.797 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.5557, allocations: 0.725 MB / 464.6 MB, free: 3.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.5557, allocations: 3.984 kB / 464.6 MB, free: 3.406 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.477e-05/0.5558, allocations: 10.59 kB / 464.6 MB, free: 3.398 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.5558, allocations: 13.75 kB / 464.6 MB, free: 3.398 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004197/0.56, allocations: 2.1 MB / 466.7 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.5613, allocations: 0.8372 MB / 467.6 MB, free: 2.043 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005459/0.5619, allocations: 334.5 kB / 467.9 MB, free: 2.023 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.469e-05/0.562, allocations: 20.42 kB / 467.9 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.562, allocations: 51.41 kB / 468 MB, free: 1.977 MB / 314.7 MB Notification: Performance of pre-optimization done (n=78): time 3.066e-06/0.562, allocations: 1.312 kB / 468 MB, free: 1.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=78): time 0.002278/0.5643, allocations: 0.8709 MB / 468.8 MB, free: 1.738 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.5644, allocations: 0.8202 MB / 469.6 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007105/0.5652, allocations: 0.4983 MB / 470.1 MB, free: 0.582 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.797e-05/0.5653, allocations: 29.3 kB / 470.2 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.5654, allocations: 237.6 kB / 470.4 MB, free: 388 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.5656, allocations: 264.8 kB / 470.7 MB, free: 184 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.033e-05/0.5656, allocations: 1.125 kB / 470.7 MB, free: 184 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.5658, allocations: 389.6 kB / 471 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003824/0.5662, allocations: 211.3 kB / 471.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005825/0.5668, allocations: 486.5 kB / 471.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004704/0.5673, allocations: 250.8 kB / 472 MB, free: 15.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.5673, allocations: 3.938 kB / 472 MB, free: 15.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00228/0.5696, allocations: 0.9379 MB / 472.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.5696, allocations: 6.5 kB / 472.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.5696, allocations: 0 / 472.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006408/0.5703, allocations: 209 kB / 473.1 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007509/0.571, allocations: 159.6 kB / 473.3 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006317/0.5774, allocations: 5.964 MB / 479.2 MB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009984/0.5784, allocations: 107.4 kB / 479.4 MB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.5786, allocations: 23.81 kB / 479.4 MB, free: 9.797 MB / 330.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 (74): * Single equations (assignments): 67 * 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.0003523/0.5789, allocations: 132.8 kB / 479.5 MB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002724/0.5792, allocations: 86.97 kB / 479.6 MB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002172/0.5794, allocations: 82.39 kB / 479.7 MB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.5794, allocations: 8 kB / 479.7 MB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.5794, allocations: 0 / 479.7 MB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001978/0.5814, allocations: 1.165 MB / 480.8 MB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003683/0.5851, allocations: 1.803 MB / 482.6 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.5852, allocations: 0 / 482.6 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008344/0.586, allocations: 162.6 kB / 482.8 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004383/0.5865, allocations: 165.2 kB / 483 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-05/0.5865, allocations: 7.125 kB / 483 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005188/0.5917, allocations: 4.631 MB / 487.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5918, allocations: 4.359 kB / 487.6 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002549/0.5943, allocations: 1.281 MB / 488.9 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004129/0.5985, allocations: 2.654 MB / 491.5 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005915/0.5991, allocations: 247.9 kB / 491.8 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/0.5993, allocations: 4 kB / 491.8 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006815/0.6, allocations: 43.97 kB / 491.8 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.6001, allocations: 48.58 kB / 491.9 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.74e-05/0.6002, allocations: 19.98 kB / 491.9 MB, free: 14.87 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0005796/0.6008, allocations: 399.1 kB / 492.3 MB, free: 14.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001666/0.6025, allocations: 271.6 kB / 492.6 MB, free: 14.22 MB / 346.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 (66): * Single equations (assignments): 63 * 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.0002319/0.6027, allocations: 123.1 kB / 492.7 MB, free: 14.09 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.6044, allocations: 1.085 MB / 493.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.6044, allocations: 8.125 kB / 493.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.6055, allocations: 0.691 MB / 494.5 MB, free: 12.22 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009594/0.6065, allocations: 175.9 kB / 494.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.6094, allocations: 1.295 MB / 495.9 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008296/0.6103, allocations: 1.059 MB / 497 MB, free: 9.641 MB / 346.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6103, allocations: 11.94 kB / 497 MB, free: 9.629 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_ParallelPumpDropOut_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_ParallelPumpDropOut.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut_res.mat does not exist to compare? outputFormat=mat