Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.991/1.991, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005782/0.0005785, allocations: 12 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1181, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4303/0.5485, allocations: 72.81 MB / 381.4 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.5489, allocations: 71.89 kB / 381.4 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0161/0.565, allocations: 3.672 MB / 385.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.565, allocations: 3.938 kB / 385.1 MB, free: 13.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.89e-05/0.5651, allocations: 4.938 kB / 385.1 MB, free: 13.93 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009042/0.566, allocations: 0.4983 MB / 385.6 MB, free: 13.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.501e-05/0.5661, allocations: 12.2 kB / 385.6 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.638e-05/0.5662, allocations: 55.28 kB / 385.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.239e-05/0.5663, allocations: 37.42 kB / 385.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/0.5666, allocations: 228.6 kB / 385.9 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.5666, allocations: 16 kB / 385.9 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.109e-05/0.5667, allocations: 20.28 kB / 386 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005974/0.5673, allocations: 212.7 kB / 386.2 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.5673, allocations: 1.375 kB / 386.2 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.326e-05/0.5673, allocations: 7.781 kB / 386.2 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.5674, allocations: 12.94 kB / 386.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005229/0.5679, allocations: 150.5 kB / 386.3 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.5696, allocations: 0.8079 MB / 387.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006216/0.5702, allocations: 200.2 kB / 387.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.5703, allocations: 2.688 kB / 387.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.5703, allocations: 41.09 kB / 387.4 MB, free: 12.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.625e-06/0.5703, allocations: 0 / 387.4 MB, free: 12.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.00235/0.5727, allocations: 0.8813 MB / 388.3 MB, free: 12.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.5728, allocations: 79.67 kB / 388.3 MB, free: 12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.573, allocations: 164.3 kB / 388.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.573, allocations: 30.83 kB / 388.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.895e-05/0.5731, allocations: 197.7 kB / 388.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.604e-05/0.5732, allocations: 91.94 kB / 388.8 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.634e-05/0.5733, allocations: 4.969 kB / 388.8 MB, free: 11.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.958e-05/0.5733, allocations: 320.6 kB / 389.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002573/0.5736, allocations: 68.09 kB / 389.2 MB, free: 11.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.5739, allocations: 114.1 kB / 389.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/0.5742, allocations: 82.42 kB / 389.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.5742, allocations: 7.938 kB / 389.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006955/0.5749, allocations: 244.4 kB / 389.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.575, allocations: 6.5 kB / 389.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.575, allocations: 1.219 kB / 389.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.575, allocations: 2.625 kB / 389.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/0.5755, allocations: 67.94 kB / 389.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.5755, allocations: 6.438 kB / 389.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.5758, allocations: 20.17 kB / 389.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.5758, allocations: 13.61 kB / 389.8 MB, free: 11.2 MB / 314.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.000176/0.576, allocations: 133.6 kB / 389.9 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.411e-05/0.5761, allocations: 22.2 kB / 389.9 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.133e-05/0.5762, allocations: 29.28 kB / 389.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.5762, allocations: 7.875 kB / 389.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.5762, allocations: 0 / 389.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.5763, allocations: 7.297 kB / 389.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.5774, allocations: 0.5822 MB / 390.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.5775, allocations: 1.281 kB / 390.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005155/0.578, allocations: 64.56 kB / 390.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-05/0.578, allocations: 3.812 kB / 390.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.5781, allocations: 2.016 kB / 390.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.5781, allocations: 3.906 kB / 390.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.5781, allocations: 3.938 kB / 390.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009304/0.5791, allocations: 0.5465 MB / 391.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.737e-05/0.5792, allocations: 102.8 kB / 391.3 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.074e-05/0.5792, allocations: 11.02 kB / 391.3 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002588/0.5795, allocations: 12.72 kB / 391.3 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.569e-05/0.5796, allocations: 23.67 kB / 391.3 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.5796, allocations: 7.594 kB / 391.3 MB, free: 10.26 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001309/0.5797, allocations: 134.8 kB / 391.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5798, allocations: 0 / 391.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004762/0.5802, allocations: 52.25 kB / 391.5 MB, free: 10.18 MB / 314.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.001174/0.5814, allocations: 1.36 MB / 392.9 MB, free: 9.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006353/0.5821, allocations: 185.7 kB / 393 MB, free: 9.059 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.5821, allocations: 0 / 393 MB, free: 9.059 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002829/0.5824, allocations: 98.73 kB / 393.1 MB, free: 9.051 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000603/0.583, allocations: 34.94 kB / 393.2 MB, free: 9.047 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003549/0.5866, allocations: 2.213 MB / 395.4 MB, free: 7.582 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.5869, allocations: 0.7489 MB / 396.1 MB, free: 6.879 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.5871, allocations: 74.03 kB / 396.2 MB, free: 6.871 MB / 314.7 MB Notification: Performance of SimCode: time 1.113e-06/0.5871, allocations: 0 / 396.2 MB, free: 6.871 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.657/3.244, allocations: 3.523 MB / 399.7 MB, free: 6.594 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat