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.Sensors.CutTorque.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.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutTorque") Notification: Performance of loadModel(ModelicaTest): time 1.904/1.904, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006018/0.000602, allocations: 8 kB / 282.5 MB, free: 9.641 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2865, allocations: 48.71 MB / 331.2 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.1103/0.3968, allocations: 83.63 MB / 414.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04909/0.4459, allocations: 18.57 MB / 433.4 MB, free: 8.086 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01791/0.4639, allocations: 423 kB / 433.8 MB, free: 7.672 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01378/0.4777, allocations: 4.308 MB / 438.1 MB, free: 3.344 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05552/0.5333, allocations: 11.99 MB / 450.1 MB, free: 7.324 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006106/0.5394, allocations: 1.26 MB / 451.4 MB, free: 6.062 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01082/0.5503, allocations: 4.767 MB / 456.1 MB, free: 1.289 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01754/0.5679, allocations: 9.205 MB / 465.3 MB, free: 7.996 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004938/0.5729, allocations: 2.173 MB / 467.5 MB, free: 5.816 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005364/0.5783, allocations: 2.781 MB / 470.3 MB, free: 3.027 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001664/0.58, allocations: 296 kB / 470.6 MB, free: 2.738 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003499/0.5835, allocations: 0.9637 MB / 471.5 MB, free: 1.773 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.5373/1.121, allocations: 3.217 MB / 474.7 MB, free: 12.27 MB / 394.8 MB Notification: Performance of NFVerifyModel.verify: time 0.002959/1.124, allocations: 1.603 MB / 476.4 MB, free: 12.23 MB / 394.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01394/1.138, allocations: 10.46 MB / 486.8 MB, free: 11.48 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.548e-06/1.138, allocations: 0 / 486.8 MB, free: 11.48 MB / 394.8 MB Notification: Performance of FrontEnd: time 3.067e-06/1.138, allocations: 0 / 486.8 MB, free: 11.48 MB / 394.8 MB Notification: Performance of Transformations before backend: time 0.0004577/1.138, allocations: 0 / 486.8 MB, free: 11.48 MB / 394.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2932 * Number of variables: 2932 Notification: Performance of Generate backend data structure: time 0.02083/1.159, allocations: 8.149 MB / 495 MB, free: 8.066 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/1.159, allocations: 8.25 kB / 495 MB, free: 8.066 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01615/1.175, allocations: 3.132 MB / 498.1 MB, free: 7.5 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01328/1.189, allocations: 5.733 MB / 0.492 GB, free: 6.422 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005433/1.189, allocations: 484 kB / 0.4925 GB, free: 6.402 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00258/1.192, allocations: 0.6058 MB / 0.4931 GB, free: 6.398 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04551/1.238, allocations: 19.67 MB / 0.5123 GB, free: 100 kB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003116/1.238, allocations: 78.83 kB / 0.5124 GB, free: 88 kB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002218/1.24, allocations: 294.8 kB / 0.5126 GB, free: 88 kB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008395/1.249, allocations: 3.729 MB / 0.5163 GB, free: 15.61 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04405/1.293, allocations: 15.32 MB / 0.5312 GB, free: 5.723 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1291/1.422, allocations: 73.2 MB / 0.6027 GB, free: 7.566 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02376/1.446, allocations: 6.11 MB / 0.6087 GB, free: 2.547 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0281/1.474, allocations: 11.32 MB / 0.6198 GB, free: 9.227 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.366e-05/1.474, allocations: 56.88 kB / 0.6198 GB, free: 9.18 MB / 490.8 MB Notification: Performance of pre-optimization done (n=250): time 7.357e-06/1.474, allocations: 0 / 0.6198 GB, free: 9.18 MB / 490.8 MB Notification: Performance of matching and sorting (n=274): time 0.06441/1.538, allocations: 16.88 MB / 0.6363 GB, free: 10.2 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/1.538, allocations: 169.4 kB / 0.6365 GB, free: 10.02 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01609/1.555, allocations: 7.185 MB / 0.6435 GB, free: 4.645 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0004988/1.555, allocations: 68.39 kB / 0.6435 GB, free: 4.602 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005804/1.561, allocations: 5.52 MB / 0.6489 GB, free: 176 kB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.2458/1.807, allocations: 1.044 MB / 0.6499 GB, free: 208.2 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009082/1.808, allocations: 186.9 kB / 0.6501 GB, free: 208.2 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0009041/1.809, allocations: 0.7091 MB / 0.6508 GB, free: 207.8 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007843/1.817, allocations: 2.706 MB / 0.6535 GB, free: 207.8 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01101/1.828, allocations: 8.566 MB / 0.6618 GB, free: 199.4 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/1.838, allocations: 4.635 MB / 0.6663 GB, free: 197.7 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002934/1.838, allocations: 58.66 kB / 0.6664 GB, free: 197.7 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.02543/1.864, allocations: 10.7 MB / 0.6769 GB, free: 193.8 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002008/1.864, allocations: 94.22 kB / 0.6769 GB, free: 193.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002849/1.864, allocations: 205.4 kB / 0.6771 GB, free: 193.8 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003406/1.864, allocations: 306.4 kB / 0.6774 GB, free: 193.8 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00948/1.874, allocations: 2.174 MB / 0.6796 GB, free: 193.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004068/1.874, allocations: 416.9 kB / 0.6799 GB, free: 193.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009067/1.883, allocations: 469.2 kB / 0.6804 GB, free: 193.3 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00178/1.885, allocations: 0.5683 MB / 0.681 GB, free: 193.2 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 948 * Number of states: 0 () * Number of discrete variables: 57 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1176): * Single equations (assignments): 1165 * Array equations: 11 * 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.008618/1.894, allocations: 3.747 MB / 0.6846 GB, free: 191.6 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/1.895, allocations: 0.5823 MB / 0.6852 GB, free: 191.6 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006565/1.902, allocations: 2.982 MB / 0.6881 GB, free: 189.1 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.154e-05/1.902, allocations: 31.52 kB / 0.6881 GB, free: 189.1 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/1.902, allocations: 0 / 0.6881 GB, free: 189.1 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.498e-05/1.902, allocations: 13.02 kB / 0.6881 GB, free: 189.1 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04455/1.946, allocations: 25.15 MB / 0.7127 GB, free: 167.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001119/1.947, allocations: 67.38 kB / 0.7128 GB, free: 167.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002576/1.949, allocations: 0.613 MB / 0.7134 GB, free: 166.7 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.901e-05/1.949, allocations: 96 kB / 0.7134 GB, free: 166.6 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003057/1.95, allocations: 138.8 kB / 0.7136 GB, free: 166.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.334e-05/1.95, allocations: 125.5 kB / 0.7137 GB, free: 166.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.923e-05/1.95, allocations: 103.4 kB / 0.7138 GB, free: 166.2 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006949/1.957, allocations: 5.859 MB / 0.7195 GB, free: 159.7 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001989/1.959, allocations: 0.7376 MB / 0.7202 GB, free: 158.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001256/1.96, allocations: 151.2 kB / 0.7204 GB, free: 158.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004036/1.964, allocations: 151.3 kB / 0.7205 GB, free: 158.7 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006875/1.965, allocations: 423.2 kB / 0.7209 GB, free: 158.3 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003482/1.965, allocations: 177.4 kB / 0.7211 GB, free: 158.2 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009278/1.974, allocations: 4.56 MB / 0.7256 GB, free: 154 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.238e-06/1.974, allocations: 0 / 0.7256 GB, free: 154 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01155/1.986, allocations: 1.572 MB / 0.7271 GB, free: 152.4 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 288 * 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 simulation (326): * Single equations (assignments): 323 * Array equations: 3 * 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.001072/1.987, allocations: 342.1 kB / 0.7274 GB, free: 152.1 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01242/2, allocations: 6.336 MB / 0.7336 GB, free: 145.8 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 4.167e-05/2, allocations: 8.562 kB / 0.7336 GB, free: 145.8 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003112/2.003, allocations: 1.637 MB / 0.7352 GB, free: 144.1 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006035/2.009, allocations: 0.9116 MB / 0.7361 GB, free: 143.2 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03813/2.047, allocations: 22.22 MB / 0.7578 GB, free: 120.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01273/2.06, allocations: 5.963 MB / 0.7636 GB, free: 114.1 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001923/2.062, allocations: 499.4 kB / 0.7641 GB, free: 113.6 MB / 0.4949 GB Notification: Performance of SimCode: time 2.382e-06/2.062, allocations: 0 / 0.7641 GB, free: 113.6 MB / 0.4949 GB Notification: Performance of Templates: time 0.4146/2.476, allocations: 95.59 MB / 0.8574 GB, free: 166.2 MB / 0.4949 GB