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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.255/2.255, allocations: 234.9 MB / 250.5 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004525/0.0004527, allocations: 8 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2907, allocations: 54.86 MB / 369.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.04308/0.3338, allocations: 32.01 MB / 401.2 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01855/0.3524, allocations: 7.39 MB / 408.6 MB, free: 3.066 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00565/0.3581, allocations: 147.7 kB / 408.7 MB, free: 2.922 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004904/0.363, allocations: 1.645 MB / 410.4 MB, free: 1.27 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01511/0.3782, allocations: 4.633 MB / 415 MB, free: 12.62 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.38, allocations: 267.5 kB / 415.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003128/0.3831, allocations: 1.372 MB / 416.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005404/0.3886, allocations: 3.018 MB / 419.7 MB, free: 7.906 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.3896, allocations: 0.5995 MB / 420.2 MB, free: 7.305 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001236/0.3909, allocations: 0.7863 MB / 421 MB, free: 6.516 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002851/0.3912, allocations: 96 kB / 421.1 MB, free: 6.422 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001184/0.3924, allocations: 0.5228 MB / 421.7 MB, free: 5.898 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001194/0.3936, allocations: 0.9896 MB / 422.6 MB, free: 4.906 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006683/0.3943, allocations: 0.5624 MB / 423.2 MB, free: 4.336 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00493/0.3993, allocations: 3.722 MB / 426.9 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.278e-06/0.3993, allocations: 0 / 426.9 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.326e-06/0.3993, allocations: 0 / 426.9 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.086e-05/0.3994, allocations: 0 / 426.9 MB, free: 0.6055 MB / 346.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.005363/0.4047, allocations: 2.644 MB / 429.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.4048, allocations: 12.03 kB / 429.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008393/0.4132, allocations: 1.946 MB / 431.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003415/0.4166, allocations: 1.382 MB / 432.9 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.4169, allocations: 160 kB / 433.1 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006078/0.4175, allocations: 207.9 kB / 433.3 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/0.4319, allocations: 6.992 MB / 440.3 MB, free: 2.801 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.231e-05/0.432, allocations: 11.88 kB / 440.3 MB, free: 2.789 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003745/0.4323, allocations: 99.89 kB / 440.4 MB, free: 2.691 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003017/0.4354, allocations: 1.521 MB / 441.9 MB, free: 1.168 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02468/0.4601, allocations: 5.974 MB / 447.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07282/0.533, allocations: 22.17 MB / 470 MB, free: 4.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00626/0.5393, allocations: 2.198 MB / 472.2 MB, free: 2.086 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2588/0.7982, allocations: 3.974 MB / 476.2 MB, free: 92.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.7982, allocations: 37.97 kB / 476.2 MB, free: 92.68 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 5.124e-06/0.7982, allocations: 0 / 476.2 MB, free: 92.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.008475/0.8067, allocations: 2.504 MB / 478.7 MB, free: 92 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.8068, allocations: 58.94 kB / 478.8 MB, free: 91.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003494/0.8103, allocations: 2.023 MB / 480.8 MB, free: 91.27 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001336/0.8105, allocations: 38.33 kB / 480.9 MB, free: 91.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.8116, allocations: 2.016 MB / 482.9 MB, free: 89.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003561/0.8119, allocations: 370.2 kB / 483.2 MB, free: 89.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.8121, allocations: 73.2 kB / 483.3 MB, free: 89.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002166/0.8123, allocations: 452.3 kB / 483.8 MB, free: 89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001923/0.8143, allocations: 0.9805 MB / 484.7 MB, free: 88.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/0.817, allocations: 2.963 MB / 487.7 MB, free: 85.74 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002806/0.8198, allocations: 1.696 MB / 489.4 MB, free: 85.13 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.865e-05/0.8199, allocations: 27.12 kB / 489.4 MB, free: 85.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=432) (initialization): time 0.008526/0.8284, allocations: 3.789 MB / 493.2 MB, free: 83.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.314e-05/0.8285, allocations: 36 kB / 493.2 MB, free: 83.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.007e-05/0.8286, allocations: 68 kB / 493.3 MB, free: 83.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001111/0.8287, allocations: 104.5 kB / 493.4 MB, free: 83.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002818/0.8315, allocations: 0.7195 MB / 494.1 MB, free: 82.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001069/0.8317, allocations: 139.2 kB / 494.3 MB, free: 82.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002801/0.8345, allocations: 452.1 kB / 494.7 MB, free: 82.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004207/0.835, allocations: 207.6 kB / 494.9 MB, free: 81.94 MB / 394.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.0025/0.8375, allocations: 1.456 MB / 496.4 MB, free: 80.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.8378, allocations: 177.8 kB / 496.5 MB, free: 80.49 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002256/0.84, allocations: 1.228 MB / 497.8 MB, free: 79.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.449e-05/0.8401, allocations: 15.73 kB / 497.8 MB, free: 79.42 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.562e-06/0.8401, allocations: 4 kB / 497.8 MB, free: 79.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.8401, allocations: 4.875 kB / 497.8 MB, free: 79.41 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009252/0.8494, allocations: 5.008 MB / 0.491 GB, free: 74.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/0.8494, allocations: 13.09 kB / 0.491 GB, free: 74.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006914/0.8501, allocations: 147.7 kB / 0.4912 GB, free: 74.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.019e-05/0.8502, allocations: 19.95 kB / 0.4912 GB, free: 74.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.373e-05/0.8503, allocations: 24 kB / 0.4912 GB, free: 74.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.602e-05/0.8503, allocations: 19.92 kB / 0.4912 GB, free: 74.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.049e-05/0.8503, allocations: 15.94 kB / 0.4912 GB, free: 74.14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.8523, allocations: 1.567 MB / 0.4928 GB, free: 72.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004408/0.8528, allocations: 282.4 kB / 0.493 GB, free: 72.12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.8531, allocations: 29.05 kB / 0.4931 GB, free: 72.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008107/0.8539, allocations: 43.97 kB / 0.4931 GB, free: 72.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.854, allocations: 79.72 kB / 0.4932 GB, free: 71.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.808e-05/0.8541, allocations: 45.95 kB / 0.4932 GB, free: 71.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002091/0.8562, allocations: 1.32 MB / 0.4945 GB, free: 70.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.86e-07/0.8563, allocations: 0 / 0.4945 GB, free: 70.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003243/0.8595, allocations: 0.7657 MB / 0.4953 GB, free: 69.82 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.0003236/0.8599, allocations: 150.4 kB / 0.4954 GB, free: 69.67 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00387/0.8638, allocations: 2.271 MB / 0.4976 GB, free: 67.42 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.825e-06/0.8638, allocations: 1.75 kB / 0.4976 GB, free: 67.42 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009373/0.8648, allocations: 0.5562 MB / 0.4982 GB, free: 66.87 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.8661, allocations: 243.4 kB / 0.4984 GB, free: 66.63 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/0.8776, allocations: 7.276 MB / 0.5055 GB, free: 59.19 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003191/0.8808, allocations: 2.513 MB / 0.508 GB, free: 56.65 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006348/0.8815, allocations: 159.4 kB / 0.5081 GB, free: 56.49 MB / 394.7 MB Notification: Performance of SimCode: time 1.996e-06/0.8815, allocations: 4 kB / 0.5081 GB, free: 56.49 MB / 394.7 MB Notification: Performance of Templates: time 0.04739/0.9289, allocations: 32.26 MB / 0.5396 GB, free: 24.24 MB / 394.7 MB