Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadModel(ModelicaTest): time 2.19/2.19, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.614e-05/1.623e-05, allocations: 4 kB / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3244, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.474, allocations: 95.28 MB / 453.3 MB, free: 15.53 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.4743, allocations: 75.95 kB / 453.4 MB, free: 15.46 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4331/0.9075, allocations: 55.6 MB / 0.4971 GB, free: 71.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.91e-06/0.9075, allocations: 0 / 0.4971 GB, free: 71.5 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.726e-05/0.9076, allocations: 56 kB / 0.4971 GB, free: 71.45 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: 1092 * Number of variables: 1092 Notification: Performance of Generate backend data structure: time 0.005962/0.9136, allocations: 2.669 MB / 0.4997 GB, free: 68.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.9137, allocations: 8.031 kB / 0.4997 GB, free: 68.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009392/0.9231, allocations: 1.833 MB / 0.5015 GB, free: 66.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004229/0.9273, allocations: 1.742 MB / 0.5032 GB, free: 65.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.9275, allocations: 96 kB / 0.5033 GB, free: 65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007344/0.9282, allocations: 172 kB / 0.5035 GB, free: 64.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008209/0.9365, allocations: 4.485 MB / 0.5079 GB, free: 60.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/0.9489, allocations: 6.219 MB / 0.5139 GB, free: 53.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.863e-05/0.949, allocations: 15.88 kB / 0.5139 GB, free: 53.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004565/0.9495, allocations: 12 kB / 0.514 GB, free: 53.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009756/0.9505, allocations: 0.7044 MB / 0.5146 GB, free: 53.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03112/0.9816, allocations: 23.51 MB / 0.5376 GB, free: 28.87 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.9836, allocations: 1.527 MB / 0.5391 GB, free: 27.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008428/0.9844, allocations: 0.5742 MB / 0.5397 GB, free: 26.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.622e-05/0.9845, allocations: 13.94 kB / 0.5397 GB, free: 26.62 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.9845, allocations: 43.34 kB / 0.5397 GB, free: 26.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=108): time 4.149e-06/0.9845, allocations: 0 / 0.5397 GB, free: 26.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=108): time 0.004022/0.9886, allocations: 1.503 MB / 0.5412 GB, free: 25.06 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/0.9886, allocations: 64.17 kB / 0.5412 GB, free: 24.99 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002547/0.9912, allocations: 1.626 MB / 0.5428 GB, free: 23.36 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000119/0.9913, allocations: 29.64 kB / 0.5429 GB, free: 23.33 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001014/0.9924, allocations: 2.063 MB / 0.5449 GB, free: 21.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003636/0.9927, allocations: 410.7 kB / 0.5453 GB, free: 20.83 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.9929, allocations: 0 / 0.5453 GB, free: 20.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002213/0.9931, allocations: 462.4 kB / 0.5457 GB, free: 20.37 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/0.9947, allocations: 0.9361 MB / 0.5466 GB, free: 19.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002356/0.997, allocations: 3.058 MB / 0.5496 GB, free: 15.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002746/0.9998, allocations: 1.732 MB / 0.5513 GB, free: 13.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.512e-05/0.9999, allocations: 20 kB / 0.5513 GB, free: 13.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=456) (initialization): time 0.007261/1.007, allocations: 3.496 MB / 0.5547 GB, free: 10.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.306e-05/1.007, allocations: 42.88 kB / 0.5548 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.546e-05/1.007, allocations: 80 kB / 0.5548 GB, free: 9.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001212/1.007, allocations: 116 kB / 0.555 GB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002789/1.01, allocations: 0.7759 MB / 0.5557 GB, free: 9.035 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.814e-05/1.01, allocations: 155.4 kB / 0.5559 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002859/1.013, allocations: 407.1 kB / 0.5563 GB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004729/1.014, allocations: 216 kB / 0.5565 GB, free: 8.27 MB / 394.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.0005018/1.014, allocations: 293.3 kB / 0.5567 GB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002518/1.015, allocations: 173.8 kB / 0.5569 GB, free: 7.805 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00243/1.017, allocations: 1.354 MB / 0.5582 GB, free: 6.434 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/1.017, allocations: 12 kB / 0.5582 GB, free: 6.422 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.305e-06/1.017, allocations: 0 / 0.5582 GB, free: 6.422 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/1.017, allocations: 3.984 kB / 0.5582 GB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008676/1.026, allocations: 4.735 MB / 0.5629 GB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.918e-05/1.026, allocations: 12 kB / 0.5629 GB, free: 1.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007954/1.027, allocations: 160.6 kB / 0.563 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.146e-05/1.027, allocations: 16 kB / 0.563 GB, free: 1.309 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.273e-05/1.027, allocations: 20 kB / 0.5631 GB, free: 1.289 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.529e-05/1.027, allocations: 19.92 kB / 0.5631 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-05/1.027, allocations: 15.94 kB / 0.5631 GB, free: 1.254 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002987/1.03, allocations: 2.36 MB / 0.5654 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004979/1.03, allocations: 258.6 kB / 0.5657 GB, free: 14.22 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/1.031, allocations: 12 kB / 0.5657 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008026/1.031, allocations: 27.92 kB / 0.5657 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/1.032, allocations: 84.03 kB / 0.5658 GB, free: 14.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/1.032, allocations: 48 kB / 0.5658 GB, free: 14.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002115/1.034, allocations: 1.083 MB / 0.5669 GB, free: 12.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.034, allocations: 0 / 0.5669 GB, free: 12.98 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003845/1.038, allocations: 0.7112 MB / 0.5676 GB, free: 12.26 MB / 410.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.0003748/1.038, allocations: 138.9 kB / 0.5677 GB, free: 12.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004591/1.043, allocations: 2.216 MB / 0.5699 GB, free: 9.918 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.26e-05/1.043, allocations: 4.688 kB / 0.5699 GB, free: 9.914 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/1.044, allocations: 0.6039 MB / 0.5705 GB, free: 9.312 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/1.045, allocations: 176 kB / 0.5706 GB, free: 9.141 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/1.057, allocations: 5.114 MB / 0.5756 GB, free: 3.852 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004157/1.061, allocations: 2.517 MB / 0.5781 GB, free: 1.309 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006689/1.062, allocations: 167.4 kB / 0.5782 GB, free: 1.145 MB / 410.7 MB Notification: Performance of SimCode: time 1.816e-06/1.062, allocations: 0 / 0.5782 GB, free: 1.145 MB / 410.7 MB Notification: Performance of Templates: time 0.06259/1.125, allocations: 31.33 MB / 0.6088 GB, free: 1.793 MB / 442.7 MB