Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_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.001371/0.001371, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.984/1.984, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008923/0.0008923, allocations: 98.34 kB / 262.5 MB, free: 1.602 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.199e-05/2.203e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1154, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3887/0.5042, allocations: 81.89 MB / 445 MB, free: 13.5 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.5046, allocations: 69.09 kB / 445.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0424/0.547, allocations: 16.26 MB / 461.4 MB, free: 116 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.547, allocations: 0 / 461.4 MB, free: 116 kB / 330.7 MB Notification: Performance of Transformations before backend: time 4.315e-05/0.5471, allocations: 20 kB / 461.4 MB, free: 96 kB / 330.7 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.001908/0.549, allocations: 1.07 MB / 462.5 MB, free: 15.01 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.549, allocations: 8.031 kB / 462.5 MB, free: 15 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.5492, allocations: 114.7 kB / 462.6 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008368/0.5501, allocations: 0.5341 MB / 463.1 MB, free: 14.4 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.5503, allocations: 130.4 kB / 463.2 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.8e-05/0.5504, allocations: 43.48 kB / 463.3 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008171/0.5512, allocations: 475.6 kB / 463.7 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009438/0.5522, allocations: 0.693 MB / 464.4 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.5522, allocations: 7.938 kB / 464.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.051e-05/0.5522, allocations: 0 / 464.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.5523, allocations: 15.94 kB / 464.5 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003036/0.5553, allocations: 1.973 MB / 466.4 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009642/0.5563, allocations: 0.8757 MB / 467.3 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003944/0.5567, allocations: 304.4 kB / 467.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.687e-05/0.5568, allocations: 24.03 kB / 467.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.682e-05/0.5568, allocations: 46.09 kB / 467.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 1.994e-06/0.5568, allocations: 0 / 467.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.001966/0.5588, allocations: 0.8397 MB / 468.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003446/0.5592, allocations: 0.8263 MB / 469.3 MB, free: 9.055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005875/0.5598, allocations: 0.4894 MB / 469.8 MB, free: 8.684 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.471e-05/0.5598, allocations: 32.77 kB / 469.9 MB, free: 8.648 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.5601, allocations: 335.5 kB / 470.2 MB, free: 8.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.5603, allocations: 251 kB / 470.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.5603, allocations: 0 / 470.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.5605, allocations: 380.2 kB / 470.8 MB, free: 7.875 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003289/0.5608, allocations: 208.6 kB / 471 MB, free: 7.758 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005485/0.5614, allocations: 476.7 kB / 471.5 MB, free: 7.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000428/0.5618, allocations: 245.8 kB / 471.7 MB, free: 7.168 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.5618, allocations: 0 / 471.7 MB, free: 7.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001972/0.5638, allocations: 0.8967 MB / 472.6 MB, free: 6.457 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.629e-05/0.5639, allocations: 85.09 kB / 472.7 MB, free: 6.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.5639, allocations: 0 / 472.7 MB, free: 6.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006014/0.5645, allocations: 210.2 kB / 472.9 MB, free: 6.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006876/0.5652, allocations: 147.7 kB / 473.1 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006282/0.5715, allocations: 6.04 MB / 479.1 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009467/0.5725, allocations: 87.67 kB / 479.2 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-05/0.5726, allocations: 34.42 kB / 479.2 MB, free: 0 / 346.7 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.0003223/0.5729, allocations: 125.5 kB / 479.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001922/0.5748, allocations: 0.8404 MB / 480.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.575, allocations: 87.02 kB / 480.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002303/0.5752, allocations: 76.05 kB / 480.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.5752, allocations: 8 kB / 480.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.5753, allocations: 3.938 kB / 480.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001808/0.5771, allocations: 1.131 MB / 481.5 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/0.5803, allocations: 1.738 MB / 483.2 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.5804, allocations: 0 / 483.2 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006824/0.5811, allocations: 147.8 kB / 483.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004165/0.5815, allocations: 162.5 kB / 483.5 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.484e-05/0.5815, allocations: 7.984 kB / 483.5 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004964/0.5865, allocations: 4.643 MB / 488.2 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.5865, allocations: 4.125 kB / 488.2 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002412/0.589, allocations: 1.238 MB / 489.4 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003937/0.5894, allocations: 235.9 kB / 489.6 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.5895, allocations: 7.953 kB / 489.6 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005224/0.59, allocations: 43.97 kB / 489.7 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.5902, allocations: 60.67 kB / 489.7 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-05/0.5902, allocations: 24 kB / 489.8 MB, free: 5.016 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005027/0.5907, allocations: 387.2 kB / 490.2 MB, free: 4.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5907, allocations: 0 / 490.2 MB, free: 4.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008839/0.5916, allocations: 259.6 kB / 490.4 MB, free: 4.391 MB / 362.7 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.002598/0.5942, allocations: 1.806 MB / 492.2 MB, free: 2.547 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.5957, allocations: 1.174 MB / 493.4 MB, free: 1.297 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5957, allocations: 0 / 493.4 MB, free: 1.297 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009906/0.5967, allocations: 0.6915 MB / 494.1 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008458/0.5976, allocations: 200.9 kB / 494.3 MB, free: 388 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.6001, allocations: 1.318 MB / 495.6 MB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.6006, allocations: 0.9599 MB / 496.5 MB, free: 14.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003637/0.601, allocations: 90.02 kB / 496.6 MB, free: 13.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003697/0.6013, allocations: 287.3 kB / 496.9 MB, free: 13.65 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.6013, allocations: 0 / 496.9 MB, free: 13.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05479/0.6561, allocations: 20.62 MB / 0.5054 GB, free: 8.996 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.6564, allocations: 135.2 kB / 0.5055 GB, free: 8.805 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.852/3.508, allocations: 0 / 0.5055 GB, free: 8.805 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat