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.ElastoGap.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.ElastoGap,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.055/2.055, allocations: 194.9 MB / 211.1 MB, free: 7.578 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.000355, allocations: 8 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3052, allocations: 44.5 MB / 308.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004923/0.3102, allocations: 2.027 MB / 310.6 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.3118, allocations: 378.9 kB / 311 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000256/0.3121, allocations: 4 kB / 311 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.3123, allocations: 39.69 kB / 311 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005339/0.3129, allocations: 115.7 kB / 311.1 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005123/0.3134, allocations: 67.86 kB / 311.2 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006781/0.3141, allocations: 251.5 kB / 311.4 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003323/0.3145, allocations: 85.67 kB / 311.5 MB, free: 9.688 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002758/0.3148, allocations: 115.6 kB / 311.6 MB, free: 9.574 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003681/0.3152, allocations: 139.4 kB / 311.8 MB, free: 9.438 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.368e-05/0.3153, allocations: 16 kB / 311.8 MB, free: 9.422 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.3154, allocations: 16 kB / 311.8 MB, free: 9.406 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.3155, allocations: 55.75 kB / 311.8 MB, free: 9.352 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.3157, allocations: 81.58 kB / 311.9 MB, free: 9.266 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005389/0.3162, allocations: 256.2 kB / 312.2 MB, free: 9.016 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3163, allocations: 0 / 312.2 MB, free: 9.016 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3163, allocations: 4 kB / 312.2 MB, free: 9.012 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.3163, allocations: 0 / 312.2 MB, free: 9.012 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.002179/0.3185, allocations: 0.5963 MB / 312.8 MB, free: 8.363 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.573e-05/0.3186, allocations: 12.03 kB / 312.8 MB, free: 8.352 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001569/0.3188, allocations: 66.53 kB / 312.8 MB, free: 8.277 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.3189, allocations: 35.62 kB / 312.9 MB, free: 8.242 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.3195, allocations: 262.5 kB / 313.1 MB, free: 7.945 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.86e-05/0.3196, allocations: 20.56 kB / 313.2 MB, free: 7.926 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.3197, allocations: 24 kB / 313.2 MB, free: 7.902 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.3211, allocations: 276.8 kB / 313.5 MB, free: 7.625 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.37e-05/0.3212, allocations: 7.906 kB / 313.5 MB, free: 7.617 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.78e-05/0.3213, allocations: 8 kB / 313.5 MB, free: 7.609 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.3213, allocations: 12 kB / 313.5 MB, free: 7.598 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.323, allocations: 282 kB / 313.8 MB, free: 7.324 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003077/0.3261, allocations: 0.8145 MB / 314.6 MB, free: 6.457 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.3277, allocations: 367.3 kB / 314.9 MB, free: 6.082 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.977e-05/0.3278, allocations: 4 kB / 314.9 MB, free: 6.078 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/0.3279, allocations: 42.52 kB / 315 MB, free: 6.027 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 4.799e-06/0.3279, allocations: 0 / 315 MB, free: 6.027 MB / 250.7 MB Notification: Performance of matching and sorting (n=63): time 0.01154/0.3394, allocations: 2.029 MB / 317 MB, free: 3.906 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/0.3396, allocations: 63.97 kB / 317.1 MB, free: 3.832 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003902/0.34, allocations: 192.2 kB / 317.3 MB, free: 3.633 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.409e-05/0.3401, allocations: 33.7 kB / 317.3 MB, free: 3.594 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.3403, allocations: 149 kB / 317.4 MB, free: 3.441 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003347/0.3406, allocations: 216.8 kB / 317.6 MB, free: 3.227 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.827e-05/0.3407, allocations: 12 kB / 317.7 MB, free: 3.215 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.3409, allocations: 342.8 kB / 318 MB, free: 2.871 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009219/0.3419, allocations: 169 kB / 318.2 MB, free: 2.707 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005912/0.3425, allocations: 173 kB / 318.3 MB, free: 2.535 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/0.3431, allocations: 190.1 kB / 318.5 MB, free: 2.355 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3432, allocations: 0 / 318.5 MB, free: 2.355 MB / 250.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001468/0.3446, allocations: 0.4908 MB / 319 MB, free: 1.855 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.3447, allocations: 4 kB / 319 MB, free: 1.852 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3447, allocations: 0 / 319 MB, free: 1.852 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.3447, allocations: 7.953 kB / 319 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009096/0.3457, allocations: 123.8 kB / 319.1 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.3457, allocations: 4 kB / 319.1 MB, free: 1.719 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004053/0.3461, allocations: 39.97 kB / 319.2 MB, free: 1.68 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.008e-05/0.3462, allocations: 16 kB / 319.2 MB, free: 1.664 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0002529/0.3464, allocations: 153.8 kB / 319.3 MB, free: 1.504 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-05/0.3465, allocations: 31.62 kB / 319.4 MB, free: 1.473 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.3467, allocations: 47.33 kB / 319.4 MB, free: 1.43 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.3467, allocations: 11.95 kB / 319.4 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.3467, allocations: 0 / 319.4 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.3468, allocations: 3.984 kB / 319.4 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003249/0.35, allocations: 1.333 MB / 320.8 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.3501, allocations: 4 kB / 320.8 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000961/0.3511, allocations: 131.8 kB / 320.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.566e-05/0.3511, allocations: 4 kB / 320.9 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.068e-05/0.3511, allocations: 20 kB / 320.9 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.009e-05/0.3512, allocations: 11.92 kB / 320.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.878e-06/0.3512, allocations: 8.219 kB / 320.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.3534, allocations: 0.9017 MB / 321.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.3535, allocations: 112.7 kB / 322 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.64e-05/0.3536, allocations: 20 kB / 322 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/0.3541, allocations: 31.98 kB / 322 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.3542, allocations: 55.83 kB / 322.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.872e-05/0.3543, allocations: 20 kB / 322.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001672/0.3545, allocations: 139.4 kB / 322.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3545, allocations: 0 / 322.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005495/0.355, allocations: 100 kB / 322.3 MB, free: 14.33 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.00247/0.3575, allocations: 1.459 MB / 323.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.3589, allocations: 446.7 kB / 324.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3589, allocations: 3.938 kB / 324.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007449/0.3597, allocations: 264.3 kB / 324.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007375/0.3604, allocations: 77.84 kB / 324.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00558/0.366, allocations: 2.399 MB / 326.9 MB, free: 9.508 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.3665, allocations: 0.8052 MB / 327.7 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003295/0.3669, allocations: 43.27 kB / 327.8 MB, free: 8.633 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000289/0.3672, allocations: 123.4 kB / 327.9 MB, free: 8.512 MB / 266.7 MB Notification: Performance of SimCode: time 1.273e-06/0.3672, allocations: 0 / 327.9 MB, free: 8.512 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1037/0.4709, allocations: 6.754 MB / 334.7 MB, free: 1.793 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003694/0.4714, allocations: 174.1 kB / 334.8 MB, free: 1.559 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.662/3.134, allocations: 64 / 334.8 MB, free: 1.559 MB / 266.7 MB