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.585/1.585, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003418, allocations: 12 kB / 233.3 MB, free: 2.961 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08/0.08036, allocations: 38.77 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003135/0.08354, allocations: 1.904 MB / 273.9 MB, free: 10.19 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.08474, allocations: 0.5772 MB / 274.5 MB, free: 9.605 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.08488, allocations: 7.938 kB / 274.5 MB, free: 9.598 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.627e-05/0.08496, allocations: 19.83 kB / 274.5 MB, free: 9.578 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002431/0.08521, allocations: 87.75 kB / 274.6 MB, free: 9.492 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.08547, allocations: 51.88 kB / 274.7 MB, free: 9.441 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003243/0.08581, allocations: 167.6 kB / 274.8 MB, free: 9.277 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/0.08603, allocations: 85.23 kB / 274.9 MB, free: 9.191 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.08621, allocations: 79.7 kB / 275 MB, free: 9.113 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.08641, allocations: 95.53 kB / 275.1 MB, free: 9.02 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.836e-05/0.08646, allocations: 15.94 kB / 275.1 MB, free: 9.004 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.449e-05/0.08653, allocations: 12 kB / 275.1 MB, free: 8.992 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.619e-05/0.08658, allocations: 31.84 kB / 275.1 MB, free: 8.961 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.998e-05/0.08666, allocations: 65.58 kB / 275.2 MB, free: 8.891 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002656/0.08694, allocations: 179.8 kB / 275.4 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.08695, allocations: 0 / 275.4 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.08697, allocations: 4 kB / 275.4 MB, free: 8.711 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.08698, allocations: 0 / 275.4 MB, free: 8.711 MB / 234.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.0009349/0.08792, allocations: 0.495 MB / 275.9 MB, free: 8.168 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.08798, allocations: 12.03 kB / 275.9 MB, free: 8.156 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.547e-05/0.08806, allocations: 54.55 kB / 275.9 MB, free: 8.094 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.06e-05/0.08815, allocations: 23.72 kB / 276 MB, free: 8.07 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.08846, allocations: 242.5 kB / 276.2 MB, free: 7.793 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.08849, allocations: 16.44 kB / 276.2 MB, free: 7.777 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.606e-05/0.08856, allocations: 20 kB / 276.2 MB, free: 7.758 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005935/0.08916, allocations: 217.4 kB / 276.5 MB, free: 7.531 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.0892, allocations: 11.98 kB / 276.5 MB, free: 7.52 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.08924, allocations: 4 kB / 276.5 MB, free: 7.516 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.605e-05/0.08927, allocations: 4 kB / 276.5 MB, free: 7.512 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005603/0.08984, allocations: 160.4 kB / 276.6 MB, free: 7.355 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.09151, allocations: 0.7957 MB / 277.4 MB, free: 6.496 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006192/0.09214, allocations: 205 kB / 277.6 MB, free: 6.277 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.09219, allocations: 4 kB / 277.6 MB, free: 6.273 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.09223, allocations: 38.56 kB / 277.7 MB, free: 6.227 MB / 234.7 MB Notification: Performance of pre-optimization done (n=22): time 2.294e-06/0.09224, allocations: 0 / 277.7 MB, free: 6.227 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.002322/0.09457, allocations: 0.8732 MB / 278.5 MB, free: 5.262 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.09464, allocations: 89.09 kB / 278.6 MB, free: 5.156 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.09489, allocations: 182.6 kB / 278.8 MB, free: 4.965 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.09493, allocations: 29.7 kB / 278.8 MB, free: 4.93 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.09506, allocations: 199 kB / 279 MB, free: 4.734 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.09518, allocations: 94.64 kB / 279.1 MB, free: 4.641 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.674e-05/0.0952, allocations: 7.938 kB / 279.1 MB, free: 4.633 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.09534, allocations: 322.8 kB / 279.4 MB, free: 4.309 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.09561, allocations: 67.97 kB / 279.5 MB, free: 4.242 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.09592, allocations: 112.2 kB / 279.6 MB, free: 4.117 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.09624, allocations: 90.67 kB / 279.7 MB, free: 4.031 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.09626, allocations: 0 / 279.7 MB, free: 4.031 MB / 234.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007054/0.09697, allocations: 241.3 kB / 279.9 MB, free: 3.789 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.097, allocations: 8 kB / 280 MB, free: 3.781 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.09702, allocations: 3.953 kB / 280 MB, free: 3.777 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.09705, allocations: 8.094 kB / 280 MB, free: 3.77 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004844/0.09754, allocations: 59.91 kB / 280 MB, free: 3.711 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.09757, allocations: 4.391 kB / 280 MB, free: 3.707 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001946/0.09777, allocations: 15.98 kB / 280 MB, free: 3.691 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.09781, allocations: 11.94 kB / 280.1 MB, free: 3.68 MB / 234.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.0001667/0.09799, allocations: 141.7 kB / 280.2 MB, free: 3.531 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.09807, allocations: 19.72 kB / 280.2 MB, free: 3.512 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.025e-05/0.09817, allocations: 33.86 kB / 280.2 MB, free: 3.484 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.09819, allocations: 7.953 kB / 280.3 MB, free: 3.477 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.0982, allocations: 0 / 280.3 MB, free: 3.477 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.09822, allocations: 4 kB / 280.3 MB, free: 3.473 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.0994, allocations: 0.5787 MB / 280.8 MB, free: 2.828 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.09943, allocations: 4 kB / 280.8 MB, free: 2.824 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005229/0.09996, allocations: 59.89 kB / 280.9 MB, free: 2.766 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.09998, allocations: 4 kB / 280.9 MB, free: 2.762 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.1, allocations: 8 kB / 280.9 MB, free: 2.754 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.1, allocations: 0 / 280.9 MB, free: 2.754 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1, allocations: 4 kB / 280.9 MB, free: 2.75 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.1011, allocations: 0.5008 MB / 281.4 MB, free: 2.223 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.1012, allocations: 112.9 kB / 281.5 MB, free: 2.094 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.202e-05/0.1013, allocations: 8 kB / 281.5 MB, free: 2.086 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.1016, allocations: 8 kB / 281.5 MB, free: 2.078 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.1016, allocations: 20.05 kB / 281.6 MB, free: 2.059 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.1017, allocations: 12 kB / 281.6 MB, free: 2.047 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001512/0.1018, allocations: 136.2 kB / 281.7 MB, free: 1.914 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1018, allocations: 4 kB / 281.7 MB, free: 1.91 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004648/0.1023, allocations: 52 kB / 281.8 MB, free: 1.859 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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.001296/0.1036, allocations: 1.034 MB / 282.8 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006262/0.1043, allocations: 188.2 kB / 283 MB, free: 0.6055 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1043, allocations: 3.938 kB / 283 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003158/0.1046, allocations: 100.2 kB / 283.1 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.1051, allocations: 38.95 kB / 283.1 MB, free: 480 kB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003532/0.1086, allocations: 1.647 MB / 284.8 MB, free: 14.73 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.109, allocations: 0.7484 MB / 285.5 MB, free: 13.96 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.1092, allocations: 75.41 kB / 285.6 MB, free: 13.88 MB / 250.7 MB Notification: Performance of SimCode: time 3.095e-06/0.1093, allocations: 0 / 285.6 MB, free: 13.88 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.225/2.334, allocations: 3.529 MB / 289.1 MB, free: 10.35 MB / 250.7 MB "Error: Could not read variable sine1.pi in file Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat. Warning: Get data of variable sine1.pi from file Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat failed! Error: Could not read variable sine2.pi in file Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat. Warning: Get data of variable sine2.pi from file Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat failed! " Variables in the reference:time,damper1.s_rel,damper1.v_rel,mass1.s,mass1.v Variables in the result:damper1.d,damper1.f,damper1.flange_a.f,damper1.flange_a.s,damper1.flange_b.f,damper1.flange_b.s,damper1.lossPower,damper1.s_nominal,damper1.s_rel,damper1.stateSelect,damper1.useHeatPort,damper1.v_rel,der(damper1.s_rel),der(damper1.v_rel),der(der(mass2.flange_b.s)),der(mass1.s),der(mass1.v),der(mass2.flange_b.s),der(mass2.s),der(mass2.v),fixed1.flange.f,fixed1.flange.s,fixed1.s0,fixed2.flange.f,fixed2.flange.s,fixed2.s0,force1.f,force1.flange.f,force1.flange.s,force1.s,force1.s_support,force1.useSupport,force2.f,force2.flange.f,force2.flange.s,force2.s,force2.s_support,force2.useSupport,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,sine1.amplitude,sine1.freqHz,sine1.offset,sine1.phase,sine1.startTime,sine1.y,sine2.amplitude,sine2.freqHz,sine2.offset,sine2.phase,sine2.startTime,sine2.y,spring1.c,spring1.f,spring1.flange_a.f,spring1.flange_a.s,spring1.flange_b.f,spring1.flange_b.s,spring1.s_rel,spring1.s_rel0,spring2.c,spring2.f,spring2.flange_a.f,spring2.flange_a.s,spring2.flange_b.f,spring2.flange_b.s,spring2.s_rel,spring2.s_rel0,time