Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.198/2.198, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004823/0.0004826, allocations: 8 kB / 264 MB, free: 3.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3379, allocations: 44.51 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003398/0.3414, allocations: 1.905 MB / 310.5 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.3428, allocations: 0.5855 MB / 311 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.343, allocations: 7.938 kB / 311.1 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.138e-05/0.3431, allocations: 23.78 kB / 311.1 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002676/0.3434, allocations: 83.75 kB / 311.2 MB, free: 10.15 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.3436, allocations: 47.94 kB / 311.2 MB, free: 10.1 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.344, allocations: 171.6 kB / 311.4 MB, free: 9.934 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.3442, allocations: 65.36 kB / 311.4 MB, free: 9.867 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.3444, allocations: 83.7 kB / 311.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.3447, allocations: 95.55 kB / 311.6 MB, free: 9.691 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/0.3447, allocations: 8 kB / 311.6 MB, free: 9.684 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.35e-05/0.3448, allocations: 12 kB / 311.6 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.477e-05/0.3448, allocations: 35.83 kB / 311.7 MB, free: 9.637 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.435e-05/0.3449, allocations: 65.64 kB / 311.7 MB, free: 9.566 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002898/0.3452, allocations: 176.4 kB / 311.9 MB, free: 9.395 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.3452, allocations: 0 / 311.9 MB, free: 9.395 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3453, allocations: 4 kB / 311.9 MB, free: 9.391 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.3453, allocations: 0 / 311.9 MB, free: 9.391 MB / 250.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.001038/0.3463, allocations: 0.495 MB / 312.4 MB, free: 8.848 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.3464, allocations: 8.031 kB / 312.4 MB, free: 8.84 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.361e-05/0.3465, allocations: 54.55 kB / 312.5 MB, free: 8.777 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.219e-05/0.3466, allocations: 27.67 kB / 312.5 MB, free: 8.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.3469, allocations: 235.3 kB / 312.7 MB, free: 8.48 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/0.347, allocations: 24.38 kB / 312.7 MB, free: 8.457 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.3471, allocations: 16 kB / 312.8 MB, free: 8.441 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006359/0.3477, allocations: 217.3 kB / 313 MB, free: 8.215 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/0.3478, allocations: 7.984 kB / 313 MB, free: 8.207 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.3478, allocations: 4 kB / 313 MB, free: 8.203 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.3478, allocations: 8 kB / 313 MB, free: 8.195 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005539/0.3484, allocations: 152.5 kB / 313.1 MB, free: 8.047 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.3502, allocations: 0.7996 MB / 313.9 MB, free: 7.184 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006396/0.3509, allocations: 197 kB / 314.1 MB, free: 6.973 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.726e-05/0.3509, allocations: 8.078 kB / 314.1 MB, free: 6.965 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.928e-05/0.351, allocations: 38.56 kB / 314.2 MB, free: 6.918 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 3.145e-06/0.351, allocations: 0 / 314.2 MB, free: 6.918 MB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.002501/0.3535, allocations: 0.875 MB / 315.1 MB, free: 5.949 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/0.3536, allocations: 81.11 kB / 315.1 MB, free: 5.852 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.3539, allocations: 175.3 kB / 315.3 MB, free: 5.672 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.3539, allocations: 33.64 kB / 315.3 MB, free: 5.633 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.3541, allocations: 148.3 kB / 315.5 MB, free: 5.484 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.3542, allocations: 94.64 kB / 315.6 MB, free: 5.391 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.944e-05/0.3542, allocations: 8 kB / 315.6 MB, free: 5.383 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3544, allocations: 330.8 kB / 315.9 MB, free: 5.051 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/0.3547, allocations: 67.95 kB / 316 MB, free: 4.984 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003267/0.355, allocations: 120.2 kB / 316.1 MB, free: 4.852 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003117/0.3553, allocations: 79.94 kB / 316.2 MB, free: 4.773 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3554, allocations: 0 / 316.2 MB, free: 4.773 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007718/0.3561, allocations: 253.2 kB / 316.4 MB, free: 4.52 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.3562, allocations: 8 kB / 316.4 MB, free: 4.512 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3562, allocations: 0 / 316.4 MB, free: 4.512 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.3562, allocations: 4 kB / 316.4 MB, free: 4.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.3567, allocations: 63.91 kB / 316.5 MB, free: 4.445 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.3568, allocations: 4.094 kB / 316.5 MB, free: 4.441 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.357, allocations: 15.98 kB / 316.5 MB, free: 4.426 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.357, allocations: 8 kB / 316.5 MB, free: 4.418 MB / 250.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.0001857/0.3572, allocations: 137.8 kB / 316.7 MB, free: 4.273 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/0.3573, allocations: 19.77 kB / 316.7 MB, free: 4.254 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.254e-05/0.3574, allocations: 29.86 kB / 316.7 MB, free: 4.223 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.3574, allocations: 7.938 kB / 316.7 MB, free: 4.215 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3574, allocations: 0 / 316.7 MB, free: 4.215 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.3575, allocations: 4 kB / 316.7 MB, free: 4.211 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.3588, allocations: 0.5903 MB / 317.3 MB, free: 3.555 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3588, allocations: 0 / 317.3 MB, free: 3.555 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005821/0.3594, allocations: 68 kB / 317.4 MB, free: 3.488 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.03e-05/0.3594, allocations: 0 / 317.4 MB, free: 3.488 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.3595, allocations: 4 kB / 317.4 MB, free: 3.484 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.047e-06/0.3595, allocations: 4.391 kB / 317.4 MB, free: 3.48 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3595, allocations: 0 / 317.4 MB, free: 3.48 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.3607, allocations: 0.5088 MB / 317.9 MB, free: 2.945 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.3608, allocations: 96.95 kB / 318 MB, free: 2.832 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.297e-05/0.3609, allocations: 8 kB / 318 MB, free: 2.824 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.3611, allocations: 12 kB / 318 MB, free: 2.812 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.994e-05/0.3612, allocations: 19.97 kB / 318 MB, free: 2.793 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.3613, allocations: 12 kB / 318 MB, free: 2.781 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001642/0.3614, allocations: 131.4 kB / 318.2 MB, free: 2.652 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3614, allocations: 0 / 318.2 MB, free: 2.652 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004786/0.3619, allocations: 51.95 kB / 318.2 MB, free: 2.602 MB / 250.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.001502/0.3634, allocations: 1.046 MB / 319.3 MB, free: 1.52 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006839/0.3642, allocations: 193.7 kB / 319.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3642, allocations: 0 / 319.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003331/0.3645, allocations: 103.8 kB / 319.5 MB, free: 1.23 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005426/0.3651, allocations: 31.67 kB / 319.6 MB, free: 1.203 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003878/0.369, allocations: 1.593 MB / 321.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/0.3695, allocations: 0.7562 MB / 321.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001971/0.3697, allocations: 17.94 kB / 321.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.3699, allocations: 71.41 kB / 322 MB, free: 14.66 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3699, allocations: 0 / 322 MB, free: 14.66 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.4003, allocations: 3.872 MB / 325.9 MB, free: 10.83 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002459/0.4006, allocations: 179.2 kB / 326.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/2.959, allocations: 3.938 kB / 326.1 MB, free: 10.59 MB / 266.7 MB "" 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