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.002383/0.002388, allocations: 181.2 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.173/2.173, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001128/0.001128, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.27e-05/3.3e-05, allocations: 3.938 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4183/0.5243, allocations: 82.3 MB / 451.5 MB, free: 10.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.5246, allocations: 72.56 kB / 451.5 MB, free: 10.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07316/0.5978, allocations: 16.45 MB / 468 MB, free: 12.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5979, allocations: 0 / 468 MB, free: 12.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.462e-05/0.598, allocations: 20 kB / 468 MB, free: 12.21 MB / 346.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.003424/0.6014, allocations: 1.069 MB / 469.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.6015, allocations: 8.25 kB / 469.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003284/0.6018, allocations: 123.6 kB / 469.2 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000369/0.6022, allocations: 110.8 kB / 469.3 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.6038, allocations: 0.5284 MB / 469.8 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003388/0.6041, allocations: 150.3 kB / 470 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002023/0.6043, allocations: 59.91 kB / 470.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002003/0.6064, allocations: 0.8003 MB / 470.9 MB, free: 9.133 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.6064, allocations: 3.938 kB / 470.9 MB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.6066, allocations: 32 kB / 470.9 MB, free: 9.098 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.6066, allocations: 12 kB / 470.9 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.6082, allocations: 0.5011 MB / 471.4 MB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006838/0.6151, allocations: 2.131 MB / 473.5 MB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00193/0.6171, allocations: 0.901 MB / 474.4 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009/0.618, allocations: 339 kB / 474.8 MB, free: 5.031 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001426/0.6182, allocations: 16.7 kB / 474.8 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.623e-05/0.6183, allocations: 51.34 kB / 474.8 MB, free: 4.953 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 3.707e-06/0.6183, allocations: 0 / 474.8 MB, free: 4.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.003873/0.6222, allocations: 0.8851 MB / 475.7 MB, free: 4.051 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004582/0.6227, allocations: 0.8273 MB / 476.5 MB, free: 3.023 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.6239, allocations: 0.5505 MB / 477.1 MB, free: 2.465 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002377/0.6242, allocations: 45.7 kB / 477.1 MB, free: 2.414 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003451/0.6245, allocations: 353.3 kB / 477.5 MB, free: 2.066 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003654/0.6249, allocations: 264.1 kB / 477.7 MB, free: 1.805 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.621e-05/0.625, allocations: 19.94 kB / 477.8 MB, free: 1.785 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6252, allocations: 338.7 kB / 478.1 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007062/0.6259, allocations: 225.5 kB / 478.3 MB, free: 1.227 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.627, allocations: 497.8 kB / 478.8 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008546/0.6279, allocations: 349.8 kB / 479.1 MB, free: 292 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.6279, allocations: 0 / 479.1 MB, free: 292 kB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003861/0.6317, allocations: 0.9807 MB / 480.1 MB, free: 15.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.998e-05/0.6319, allocations: 89.09 kB / 480.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.6319, allocations: 4 kB / 480.2 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.633, allocations: 215.2 kB / 480.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.6343, allocations: 143.8 kB / 480.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.6445, allocations: 6.232 MB / 486.8 MB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.646, allocations: 115.4 kB / 486.9 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.6461, allocations: 24 kB / 486.9 MB, free: 7.898 MB / 362.7 MB 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.0003351/0.6465, allocations: 156.9 kB / 487.1 MB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/0.6467, allocations: 83.06 kB / 487.2 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003007/0.647, allocations: 104 kB / 487.3 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.6471, allocations: 8 kB / 487.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.926e-06/0.6471, allocations: 0 / 487.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003453/0.6505, allocations: 1.17 MB / 488.4 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006185/0.6568, allocations: 1.878 MB / 490.3 MB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.6568, allocations: 4 kB / 490.3 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00149/0.6583, allocations: 147.8 kB / 490.5 MB, free: 4.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008011/0.6592, allocations: 170.5 kB / 490.6 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/0.6593, allocations: 16.17 kB / 490.7 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008779/0.6681, allocations: 4.79 MB / 495.4 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.6682, allocations: 0 / 495.4 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004735/0.6729, allocations: 1.293 MB / 496.7 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006703/0.6737, allocations: 243.9 kB / 497 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/0.6739, allocations: 24.12 kB / 497 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.6749, allocations: 63.83 kB / 497.1 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000284/0.6752, allocations: 64.69 kB / 497.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.929e-05/0.6753, allocations: 16 kB / 497.1 MB, free: 13.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009335/0.6762, allocations: 447.2 kB / 497.6 MB, free: 12.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6763, allocations: 0 / 497.6 MB, free: 12.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001418/0.6777, allocations: 287.7 kB / 497.9 MB, free: 12.32 MB / 378.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.006179/0.6839, allocations: 1.865 MB / 499.7 MB, free: 10.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002849/0.6868, allocations: 1.239 MB / 0.4892 GB, free: 9.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/0.6869, allocations: 4 kB / 0.4892 GB, free: 9.086 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00208/0.689, allocations: 0.7306 MB / 0.4899 GB, free: 8.316 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/0.6907, allocations: 218.2 kB / 0.4901 GB, free: 8.109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006674/0.6974, allocations: 1.428 MB / 0.4915 GB, free: 6.633 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001226/0.6988, allocations: 0.9636 MB / 0.4925 GB, free: 5.645 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007983/0.6996, allocations: 303.3 kB / 0.4928 GB, free: 5.348 MB / 378.7 MB Notification: Performance of SimCode: time 1.523e-06/0.6996, allocations: 0 / 0.4928 GB, free: 5.348 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.278/3.978, allocations: 24.76 MB / 0.5169 GB, free: 12.52 MB / 410.7 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