Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009414/0.0009417, allocations: 102 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.947e-05/1.95e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 50.42 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3394/0.4494, allocations: 80.48 MB / 468 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.4497, allocations: 71.97 kB / 468.1 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04908/0.4988, allocations: 18.8 MB / 486.9 MB, free: 11.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.4989, allocations: 4 kB / 486.9 MB, free: 11.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.955e-05/0.499, allocations: 27.98 kB / 486.9 MB, free: 11.16 MB / 362.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.002033/0.501, allocations: 1.155 MB / 488.1 MB, free: 9.941 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.5011, allocations: 8.031 kB / 488.1 MB, free: 9.934 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002438/0.5013, allocations: 122.7 kB / 488.2 MB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009791/0.5023, allocations: 0.5947 MB / 488.8 MB, free: 9.176 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.5025, allocations: 139 kB / 489 MB, free: 9.023 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.383e-05/0.5026, allocations: 44.59 kB / 489 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009423/0.5036, allocations: 0.5272 MB / 489.5 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.5047, allocations: 0.8145 MB / 490.3 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.5048, allocations: 3.938 kB / 490.3 MB, free: 7.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.806e-05/0.5048, allocations: 8 kB / 490.3 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.5049, allocations: 16 kB / 490.4 MB, free: 7.496 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003888/0.5087, allocations: 2.417 MB / 492.8 MB, free: 4.957 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002493/0.5113, allocations: 0.8486 MB / 493.6 MB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005256/0.5118, allocations: 307.1 kB / 493.9 MB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.093e-05/0.5119, allocations: 16.77 kB / 493.9 MB, free: 3.762 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/0.512, allocations: 51.34 kB / 494 MB, free: 3.703 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 3.377e-06/0.512, allocations: 3.938 kB / 494 MB, free: 3.699 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.001454/0.5134, allocations: 0.6673 MB / 494.7 MB, free: 3.008 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004734/0.5139, allocations: 0.9529 MB / 495.6 MB, free: 1.828 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007981/0.5147, allocations: 0.5782 MB / 496.2 MB, free: 1.246 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.205e-05/0.5148, allocations: 29.7 kB / 496.2 MB, free: 1.211 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000321/0.5151, allocations: 412.1 kB / 496.6 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002248/0.5154, allocations: 248.3 kB / 496.9 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.5154, allocations: 0 / 496.9 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.5156, allocations: 341.9 kB / 497.2 MB, free: 220 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003567/0.5159, allocations: 205.6 kB / 497.4 MB, free: 16 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006806/0.5166, allocations: 0.5217 MB / 497.9 MB, free: 15.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004646/0.5171, allocations: 270.8 kB / 498.2 MB, free: 15.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.5171, allocations: 0 / 498.2 MB, free: 15.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001456/0.5186, allocations: 0.7844 MB / 499 MB, free: 14.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/0.5186, allocations: 85.19 kB / 499.1 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.5187, allocations: 8 kB / 499.1 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005472/0.5192, allocations: 160.2 kB / 499.2 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007418/0.52, allocations: 159.8 kB / 499.4 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005294/0.5253, allocations: 6.547 MB / 0.4941 GB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009532/0.5263, allocations: 91.25 kB / 0.4942 GB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.026e-05/0.5263, allocations: 24 kB / 0.4942 GB, free: 6.621 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.0003198/0.5267, allocations: 140.8 kB / 0.4943 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001221/0.5279, allocations: 0.6673 MB / 0.495 GB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.5281, allocations: 98.95 kB / 0.4951 GB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000262/0.5283, allocations: 85.05 kB / 0.4951 GB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.5283, allocations: 4 kB / 0.4951 GB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.5284, allocations: 8 kB / 0.4952 GB, free: 5.594 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009841/0.5293, allocations: 0.887 MB / 0.496 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.5322, allocations: 1.579 MB / 0.4976 GB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.5322, allocations: 4 kB / 0.4976 GB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008781/0.5331, allocations: 167.8 kB / 0.4977 GB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001495/0.5333, allocations: 20.84 kB / 0.4977 GB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.5333, allocations: 8 kB / 0.4978 GB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001009/0.5343, allocations: 1.252 MB / 0.499 GB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5344, allocations: 0 / 0.499 GB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/0.5359, allocations: 0.9517 MB / 0.4999 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004318/0.5364, allocations: 251.7 kB / 0.5001 GB, free: 152 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.5365, allocations: 0 / 0.5001 GB, free: 152 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004982/0.537, allocations: 31.97 kB / 0.5002 GB, free: 120 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.5371, allocations: 44.72 kB / 0.5002 GB, free: 76 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.247e-05/0.5372, allocations: 23.98 kB / 0.5002 GB, free: 52 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000664/0.5378, allocations: 451.2 kB / 0.5007 GB, free: 15.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5378, allocations: 0 / 0.5007 GB, free: 15.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001018/0.5389, allocations: 287.5 kB / 0.5009 GB, free: 15.33 MB / 394.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.00198/0.5409, allocations: 1.512 MB / 0.5024 GB, free: 13.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.5434, allocations: 1.301 MB / 0.5037 GB, free: 12.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.5434, allocations: 4 kB / 0.5037 GB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006292/0.5441, allocations: 376.6 kB / 0.5041 GB, free: 12.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.5454, allocations: 238.7 kB / 0.5043 GB, free: 11.79 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.5484, allocations: 1.357 MB / 0.5056 GB, free: 10.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000571/0.549, allocations: 0.9993 MB / 0.5066 GB, free: 9.355 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005313/0.5496, allocations: 106.8 kB / 0.5067 GB, free: 9.246 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004639/0.55, allocations: 347.3 kB / 0.507 GB, free: 8.906 MB / 394.7 MB Notification: Performance of SimCode: time 2.686e-06/0.5501, allocations: 4 kB / 0.507 GB, free: 8.902 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04996/0.6, allocations: 21.42 MB / 0.5279 GB, free: 3.789 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/0.6003, allocations: 152 kB / 0.5281 GB, free: 3.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.734/3.334, allocations: 0 / 0.5281 GB, free: 3.59 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat does not exist to compare? outputFormat=mat