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/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.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.836/1.836, allocations: 209.2 MB / 224.8 MB, free: 1.219 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004554/0.0004556, allocations: 16 kB / 282.5 MB, free: 9.773 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.08728, allocations: 48.7 MB / 331.2 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.2513/0.3387, allocations: 32 MB / 363.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02151/0.3602, allocations: 7.382 MB / 370.6 MB, free: 8.605 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008127/0.3684, allocations: 146.6 kB / 370.7 MB, free: 8.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005601/0.374, allocations: 1.646 MB / 372.4 MB, free: 8.066 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01705/0.3911, allocations: 4.639 MB / 377 MB, free: 4.914 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002053/0.3932, allocations: 259.2 kB / 377.2 MB, free: 4.746 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003433/0.3967, allocations: 1.376 MB / 378.6 MB, free: 3.934 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005628/0.4024, allocations: 3.005 MB / 381.6 MB, free: 2.145 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00115/0.4036, allocations: 0.5943 MB / 382.2 MB, free: 1.832 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.4049, allocations: 0.7932 MB / 383 MB, free: 1.074 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003327/0.4053, allocations: 96 kB / 383.1 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.4067, allocations: 0.5305 MB / 383.6 MB, free: 460 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001417/0.4082, allocations: 0.9858 MB / 384.6 MB, free: 15.46 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000748/0.409, allocations: 0.5663 MB / 385.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005511/0.4145, allocations: 3.719 MB / 388.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.4145, allocations: 0 / 388.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4145, allocations: 0 / 388.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.82e-05/0.4146, allocations: 0 / 388.9 MB, free: 11.16 MB / 314.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.005887/0.4205, allocations: 2.644 MB / 391.6 MB, free: 8.453 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.4206, allocations: 12.03 kB / 391.6 MB, free: 8.441 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008416/0.429, allocations: 1.946 MB / 393.5 MB, free: 6.488 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003576/0.4327, allocations: 1.378 MB / 394.9 MB, free: 5.062 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/0.4329, allocations: 160 kB / 395 MB, free: 4.902 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006066/0.4335, allocations: 211.8 kB / 395.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01629/0.4498, allocations: 6.992 MB / 402.2 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.373e-05/0.4499, allocations: 19.77 kB / 402.3 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000378/0.4503, allocations: 95.89 kB / 402.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003117/0.4535, allocations: 1.521 MB / 403.9 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01576/0.4693, allocations: 5.967 MB / 409.8 MB, free: 5.746 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04076/0.5101, allocations: 22.18 MB / 432 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006519/0.5166, allocations: 2.191 MB / 434.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009523/0.5262, allocations: 3.989 MB / 438.2 MB, free: 8.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.5263, allocations: 39.22 kB / 438.2 MB, free: 8.473 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 4.943e-06/0.5263, allocations: 0 / 438.2 MB, free: 8.473 MB / 362.7 MB Notification: Performance of matching and sorting (n=96): time 0.008608/0.5349, allocations: 2.505 MB / 440.7 MB, free: 5.906 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.535, allocations: 67.94 kB / 440.8 MB, free: 5.828 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00367/0.5387, allocations: 2.016 MB / 442.8 MB, free: 3.812 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.5388, allocations: 37.7 kB / 442.9 MB, free: 3.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001812/0.5407, allocations: 2.017 MB / 444.9 MB, free: 1.723 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004704/0.5412, allocations: 379.2 kB / 445.3 MB, free: 1.348 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.5413, allocations: 60 kB / 445.3 MB, free: 1.289 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003655/0.5417, allocations: 461.9 kB / 445.8 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002147/0.5439, allocations: 0.9784 MB / 446.7 MB, free: 15.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003929/0.5478, allocations: 2.961 MB / 449.7 MB, free: 11.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003489/0.5513, allocations: 1.698 MB / 451.4 MB, free: 10.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.978e-05/0.5514, allocations: 20 kB / 451.4 MB, free: 10.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=432) (initialization): time 0.008771/0.5602, allocations: 3.79 MB / 455.2 MB, free: 6.391 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.989e-05/0.5603, allocations: 36 kB / 455.2 MB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.595e-05/0.5604, allocations: 68 kB / 455.3 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/0.5606, allocations: 104 kB / 455.4 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003342/0.564, allocations: 0.7213 MB / 456.1 MB, free: 5.465 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001542/0.5641, allocations: 135.5 kB / 456.3 MB, free: 5.332 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/0.567, allocations: 451.4 kB / 456.7 MB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004491/0.5674, allocations: 204 kB / 456.9 MB, free: 4.688 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 319 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (398): * Single equations (assignments): 393 * Array equations: 5 * 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.00286/0.5703, allocations: 1.443 MB / 458.3 MB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003237/0.5707, allocations: 177.6 kB / 458.5 MB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002739/0.5734, allocations: 1.248 MB / 459.8 MB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.103e-05/0.5735, allocations: 12 kB / 459.8 MB, free: 1.789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.931e-06/0.5735, allocations: 0 / 459.8 MB, free: 1.789 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.5735, allocations: 3.984 kB / 459.8 MB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.5843, allocations: 5.013 MB / 464.8 MB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.065e-05/0.5844, allocations: 12 kB / 464.8 MB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007563/0.5851, allocations: 144.5 kB / 465 MB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.119e-05/0.5852, allocations: 19.98 kB / 465 MB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.45e-05/0.5853, allocations: 27.98 kB / 465 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.466e-05/0.5853, allocations: 23.89 kB / 465 MB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-05/0.5854, allocations: 15.94 kB / 465 MB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002739/0.5881, allocations: 1.566 MB / 466.6 MB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005254/0.5887, allocations: 274.5 kB / 466.9 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.5889, allocations: 24 kB / 466.9 MB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008193/0.5897, allocations: 39.97 kB / 466.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.5899, allocations: 83.7 kB / 467 MB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.59, allocations: 36 kB / 467.1 MB, free: 10.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002496/0.5925, allocations: 1.32 MB / 468.4 MB, free: 8.805 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.75e-07/0.5926, allocations: 0 / 468.4 MB, free: 8.805 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003507/0.5961, allocations: 0.7737 MB / 469.1 MB, free: 8.027 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (76): * Single equations (assignments): 73 * 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.0003657/0.5965, allocations: 150.9 kB / 469.3 MB, free: 7.871 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004771/0.6013, allocations: 2.272 MB / 471.6 MB, free: 5.613 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.227e-06/0.6013, allocations: 0 / 471.6 MB, free: 5.613 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.6024, allocations: 0.5651 MB / 472.1 MB, free: 5.051 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.6038, allocations: 254.5 kB / 472.4 MB, free: 4.805 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.6176, allocations: 7.273 MB / 479.7 MB, free: 13.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003833/0.6215, allocations: 2.521 MB / 482.2 MB, free: 10.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000648/0.6222, allocations: 159.4 kB / 482.3 MB, free: 10.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.761e-06/0.6222, allocations: 0 / 482.3 MB, free: 10.66 MB / 410.7 MB Notification: Performance of Templates: time 0.2798/0.902, allocations: 32.22 MB / 0.5025 GB, free: 134.8 MB / 426.7 MB