Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.866/1.866, allocations: 209.2 MB / 225.4 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004493/0.0004497, allocations: 16 kB / 283.1 MB, free: 9.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1072, allocations: 48.71 MB / 331.8 MB, free: 9.047 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4223/0.5295, allocations: 89.43 MB / 421.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.5299, allocations: 79.97 kB / 421.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.246/0.7759, allocations: 57.07 MB / 478.4 MB, free: 2.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.396e-06/0.776, allocations: 0 / 478.4 MB, free: 2.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001546/0.7762, allocations: 56 kB / 478.4 MB, free: 2.215 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.01079/0.787, allocations: 2.774 MB / 481.2 MB, free: 15.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.787, allocations: 8.031 kB / 481.2 MB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01439/0.8014, allocations: 1.844 MB / 483.1 MB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006384/0.8079, allocations: 1.739 MB / 484.8 MB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003334/0.8083, allocations: 229.9 kB / 485 MB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001714/0.81, allocations: 287.9 kB / 485.3 MB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02185/0.8319, allocations: 6.83 MB / 492.1 MB, free: 4.012 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.983e-05/0.832, allocations: 15.88 kB / 492.1 MB, free: 3.996 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006722/0.8327, allocations: 135.9 kB / 492.3 MB, free: 3.863 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001546/0.8343, allocations: 0.6962 MB / 493 MB, free: 3.164 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2893/1.124, allocations: 5.942 MB / 498.9 MB, free: 98.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04687/1.17, allocations: 23.82 MB / 0.5105 GB, free: 87.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007262/1.178, allocations: 2.195 MB / 0.5126 GB, free: 86.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01242/1.19, allocations: 4.017 MB / 0.5165 GB, free: 84.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/1.19, allocations: 37.69 kB / 0.5166 GB, free: 84.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 5.14e-06/1.19, allocations: 3.031 kB / 0.5166 GB, free: 84.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=96): time 0.01014/1.201, allocations: 2.511 MB / 0.519 GB, free: 83.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/1.201, allocations: 59.44 kB / 0.5191 GB, free: 83.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003785/1.204, allocations: 2.003 MB / 0.5211 GB, free: 83.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/1.205, allocations: 37.7 kB / 0.5211 GB, free: 83.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/1.206, allocations: 2.016 MB / 0.5231 GB, free: 81.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005144/1.207, allocations: 372.4 kB / 0.5234 GB, free: 81.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/1.207, allocations: 68.77 kB / 0.5235 GB, free: 81.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002132/1.207, allocations: 459 kB / 0.5239 GB, free: 81.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/1.209, allocations: 0.9485 MB / 0.5248 GB, free: 80.72 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003174/1.212, allocations: 2.911 MB / 0.5277 GB, free: 77.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003527/1.216, allocations: 1.661 MB / 0.5293 GB, free: 77.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-05/1.216, allocations: 22.44 kB / 0.5293 GB, free: 77.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.009145/1.225, allocations: 3.707 MB / 0.5329 GB, free: 75.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.379e-05/1.225, allocations: 35 kB / 0.533 GB, free: 75.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.88e-05/1.225, allocations: 70.44 kB / 0.533 GB, free: 75.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001188/1.226, allocations: 104.5 kB / 0.5331 GB, free: 75.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004239/1.23, allocations: 0.7219 MB / 0.5339 GB, free: 75.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001428/1.23, allocations: 135.9 kB / 0.534 GB, free: 75.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003433/1.233, allocations: 443.8 kB / 0.5344 GB, free: 75.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007314/1.234, allocations: 192.2 kB / 0.5346 GB, free: 75.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 317 * 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 (395): * Single equations (assignments): 392 * 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.003695/1.238, allocations: 1.467 MB / 0.536 GB, free: 74.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000383/1.238, allocations: 168.5 kB / 0.5362 GB, free: 74.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003035/1.241, allocations: 1.239 MB / 0.5374 GB, free: 74.19 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.972e-05/1.241, allocations: 15.5 kB / 0.5374 GB, free: 74.19 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/1.241, allocations: 0 / 0.5374 GB, free: 74.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/1.242, allocations: 3.188 kB / 0.5374 GB, free: 74.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01279/1.254, allocations: 5.03 MB / 0.5423 GB, free: 72.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-05/1.254, allocations: 10.84 kB / 0.5423 GB, free: 72.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/1.255, allocations: 143.2 kB / 0.5425 GB, free: 72.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.015e-05/1.255, allocations: 14.53 kB / 0.5425 GB, free: 72.08 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.03e-05/1.256, allocations: 29.92 kB / 0.5425 GB, free: 72.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.725e-05/1.256, allocations: 20.7 kB / 0.5425 GB, free: 72.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/1.256, allocations: 14.66 kB / 0.5425 GB, free: 72.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/1.258, allocations: 1.57 MB / 0.5441 GB, free: 71.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005666/1.259, allocations: 279.3 kB / 0.5443 GB, free: 70.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003758/1.259, allocations: 35.44 kB / 0.5444 GB, free: 70.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.26, allocations: 38.89 kB / 0.5444 GB, free: 70.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/1.261, allocations: 79.17 kB / 0.5445 GB, free: 70.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/1.261, allocations: 46.06 kB / 0.5445 GB, free: 70.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002711/1.263, allocations: 1.314 MB / 0.5458 GB, free: 70.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.264, allocations: 3.938 kB / 0.5458 GB, free: 70.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003811/1.267, allocations: 0.7609 MB / 0.5466 GB, free: 70.11 MB / 410.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.0004542/1.268, allocations: 158.1 kB / 0.5467 GB, free: 69.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005059/1.273, allocations: 2.233 MB / 0.5489 GB, free: 69.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/1.273, allocations: 0 / 0.5489 GB, free: 69.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/1.274, allocations: 0.5587 MB / 0.5494 GB, free: 69.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/1.276, allocations: 232.7 kB / 0.5497 GB, free: 68.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01556/1.292, allocations: 7.283 MB / 0.5568 GB, free: 64.87 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004539/1.296, allocations: 2.519 MB / 0.5592 GB, free: 63.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008095/1.297, allocations: 155 kB / 0.5594 GB, free: 63.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/1.297, allocations: 4 kB / 0.5594 GB, free: 63.43 MB / 410.7 MB Notification: Performance of Templates: time 0.06369/1.361, allocations: 32.31 MB / 0.5909 GB, free: 35.43 MB / 410.7 MB