Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 221.3 MB / 235.5 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009674, allocations: 102.3 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.753e-05/2.771e-05, allocations: 7.984 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 50.41 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3334/0.4365, allocations: 76.43 MB / 470.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.4367, allocations: 63.97 kB / 470.8 MB, free: 10.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00484/0.4416, allocations: 1.776 MB / 472.6 MB, free: 9.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4416, allocations: 0 / 472.6 MB, free: 9.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.4416, allocations: 4 kB / 472.6 MB, free: 9.227 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003967/0.442, allocations: 369 kB / 473 MB, free: 8.824 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.4421, allocations: 8.031 kB / 473 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.237e-05/0.4421, allocations: 42.55 kB / 473 MB, free: 8.766 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.4423, allocations: 11.91 kB / 473 MB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.4424, allocations: 171 kB / 473.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.4424, allocations: 4 kB / 473.2 MB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.171e-05/0.4425, allocations: 15.98 kB / 473.2 MB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.4427, allocations: 88.25 kB / 473.3 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.4427, allocations: 0 / 473.3 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.4427, allocations: 4 kB / 473.3 MB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.4427, allocations: 4 kB / 473.3 MB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.4428, allocations: 47.98 kB / 473.4 MB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006824/0.4435, allocations: 396.6 kB / 473.8 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.4437, allocations: 82.44 kB / 473.8 MB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.46e-05/0.4437, allocations: 36.86 kB / 473.9 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.4438, allocations: 0 / 473.9 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.4438, allocations: 30.56 kB / 473.9 MB, free: 7.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.4438, allocations: 0 / 473.9 MB, free: 7.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001817/0.444, allocations: 73.59 kB / 474 MB, free: 7.699 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.444, allocations: 51.41 kB / 474 MB, free: 7.637 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.995e-05/0.4441, allocations: 108.9 kB / 474.1 MB, free: 7.523 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.4441, allocations: 25.7 kB / 474.2 MB, free: 7.492 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.208e-05/0.4442, allocations: 103.8 kB / 474.3 MB, free: 7.387 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.4442, allocations: 35.69 kB / 474.3 MB, free: 7.352 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-06/0.4442, allocations: 0 / 474.3 MB, free: 7.352 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.4444, allocations: 318.8 kB / 474.6 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.61e-05/0.4444, allocations: 24 kB / 474.6 MB, free: 7.008 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.103e-05/0.4445, allocations: 38.58 kB / 474.7 MB, free: 6.961 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.665e-05/0.4445, allocations: 31.92 kB / 474.7 MB, free: 6.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4446, allocations: 0 / 474.7 MB, free: 6.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001465/0.4447, allocations: 101.6 kB / 474.8 MB, free: 6.824 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.4447, allocations: 9.406 kB / 474.8 MB, free: 6.816 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.4447, allocations: 0 / 474.8 MB, free: 6.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.4448, allocations: 0 / 474.8 MB, free: 6.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.4449, allocations: 27.92 kB / 474.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.4449, allocations: 8.062 kB / 474.8 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.558e-05/0.445, allocations: 11.84 kB / 474.8 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.445, allocations: 4 kB / 474.9 MB, free: 6.766 MB / 346.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 6.625e-05/0.4451, allocations: 105 kB / 475 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.4451, allocations: 11.86 kB / 475 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.042e-05/0.4451, allocations: 16.61 kB / 475 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.4451, allocations: 0 / 475 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.4452, allocations: 256 / 475 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.4452, allocations: 7.938 kB / 475 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001892/0.4454, allocations: 185.6 kB / 475.2 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4454, allocations: 4 kB / 475.2 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.4455, allocations: 16 kB / 475.2 MB, free: 6.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.4455, allocations: 0 / 475.2 MB, free: 6.367 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.4455, allocations: 7.891 kB / 475.2 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4455, allocations: 0 / 475.2 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4455, allocations: 0 / 475.2 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002149/0.4457, allocations: 199.4 kB / 475.4 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.4458, allocations: 77.11 kB / 475.5 MB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.4458, allocations: 7.984 kB / 475.5 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.196e-05/0.4459, allocations: 7.984 kB / 475.5 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.641e-05/0.4459, allocations: 3.984 kB / 475.5 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.4459, allocations: 4 kB / 475.5 MB, free: 6.031 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.512e-05/0.446, allocations: 83.28 kB / 475.6 MB, free: 5.949 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.446, allocations: 0 / 475.6 MB, free: 5.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002326/0.4462, allocations: 31.84 kB / 475.6 MB, free: 5.918 MB / 346.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.0004815/0.4467, allocations: 0.7281 MB / 476.3 MB, free: 5.164 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.4468, allocations: 53.25 kB / 476.4 MB, free: 5.113 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4468, allocations: 4 kB / 476.4 MB, free: 5.109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.25e-05/0.4469, allocations: 23.94 kB / 476.4 MB, free: 5.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.4471, allocations: 4.141 kB / 476.4 MB, free: 5.082 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006521/0.4477, allocations: 287 kB / 476.7 MB, free: 4.766 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.448, allocations: 0.7004 MB / 477.4 MB, free: 4.039 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.726e-05/0.4481, allocations: 7.984 kB / 477.4 MB, free: 4.031 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.4481, allocations: 19.44 kB / 477.4 MB, free: 4.012 MB / 346.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4481, allocations: 0 / 477.4 MB, free: 4.012 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0131/0.4612, allocations: 1.516 MB / 478.9 MB, free: 2.613 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/0.4615, allocations: 154 kB / 479.1 MB, free: 2.391 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.527/1.989, allocations: 64 / 479.1 MB, free: 2.391 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat