Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",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.002142/0.002142, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.296/2.296, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001163, allocations: 98.62 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.013e-05/3.029e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.0967, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.407/0.5038, allocations: 80.86 MB / 450 MB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.5041, allocations: 65.66 kB / 450.1 MB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04092/0.5451, allocations: 9.553 MB / 459.7 MB, free: 3.934 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.168e-06/0.5451, allocations: 4 kB / 459.7 MB, free: 3.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.307e-05/0.5452, allocations: 11.94 kB / 459.7 MB, free: 3.918 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001547/0.5467, allocations: 0.6859 MB / 460.4 MB, free: 3.215 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.5468, allocations: 8.031 kB / 460.4 MB, free: 3.207 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.547, allocations: 85.7 kB / 460.4 MB, free: 3.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001717/0.5472, allocations: 59.34 kB / 460.5 MB, free: 3.078 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008269/0.548, allocations: 368 kB / 460.9 MB, free: 2.723 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.5482, allocations: 65.3 kB / 460.9 MB, free: 2.664 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.118e-05/0.5483, allocations: 39.06 kB / 461 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009641/0.5493, allocations: 443.3 kB / 461.4 MB, free: 2.266 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.5493, allocations: 0 / 461.4 MB, free: 2.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-05/0.5494, allocations: 14.69 kB / 461.4 MB, free: 2.262 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.5494, allocations: 8 kB / 461.4 MB, free: 2.254 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007587/0.5502, allocations: 264.4 kB / 461.7 MB, free: 2.082 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003367/0.5535, allocations: 1.263 MB / 462.9 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.5555, allocations: 433.5 kB / 463.4 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003788/0.5559, allocations: 141.4 kB / 463.5 MB, free: 408 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.473e-05/0.5559, allocations: 4.281 kB / 463.5 MB, free: 404 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.556, allocations: 38.84 kB / 463.5 MB, free: 356 kB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 3.226e-06/0.556, allocations: 0 / 463.5 MB, free: 356 kB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.001193/0.5572, allocations: 352.8 kB / 463.9 MB, free: 15.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002389/0.5575, allocations: 441 kB / 464.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007795/0.5583, allocations: 395.2 kB / 464.7 MB, free: 15.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.773e-05/0.5584, allocations: 33.7 kB / 464.7 MB, free: 15.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/0.5586, allocations: 274.9 kB / 465 MB, free: 14.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.5588, allocations: 118.2 kB / 465.1 MB, free: 14.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.5588, allocations: 8 kB / 465.1 MB, free: 14.63 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.559, allocations: 326.8 kB / 465.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.5593, allocations: 100 kB / 465.6 MB, free: 14.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005034/0.5598, allocations: 243.1 kB / 465.8 MB, free: 13.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003959/0.5602, allocations: 158 kB / 465.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.5603, allocations: 0 / 465.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001176/0.5614, allocations: 394.7 kB / 466.3 MB, free: 13.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.325e-05/0.5615, allocations: 29.7 kB / 466.4 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.5615, allocations: 4 kB / 466.4 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005015/0.562, allocations: 73.64 kB / 466.4 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006347/0.5627, allocations: 75.86 kB / 466.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003862/0.5666, allocations: 2.749 MB / 469.3 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006769/0.5673, allocations: 51.67 kB / 469.3 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.366e-05/0.5674, allocations: 15.98 kB / 469.3 MB, free: 10.08 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001981/0.5676, allocations: 126.7 kB / 469.4 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.5677, allocations: 51.58 kB / 469.5 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.5679, allocations: 56.77 kB / 469.6 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.5679, allocations: 4 kB / 469.6 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.568, allocations: 0 / 469.6 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009259/0.5689, allocations: 0.6375 MB / 470.2 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.5709, allocations: 0.8957 MB / 471.1 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.309e-06/0.5709, allocations: 0 / 471.1 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007028/0.5716, allocations: 71.89 kB / 471.2 MB, free: 8.066 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.285e-06/0.5716, allocations: 3.938 kB / 471.2 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.641e-05/0.5717, allocations: 8 kB / 471.2 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.5717, allocations: 0 / 471.2 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5717, allocations: 4 kB / 471.2 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.5729, allocations: 0.5067 MB / 471.7 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003156/0.5732, allocations: 168.3 kB / 471.8 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.5733, allocations: 8 kB / 471.9 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004643/0.5738, allocations: 19.91 kB / 471.9 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.457e-05/0.5739, allocations: 19.97 kB / 471.9 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.738e-05/0.5739, allocations: 12.06 kB / 471.9 MB, free: 7.285 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005861/0.5745, allocations: 313.2 kB / 472.2 MB, free: 6.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5745, allocations: 0 / 472.2 MB, free: 6.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006892/0.5752, allocations: 143.8 kB / 472.3 MB, free: 6.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001649/0.5769, allocations: 1.052 MB / 473.4 MB, free: 5.762 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.5786, allocations: 0.5514 MB / 474 MB, free: 5.172 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.5786, allocations: 0 / 474 MB, free: 5.172 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003236/0.5789, allocations: 119.9 kB / 474.1 MB, free: 5.055 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009696/0.5799, allocations: 122.5 kB / 474.2 MB, free: 4.934 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.5823, allocations: 0.7547 MB / 474.9 MB, free: 4.133 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005257/0.5829, allocations: 0.8276 MB / 475.8 MB, free: 3.273 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004069/0.5833, allocations: 163.4 kB / 475.9 MB, free: 3.117 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5833, allocations: 0 / 475.9 MB, free: 3.117 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.764/3.347, allocations: 9.931 MB / 485.9 MB, free: 9.172 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat does not exist to compare? outputFormat=mat