Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.002382/0.002382, 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.249/2.249, 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.001166/0.001165, allocations: 93.28 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.853e-05/2.854e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3589, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.5093, allocations: 81.64 MB / 444.1 MB, free: 4.574 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00044/0.5099, allocations: 75.91 kB / 444.1 MB, free: 4.5 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1206/0.6305, allocations: 16.25 MB / 460.4 MB, free: 4.211 MB / 347.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.6306, allocations: 0 / 460.4 MB, free: 4.211 MB / 347.1 MB Notification: Performance of Transformations before backend: time 0.0001305/0.6307, allocations: 23.98 kB / 460.4 MB, free: 4.188 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.005006/0.6358, allocations: 1.072 MB / 461.5 MB, free: 3.051 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.11e-05/0.6359, allocations: 8.031 kB / 461.5 MB, free: 3.043 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006932/0.6366, allocations: 114.7 kB / 461.6 MB, free: 2.93 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002501/0.6391, allocations: 0.5321 MB / 462.1 MB, free: 2.355 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004963/0.6397, allocations: 130.4 kB / 462.3 MB, free: 2.211 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003215/0.64, allocations: 36 kB / 462.3 MB, free: 2.176 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002607/0.6427, allocations: 482.5 kB / 462.8 MB, free: 1.703 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002798/0.6456, allocations: 0.6923 MB / 463.5 MB, free: 0.9062 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.923e-05/0.6457, allocations: 4 kB / 463.5 MB, free: 0.9023 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001445/0.6458, allocations: 0 / 463.5 MB, free: 0.9023 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.034e-05/0.6459, allocations: 12 kB / 463.5 MB, free: 0.8906 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009998/0.6559, allocations: 1.981 MB / 465.5 MB, free: 14.82 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003033/0.659, allocations: 0.8776 MB / 466.3 MB, free: 13.86 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/0.6605, allocations: 309.5 kB / 466.6 MB, free: 13.55 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001808/0.6608, allocations: 20.72 kB / 466.7 MB, free: 13.54 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.224e-05/0.6609, allocations: 43.34 kB / 466.7 MB, free: 13.48 MB / 363.1 MB Notification: Performance of pre-optimization done (n=74): time 1.124e-05/0.6609, allocations: 4 kB / 466.7 MB, free: 13.48 MB / 363.1 MB Notification: Performance of matching and sorting (n=74): time 0.00614/0.6671, allocations: 0.8436 MB / 467.5 MB, free: 12.62 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005797/0.6677, allocations: 0.8213 MB / 468.4 MB, free: 11.6 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.6694, allocations: 0.4918 MB / 468.9 MB, free: 11.11 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003318/0.6698, allocations: 29.7 kB / 468.9 MB, free: 11.07 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005195/0.6704, allocations: 349.2 kB / 469.2 MB, free: 10.73 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005902/0.671, allocations: 248.2 kB / 469.5 MB, free: 10.48 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.991e-05/0.6711, allocations: 4 kB / 469.5 MB, free: 10.48 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0002224/0.6713, allocations: 338.8 kB / 469.8 MB, free: 10.14 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000999/0.6724, allocations: 209.5 kB / 470 MB, free: 9.934 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.6739, allocations: 469 kB / 470.5 MB, free: 9.379 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.6751, allocations: 246.8 kB / 470.7 MB, free: 9.141 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/0.6751, allocations: 4 kB / 470.7 MB, free: 9.137 MB / 363.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.005586/0.6808, allocations: 0.8505 MB / 471.6 MB, free: 8.266 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.681, allocations: 89.11 kB / 471.7 MB, free: 8.16 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.681, allocations: 0 / 471.7 MB, free: 8.16 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001631/0.6827, allocations: 207.2 kB / 471.9 MB, free: 7.945 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002104/0.6848, allocations: 143.8 kB / 472 MB, free: 7.805 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01446/0.6993, allocations: 6.044 MB / 478 MB, free: 1.309 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.7008, allocations: 91.62 kB / 478.1 MB, free: 1.219 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.701, allocations: 27.98 kB / 478.2 MB, free: 1.191 MB / 363.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: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 63 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003901/0.7014, allocations: 128.9 kB / 478.3 MB, free: 1.059 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003592/0.705, allocations: 0.8343 MB / 479.1 MB, free: 208 kB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003766/0.7054, allocations: 91.02 kB / 479.2 MB, free: 116 kB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.7057, allocations: 84.05 kB / 479.3 MB, free: 24 kB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.7057, allocations: 4 kB / 479.3 MB, free: 20 kB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.7057, allocations: 4 kB / 479.3 MB, free: 16 kB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003688/0.7094, allocations: 1.127 MB / 480.4 MB, free: 14.78 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006554/0.716, allocations: 1.735 MB / 482.2 MB, free: 12.99 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-05/0.7161, allocations: 3.984 kB / 482.2 MB, free: 12.98 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/0.7178, allocations: 147.8 kB / 482.3 MB, free: 12.84 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007757/0.7186, allocations: 162.5 kB / 482.5 MB, free: 12.67 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001347/0.7188, allocations: 7.984 kB / 482.5 MB, free: 12.66 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009727/0.7285, allocations: 4.642 MB / 487.1 MB, free: 7.68 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.7286, allocations: 288 / 487.1 MB, free: 7.68 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004439/0.733, allocations: 1.238 MB / 488.4 MB, free: 6.414 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007268/0.7338, allocations: 239.9 kB / 488.6 MB, free: 6.16 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.734, allocations: 7.953 kB / 488.6 MB, free: 6.152 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.7351, allocations: 43.97 kB / 488.6 MB, free: 6.109 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00029/0.7354, allocations: 64.67 kB / 488.7 MB, free: 6.043 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.627e-05/0.7355, allocations: 16 kB / 488.7 MB, free: 6.027 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0008136/0.7363, allocations: 391.2 kB / 489.1 MB, free: 5.652 MB / 379.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.7363, allocations: 0.75 kB / 489.1 MB, free: 5.652 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001505/0.7378, allocations: 271.5 kB / 489.4 MB, free: 5.387 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004745/0.7426, allocations: 1.795 MB / 491.2 MB, free: 3.555 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002638/0.7453, allocations: 1.174 MB / 492.3 MB, free: 2.305 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.7454, allocations: 4 kB / 492.3 MB, free: 2.301 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001977/0.7474, allocations: 0.6876 MB / 493 MB, free: 1.582 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.7491, allocations: 186.4 kB / 493.2 MB, free: 1.402 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00475/0.7539, allocations: 1.355 MB / 494.6 MB, free: 0 / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007615/0.7547, allocations: 0.9638 MB / 495.5 MB, free: 15 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007718/0.7556, allocations: 295.3 kB / 495.8 MB, free: 14.71 MB / 395.1 MB Notification: Performance of SimCode: time 1.343e-06/0.7556, allocations: 0 / 495.8 MB, free: 14.71 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.502/4.257, allocations: 24.26 MB / 0.5079 GB, free: 118 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat