Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",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.001588/0.001588, allocations: 181.3 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.194/2.194, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001136/0.001136, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.525e-05/3.549e-05, allocations: 7.984 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1058, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4394/0.5453, allocations: 75.56 MB / 444.7 MB, free: 1.566 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.5456, allocations: 68.72 kB / 444.8 MB, free: 1.531 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007609/0.5532, allocations: 1.793 MB / 446.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5533, allocations: 0 / 446.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.5533, allocations: 0 / 446.6 MB, free: 15.99 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004991/0.5538, allocations: 363 kB / 447 MB, free: 15.6 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.5539, allocations: 8.031 kB / 447 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.914e-05/0.554, allocations: 47.11 kB / 447 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.5541, allocations: 11.91 kB / 447 MB, free: 15.53 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.5543, allocations: 171 kB / 447.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.5543, allocations: 11.83 kB / 447.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.5543, allocations: 8 kB / 447.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.5546, allocations: 77.59 kB / 447.3 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.5546, allocations: 4 kB / 447.3 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.5546, allocations: 3.812 kB / 447.3 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.5546, allocations: 0 / 447.3 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001703/0.5548, allocations: 59.31 kB / 447.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009183/0.5558, allocations: 410.5 kB / 447.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001793/0.556, allocations: 66.12 kB / 447.8 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.109e-05/0.5561, allocations: 28.67 kB / 447.8 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.5561, allocations: 8 kB / 447.9 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.5561, allocations: 31.33 kB / 447.9 MB, free: 14.67 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 2.224e-06/0.5561, allocations: 0 / 447.9 MB, free: 14.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002512/0.5564, allocations: 81.11 kB / 448 MB, free: 14.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.5565, allocations: 51.41 kB / 448 MB, free: 14.53 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.798e-05/0.5566, allocations: 100.7 kB / 448.1 MB, free: 14.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.5566, allocations: 29.27 kB / 448.1 MB, free: 14.4 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.5567, allocations: 166.8 kB / 448.3 MB, free: 14.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.149e-05/0.5568, allocations: 41.55 kB / 448.3 MB, free: 14.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.5568, allocations: 0 / 448.3 MB, free: 14.2 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.557, allocations: 322.6 kB / 448.7 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.846e-05/0.5571, allocations: 19.44 kB / 448.7 MB, free: 13.87 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.042e-05/0.5572, allocations: 42.31 kB / 448.7 MB, free: 13.83 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.49e-05/0.5573, allocations: 27.61 kB / 448.7 MB, free: 13.81 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.5573, allocations: 4 kB / 448.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002397/0.5575, allocations: 100.8 kB / 448.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.5576, allocations: 4 kB / 448.9 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.5576, allocations: 0 / 448.9 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.5576, allocations: 4 kB / 448.9 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.5578, allocations: 27.92 kB / 448.9 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.5579, allocations: 0 / 448.9 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.558, allocations: 15.66 kB / 448.9 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.558, allocations: 8.062 kB / 448.9 MB, free: 13.66 MB / 330.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 (13): * Single equations (assignments): 13 * 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 prepare postOptimizeDAE: time 0.0001047/0.5581, allocations: 108.8 kB / 449 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.453e-05/0.5582, allocations: 7.906 kB / 449 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.154e-05/0.5583, allocations: 8.375 kB / 449 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.5583, allocations: 4 kB / 449 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.882e-05/0.5584, allocations: 3.984 kB / 449 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.5584, allocations: 3.938 kB / 449 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.5587, allocations: 181.2 kB / 449.2 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5587, allocations: 0 / 449.2 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.5589, allocations: 23.8 kB / 449.2 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.5589, allocations: 4 kB / 449.2 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.5589, allocations: 4 kB / 449.2 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.559, allocations: 0 / 449.2 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.559, allocations: 0 / 449.2 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003137/0.5593, allocations: 194.7 kB / 449.4 MB, free: 13.1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.965e-05/0.5594, allocations: 81.14 kB / 449.5 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.535e-05/0.5594, allocations: 256 / 449.5 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.5595, allocations: 11.44 kB / 449.5 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.5596, allocations: 15.92 kB / 449.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.5596, allocations: 0 / 449.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.809e-05/0.5597, allocations: 86.41 kB / 449.6 MB, free: 12.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.5597, allocations: 0 / 449.6 MB, free: 12.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003393/0.5601, allocations: 31.09 kB / 449.7 MB, free: 12.87 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0006545/0.5607, allocations: 0.7214 MB / 450.4 MB, free: 12.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002005/0.5609, allocations: 58.3 kB / 450.4 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.561, allocations: 0 / 450.4 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.637e-05/0.561, allocations: 30.12 kB / 450.5 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.5613, allocations: 7.391 kB / 450.5 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009527/0.5623, allocations: 317.4 kB / 450.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.5626, allocations: 0.6965 MB / 451.5 MB, free: 11 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.604e-05/0.5627, allocations: 21.81 kB / 451.5 MB, free: 10.99 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5627, allocations: 0 / 451.5 MB, free: 10.99 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.467/3.03, allocations: 1.349 MB / 452.9 MB, free: 9.656 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat