Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.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.ParallelCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling",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.001031/0.001031, allocations: 202.1 kB / 8.543 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.158/1.158, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008827/0.0008827, allocations: 97.25 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09633/0.09724, allocations: 56.89 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0828/0.1801, allocations: 51.48 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2185/0.3986, allocations: 81.06 MB / 475.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001737/0.3988, allocations: 72.81 kB / 475.8 MB, free: 11.27 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.03877/0.4376, allocations: 16.7 MB / 492.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.4376, allocations: 8 kB / 492.5 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000274/0.4379, allocations: 106.9 kB / 492.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008876/0.4388, allocations: 0.5269 MB / 493.2 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/0.439, allocations: 126.4 kB / 493.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.677e-05/0.4391, allocations: 43.91 kB / 493.3 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008348/0.44, allocations: 475.6 kB / 493.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009462/0.4409, allocations: 0.7065 MB / 494.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.4409, allocations: 0 / 494.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.636e-05/0.441, allocations: 0 / 494.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.441, allocations: 19.28 kB / 494.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003236/0.4443, allocations: 1.993 MB / 496.5 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.4458, allocations: 0.8411 MB / 497.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004881/0.4463, allocations: 320 kB / 497.7 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.815e-05/0.4463, allocations: 15.84 kB / 497.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.4464, allocations: 48.91 kB / 497.7 MB, free: 10.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 2.094e-06/0.4464, allocations: 0 / 497.7 MB, free: 10.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.002145/0.4485, allocations: 0.8302 MB / 498.6 MB, free: 9.375 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003125/0.4489, allocations: 0.8255 MB / 499.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000572/0.4494, allocations: 473.8 kB / 499.9 MB, free: 8.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.127e-05/0.4495, allocations: 29.7 kB / 499.9 MB, free: 7.973 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.4497, allocations: 235.8 kB / 0.4884 GB, free: 7.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.4498, allocations: 243.1 kB / 0.4886 GB, free: 7.559 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.382e-05/0.4499, allocations: 0 / 0.4886 GB, free: 7.559 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.45, allocations: 381.1 kB / 0.489 GB, free: 7.207 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003436/0.4504, allocations: 202.7 kB / 0.4892 GB, free: 7.094 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000569/0.451, allocations: 467.8 kB / 0.4896 GB, free: 6.656 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004396/0.4514, allocations: 257.9 kB / 0.4899 GB, free: 6.496 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.4514, allocations: 1.688 kB / 0.4899 GB, free: 6.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00211/0.4535, allocations: 0.8958 MB / 0.4908 GB, free: 5.777 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.4536, allocations: 4 kB / 0.4908 GB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4536, allocations: 4 kB / 0.4908 GB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006655/0.4542, allocations: 209.1 kB / 0.491 GB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.4549, allocations: 132.2 kB / 0.4911 GB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006521/0.4615, allocations: 5.994 MB / 0.4969 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007128/0.4622, allocations: 83.45 kB / 0.497 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.333e-05/0.4623, allocations: 24.06 kB / 0.497 GB, free: 15.21 MB / 378.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 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 (71): * Single equations (assignments): 64 * 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 {1 5,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000246/0.4625, allocations: 120.9 kB / 0.4972 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.4627, allocations: 88.66 kB / 0.4972 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001853/0.4629, allocations: 79.45 kB / 0.4973 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.4629, allocations: 8 kB / 0.4973 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4629, allocations: 0 / 0.4973 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001968/0.4649, allocations: 1.127 MB / 0.4984 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00332/0.4682, allocations: 1.738 MB / 0.5001 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.4683, allocations: 0 / 0.5001 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007072/0.469, allocations: 131.9 kB / 0.5002 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004555/0.4694, allocations: 170.5 kB / 0.5004 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.4695, allocations: 15.89 kB / 0.5004 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005265/0.4748, allocations: 4.637 MB / 0.505 GB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4748, allocations: 0 / 0.505 GB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002499/0.4773, allocations: 1.251 MB / 0.5062 GB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003887/0.4812, allocations: 2.521 MB / 0.5086 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004355/0.4817, allocations: 232 kB / 0.5089 GB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/0.4819, allocations: 7.984 kB / 0.5089 GB, free: 2.457 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005707/0.4824, allocations: 35.92 kB / 0.5089 GB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.4826, allocations: 37.72 kB / 0.5089 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.248e-05/0.4826, allocations: 23.98 kB / 0.509 GB, free: 2.363 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005242/0.4832, allocations: 374.8 kB / 0.5093 GB, free: 2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001577/0.4847, allocations: 259.7 kB / 0.5096 GB, free: 1.746 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (62): * Single equations (assignments): 59 * 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.0002201/0.485, allocations: 115.2 kB / 0.5097 GB, free: 1.625 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.4867, allocations: 1.049 MB / 0.5107 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4867, allocations: 4.125 kB / 0.5107 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.4879, allocations: 0.6598 MB / 0.5113 GB, free: 15.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008311/0.4887, allocations: 179.7 kB / 0.5115 GB, free: 15.67 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/0.4914, allocations: 1.246 MB / 0.5127 GB, free: 14.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006944/0.4921, allocations: 1.052 MB / 0.5138 GB, free: 13.31 MB / 394.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4921, allocations: 0 / 0.5138 GB, free: 13.31 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling_res.mat does not exist to compare? outputFormat=mat