Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Damper2.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.007/2.007, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006075/0.0006078, allocations: 12 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3475, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.1094/0.457, allocations: 71.74 MB / 403 MB, free: 6.586 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04605/0.5031, allocations: 15.94 MB / 419 MB, free: 6.594 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01506/0.5182, allocations: 351.2 kB / 419.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01309/0.5314, allocations: 3.647 MB / 423 MB, free: 2.586 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04025/0.5717, allocations: 10.06 MB / 433 MB, free: 8.504 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007189/0.5789, allocations: 1.081 MB / 434.1 MB, free: 7.422 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01064/0.5896, allocations: 3.997 MB / 438.1 MB, free: 3.418 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01859/0.6082, allocations: 8.472 MB / 446.6 MB, free: 10.87 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004557/0.6129, allocations: 1.768 MB / 448.3 MB, free: 9.094 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005594/0.6185, allocations: 2.566 MB / 450.9 MB, free: 6.52 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001969/0.6205, allocations: 276 kB / 451.2 MB, free: 6.25 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003709/0.6243, allocations: 0.8233 MB / 452 MB, free: 5.426 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005222/0.6295, allocations: 2.805 MB / 454.8 MB, free: 2.613 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003032/0.6326, allocations: 1.415 MB / 456.2 MB, free: 1.188 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01518/0.6479, allocations: 9.325 MB / 465.5 MB, free: 7.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.6479, allocations: 0 / 465.5 MB, free: 7.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.6479, allocations: 0 / 465.5 MB, free: 7.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000439/0.6484, allocations: 0 / 465.5 MB, free: 7.84 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2741 * Number of variables: 2741 Notification: Performance of Generate backend data structure: time 0.02126/0.6697, allocations: 6.755 MB / 472.3 MB, free: 0.9961 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.6697, allocations: 11.97 kB / 472.3 MB, free: 0.9844 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.5288/1.199, allocations: 1.277 MB / 473.6 MB, free: 117.1 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02247/1.221, allocations: 3.265 MB / 476.8 MB, free: 116.5 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0128/1.234, allocations: 4.366 MB / 481.2 MB, free: 114.4 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007721/1.235, allocations: 462.7 kB / 481.7 MB, free: 114.2 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003144/1.238, allocations: 0.5762 MB / 482.2 MB, free: 114.1 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06827/1.306, allocations: 21.54 MB / 0.492 GB, free: 97.52 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003771/1.307, allocations: 67.41 kB / 0.492 GB, free: 97.45 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002661/1.309, allocations: 283.3 kB / 0.4923 GB, free: 97.24 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00912/1.319, allocations: 3.53 MB / 0.4957 GB, free: 93.75 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06302/1.382, allocations: 17.5 MB / 0.5128 GB, free: 76.29 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1177/1.499, allocations: 70.23 MB / 0.5814 GB, free: 4.73 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07841/1.578, allocations: 14.58 MB / 0.5957 GB, free: 5.98 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04015/1.618, allocations: 14.39 MB / 0.6097 GB, free: 7.281 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.116/1.734, allocations: 12.48 MB / 0.6219 GB, free: 10.74 MB / 442.8 MB Notification: Performance of pre-optimization done (n=287): time 1.358e-05/1.734, allocations: 0 / 0.6219 GB, free: 10.74 MB / 442.8 MB Notification: Performance of matching and sorting (n=323): time 0.5193/2.254, allocations: 43.62 MB / 0.6645 GB, free: 142.2 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.926e-05/2.254, allocations: 162.5 kB / 0.6647 GB, free: 142 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01082/2.265, allocations: 6.351 MB / 0.6709 GB, free: 135.6 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00077/2.265, allocations: 81.64 kB / 0.6709 GB, free: 135.5 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004432/2.27, allocations: 5.143 MB / 0.676 GB, free: 130.4 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001743/2.272, allocations: 1.236 MB / 0.6772 GB, free: 129.2 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007761/2.272, allocations: 193.4 kB / 0.6773 GB, free: 129 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0004864/2.273, allocations: 0.7191 MB / 0.6781 GB, free: 128.2 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008526/2.281, allocations: 3.298 MB / 0.6813 GB, free: 125 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01219/2.294, allocations: 9.095 MB / 0.6902 GB, free: 113.1 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01265/2.306, allocations: 5.24 MB / 0.6953 GB, free: 107.9 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001871/2.307, allocations: 56 kB / 0.6953 GB, free: 107.8 MB / 442.8 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.03165/2.338, allocations: 12.09 MB / 0.7071 GB, free: 95.68 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001654/2.339, allocations: 125.7 kB / 0.7073 GB, free: 95.55 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002541/2.339, allocations: 208 kB / 0.7075 GB, free: 95.35 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/2.34, allocations: 0.5279 MB / 0.708 GB, free: 94.82 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01431/2.354, allocations: 2.398 MB / 0.7103 GB, free: 92.42 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003872/2.358, allocations: 2.722 MB / 0.713 GB, free: 89.56 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01046/2.369, allocations: 0.5579 MB / 0.7135 GB, free: 89 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001896/2.371, allocations: 0.5771 MB / 0.7141 GB, free: 88.43 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 74 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1243): * Single equations (assignments): 1238 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008286/2.379, allocations: 3.38 MB / 0.7174 GB, free: 85.04 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/2.38, allocations: 0.5438 MB / 0.7179 GB, free: 84.49 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01316/2.393, allocations: 4.471 MB / 0.7223 GB, free: 79.96 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-05/2.394, allocations: 41.41 kB / 0.7223 GB, free: 79.92 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/2.394, allocations: 0 / 0.7223 GB, free: 79.92 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.068e-05/2.394, allocations: 15.94 kB / 0.7223 GB, free: 79.91 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03734/2.431, allocations: 13.52 MB / 0.7355 GB, free: 65.98 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.431e-05/2.431, allocations: 31.98 kB / 0.7356 GB, free: 65.95 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005378/2.437, allocations: 0.6865 MB / 0.7362 GB, free: 65.26 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-05/2.437, allocations: 44 kB / 0.7363 GB, free: 65.22 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004905/2.437, allocations: 92.69 kB / 0.7364 GB, free: 65.13 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.824e-05/2.437, allocations: 59.78 kB / 0.7364 GB, free: 65.07 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.581e-05/2.437, allocations: 43.75 kB / 0.7365 GB, free: 65.03 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01501/2.452, allocations: 6.479 MB / 0.7428 GB, free: 58.02 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003032/2.455, allocations: 0.8786 MB / 0.7436 GB, free: 57.11 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001691/2.457, allocations: 93.08 kB / 0.7437 GB, free: 57.02 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004779/2.462, allocations: 187.8 kB / 0.7439 GB, free: 56.84 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008129/2.463, allocations: 276.9 kB / 0.7442 GB, free: 56.57 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000318/2.463, allocations: 128.7 kB / 0.7443 GB, free: 56.45 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.009046/2.472, allocations: 3.979 MB / 0.7482 GB, free: 52.47 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.863e-06/2.472, allocations: 0 / 0.7482 GB, free: 52.47 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01042/2.483, allocations: 1.613 MB / 0.7498 GB, free: 50.86 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 123 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (308): * Single equations (assignments): 303 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0162/2.499, allocations: 7.22 MB / 0.7568 GB, free: 43.11 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01833/2.517, allocations: 7.349 MB / 0.764 GB, free: 35.77 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 2.558e-05/2.517, allocations: 4 kB / 0.764 GB, free: 35.77 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005431/2.523, allocations: 1.825 MB / 0.7658 GB, free: 33.95 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005307/2.528, allocations: 0.6991 MB / 0.7665 GB, free: 33.25 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3612/2.889, allocations: 38.91 MB / 0.8045 GB, free: 115.8 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01188/2.901, allocations: 5.263 MB / 0.8096 GB, free: 114.9 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007943/2.909, allocations: 3.533 MB / 0.8131 GB, free: 113 MB / 442.8 MB Notification: Performance of SimCode: time 1.152e-06/2.909, allocations: 0 / 0.8131 GB, free: 113 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.106/8.015, allocations: 144.2 MB / 0.9538 GB, free: 1.098 MB / 458.8 MB