Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.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.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.647/1.647, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003596, allocations: 8 kB / 233.3 MB, free: 0.8359 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08442/0.08481, allocations: 38.77 MB / 272.1 MB, free: 9.984 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3417/0.4266, allocations: 67.53 MB / 339.6 MB, free: 15.38 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.427, allocations: 71.95 kB / 339.7 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0168/0.4438, allocations: 3.694 MB / 343.4 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.831e-06/0.4439, allocations: 4 kB / 343.4 MB, free: 11.61 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.143e-05/0.4439, allocations: 4 kB / 343.4 MB, free: 11.61 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.00103/0.4449, allocations: 0.4989 MB / 343.9 MB, free: 11.06 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.445, allocations: 11.97 kB / 343.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.74e-05/0.4451, allocations: 54.55 kB / 344 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.723e-05/0.4452, allocations: 23.72 kB / 344 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003392/0.4455, allocations: 235.1 kB / 344.2 MB, free: 10.69 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.4456, allocations: 16.44 kB / 344.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.035e-05/0.4456, allocations: 16 kB / 344.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006497/0.4463, allocations: 217.8 kB / 344.5 MB, free: 10.44 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.4464, allocations: 8 kB / 344.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.481e-05/0.4464, allocations: 4 kB / 344.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.4464, allocations: 4 kB / 344.5 MB, free: 10.42 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005768/0.447, allocations: 168.4 kB / 344.6 MB, free: 10.26 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.449, allocations: 0.8035 MB / 345.4 MB, free: 9.387 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006496/0.4497, allocations: 201.5 kB / 345.6 MB, free: 9.172 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.4497, allocations: 7.984 kB / 345.7 MB, free: 9.164 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.4498, allocations: 34.56 kB / 345.7 MB, free: 9.121 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 6.512e-06/0.4498, allocations: 0 / 345.7 MB, free: 9.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.002487/0.4523, allocations: 0.8904 MB / 346.6 MB, free: 8.141 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.4524, allocations: 81.11 kB / 346.7 MB, free: 8.043 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.4526, allocations: 165.7 kB / 346.8 MB, free: 7.871 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.4527, allocations: 29.7 kB / 346.8 MB, free: 7.836 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.4528, allocations: 202.7 kB / 347 MB, free: 7.637 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.4529, allocations: 94.64 kB / 347.1 MB, free: 7.543 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.706e-05/0.4529, allocations: 8 kB / 347.1 MB, free: 7.535 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4531, allocations: 326.8 kB / 347.5 MB, free: 7.207 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000255/0.4534, allocations: 59.97 kB / 347.5 MB, free: 7.148 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.4537, allocations: 120.2 kB / 347.6 MB, free: 7.016 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.454, allocations: 78.91 kB / 347.7 MB, free: 6.941 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.454, allocations: 0 / 347.7 MB, free: 6.941 MB / 282.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007392/0.4547, allocations: 245.6 kB / 348 MB, free: 6.695 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.4548, allocations: 4 kB / 348 MB, free: 6.691 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.4548, allocations: 4 kB / 348 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.4548, allocations: 3.953 kB / 348 MB, free: 6.684 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004835/0.4553, allocations: 67.91 kB / 348 MB, free: 6.617 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.4554, allocations: 80 / 348 MB, free: 6.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002211/0.4556, allocations: 20.08 kB / 348.1 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.4556, allocations: 11.98 kB / 348.1 MB, free: 6.586 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (32): * Single equations (assignments): 32 * 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.0001912/0.4558, allocations: 137.7 kB / 348.2 MB, free: 6.441 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.458e-05/0.4559, allocations: 23.72 kB / 348.2 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.482e-05/0.456, allocations: 29.86 kB / 348.3 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.456, allocations: 4 kB / 348.3 MB, free: 6.379 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.567e-06/0.4561, allocations: 3.953 kB / 348.3 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.4561, allocations: 0 / 348.3 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.4574, allocations: 0.5904 MB / 348.9 MB, free: 5.719 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.4574, allocations: 3.953 kB / 348.9 MB, free: 5.715 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005177/0.4579, allocations: 60 kB / 348.9 MB, free: 5.656 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.458, allocations: 8 kB / 348.9 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/0.458, allocations: 4 kB / 348.9 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.458, allocations: 4 kB / 348.9 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.458, allocations: 0 / 348.9 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.4591, allocations: 0.5478 MB / 349.5 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.4593, allocations: 105 kB / 349.6 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.395e-05/0.4593, allocations: 8 kB / 349.6 MB, free: 4.914 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.4596, allocations: 15.92 kB / 349.6 MB, free: 4.898 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.4597, allocations: 15.94 kB / 349.6 MB, free: 4.883 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.722e-05/0.4597, allocations: 15.98 kB / 349.6 MB, free: 4.867 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001533/0.4599, allocations: 132.2 kB / 349.8 MB, free: 4.738 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4599, allocations: 0 / 349.8 MB, free: 4.738 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004902/0.4604, allocations: 52 kB / 349.8 MB, free: 4.688 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * 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 (26): * Single equations (assignments): 26 * 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.001509/0.4619, allocations: 1.372 MB / 351.2 MB, free: 3.266 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006602/0.4626, allocations: 188.2 kB / 351.4 MB, free: 3.082 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.4626, allocations: 0 / 351.4 MB, free: 3.082 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003135/0.4629, allocations: 100.3 kB / 351.5 MB, free: 2.984 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005277/0.4635, allocations: 32.83 kB / 351.5 MB, free: 2.953 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.4677, allocations: 2.22 MB / 353.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004474/0.4682, allocations: 0.7556 MB / 354.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002151/0.4684, allocations: 71.41 kB / 354.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of SimCode: time 1.293e-06/0.4684, allocations: 7.875 kB / 354.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.584/3.052, allocations: 3.507 MB / 358.1 MB, free: 12.28 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat