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.Damper.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.Damper,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.994/1.994, allocations: 194.8 MB / 211.1 MB, free: 7.695 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005273/0.0005275, allocations: 8 kB / 264.1 MB, free: 2.613 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3209, allocations: 44.5 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.003052/0.324, allocations: 1.883 MB / 310.4 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007544/0.3248, allocations: 247.2 kB / 310.7 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.325, allocations: 7.938 kB / 310.7 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.101e-05/0.3251, allocations: 31.75 kB / 310.7 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.3254, allocations: 99.72 kB / 310.8 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.3256, allocations: 43.95 kB / 310.9 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000359/0.326, allocations: 203.5 kB / 311.1 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.3262, allocations: 73.67 kB / 311.1 MB, free: 10.1 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.3264, allocations: 87.7 kB / 311.2 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.3266, allocations: 103.5 kB / 311.3 MB, free: 9.914 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.721e-05/0.3267, allocations: 16 kB / 311.3 MB, free: 9.898 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.897e-05/0.3267, allocations: 12 kB / 311.3 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.273e-05/0.3268, allocations: 39.84 kB / 311.4 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.602e-05/0.3269, allocations: 69.58 kB / 311.4 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.3272, allocations: 208.4 kB / 311.6 MB, free: 9.57 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.217e-06/0.3272, allocations: 3.938 kB / 311.7 MB, free: 9.566 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3272, allocations: 0 / 311.7 MB, free: 9.566 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.842e-06/0.3273, allocations: 0 / 311.7 MB, free: 9.566 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009731/0.3282, allocations: 0.5067 MB / 312.2 MB, free: 9.008 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.3283, allocations: 8.031 kB / 312.2 MB, free: 9 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.529e-05/0.3284, allocations: 62.53 kB / 312.2 MB, free: 8.93 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.312e-05/0.3285, allocations: 31.72 kB / 312.3 MB, free: 8.898 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003349/0.3288, allocations: 239.3 kB / 312.5 MB, free: 8.621 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.3289, allocations: 20.56 kB / 312.5 MB, free: 8.602 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.919e-05/0.329, allocations: 27.91 kB / 312.5 MB, free: 8.574 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005786/0.3295, allocations: 247.2 kB / 312.8 MB, free: 8.316 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.3296, allocations: 0 / 312.8 MB, free: 8.316 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.984e-05/0.3296, allocations: 12 kB / 312.8 MB, free: 8.305 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.3296, allocations: 4 kB / 312.8 MB, free: 8.301 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004468/0.3301, allocations: 159.8 kB / 313 MB, free: 8.145 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.3316, allocations: 0.7972 MB / 313.8 MB, free: 7.289 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007423/0.3324, allocations: 291.7 kB / 314 MB, free: 6.977 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.3325, allocations: 4 kB / 314 MB, free: 6.973 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.3325, allocations: 42.5 kB / 314.1 MB, free: 6.922 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 3.367e-06/0.3325, allocations: 4 kB / 314.1 MB, free: 6.918 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.003976/0.3365, allocations: 1.935 MB / 316 MB, free: 4.719 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.129e-05/0.3366, allocations: 106.8 kB / 316.1 MB, free: 4.59 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.3369, allocations: 202.2 kB / 316.3 MB, free: 4.375 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.442e-05/0.3369, allocations: 33.7 kB / 316.4 MB, free: 4.336 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.3371, allocations: 136.8 kB / 316.5 MB, free: 4.195 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.3373, allocations: 165.6 kB / 316.7 MB, free: 4.031 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.449e-05/0.3373, allocations: 8 kB / 316.7 MB, free: 4.023 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3374, allocations: 338.8 kB / 317 MB, free: 3.684 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.3377, allocations: 96.77 kB / 317.1 MB, free: 3.59 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003063/0.338, allocations: 146.3 kB / 317.2 MB, free: 3.426 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003175/0.3384, allocations: 125 kB / 317.3 MB, free: 3.305 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3384, allocations: 0 / 317.3 MB, free: 3.305 MB / 250.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008579/0.3392, allocations: 335.9 kB / 317.7 MB, free: 2.973 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.3393, allocations: 9.562 kB / 317.7 MB, free: 2.965 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3393, allocations: 0 / 317.7 MB, free: 2.965 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.3393, allocations: 4 kB / 317.7 MB, free: 2.961 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006599/0.34, allocations: 95.84 kB / 317.8 MB, free: 2.867 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.055e-05/0.34, allocations: 12.08 kB / 317.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.3403, allocations: 7.953 kB / 317.8 MB, free: 2.848 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.3403, allocations: 16 kB / 317.8 MB, free: 2.832 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (54): * Single equations (assignments): 54 * 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.0002195/0.3405, allocations: 149.7 kB / 318 MB, free: 2.676 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.3407, allocations: 27.72 kB / 318 MB, free: 2.648 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.3408, allocations: 38.8 kB / 318 MB, free: 2.613 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.3408, allocations: 8.031 kB / 318 MB, free: 2.605 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3408, allocations: 4 kB / 318 MB, free: 2.602 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.3408, allocations: 0 / 318 MB, free: 2.602 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.343, allocations: 1.066 MB / 319.1 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.343, allocations: 0 / 319.1 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007498/0.3438, allocations: 91.89 kB / 319.2 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.375e-05/0.3438, allocations: 4 kB / 319.2 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.3438, allocations: 16.28 kB / 319.2 MB, free: 1.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.605e-05/0.3439, allocations: 7.938 kB / 319.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3439, allocations: 0 / 319.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.3451, allocations: 0.7287 MB / 320 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.3452, allocations: 104.7 kB / 320.1 MB, free: 444 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.354e-05/0.3453, allocations: 16.19 kB / 320.1 MB, free: 428 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.3456, allocations: 12 kB / 320.1 MB, free: 416 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.365e-05/0.3457, allocations: 39.84 kB / 320.1 MB, free: 376 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.3457, allocations: 16 kB / 320.1 MB, free: 360 kB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001573/0.3459, allocations: 131.2 kB / 320.3 MB, free: 228 kB / 250.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3459, allocations: 0 / 320.3 MB, free: 228 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006136/0.3465, allocations: 72 kB / 320.3 MB, free: 156 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,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 (45): * Single equations (assignments): 45 * 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.001517/0.3481, allocations: 1.259 MB / 321.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006959/0.3488, allocations: 252.5 kB / 321.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3488, allocations: 4.125 kB / 321.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.3491, allocations: 143.8 kB / 322 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00075/0.3499, allocations: 56.2 kB / 322 MB, free: 14.4 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.3543, allocations: 2.023 MB / 324.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.3548, allocations: 0.7763 MB / 324.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000229/0.355, allocations: 34.95 kB / 324.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.3552, allocations: 91.41 kB / 325 MB, free: 11.35 MB / 266.7 MB Notification: Performance of SimCode: time 1.523e-06/0.3553, allocations: 0 / 325 MB, free: 11.35 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03682/0.3921, allocations: 5.298 MB / 330.3 MB, free: 6.086 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003375/0.3925, allocations: 174.5 kB / 330.4 MB, free: 5.848 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.749/3.142, allocations: 0 / 330.4 MB, free: 5.848 MB / 266.7 MB "" Variables in the reference:time,damper1.s_rel,damper1.v_rel,damper2.s_rel,damper2.v_rel,springDamper3.s_rel,springDamper3.v_rel 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,damper2.d,damper2.f,damper2.flange_a.f,damper2.flange_a.s,damper2.flange_b.f,damper2.flange_b.s,damper2.lossPower,damper2.s_nominal,damper2.s_rel,damper2.stateSelect,damper2.useHeatPort,damper2.v_rel,der(damper1.s_rel),der(damper1.v_rel),der(damper2.flange_a.s),der(damper2.s_rel),der(damper2.v_rel),der(der(damper2.flange_a.s)),der(der(mass1.flange_b.s)),der(der(mass3.flange_b.s)),der(mass1.flange_b.s),der(mass1.s),der(mass1.v),der(mass2.s),der(mass2.v),der(mass3.flange_b.s),der(mass3.s),der(mass3.v),der(springDamper3.s_rel),der(springDamper3.v_rel),fixed1.flange.f,fixed1.flange.s,fixed1.s0,fixed2.flange.f,fixed2.flange.s,fixed2.s0,fixed3.flange.f,fixed3.flange.s,fixed3.s0,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,mass3.L,mass3.a,mass3.flange_a.f,mass3.flange_a.s,mass3.flange_b.f,mass3.flange_b.s,mass3.m,mass3.s,mass3.stateSelect,mass3.v,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,springDamper3.c,springDamper3.d,springDamper3.f,springDamper3.f_c,springDamper3.f_d,springDamper3.flange_a.f,springDamper3.flange_a.s,springDamper3.flange_b.f,springDamper3.flange_b.s,springDamper3.lossPower,springDamper3.s_nominal,springDamper3.s_rel,springDamper3.s_rel0,springDamper3.stateSelect,springDamper3.useHeatPort,springDamper3.v_rel,time