Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.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.IndirectCooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001457/0.001457, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.076/2.076, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 94.97 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.388e-05/2.398e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3587, allocations: 47.56 MB / 362.4 MB, free: 45.89 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1353/0.494, allocations: 81.27 MB / 443.7 MB, free: 5.027 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.4944, allocations: 75.95 kB / 443.8 MB, free: 4.953 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08377/0.5782, allocations: 19.16 MB / 462.9 MB, free: 1.738 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5782, allocations: 0 / 462.9 MB, free: 1.738 MB / 347.1 MB Notification: Performance of Transformations before backend: time 8.207e-05/0.5783, allocations: 20 kB / 463 MB, free: 1.719 MB / 347.1 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.003284/0.5816, allocations: 1.166 MB / 464.1 MB, free: 500 kB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/0.5817, allocations: 8.031 kB / 464.1 MB, free: 492 kB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003678/0.5821, allocations: 122.7 kB / 464.2 MB, free: 368 kB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.5838, allocations: 0.5953 MB / 464.8 MB, free: 15.72 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000312/0.5841, allocations: 131.1 kB / 465 MB, free: 15.57 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001549/0.5843, allocations: 40 kB / 465 MB, free: 15.54 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00176/0.586, allocations: 0.5311 MB / 465.5 MB, free: 15 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.588, allocations: 0.8129 MB / 466.4 MB, free: 14.08 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.09e-05/0.5881, allocations: 0 / 466.4 MB, free: 14.08 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.541e-05/0.5882, allocations: 4 kB / 466.4 MB, free: 14.07 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.5882, allocations: 16.75 kB / 466.4 MB, free: 14.06 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007091/0.5953, allocations: 2.427 MB / 468.8 MB, free: 11.51 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004687/0.6001, allocations: 0.8545 MB / 469.7 MB, free: 10.63 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009456/0.6011, allocations: 295.2 kB / 469.9 MB, free: 10.34 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.737e-05/0.6012, allocations: 16.77 kB / 470 MB, free: 10.32 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.397e-05/0.6013, allocations: 55.33 kB / 470 MB, free: 10.26 MB / 363.1 MB Notification: Performance of pre-optimization done (n=74): time 4.849e-06/0.6013, allocations: 4 kB / 470 MB, free: 10.26 MB / 363.1 MB Notification: Performance of matching and sorting (n=74): time 0.00241/0.6037, allocations: 0.6673 MB / 470.7 MB, free: 9.57 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005946/0.6043, allocations: 0.9566 MB / 471.6 MB, free: 8.383 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/0.6057, allocations: 0.5821 MB / 472.2 MB, free: 7.797 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001998/0.606, allocations: 37.64 kB / 472.3 MB, free: 7.754 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004533/0.6064, allocations: 418.7 kB / 472.7 MB, free: 7.34 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003698/0.6068, allocations: 248.2 kB / 472.9 MB, free: 7.094 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.208e-05/0.6069, allocations: 0 / 472.9 MB, free: 7.094 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.6071, allocations: 338.8 kB / 473.2 MB, free: 6.754 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006746/0.6078, allocations: 213.5 kB / 473.5 MB, free: 6.547 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.6089, allocations: 0.5179 MB / 474 MB, free: 5.902 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008189/0.6097, allocations: 274.7 kB / 474.2 MB, free: 5.637 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.6097, allocations: 0 / 474.2 MB, free: 5.637 MB / 363.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002469/0.6122, allocations: 0.7304 MB / 475 MB, free: 4.887 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.907e-05/0.6123, allocations: 89.09 kB / 475.1 MB, free: 4.781 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.6123, allocations: 0 / 475.1 MB, free: 4.781 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009956/0.6133, allocations: 172.2 kB / 475.2 MB, free: 4.598 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.6148, allocations: 159.8 kB / 475.4 MB, free: 4.441 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008791/0.6236, allocations: 6.542 MB / 481.9 MB, free: 13.33 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.625, allocations: 79.5 kB / 482 MB, free: 13.25 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.821e-05/0.6251, allocations: 31.98 kB / 482 MB, free: 13.22 MB / 379.1 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.000416/0.6256, allocations: 132.8 kB / 482.2 MB, free: 13.08 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002223/0.6278, allocations: 0.679 MB / 482.8 MB, free: 12.38 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.6281, allocations: 94.91 kB / 482.9 MB, free: 12.29 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002933/0.6284, allocations: 92.98 kB / 483 MB, free: 12.19 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.641e-05/0.6284, allocations: 8 kB / 483 MB, free: 12.18 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.6284, allocations: 0 / 483 MB, free: 12.18 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001669/0.6301, allocations: 0.8793 MB / 483.9 MB, free: 11.19 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004001/0.6341, allocations: 1.567 MB / 485.5 MB, free: 9.566 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.6342, allocations: 4 kB / 485.5 MB, free: 9.562 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001522/0.6357, allocations: 164 kB / 485.6 MB, free: 9.402 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001529/0.6359, allocations: 32.77 kB / 485.7 MB, free: 9.367 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.966e-05/0.636, allocations: 7.984 kB / 485.7 MB, free: 9.359 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001366/0.6373, allocations: 1.245 MB / 486.9 MB, free: 8.004 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.6374, allocations: 3.938 kB / 486.9 MB, free: 8 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002589/0.64, allocations: 0.9593 MB / 487.9 MB, free: 7.02 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006448/0.6406, allocations: 247.9 kB / 488.1 MB, free: 6.758 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001735/0.6408, allocations: 4 kB / 488.1 MB, free: 6.754 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009187/0.6418, allocations: 31.92 kB / 488.2 MB, free: 6.723 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.6419, allocations: 48.72 kB / 488.2 MB, free: 6.672 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.924e-05/0.642, allocations: 19.98 kB / 488.2 MB, free: 6.652 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0009654/0.643, allocations: 455.2 kB / 488.7 MB, free: 6.211 MB / 379.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.643, allocations: 0 / 488.7 MB, free: 6.211 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001266/0.6443, allocations: 275.4 kB / 488.9 MB, free: 5.941 MB / 379.1 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.003102/0.6474, allocations: 1.531 MB / 490.5 MB, free: 4.379 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.003861/0.6513, allocations: 1.29 MB / 491.8 MB, free: 3.004 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.6514, allocations: 12.19 kB / 491.8 MB, free: 2.992 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009281/0.6523, allocations: 376.6 kB / 492.1 MB, free: 2.613 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.6541, allocations: 219.8 kB / 492.4 MB, free: 2.406 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004859/0.659, allocations: 1.405 MB / 493.8 MB, free: 0.9453 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000854/0.6599, allocations: 0.9993 MB / 494.8 MB, free: 15.91 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009009/0.6608, allocations: 352.2 kB / 495.1 MB, free: 15.57 MB / 395.1 MB Notification: Performance of SimCode: time 9.92e-07/0.6608, allocations: 0 / 495.1 MB, free: 15.57 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.489/4.15, allocations: 26.45 MB / 0.5093 GB, free: 116.2 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat does not exist to compare? outputFormat=mat