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.002205/0.002211, allocations: 177.8 kB / 8.36 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.189/2.189, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001137/0.001137, allocations: 87.44 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.621e-05/2.629e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.36, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4943, allocations: 80.2 MB / 442.6 MB, free: 6.012 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.4947, allocations: 76.95 kB / 442.7 MB, free: 5.938 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04151/0.5362, allocations: 9.436 MB / 452.1 MB, free: 12.5 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5363, allocations: 0 / 452.1 MB, free: 12.5 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.239e-05/0.5363, allocations: 8 kB / 452.1 MB, free: 12.5 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001572/0.5379, allocations: 0.686 MB / 452.8 MB, free: 11.76 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.538, allocations: 12.03 kB / 452.8 MB, free: 11.75 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.5382, allocations: 59.34 kB / 452.9 MB, free: 11.69 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008239/0.539, allocations: 368.3 kB / 453.3 MB, free: 11.29 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.5392, allocations: 50.81 kB / 453.3 MB, free: 11.23 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.505e-05/0.5393, allocations: 25.59 kB / 453.3 MB, free: 11.21 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007956/0.5401, allocations: 237.5 kB / 453.6 MB, free: 10.98 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009178/0.541, allocations: 398 kB / 454 MB, free: 10.53 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.5411, allocations: 0 / 454 MB, free: 10.53 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.5411, allocations: 4 kB / 454 MB, free: 10.53 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.5412, allocations: 8 kB / 454 MB, free: 10.52 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003295/0.5445, allocations: 1.175 MB / 455.1 MB, free: 9.281 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.5463, allocations: 409.3 kB / 455.5 MB, free: 8.852 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000336/0.5467, allocations: 121.4 kB / 455.7 MB, free: 8.73 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.721e-05/0.5468, allocations: 12.2 kB / 455.7 MB, free: 8.719 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.5468, allocations: 42.84 kB / 455.7 MB, free: 8.668 MB / 347.1 MB Notification: Performance of pre-optimization done (n=33): time 3.447e-06/0.5468, allocations: 0 / 455.7 MB, free: 8.668 MB / 347.1 MB Notification: Performance of matching and sorting (n=33): time 0.001154/0.548, allocations: 321.2 kB / 456 MB, free: 8.344 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002672/0.5483, allocations: 444.9 kB / 456.5 MB, free: 7.805 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006591/0.549, allocations: 333.3 kB / 456.8 MB, free: 7.473 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 7.616e-05/0.549, allocations: 26.64 kB / 456.8 MB, free: 7.441 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002554/0.5493, allocations: 274.9 kB / 457.1 MB, free: 7.168 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.5495, allocations: 118.3 kB / 457.2 MB, free: 7.051 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.699e-05/0.5495, allocations: 0 / 457.2 MB, free: 7.051 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.5497, allocations: 330.8 kB / 457.5 MB, free: 6.719 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002968/0.55, allocations: 88 kB / 457.6 MB, free: 6.633 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004458/0.5505, allocations: 226.7 kB / 457.8 MB, free: 6.355 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003408/0.5508, allocations: 112.7 kB / 457.9 MB, free: 6.25 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.289e-06/0.5509, allocations: 0 / 457.9 MB, free: 6.25 MB / 347.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001119/0.552, allocations: 344.9 kB / 458.3 MB, free: 5.902 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.692e-05/0.5521, allocations: 36.73 kB / 458.3 MB, free: 5.863 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.5521, allocations: 0 / 458.3 MB, free: 5.863 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004878/0.5526, allocations: 73.69 kB / 458.4 MB, free: 5.785 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006162/0.5532, allocations: 75.89 kB / 458.5 MB, free: 5.711 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/0.5568, allocations: 2.636 MB / 461.1 MB, free: 2.844 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006117/0.5575, allocations: 35.89 kB / 461.1 MB, free: 2.809 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/0.5576, allocations: 12 kB / 461.1 MB, free: 2.797 MB / 347.1 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: pipe.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: 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.000278/0.5579, allocations: 125.6 kB / 461.3 MB, free: 2.668 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009898/0.5589, allocations: 315 kB / 461.6 MB, free: 2.348 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.559, allocations: 55.39 kB / 461.6 MB, free: 2.293 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.5592, allocations: 44.81 kB / 461.7 MB, free: 2.246 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.5592, allocations: 4 kB / 461.7 MB, free: 2.242 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.5592, allocations: 0 / 461.7 MB, free: 2.242 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008617/0.5601, allocations: 0.6218 MB / 462.3 MB, free: 1.516 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.562, allocations: 0.8098 MB / 463.1 MB, free: 0.6562 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.562, allocations: 6.062 kB / 463.1 MB, free: 0.6523 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006634/0.5627, allocations: 67.95 kB / 463.2 MB, free: 0.5859 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.44e-05/0.5628, allocations: 7.938 kB / 463.2 MB, free: 0.5781 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.5628, allocations: 3.938 kB / 463.2 MB, free: 0.5742 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.5628, allocations: 0 / 463.2 MB, free: 0.5742 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.5628, allocations: 4 kB / 463.2 MB, free: 0.5703 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.564, allocations: 486 kB / 463.7 MB, free: 84 kB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/0.5643, allocations: 156.6 kB / 463.8 MB, free: 15.91 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.841e-05/0.5644, allocations: 4 kB / 463.8 MB, free: 15.91 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.5649, allocations: 11.98 kB / 463.8 MB, free: 15.89 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.709e-05/0.5649, allocations: 19.97 kB / 463.9 MB, free: 15.88 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.169e-05/0.565, allocations: 8 kB / 463.9 MB, free: 15.87 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0004734/0.5655, allocations: 263 kB / 464.1 MB, free: 15.61 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5655, allocations: 0 / 464.1 MB, free: 15.61 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0007656/0.5663, allocations: 135.7 kB / 464.3 MB, free: 15.48 MB / 363.1 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.001604/0.5679, allocations: 1.021 MB / 465.3 MB, free: 14.43 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.5695, allocations: 0.5152 MB / 465.8 MB, free: 13.88 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.5695, allocations: 8.062 kB / 465.8 MB, free: 13.88 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003044/0.5698, allocations: 116.4 kB / 465.9 MB, free: 13.76 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009434/0.5708, allocations: 103.2 kB / 466 MB, free: 13.67 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.5733, allocations: 0.7056 MB / 466.7 MB, free: 12.93 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005583/0.5739, allocations: 0.8283 MB / 467.5 MB, free: 12.07 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.5743, allocations: 155.4 kB / 467.7 MB, free: 11.92 MB / 363.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5743, allocations: 0 / 467.7 MB, free: 11.92 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.768/3.342, allocations: 9.528 MB / 477.2 MB, free: 2.438 MB / 363.1 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