Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.784/1.784, allocations: 171.1 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003662, allocations: 11.98 kB / 233.3 MB, free: 2.914 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08186/0.08227, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3396/0.4219, allocations: 66.1 MB / 338.2 MB, free: 7.391 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.4222, allocations: 69.28 kB / 338.3 MB, free: 7.355 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007125/0.4294, allocations: 1.765 MB / 340 MB, free: 5.832 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4294, allocations: 4 kB / 340 MB, free: 5.828 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.4295, allocations: 4 kB / 340 MB, free: 5.824 MB / 266.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.0005574/0.43, allocations: 365.2 kB / 340.4 MB, free: 5.426 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.4301, allocations: 12.03 kB / 340.4 MB, free: 5.414 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.123e-05/0.4302, allocations: 39.86 kB / 340.5 MB, free: 5.371 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.4303, allocations: 11.91 kB / 340.5 MB, free: 5.359 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.4305, allocations: 169.4 kB / 340.6 MB, free: 5.156 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.4305, allocations: 11.02 kB / 340.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.4305, allocations: 14.69 kB / 340.7 MB, free: 5.137 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002329/0.4308, allocations: 80.22 kB / 340.7 MB, free: 5.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.4308, allocations: 7.922 kB / 340.7 MB, free: 5.062 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.4308, allocations: 7.312 kB / 340.7 MB, free: 5.062 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.4309, allocations: 4 kB / 340.7 MB, free: 5.059 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.431, allocations: 56.55 kB / 340.8 MB, free: 5.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009146/0.432, allocations: 399 kB / 341.2 MB, free: 4.625 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.4322, allocations: 75.34 kB / 341.3 MB, free: 4.559 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.4322, allocations: 4 kB / 341.3 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.4322, allocations: 33.81 kB / 341.3 MB, free: 4.516 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 2.615e-06/0.4322, allocations: 0 / 341.3 MB, free: 4.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002867/0.4325, allocations: 94.48 kB / 341.4 MB, free: 4.434 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.4326, allocations: 55.34 kB / 341.5 MB, free: 4.367 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.575e-05/0.4327, allocations: 96.8 kB / 341.5 MB, free: 4.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.4327, allocations: 29.7 kB / 341.6 MB, free: 4.234 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.013e-05/0.4328, allocations: 170 kB / 341.7 MB, free: 4.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.279e-05/0.4329, allocations: 26.69 kB / 341.8 MB, free: 4.047 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.155e-05/0.4329, allocations: 7.125 kB / 341.8 MB, free: 4.043 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.433, allocations: 318.8 kB / 342.1 MB, free: 3.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.487e-05/0.4331, allocations: 26.25 kB / 342.1 MB, free: 3.707 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.231e-05/0.4332, allocations: 40.94 kB / 342.2 MB, free: 3.664 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.057e-05/0.4333, allocations: 33.92 kB / 342.2 MB, free: 3.645 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4333, allocations: 0 / 342.2 MB, free: 3.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002256/0.4335, allocations: 94.75 kB / 342.3 MB, free: 3.566 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.4336, allocations: 8 kB / 342.3 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.4336, allocations: 0 / 342.3 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.4336, allocations: 4.062 kB / 342.3 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.4339, allocations: 27.92 kB / 342.3 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.4339, allocations: 4 kB / 342.3 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.963e-05/0.434, allocations: 15.72 kB / 342.3 MB, free: 3.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.434, allocations: 4 kB / 342.3 MB, free: 3.508 MB / 266.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 () * Number of clocked 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.0001105/0.4341, allocations: 123.3 kB / 342.5 MB, free: 3.387 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.4342, allocations: 3.938 kB / 342.5 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.533e-05/0.4342, allocations: 11.31 kB / 342.5 MB, free: 3.371 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.4342, allocations: 7.984 kB / 342.5 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.4343, allocations: 0 / 342.5 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.4343, allocations: 0 / 342.5 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002638/0.4345, allocations: 191.8 kB / 342.7 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.4346, allocations: 3.984 kB / 342.7 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001887/0.4348, allocations: 19.94 kB / 342.7 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.4348, allocations: 0 / 342.7 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.4348, allocations: 4 kB / 342.7 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4348, allocations: 0 / 342.7 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4348, allocations: 0 / 342.7 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.4351, allocations: 196.9 kB / 342.9 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.009e-05/0.4352, allocations: 81.02 kB / 343 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/0.4352, allocations: 6.969 kB / 343 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.175e-05/0.4353, allocations: 4.797 kB / 343 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.972e-05/0.4353, allocations: 4 kB / 343 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.4354, allocations: 2.375 kB / 343 MB, free: 2.816 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.655e-05/0.4354, allocations: 86.7 kB / 343.1 MB, free: 2.734 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.166e-06/0.4354, allocations: 4.062 kB / 343.1 MB, free: 2.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003284/0.4358, allocations: 31.88 kB / 343.1 MB, free: 2.699 MB / 266.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 () * Number of clocked 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.0005702/0.4364, allocations: 0.727 MB / 343.8 MB, free: 1.973 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000199/0.4366, allocations: 60.03 kB / 343.9 MB, free: 1.926 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.4366, allocations: 4.188 kB / 343.9 MB, free: 1.922 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.612e-05/0.4367, allocations: 26.73 kB / 343.9 MB, free: 1.902 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.4369, allocations: 4 kB / 343.9 MB, free: 1.898 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.4383, allocations: 0.9221 MB / 344.8 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.4386, allocations: 0.7043 MB / 345.6 MB, free: 208 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.184e-05/0.4387, allocations: 22.06 kB / 345.6 MB, free: 196 kB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4387, allocations: 4 kB / 345.6 MB, free: 192 kB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.34/2.778, allocations: 1.321 MB / 346.9 MB, free: 14.88 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat