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.879/1.879, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.025e-05/3.036e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08551/0.08556, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.356/0.4417, allocations: 92.07 MB / 418.6 MB, free: 15.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/0.4419, allocations: 81.94 kB / 418.7 MB, free: 15.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8587/1.301, allocations: 166.3 MB / 0.5712 GB, free: 73.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.027e-06/1.301, allocations: 0 / 0.5712 GB, free: 73.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003898/1.301, allocations: 158.2 kB / 0.5714 GB, free: 73.75 MB / 426.7 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.02337/1.325, allocations: 7.98 MB / 0.5792 GB, free: 70.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/1.325, allocations: 9.375 kB / 0.5792 GB, free: 70.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0234/1.348, allocations: 3.671 MB / 0.5828 GB, free: 70.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02564/1.374, allocations: 9.676 MB / 0.5922 GB, free: 68.99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007344/1.374, allocations: 0.6302 MB / 0.5928 GB, free: 68.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003477/1.378, allocations: 0.8275 MB / 0.5936 GB, free: 68.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04666/1.425, allocations: 19.37 MB / 0.6126 GB, free: 61.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003792/1.425, allocations: 93.64 kB / 0.6126 GB, free: 61.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002934/1.428, allocations: 401.8 kB / 0.613 GB, free: 61.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003466/1.432, allocations: 1.866 MB / 0.6149 GB, free: 60.46 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03762/1.469, allocations: 15.05 MB / 0.6295 GB, free: 47.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.424/1.893, allocations: 81.53 MB / 0.7092 GB, free: 28.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02224/1.915, allocations: 5.915 MB / 0.7149 GB, free: 28.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005516/1.921, allocations: 2.475 MB / 0.7174 GB, free: 28.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02477/1.946, allocations: 11.34 MB / 0.7284 GB, free: 25.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/1.946, allocations: 56.28 kB / 0.7285 GB, free: 25.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=250): time 6.79e-06/1.946, allocations: 3.031 kB / 0.7285 GB, free: 25.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=274): time 0.05153/1.997, allocations: 14.99 MB / 0.7431 GB, free: 20.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/1.998, allocations: 163.3 kB / 0.7433 GB, free: 20.22 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01198/2.01, allocations: 5.835 MB / 0.749 GB, free: 19.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004422/2.01, allocations: 67.58 kB / 0.7491 GB, free: 19.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003894/2.014, allocations: 5.567 MB / 0.7545 GB, free: 16.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001199/2.015, allocations: 1.061 MB / 0.7555 GB, free: 15.94 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008336/2.016, allocations: 179.8 kB / 0.7557 GB, free: 15.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006203/2.017, allocations: 0.6968 MB / 0.7564 GB, free: 15.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005272/2.022, allocations: 2.48 MB / 0.7588 GB, free: 15.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00875/2.031, allocations: 8.249 MB / 0.7669 GB, free: 8.102 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008341/2.039, allocations: 4.464 MB / 0.7712 GB, free: 8.059 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000184/2.039, allocations: 58.25 kB / 0.7713 GB, free: 8.059 MB / 442.7 MB Notification: Performance of matching and sorting (n=1192) (initialization): time 0.02279/2.062, allocations: 10.18 MB / 0.7812 GB, free: 6.039 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001644/2.062, allocations: 101.2 kB / 0.7813 GB, free: 6.035 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002434/2.063, allocations: 204.3 kB / 0.7815 GB, free: 6.035 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003396/2.063, allocations: 300.4 kB / 0.7818 GB, free: 6.035 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009419/2.072, allocations: 2.25 MB / 0.784 GB, free: 5.766 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003582/2.073, allocations: 404.4 kB / 0.7844 GB, free: 5.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01011/2.083, allocations: 0.6211 MB / 0.785 GB, free: 5.516 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001711/2.085, allocations: 0.5538 MB / 0.7855 GB, free: 5.441 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 940 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1168): * Single equations (assignments): 1165 * 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 prepare postOptimizeDAE: time 0.00215/2.087, allocations: 0.8234 MB / 0.7863 GB, free: 4.777 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/2.088, allocations: 0.5861 MB / 0.7869 GB, free: 4.453 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006448/2.095, allocations: 2.936 MB / 0.7898 GB, free: 3.316 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.198e-05/2.095, allocations: 27.75 kB / 0.7898 GB, free: 3.316 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/2.095, allocations: 0 / 0.7898 GB, free: 3.316 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.215e-05/2.095, allocations: 16.5 kB / 0.7898 GB, free: 3.316 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05058/2.145, allocations: 24.77 MB / 0.814 GB, free: 4.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001501/2.146, allocations: 64 kB / 0.8141 GB, free: 4.777 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002953/2.149, allocations: 0.6011 MB / 0.8146 GB, free: 4.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00013/2.149, allocations: 88 kB / 0.8147 GB, free: 4.164 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004826/2.149, allocations: 139.8 kB / 0.8149 GB, free: 4.031 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001229/2.149, allocations: 116.6 kB / 0.815 GB, free: 3.93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001039/2.149, allocations: 102.9 kB / 0.8151 GB, free: 3.832 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01628/2.166, allocations: 16.86 MB / 0.8315 GB, free: 0.9258 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002513/2.168, allocations: 0.7166 MB / 0.8322 GB, free: 224 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001785/2.17, allocations: 139 kB / 0.8324 GB, free: 96 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005667/2.176, allocations: 246.8 kB / 0.8326 GB, free: 0 / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001037/2.177, allocations: 416.8 kB / 0.833 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004885/2.177, allocations: 167.2 kB / 0.8332 GB, free: 15.51 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01116/2.189, allocations: 4.086 MB / 0.8371 GB, free: 11.92 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.535e-06/2.189, allocations: 3.938 kB / 0.8371 GB, free: 11.92 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01242/2.201, allocations: 1.545 MB / 0.8387 GB, free: 10.38 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 280 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 315 * 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.001222/2.202, allocations: 316.8 kB / 0.839 GB, free: 10.07 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01414/2.216, allocations: 6.024 MB / 0.8448 GB, free: 4.555 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-05/2.217, allocations: 8 kB / 0.8448 GB, free: 4.547 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003587/2.22, allocations: 1.579 MB / 0.8464 GB, free: 3.125 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006718/2.227, allocations: 0.9178 MB / 0.8473 GB, free: 2.348 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0415/2.268, allocations: 15.73 MB / 0.8626 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02279/2.291, allocations: 6.369 MB / 0.8689 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001989/2.293, allocations: 490 kB / 0.8693 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of SimCode: time 4.286e-06/2.293, allocations: 0 / 0.8693 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.4335/2.727, allocations: 95.49 MB / 0.9626 GB, free: 127.1 MB / 0.5105 GB