Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_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.001614/0.001614, allocations: 178.4 kB / 8.698 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.903/1.903, allocations: 205.3 MB / 214.4 MB, free: 1.742 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.001039/0.001039, allocations: 82.72 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.55e-05/1.592e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1006, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3755/0.4762, allocations: 75.13 MB / 438.3 MB, free: 4.484 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.4765, allocations: 68.59 kB / 438.4 MB, free: 4.449 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00635/0.4829, allocations: 1.783 MB / 440.1 MB, free: 2.938 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4829, allocations: 0 / 440.1 MB, free: 2.938 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.483, allocations: 4 kB / 440.1 MB, free: 2.934 MB / 314.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.0005346/0.4835, allocations: 358.8 kB / 440.5 MB, free: 2.543 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.139e-05/0.4836, allocations: 8.031 kB / 440.5 MB, free: 2.535 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/0.4838, allocations: 17.66 kB / 440.5 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001679/0.4839, allocations: 167 kB / 440.7 MB, free: 2.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.484, allocations: 4 kB / 440.7 MB, free: 2.316 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.484, allocations: 11.95 kB / 440.7 MB, free: 2.305 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001739/0.4842, allocations: 46.61 kB / 440.7 MB, free: 2.273 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001699/0.4844, allocations: 69.11 kB / 440.8 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.4844, allocations: 4 kB / 440.8 MB, free: 2.207 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.4844, allocations: 0 / 440.8 MB, free: 2.207 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.4845, allocations: 0 / 440.8 MB, free: 2.207 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000835/0.4853, allocations: 373 kB / 441.2 MB, free: 1.848 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.4855, allocations: 69.25 kB / 441.2 MB, free: 1.785 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.15e-05/0.4856, allocations: 35.59 kB / 441.3 MB, free: 1.758 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.4856, allocations: 0 / 441.3 MB, free: 1.758 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.4856, allocations: 34.5 kB / 441.3 MB, free: 1.715 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.4856, allocations: 4.766 kB / 441.3 MB, free: 1.711 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002384/0.4859, allocations: 71.53 kB / 441.4 MB, free: 1.645 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.4859, allocations: 51.41 kB / 441.4 MB, free: 1.582 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.4861, allocations: 100.6 kB / 441.5 MB, free: 1.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.4861, allocations: 25.7 kB / 441.6 MB, free: 1.449 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.154e-05/0.4862, allocations: 103.9 kB / 441.7 MB, free: 1.348 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.424e-05/0.4862, allocations: 31.11 kB / 441.7 MB, free: 1.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-06/0.4862, allocations: 2.078 kB / 441.7 MB, free: 1.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.4864, allocations: 318.2 kB / 442 MB, free: 1.004 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.181e-05/0.4865, allocations: 19.31 kB / 442 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.695e-05/0.4866, allocations: 33.7 kB / 442.1 MB, free: 0.957 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.78e-05/0.4867, allocations: 26.3 kB / 442.1 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4867, allocations: 4 kB / 442.1 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002111/0.4869, allocations: 91.58 kB / 442.2 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.4869, allocations: 16.05 kB / 442.2 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4869, allocations: 0 / 442.2 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.487, allocations: 3.75 kB / 442.2 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.4872, allocations: 23.94 kB / 442.2 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.4872, allocations: 4 kB / 442.2 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.594e-05/0.4873, allocations: 15.83 kB / 442.2 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.4873, allocations: 0 / 442.2 MB, free: 0.7969 MB / 314.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.0001032/0.4874, allocations: 108 kB / 442.3 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001445/0.4876, allocations: 76.86 kB / 442.4 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.662e-05/0.4876, allocations: 4 kB / 442.4 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.255e-05/0.4877, allocations: 8.562 kB / 442.4 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.4877, allocations: 3.984 kB / 442.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4877, allocations: 0 / 442.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.4877, allocations: 0 / 442.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002373/0.488, allocations: 164.6 kB / 442.6 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.488, allocations: 3.984 kB / 442.6 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/0.4882, allocations: 16 kB / 442.6 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.4882, allocations: 3.953 kB / 442.6 MB, free: 396 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.4882, allocations: 0 / 442.6 MB, free: 396 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4882, allocations: 4 kB / 442.6 MB, free: 392 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4882, allocations: 0 / 442.6 MB, free: 392 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002543/0.4885, allocations: 180.4 kB / 442.8 MB, free: 212 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.765e-05/0.4885, allocations: 84.95 kB / 442.9 MB, free: 108 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.4886, allocations: 3.953 kB / 442.9 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.4887, allocations: 11.03 kB / 442.9 MB, free: 96 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.614e-05/0.4887, allocations: 7.922 kB / 442.9 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.4887, allocations: 8.062 kB / 442.9 MB, free: 80 kB / 314.7 MB Notification: Performance of sorting global known variables: time 6e-05/0.4888, allocations: 83.03 kB / 443 MB, free: 0 / 314.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4888, allocations: 0 / 443 MB, free: 0 / 314.7 MB Notification: Performance of remove unused functions: time 0.0004236/0.4893, allocations: 19.98 kB / 443 MB, free: 15.98 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.0005608/0.4898, allocations: 0.713 MB / 443.7 MB, free: 15.26 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001641/0.49, allocations: 54.8 kB / 443.8 MB, free: 15.22 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.49, allocations: 0 / 443.8 MB, free: 15.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.367e-05/0.4901, allocations: 25.69 kB / 443.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.4904, allocations: 7.953 kB / 443.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.4914, allocations: 266.8 kB / 444.1 MB, free: 14.9 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.4918, allocations: 0.7001 MB / 444.8 MB, free: 14.18 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.628e-05/0.4919, allocations: 7.953 kB / 444.8 MB, free: 14.17 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.771e-05/0.4919, allocations: 26.86 kB / 444.8 MB, free: 14.15 MB / 330.7 MB Notification: Performance of SimCode: time 8.12e-07/0.492, allocations: 4 kB / 444.8 MB, free: 14.15 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02132/0.5133, allocations: 1.215 MB / 446 MB, free: 12.93 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002726/0.5136, allocations: 136.7 kB / 446.2 MB, free: 12.74 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.536/2.05, allocations: 0 / 446.2 MB, free: 12.74 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat