Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.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.IndirectCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",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.001073/0.001073, allocations: 208.1 kB / 8.544 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 225.5 MB / 234.4 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009574/0.0009575, allocations: 93.41 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09827/0.09926, allocations: 56.89 MB / 343.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08971/0.189, allocations: 51.47 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2225/0.4115, allocations: 81.23 MB / 475.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001693/0.4118, allocations: 69.98 kB / 476 MB, free: 11.22 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.04485/0.4566, allocations: 19.94 MB / 495.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.4567, allocations: 8 kB / 496 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.4569, allocations: 130 kB / 496.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009043/0.4578, allocations: 0.6104 MB / 496.7 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001918/0.458, allocations: 127.1 kB / 496.8 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.01e-05/0.4581, allocations: 40 kB / 496.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009591/0.459, allocations: 0.5267 MB / 497.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.4602, allocations: 0.8187 MB / 498.2 MB, free: 9.562 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.4603, allocations: 7.922 kB / 498.2 MB, free: 9.555 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.634e-05/0.4603, allocations: 4 kB / 498.2 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.4603, allocations: 16 kB / 498.2 MB, free: 9.535 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003741/0.4641, allocations: 2.431 MB / 0.4889 GB, free: 7.594 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.4653, allocations: 0.6978 MB / 0.4896 GB, free: 7.059 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005081/0.4658, allocations: 299.7 kB / 0.4899 GB, free: 6.871 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.932e-05/0.4659, allocations: 20.62 kB / 0.4899 GB, free: 6.852 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.466, allocations: 49.34 kB / 0.49 GB, free: 6.805 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 3.036e-06/0.466, allocations: 0 / 0.49 GB, free: 6.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.001393/0.4674, allocations: 0.6648 MB / 0.4906 GB, free: 6.281 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004291/0.4678, allocations: 0.9541 MB / 0.4915 GB, free: 5.105 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007441/0.4686, allocations: 0.5782 MB / 0.4921 GB, free: 4.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.823e-05/0.4686, allocations: 29.7 kB / 0.4921 GB, free: 4.645 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.4688, allocations: 291.3 kB / 0.4924 GB, free: 4.391 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.469, allocations: 250.4 kB / 0.4926 GB, free: 4.172 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.333e-05/0.469, allocations: 0 / 0.4926 GB, free: 4.172 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4692, allocations: 333.5 kB / 0.493 GB, free: 3.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/0.4696, allocations: 219.4 kB / 0.4932 GB, free: 3.691 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006081/0.4702, allocations: 0.51 MB / 0.4937 GB, free: 3.059 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004383/0.4706, allocations: 278 kB / 0.4939 GB, free: 2.793 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4706, allocations: 1.875 kB / 0.4939 GB, free: 2.793 MB / 362.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001412/0.4721, allocations: 0.783 MB / 0.4947 GB, free: 1.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.4721, allocations: 11.91 kB / 0.4947 GB, free: 1.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4721, allocations: 0 / 0.4947 GB, free: 1.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005522/0.4726, allocations: 164.2 kB / 0.4949 GB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007999/0.4735, allocations: 167.8 kB / 0.495 GB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005327/0.4788, allocations: 6.483 MB / 0.5014 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007509/0.4796, allocations: 83.45 kB / 0.5014 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.88e-05/0.4796, allocations: 31.98 kB / 0.5015 GB, free: 10.45 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.H_flow:VARIABLE(flow=true unit = "W" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: outerPump.flowPort_b.H_flow:VARIABLE(flow=true unit = "W" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: absolutePressure.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: innerPipe.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: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 74 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 4 {1 3,1 1,1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.4799, allocations: 138.5 kB / 0.5016 GB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.48, allocations: 97.5 kB / 0.5017 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001915/0.4802, allocations: 88.72 kB / 0.5018 GB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.4802, allocations: 8 kB / 0.5018 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.4803, allocations: 0 / 0.5018 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001082/0.4813, allocations: 0.8789 MB / 0.5026 GB, free: 9.137 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.4839, allocations: 1.574 MB / 0.5042 GB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.4839, allocations: 4 kB / 0.5042 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008732/0.4848, allocations: 171.8 kB / 0.5044 GB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.4849, allocations: 20.86 kB / 0.5044 GB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.831e-05/0.485, allocations: 11.92 kB / 0.5044 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000917/0.4859, allocations: 1.248 MB / 0.5056 GB, free: 5.934 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.4859, allocations: 3.938 kB / 0.5056 GB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001576/0.4875, allocations: 0.9585 MB / 0.5065 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002887/0.4904, allocations: 2.195 MB / 0.5087 GB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000394/0.4908, allocations: 251.8 kB / 0.5089 GB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.4909, allocations: 4 kB / 0.5089 GB, free: 2.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005295/0.4915, allocations: 31.97 kB / 0.509 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.132e-05/0.4916, allocations: 36.59 kB / 0.509 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.107e-05/0.4916, allocations: 27.98 kB / 0.509 GB, free: 2.375 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000577/0.4922, allocations: 451.2 kB / 0.5095 GB, free: 1.938 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001343/0.4936, allocations: 283.4 kB / 0.5097 GB, free: 1.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (heatCapacitor.T,pipe1.T,outerPipe.T,innerPipe.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 71 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001868/0.4937, allocations: 123.1 kB / 0.5098 GB, free: 1.531 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.4959, allocations: 1.184 MB / 0.511 GB, free: 292 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.4959, allocations: 4 kB / 0.511 GB, free: 288 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005154/0.4964, allocations: 376.1 kB / 0.5114 GB, free: 15.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008655/0.4973, allocations: 216 kB / 0.5116 GB, free: 15.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.5, allocations: 1.283 MB / 0.5128 GB, free: 14.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007825/0.5008, allocations: 1.118 MB / 0.5139 GB, free: 13.24 MB / 394.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5008, allocations: 0 / 0.5139 GB, free: 13.24 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat does not exist to compare? outputFormat=mat