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.CutTorque2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadModel(ModelicaTest): time 1.988/1.988, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.82e-05/1.82e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2784, allocations: 48.69 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1546/0.4331, allocations: 88.69 MB / 408.7 MB, free: 7.719 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.4333, allocations: 75.94 kB / 408.8 MB, free: 7.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4187/0.8521, allocations: 55.58 MB / 464.4 MB, free: 93.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.925e-06/0.8521, allocations: 0 / 464.4 MB, free: 93.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.103e-05/0.8522, allocations: 54.88 kB / 464.4 MB, free: 93.1 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1092 * Number of variables: 1092 Notification: Performance of Generate backend data structure: time 0.005435/0.8577, allocations: 2.677 MB / 467.1 MB, free: 91.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.8577, allocations: 14.97 kB / 467.1 MB, free: 91.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009318/0.8671, allocations: 1.83 MB / 468.9 MB, free: 91.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004443/0.8715, allocations: 1.737 MB / 470.7 MB, free: 91.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.8717, allocations: 96.94 kB / 470.8 MB, free: 91.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009462/0.8727, allocations: 166.9 kB / 470.9 MB, free: 91.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00856/0.8813, allocations: 4.49 MB / 475.4 MB, free: 90.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.893, allocations: 6.216 MB / 481.6 MB, free: 87.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.64e-05/0.8931, allocations: 14.81 kB / 481.6 MB, free: 87.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004461/0.8936, allocations: 15.75 kB / 481.7 MB, free: 87.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009338/0.8945, allocations: 0.7077 MB / 482.4 MB, free: 86.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02999/0.9245, allocations: 23.51 MB / 0.494 GB, free: 64.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.9265, allocations: 1.515 MB / 0.4955 GB, free: 63.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008613/0.9274, allocations: 0.5844 MB / 0.4961 GB, free: 62.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.014e-05/0.9275, allocations: 16.69 kB / 0.4961 GB, free: 62.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.9275, allocations: 39.34 kB / 0.4961 GB, free: 62.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 4.85e-06/0.9275, allocations: 0 / 0.4961 GB, free: 62.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=108): time 0.003968/0.9315, allocations: 1.499 MB / 0.4976 GB, free: 60.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.9316, allocations: 60.19 kB / 0.4976 GB, free: 60.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002597/0.9342, allocations: 1.638 MB / 0.4992 GB, free: 59.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.9343, allocations: 29.7 kB / 0.4993 GB, free: 59.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00101/0.9353, allocations: 2.063 MB / 0.5013 GB, free: 57.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003649/0.9357, allocations: 406.7 kB / 0.5017 GB, free: 56.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.9358, allocations: 0 / 0.5017 GB, free: 56.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002433/0.9361, allocations: 466.4 kB / 0.5021 GB, free: 56.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/0.9376, allocations: 0.9283 MB / 0.503 GB, free: 55.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002416/0.94, allocations: 3.066 MB / 0.506 GB, free: 51.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002675/0.9427, allocations: 1.721 MB / 0.5077 GB, free: 49.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-05/0.9428, allocations: 23.98 kB / 0.5077 GB, free: 49.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=456) (initialization): time 0.006469/0.9493, allocations: 3.497 MB / 0.5111 GB, free: 45.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.081e-05/0.9494, allocations: 36 kB / 0.5112 GB, free: 45.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.017e-05/0.9495, allocations: 76 kB / 0.5112 GB, free: 45.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001218/0.9496, allocations: 116.8 kB / 0.5114 GB, free: 45.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/0.9523, allocations: 0.7836 MB / 0.5121 GB, free: 44.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-05/0.9524, allocations: 155.4 kB / 0.5123 GB, free: 44.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00271/0.9551, allocations: 395.1 kB / 0.5126 GB, free: 44.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003885/0.9556, allocations: 219.9 kB / 0.5129 GB, free: 44.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 350 * Number of states: 0 () * Number of discrete variables: 21 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (432): * Single equations (assignments): 429 * 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.0004736/0.956, allocations: 305.2 kB / 0.5131 GB, free: 43.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002505/0.9563, allocations: 165.8 kB / 0.5133 GB, free: 43.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/0.9588, allocations: 1.346 MB / 0.5146 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.66e-05/0.9588, allocations: 15.94 kB / 0.5146 GB, free: 42.35 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.9588, allocations: 3.984 kB / 0.5146 GB, free: 42.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.9589, allocations: 7.984 kB / 0.5146 GB, free: 42.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008996/0.9679, allocations: 4.746 MB / 0.5193 GB, free: 37.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.38e-05/0.9679, allocations: 12 kB / 0.5193 GB, free: 37.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007866/0.9687, allocations: 155.7 kB / 0.5194 GB, free: 37.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.349e-05/0.9688, allocations: 16 kB / 0.5195 GB, free: 37.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.332e-05/0.9689, allocations: 20 kB / 0.5195 GB, free: 37.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.685e-05/0.9689, allocations: 19.92 kB / 0.5195 GB, free: 37.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.279e-05/0.9689, allocations: 19.89 kB / 0.5195 GB, free: 37.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/0.9715, allocations: 2.356 MB / 0.5218 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003911/0.9719, allocations: 254.6 kB / 0.5221 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.9722, allocations: 15.69 kB / 0.5221 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008007/0.973, allocations: 23.97 kB / 0.5221 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.9731, allocations: 88.03 kB / 0.5222 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-05/0.9733, allocations: 40 kB / 0.5222 GB, free: 34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001687/0.975, allocations: 1.083 MB / 0.5233 GB, free: 32.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.17e-07/0.975, allocations: 0 / 0.5233 GB, free: 32.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003458/0.9784, allocations: 0.7112 MB / 0.524 GB, free: 32.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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.0003257/0.9788, allocations: 142.9 kB / 0.5241 GB, free: 32.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003567/0.9824, allocations: 2.22 MB / 0.5263 GB, free: 29.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.445e-06/0.9824, allocations: 0 / 0.5263 GB, free: 29.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000872/0.9833, allocations: 0.6043 MB / 0.5269 GB, free: 29.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.9844, allocations: 182 kB / 0.527 GB, free: 29.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00996/0.9944, allocations: 5.123 MB / 0.532 GB, free: 23.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003168/0.9976, allocations: 2.517 MB / 0.5345 GB, free: 21.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000608/0.9983, allocations: 163.4 kB / 0.5347 GB, free: 21.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.874e-06/0.9983, allocations: 3.938 kB / 0.5347 GB, free: 21.09 MB / 378.7 MB Notification: Performance of Templates: time 0.05008/1.048, allocations: 31.33 MB / 0.5653 GB, free: 5.781 MB / 394.7 MB