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.219/2.219, allocations: 209.2 MB / 224.8 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004336/0.0004336, allocations: 15.94 kB / 282.7 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 48.71 MB / 331.4 MB, free: 8.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4455/0.5536, allocations: 94.9 MB / 426.3 MB, free: 6.082 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/0.5539, allocations: 83.94 kB / 426.4 MB, free: 6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8996/1.454, allocations: 144.8 MB / 0.5578 GB, free: 75.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.963e-06/1.454, allocations: 4 kB / 0.5578 GB, free: 75.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003564/1.454, allocations: 144 kB / 0.5579 GB, free: 75.07 MB / 410.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.02711/1.481, allocations: 6.986 MB / 0.5648 GB, free: 67.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/1.481, allocations: 8.031 kB / 0.5648 GB, free: 67.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006498/1.488, allocations: 1.368 MB / 0.5661 GB, free: 66.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02951/1.517, allocations: 3.613 MB / 0.5696 GB, free: 62.97 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02523/1.543, allocations: 7.663 MB / 0.5771 GB, free: 55.24 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008259/1.543, allocations: 0.5948 MB / 0.5777 GB, free: 54.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004626/1.548, allocations: 0.7809 MB / 0.5785 GB, free: 53.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0846/1.633, allocations: 21.83 MB / 0.5998 GB, free: 30.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005456/1.633, allocations: 107 kB / 0.5999 GB, free: 30.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004449/1.638, allocations: 383.8 kB / 0.6002 GB, free: 29.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005801/1.644, allocations: 1.945 MB / 0.6021 GB, free: 27.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09385/1.738, allocations: 17.68 MB / 0.6194 GB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4921/2.23, allocations: 79.43 MB / 0.697 GB, free: 29.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03352/2.263, allocations: 6.661 MB / 0.7035 GB, free: 28.49 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02744/2.291, allocations: 9.791 MB / 0.713 GB, free: 26.16 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02619/2.317, allocations: 4.407 MB / 0.7173 GB, free: 26.02 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 8.095e-06/2.317, allocations: 0 / 0.7173 GB, free: 26.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=323): time 0.1329/2.45, allocations: 25.11 MB / 0.7419 GB, free: 20.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.24e-05/2.45, allocations: 166.1 kB / 0.742 GB, free: 20.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01532/2.465, allocations: 5.413 MB / 0.7473 GB, free: 18.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007237/2.466, allocations: 81.98 kB / 0.7474 GB, free: 18.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005835/2.472, allocations: 5.123 MB / 0.7524 GB, free: 14.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001979/2.474, allocations: 1.229 MB / 0.7536 GB, free: 14.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001283/2.475, allocations: 199.7 kB / 0.7538 GB, free: 13.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009552/2.476, allocations: 0.7257 MB / 0.7545 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01037/2.487, allocations: 2.909 MB / 0.7573 GB, free: 12.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01443/2.501, allocations: 8.626 MB / 0.7657 GB, free: 4.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01369/2.515, allocations: 4.88 MB / 0.7705 GB, free: 2.188 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000214/2.515, allocations: 56.81 kB / 0.7706 GB, free: 2.188 MB / 426.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.03842/2.554, allocations: 11.26 MB / 0.7816 GB, free: 9.754 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002302/2.554, allocations: 125.7 kB / 0.7817 GB, free: 9.625 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004402/2.554, allocations: 200 kB / 0.7819 GB, free: 9.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004476/2.555, allocations: 300 kB / 0.7822 GB, free: 9.137 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01631/2.571, allocations: 2.402 MB / 0.7845 GB, free: 7.051 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006031/2.572, allocations: 398.4 kB / 0.7849 GB, free: 6.703 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01383/2.586, allocations: 0.6439 MB / 0.7855 GB, free: 6.156 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003142/2.589, allocations: 0.565 MB / 0.7861 GB, free: 5.598 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 925 * 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 (1240): * Single equations (assignments): 1236 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01249/2.601, allocations: 3.377 MB / 0.7894 GB, free: 2.629 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001716/2.603, allocations: 0.5437 MB / 0.7899 GB, free: 2.078 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01932/2.623, allocations: 3.786 MB / 0.7936 GB, free: 15.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.67e-05/2.623, allocations: 39.19 kB / 0.7936 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.801e-05/2.623, allocations: 4 kB / 0.7936 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.77e-05/2.623, allocations: 13.45 kB / 0.7936 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04391/2.667, allocations: 13.65 MB / 0.807 GB, free: 3.324 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.579e-05/2.667, allocations: 32 kB / 0.807 GB, free: 3.293 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004973/2.672, allocations: 0.6127 MB / 0.8076 GB, free: 2.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.723e-05/2.672, allocations: 52 kB / 0.8077 GB, free: 2.629 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005685/2.673, allocations: 95.98 kB / 0.8077 GB, free: 2.535 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.492e-05/2.673, allocations: 67.72 kB / 0.8078 GB, free: 2.469 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.995e-05/2.673, allocations: 54.86 kB / 0.8079 GB, free: 2.418 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02048/2.693, allocations: 12.08 MB / 0.8197 GB, free: 4.539 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00394/2.697, allocations: 0.8413 MB / 0.8205 GB, free: 3.672 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001946/2.699, allocations: 99.41 kB / 0.8206 GB, free: 3.578 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005635/2.705, allocations: 223.4 kB / 0.8208 GB, free: 3.363 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/2.706, allocations: 300.3 kB / 0.8211 GB, free: 3.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003779/2.706, allocations: 128 kB / 0.8212 GB, free: 2.945 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.3525/3.059, allocations: 3.788 MB / 0.8249 GB, free: 118.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.71e-07/3.059, allocations: 0 / 0.8249 GB, free: 118.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01295/3.072, allocations: 1.553 MB / 0.8264 GB, free: 118.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 147 * 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 (304): * Single equations (assignments): 299 * 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.02174/3.094, allocations: 18.6 MB / 0.8446 GB, free: 104.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02089/3.115, allocations: 6.586 MB / 0.851 GB, free: 104.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.271e-05/3.115, allocations: 6.938 kB / 0.851 GB, free: 104.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006114/3.121, allocations: 1.732 MB / 0.8527 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006786/3.128, allocations: 0.7018 MB / 0.8534 GB, free: 104.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4497/3.578, allocations: 176.5 MB / 1.026 GB, free: 118 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01533/3.593, allocations: 5.258 MB / 1.031 GB, free: 117.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008726/3.602, allocations: 3.479 MB / 1.034 GB, free: 117.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.823e-06/3.602, allocations: 0 / 1.034 GB, free: 117.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.029/8.631, allocations: 128 MB / 1.159 GB, free: 35.3 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat does not exist to compare? outputFormat=mat