Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.FreeBodies2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.r_0.1.|body.r_0.2.|body.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|bodyBox.body.Q.1.|bodyBox.body.Q.2.|bodyBox.body.Q.3.|bodyBox.body.Q.4.|bodyBox.body.w_a.1.|bodyBox.body.w_a.2.|bodyBox.body.w_a.3.|bodyBox.r_0.1.|bodyBox.r_0.2.|bodyBox.r_0.3.|bodyBox.v_0.1.|bodyBox.v_0.2.|bodyBox.v_0.3.|bodyCylinder.body.Q.1.|bodyCylinder.body.Q.2.|bodyCylinder.body.Q.3.|bodyCylinder.body.Q.4.|bodyCylinder.body.w_a.1.|bodyCylinder.body.w_a.2.|bodyCylinder.body.w_a.3.|bodyCylinder.r_0.1.|bodyCylinder.r_0.2.|bodyCylinder.r_0.3.|bodyCylinder.v_0.1.|bodyCylinder.v_0.2.|bodyCylinder.v_0.3.|bodyShape.body.Q.1.|bodyShape.body.Q.2.|bodyShape.body.Q.3.|bodyShape.body.Q.4.|bodyShape.body.w_a.1.|bodyShape.body.w_a.2.|bodyShape.body.w_a.3.|bodyShape.r_0.1.|bodyShape.r_0.2.|bodyShape.r_0.3.|bodyShape.v_0.1.|bodyShape.v_0.2.|bodyShape.v_0.3.|pointMass.r_0.1.|pointMass.r_0.2.|pointMass.r_0.3.|pointMass.v_0.1.|pointMass.v_0.2.|pointMass.v_0.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2") Notification: Performance of loadModel(ModelicaTest): time 2.061/2.061, allocations: 209.3 MB / 224.8 MB, free: 336 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000444/0.0004446, allocations: 8 kB / 282.5 MB, free: 9.652 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2854, allocations: 48.7 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.FreeBodies2): time 0.1204/0.4058, allocations: 84.82 MB / 416 MB, free: 9.504 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05053/0.4564, allocations: 19.12 MB / 435.1 MB, free: 6.324 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01889/0.4754, allocations: 434.9 kB / 435.6 MB, free: 5.898 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01386/0.4892, allocations: 4.332 MB / 439.9 MB, free: 1.547 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04273/0.532, allocations: 12.08 MB / 452 MB, free: 5.438 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006308/0.5384, allocations: 1.186 MB / 453.2 MB, free: 4.25 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.3129/0.8513, allocations: 20.32 MB / 473.5 MB, free: 21.23 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0176/0.8689, allocations: 9.426 MB / 482.9 MB, free: 20.45 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00449/0.8735, allocations: 2.035 MB / 484.9 MB, free: 20.45 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004681/0.8782, allocations: 2.646 MB / 487.6 MB, free: 20.44 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001621/0.8799, allocations: 265.2 kB / 487.8 MB, free: 20.44 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00367/0.8836, allocations: 1.128 MB / 489 MB, free: 20.44 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004222/0.8878, allocations: 3.026 MB / 492 MB, free: 20.44 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002776/0.8907, allocations: 1.52 MB / 493.5 MB, free: 20.41 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01279/0.9035, allocations: 10.44 MB / 0.4921 GB, free: 17.24 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.855e-06/0.9035, allocations: 4.672 kB / 0.4921 GB, free: 17.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.861e-06/0.9035, allocations: 0 / 0.4921 GB, free: 17.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003694/0.9039, allocations: 0 / 0.4921 GB, free: 17.24 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: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.02052/0.9244, allocations: 7.812 MB / 0.4998 GB, free: 12.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.9245, allocations: 11.23 kB / 0.4998 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1192/1.044, allocations: 11.96 MB / 0.5115 GB, free: 6.375 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01436/1.058, allocations: 6.269 MB / 0.5176 GB, free: 1.887 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004834/1.059, allocations: 468.2 kB / 0.518 GB, free: 1.629 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003601/1.062, allocations: 0.9662 MB / 0.519 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04596/1.108, allocations: 17.43 MB / 0.536 GB, free: 3.293 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004655/1.109, allocations: 87.52 kB / 0.5361 GB, free: 3.242 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002227/1.111, allocations: 287.8 kB / 0.5364 GB, free: 3.164 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005498/1.117, allocations: 2.659 MB / 0.5389 GB, free: 1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0421/1.159, allocations: 14.72 MB / 0.5533 GB, free: 6.473 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1198/1.279, allocations: 67.53 MB / 0.6193 GB, free: 14.29 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0273/1.306, allocations: 7.15 MB / 0.6263 GB, free: 8.516 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2723/1.578, allocations: 14.96 MB / 0.6409 GB, free: 191.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.829e-05/1.578, allocations: 59.88 kB / 0.6409 GB, free: 191.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=261): time 7.497e-06/1.578, allocations: 2.438 kB / 0.6409 GB, free: 191.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=289): time 0.09547/1.674, allocations: 28.48 MB / 0.6687 GB, free: 181.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004233/1.678, allocations: 6.314 MB / 0.6749 GB, free: 175.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01366/1.692, allocations: 7.073 MB / 0.6818 GB, free: 172.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007169/1.693, allocations: 67.16 kB / 0.6819 GB, free: 172.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003669/1.696, allocations: 5.027 MB / 0.6868 GB, free: 168.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001769/1.698, allocations: 1.19 MB / 0.6879 GB, free: 167.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001016/1.699, allocations: 191.5 kB / 0.6881 GB, free: 167.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006463/1.7, allocations: 0.7156 MB / 0.6888 GB, free: 167.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008408/1.708, allocations: 4.043 MB / 0.6928 GB, free: 165.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01105/1.719, allocations: 9.824 MB / 0.7024 GB, free: 152.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.011/1.73, allocations: 6.076 MB / 0.7083 GB, free: 146.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001606/1.731, allocations: 60 kB / 0.7084 GB, free: 146.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=1267) (initialization): time 0.03687/1.767, allocations: 15.87 MB / 0.7239 GB, free: 130.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001591/1.768, allocations: 95.94 kB / 0.7239 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02748/1.795, allocations: 7.506 MB / 0.7313 GB, free: 123.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02549/1.821, allocations: 3.652 MB / 0.7348 GB, free: 119.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01897/1.84, allocations: 2.297 MB / 0.7371 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02938/1.869, allocations: 13.64 MB / 0.7504 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01136/1.881, allocations: 0.8385 MB / 0.7512 GB, free: 101.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002041/1.883, allocations: 0.5895 MB / 0.7518 GB, free: 101.2 MB / 490.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: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (1191): * Single equations (assignments): 1166 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 4 {3 1,3 1,3 1,3 1} Notification: Performance of prepare postOptimizeDAE: time 0.008116/1.891, allocations: 3.409 MB / 0.7551 GB, free: 97.79 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/1.892, allocations: 0.5823 MB / 0.7557 GB, free: 97.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02006/1.912, allocations: 7.827 MB / 0.7633 GB, free: 89.32 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01755/1.93, allocations: 6.972 MB / 0.7701 GB, free: 82.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.206e-05/1.93, allocations: 8 kB / 0.7702 GB, free: 82.29 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.871e-05/1.93, allocations: 19.94 kB / 0.7702 GB, free: 82.27 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01572/1.946, allocations: 7.564 MB / 0.7776 GB, free: 74.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.48e-05/1.946, allocations: 0 / 0.7776 GB, free: 74.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004006/1.95, allocations: 0.6202 MB / 0.7782 GB, free: 74.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01184/1.962, allocations: 3.211 MB / 0.7813 GB, free: 70.84 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007667/1.963, allocations: 95.91 kB / 0.7814 GB, free: 70.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0165/1.979, allocations: 14.3 MB / 0.7954 GB, free: 55.65 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0038/1.983, allocations: 6.079 MB / 0.8013 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02419/2.007, allocations: 11.97 MB / 0.813 GB, free: 36.91 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003473/2.011, allocations: 1.177 MB / 0.8141 GB, free: 35.71 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001491/2.012, allocations: 81.61 kB / 0.8142 GB, free: 35.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004807/2.017, allocations: 371.4 kB / 0.8146 GB, free: 35.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/2.018, allocations: 217.5 kB / 0.8148 GB, free: 35.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003606/2.019, allocations: 97.34 kB / 0.8149 GB, free: 34.96 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008891/2.027, allocations: 4.478 MB / 0.8192 GB, free: 30.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.02e-06/2.028, allocations: 0 / 0.8192 GB, free: 30.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01084/2.038, allocations: 2.065 MB / 0.8213 GB, free: 28.44 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * 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 (235): * Single equations (assignments): 218 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001044/2.039, allocations: 244.7 kB / 0.8215 GB, free: 28.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02216/2.062, allocations: 11.47 MB / 0.8327 GB, free: 16.52 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/2.062, allocations: 4.062 kB / 0.8327 GB, free: 16.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01129/2.073, allocations: 5.456 MB / 0.838 GB, free: 10.79 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005325/2.078, allocations: 0.8453 MB / 0.8388 GB, free: 9.941 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2948/2.373, allocations: 23.55 MB / 0.8618 GB, free: 175.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01231/2.386, allocations: 5.408 MB / 0.8671 GB, free: 174.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002686/2.388, allocations: 0.4913 MB / 0.8676 GB, free: 174.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.765e-06/2.388, allocations: 3.875 kB / 0.8676 GB, free: 174.9 MB / 490.7 MB Notification: Performance of Templates: time 1.137/3.525, allocations: 0.5024 GB / 1.37 GB, free: 33.91 MB / 490.7 MB