Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003545, allocations: 8 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1086, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3488/0.4575, allocations: 66.09 MB / 338.2 MB, free: 6.711 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.4578, allocations: 74.14 kB / 338.3 MB, free: 6.672 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007169/0.465, allocations: 1.772 MB / 340.1 MB, free: 5.137 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4651, allocations: 0 / 340.1 MB, free: 5.137 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.4651, allocations: 4 kB / 340.1 MB, free: 5.133 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.0005024/0.4656, allocations: 370.8 kB / 340.4 MB, free: 4.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.4657, allocations: 12.03 kB / 340.4 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.063e-05/0.4657, allocations: 37.86 kB / 340.5 MB, free: 4.676 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.4659, allocations: 18.42 kB / 340.5 MB, free: 4.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.466, allocations: 173.5 kB / 340.7 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.4661, allocations: 11.64 kB / 340.7 MB, free: 4.445 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.4661, allocations: 11.98 kB / 340.7 MB, free: 4.434 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.4663, allocations: 78.17 kB / 340.8 MB, free: 4.371 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.4664, allocations: 0 / 340.8 MB, free: 4.371 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.4664, allocations: 2.938 kB / 340.8 MB, free: 4.371 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.4664, allocations: 4 kB / 340.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.4666, allocations: 58.92 kB / 340.8 MB, free: 4.324 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008742/0.4675, allocations: 407.3 kB / 341.2 MB, free: 3.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.4677, allocations: 63.81 kB / 341.3 MB, free: 3.867 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.4677, allocations: 4 kB / 341.3 MB, free: 3.863 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.4678, allocations: 37.56 kB / 341.3 MB, free: 3.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 2.525e-06/0.4678, allocations: 0 / 341.3 MB, free: 3.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002849/0.4681, allocations: 89.66 kB / 341.4 MB, free: 3.742 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.4681, allocations: 51.41 kB / 341.5 MB, free: 3.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.681e-05/0.4682, allocations: 100.2 kB / 341.6 MB, free: 3.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.4683, allocations: 27.45 kB / 341.6 MB, free: 3.547 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.687e-05/0.4683, allocations: 103.8 kB / 341.7 MB, free: 3.445 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.4684, allocations: 30.94 kB / 341.7 MB, free: 3.418 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.698e-06/0.4684, allocations: 11.38 kB / 341.7 MB, free: 3.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4685, allocations: 318.7 kB / 342 MB, free: 3.094 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.135e-05/0.4686, allocations: 23.23 kB / 342.1 MB, free: 3.078 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.36e-05/0.4687, allocations: 41.62 kB / 342.1 MB, free: 3.035 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.915e-05/0.4688, allocations: 26.62 kB / 342.1 MB, free: 3.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4688, allocations: 0 / 342.1 MB, free: 3.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002261/0.4691, allocations: 103.2 kB / 342.2 MB, free: 2.934 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.4691, allocations: 5.094 kB / 342.2 MB, free: 2.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.4691, allocations: 0 / 342.2 MB, free: 2.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.4691, allocations: 4 kB / 342.2 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.4694, allocations: 31.36 kB / 342.3 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.4694, allocations: 0 / 342.3 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.882e-05/0.4695, allocations: 11.84 kB / 342.3 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.4695, allocations: 4 kB / 342.3 MB, free: 2.883 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.0001121/0.4696, allocations: 128.1 kB / 342.4 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.579e-05/0.4697, allocations: 11.83 kB / 342.4 MB, free: 2.746 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.586e-05/0.4697, allocations: 11.69 kB / 342.4 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.4697, allocations: 0 / 342.4 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.4698, allocations: 0 / 342.4 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4698, allocations: 0 / 342.4 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002573/0.47, allocations: 188.2 kB / 342.6 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.47, allocations: 0.875 kB / 342.6 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.4703, allocations: 19.94 kB / 342.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.4703, allocations: 4 kB / 342.6 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.4703, allocations: 3.938 kB / 342.6 MB, free: 2.488 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.4703, allocations: 7.984 kB / 342.7 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4703, allocations: 256 / 342.7 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.4706, allocations: 192.3 kB / 342.8 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/0.4707, allocations: 81.09 kB / 342.9 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.4707, allocations: 8.031 kB / 342.9 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.952e-05/0.4708, allocations: 0 / 342.9 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.4708, allocations: 4 kB / 342.9 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.4709, allocations: 6.938 kB / 342.9 MB, free: 2.188 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.562e-05/0.4709, allocations: 90.33 kB / 343 MB, free: 2.102 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4709, allocations: 0 / 343 MB, free: 2.102 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003246/0.4713, allocations: 31.84 kB / 343.1 MB, free: 2.07 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.0005526/0.4718, allocations: 0.7216 MB / 343.8 MB, free: 1.348 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001846/0.472, allocations: 62.83 kB / 343.8 MB, free: 1.301 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.472, allocations: 0 / 343.8 MB, free: 1.301 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.769e-05/0.4721, allocations: 27.36 kB / 343.9 MB, free: 1.277 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.4724, allocations: 3.969 kB / 343.9 MB, free: 1.277 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.4737, allocations: 0.9025 MB / 344.8 MB, free: 348 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.4741, allocations: 0.6965 MB / 345.5 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.161e-05/0.4742, allocations: 11.94 kB / 345.5 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.977e-05/0.4743, allocations: 21.19 kB / 345.5 MB, free: 15.59 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4743, allocations: 0 / 345.5 MB, free: 15.59 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02033/0.4946, allocations: 1.52 MB / 347 MB, free: 14.12 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003759/0.4951, allocations: 174.8 kB / 347.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.581/3.076, allocations: 0 / 347.2 MB, free: 13.89 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat