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.CutTorque.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.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutTorque") Notification: Performance of loadModel(ModelicaTest): time 1.867/1.867, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004329/0.0004331, allocations: 8 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3582, allocations: 48.69 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1648/0.5231, allocations: 92.18 MB / 424 MB, free: 2.254 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.5235, allocations: 83.95 kB / 424.1 MB, free: 2.172 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9099/1.433, allocations: 167.9 MB / 0.578 GB, free: 16.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.555e-06/1.433, allocations: 0 / 0.578 GB, free: 16.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005552/1.434, allocations: 156 kB / 0.5782 GB, free: 16.67 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: 2932 * Number of variables: 2932 Notification: Performance of Generate backend data structure: time 0.03232/1.466, allocations: 8.521 MB / 0.5865 GB, free: 8.059 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/1.466, allocations: 8.031 kB / 0.5865 GB, free: 8.051 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03098/1.497, allocations: 3.678 MB / 0.5901 GB, free: 4.355 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03312/1.531, allocations: 9.732 MB / 0.5996 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009987/1.532, allocations: 0.6258 MB / 0.6002 GB, free: 9.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004859/1.536, allocations: 0.82 MB / 0.601 GB, free: 9.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06613/1.603, allocations: 19.73 MB / 0.6203 GB, free: 3.828 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000499/1.603, allocations: 91.12 kB / 0.6204 GB, free: 3.738 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004044/1.607, allocations: 395.8 kB / 0.6208 GB, free: 3.352 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005097/1.612, allocations: 1.872 MB / 0.6226 GB, free: 1.473 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6338/2.246, allocations: 15.51 MB / 0.6377 GB, free: 60.94 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1293/2.376, allocations: 81.53 MB / 0.7173 GB, free: 12.66 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02656/2.402, allocations: 5.982 MB / 0.7232 GB, free: 10.73 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0312/2.433, allocations: 11.34 MB / 0.7343 GB, free: 5.137 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/2.434, allocations: 62.52 kB / 0.7343 GB, free: 5.078 MB / 426.8 MB Notification: Performance of pre-optimization done (n=250): time 6.292e-06/2.434, allocations: 0 / 0.7343 GB, free: 5.078 MB / 426.8 MB Notification: Performance of matching and sorting (n=274): time 0.06745/2.501, allocations: 16.57 MB / 0.7505 GB, free: 14.02 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/2.501, allocations: 161.8 kB / 0.7507 GB, free: 13.87 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01674/2.518, allocations: 6.785 MB / 0.7573 GB, free: 9.465 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005909/2.519, allocations: 63.73 kB / 0.7573 GB, free: 9.398 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006088/2.525, allocations: 5.559 MB / 0.7628 GB, free: 4.395 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001763/2.526, allocations: 1.062 MB / 0.7638 GB, free: 3.461 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009533/2.527, allocations: 180 kB / 0.764 GB, free: 3.285 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0006772/2.528, allocations: 0.7001 MB / 0.7647 GB, free: 2.688 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008869/2.537, allocations: 2.683 MB / 0.7673 GB, free: 492 kB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02643/2.563, allocations: 9.192 MB / 0.7763 GB, free: 7.637 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0135/2.577, allocations: 4.605 MB / 0.7808 GB, free: 3.676 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002302/2.577, allocations: 60 kB / 0.7808 GB, free: 3.617 MB / 458.8 MB Notification: Performance of matching and sorting (n=1192) (initialization): time 0.03335/2.611, allocations: 10.61 MB / 0.7912 GB, free: 10.3 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.00018/2.611, allocations: 96 kB / 0.7913 GB, free: 10.2 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003735/2.611, allocations: 208.2 kB / 0.7915 GB, free: 10 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004234/2.612, allocations: 300 kB / 0.7918 GB, free: 9.707 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01426/2.626, allocations: 2.243 MB / 0.7939 GB, free: 7.75 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004901/2.627, allocations: 402.5 kB / 0.7943 GB, free: 7.398 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01144/2.638, allocations: 0.623 MB / 0.7949 GB, free: 6.867 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001889/2.64, allocations: 0.5495 MB / 0.7955 GB, free: 6.324 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 940 * Number of states: 0 () * Number of discrete variables: 57 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1168): * Single equations (assignments): 1165 * 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.01081/2.651, allocations: 3.754 MB / 0.7991 GB, free: 3.047 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001564/2.652, allocations: 0.59 MB / 0.7997 GB, free: 2.449 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3288/2.981, allocations: 2.988 MB / 0.8026 GB, free: 101.6 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-05/2.981, allocations: 29.36 kB / 0.8027 GB, free: 101.6 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/2.981, allocations: 1.125 kB / 0.8027 GB, free: 101.6 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.911e-05/2.981, allocations: 10.77 kB / 0.8027 GB, free: 101.6 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06076/3.042, allocations: 24.83 MB / 0.8269 GB, free: 98.96 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.969e-05/3.042, allocations: 58.5 kB / 0.827 GB, free: 98.96 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003545/3.046, allocations: 0.5938 MB / 0.8276 GB, free: 98.96 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.442e-05/3.046, allocations: 92.73 kB / 0.8276 GB, free: 98.96 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002987/3.046, allocations: 140.5 kB / 0.8278 GB, free: 98.96 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.543e-05/3.046, allocations: 121.5 kB / 0.8279 GB, free: 98.96 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.143e-05/3.046, allocations: 97.72 kB / 0.828 GB, free: 98.96 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008757/3.055, allocations: 5.739 MB / 0.8336 GB, free: 95.79 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001978/3.057, allocations: 0.7192 MB / 0.8343 GB, free: 95.7 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001727/3.059, allocations: 150.6 kB / 0.8344 GB, free: 95.69 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005386/3.064, allocations: 208.3 kB / 0.8346 GB, free: 95.69 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007951/3.065, allocations: 406.3 kB / 0.835 GB, free: 95.64 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003077/3.066, allocations: 175.4 kB / 0.8352 GB, free: 95.64 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01131/3.077, allocations: 4.272 MB / 0.8394 GB, free: 95.43 MB / 474.8 MB Notification: Performance of sort global known variables: time 6.91e-07/3.077, allocations: 5.375 kB / 0.8394 GB, free: 95.43 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01108/3.088, allocations: 1.544 MB / 0.8409 GB, free: 95.43 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 280 * 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 (318): * Single equations (assignments): 315 * 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.0011/3.089, allocations: 322.9 kB / 0.8412 GB, free: 95.34 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01541/3.105, allocations: 6.244 MB / 0.8473 GB, free: 95.03 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 5.764e-05/3.105, allocations: 9.781 kB / 0.8473 GB, free: 95.03 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003879/3.109, allocations: 1.611 MB / 0.8489 GB, free: 94.84 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007178/3.116, allocations: 0.9081 MB / 0.8497 GB, free: 94.8 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04519/3.161, allocations: 22.11 MB / 0.8713 GB, free: 82.78 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01323/3.174, allocations: 5.95 MB / 0.8772 GB, free: 80.92 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002215/3.177, allocations: 484.8 kB / 0.8776 GB, free: 80.9 MB / 474.8 MB Notification: Performance of SimCode: time 9.52e-07/3.177, allocations: 4 kB / 0.8776 GB, free: 80.89 MB / 474.8 MB Notification: Performance of Templates: time 0.189/3.366, allocations: 95.49 MB / 0.9709 GB, free: 6.457 MB / 474.8 MB