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.CutTorque.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.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.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque") Notification: Performance of loadModel(ModelicaTest): time 2.181/2.181, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004446/0.0004447, allocations: 12 kB / 314.3 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2749, allocations: 54.86 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.1355/0.4105, allocations: 83.65 MB / 452.8 MB, free: 6.844 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05847/0.469, allocations: 18.58 MB / 471.4 MB, free: 4.203 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01575/0.4848, allocations: 427 kB / 471.8 MB, free: 3.785 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.3665/0.8514, allocations: 4.307 MB / 476.1 MB, free: 3.535 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0423/0.8937, allocations: 11.97 MB / 488.1 MB, free: 3.344 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005259/0.899, allocations: 1.253 MB / 489.4 MB, free: 3.328 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008672/0.9077, allocations: 4.769 MB / 494.1 MB, free: 3.266 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01382/0.9216, allocations: 9.2 MB / 0.4915 GB, free: 1.105 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003526/0.9252, allocations: 2.174 MB / 0.4937 GB, free: 0.707 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003907/0.9291, allocations: 2.773 MB / 0.4964 GB, free: 72 kB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.9304, allocations: 298.1 kB / 0.4967 GB, free: 72 kB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003271/0.9337, allocations: 0.9938 MB / 0.4976 GB, free: 15.94 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003887/0.9376, allocations: 3.224 MB / 0.5008 GB, free: 15.26 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001921/0.9396, allocations: 1.604 MB / 0.5023 GB, free: 15.23 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01439/0.954, allocations: 10.46 MB / 0.5126 GB, free: 9.488 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.005e-06/0.954, allocations: 0 / 0.5126 GB, free: 9.488 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.959e-06/0.954, allocations: 4 kB / 0.5126 GB, free: 9.484 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003445/0.9544, allocations: 0 / 0.5126 GB, free: 9.484 MB / 410.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.01999/0.9744, allocations: 8.147 MB / 0.5205 GB, free: 2.254 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.9745, allocations: 9.781 kB / 0.5205 GB, free: 2.246 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01645/0.9909, allocations: 3.135 MB / 0.5236 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/1.004, allocations: 5.73 MB / 0.5292 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005263/1.005, allocations: 478.6 kB / 0.5296 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002116/1.007, allocations: 0.6212 MB / 0.5302 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06718/1.074, allocations: 19.66 MB / 0.5494 GB, free: 10.92 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004312/1.075, allocations: 75.97 kB / 0.5495 GB, free: 10.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002671/1.077, allocations: 293.6 kB / 0.5498 GB, free: 10.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01243/1.09, allocations: 3.639 MB / 0.5534 GB, free: 7.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06759/1.157, allocations: 15.3 MB / 0.5683 GB, free: 13.15 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1355/1.293, allocations: 73.21 MB / 0.6398 GB, free: 11.49 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02357/1.317, allocations: 6.116 MB / 0.6458 GB, free: 5.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02778/1.344, allocations: 11.32 MB / 0.6568 GB, free: 9.559 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.222e-05/1.345, allocations: 64.5 kB / 0.6569 GB, free: 9.488 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=250): time 7.226e-06/1.345, allocations: 0 / 0.6569 GB, free: 9.488 MB / 0.5261 GB Notification: Performance of matching and sorting (n=274): time 0.3428/1.687, allocations: 16.87 MB / 0.6734 GB, free: 210.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/1.687, allocations: 156.1 kB / 0.6735 GB, free: 210.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01401/1.702, allocations: 7.194 MB / 0.6805 GB, free: 208.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004356/1.702, allocations: 72.36 kB / 0.6806 GB, free: 208.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0038/1.706, allocations: 5.515 MB / 0.686 GB, free: 204.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001241/1.707, allocations: 1.061 MB / 0.687 GB, free: 203.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006671/1.708, allocations: 183.4 kB / 0.6872 GB, free: 203.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005877/1.708, allocations: 0.7098 MB / 0.6879 GB, free: 202.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006226/1.715, allocations: 2.705 MB / 0.6905 GB, free: 201.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009007/1.724, allocations: 8.563 MB / 0.6989 GB, free: 193.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009023/1.733, allocations: 4.632 MB / 0.7034 GB, free: 191.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001529/1.733, allocations: 58.88 kB / 0.7035 GB, free: 191.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.02404/1.757, allocations: 10.7 MB / 0.7139 GB, free: 186.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000179/1.757, allocations: 92 kB / 0.714 GB, free: 186.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002475/1.757, allocations: 208.1 kB / 0.7142 GB, free: 186.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/1.758, allocations: 308.7 kB / 0.7145 GB, free: 186.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008493/1.766, allocations: 2.174 MB / 0.7166 GB, free: 184.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003727/1.767, allocations: 411.9 kB / 0.717 GB, free: 184 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00867/1.775, allocations: 463 kB / 0.7175 GB, free: 183.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001369/1.777, allocations: 0.5739 MB / 0.718 GB, free: 183.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 948 * 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 (1176): * Single equations (assignments): 1165 * Array equations: 11 * 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.007572/1.784, allocations: 3.746 MB / 0.7217 GB, free: 179.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/1.786, allocations: 0.5822 MB / 0.7222 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006902/1.793, allocations: 2.987 MB / 0.7252 GB, free: 176.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.255e-05/1.793, allocations: 33.78 kB / 0.7252 GB, free: 176.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-05/1.793, allocations: 0 / 0.7252 GB, free: 176.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.716e-05/1.793, allocations: 15.73 kB / 0.7252 GB, free: 176.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04402/1.837, allocations: 25.14 MB / 0.7498 GB, free: 150.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001592/1.837, allocations: 64 kB / 0.7498 GB, free: 150.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002657/1.84, allocations: 0.6121 MB / 0.7504 GB, free: 149.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000103/1.84, allocations: 95.95 kB / 0.7505 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004665/1.84, allocations: 136 kB / 0.7506 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.33e-05/1.84, allocations: 123.5 kB / 0.7508 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.789e-05/1.84, allocations: 99.97 kB / 0.7509 GB, free: 149.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007579/1.848, allocations: 5.87 MB / 0.7566 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002167/1.85, allocations: 0.7351 MB / 0.7573 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001619/1.852, allocations: 155.9 kB / 0.7575 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004408/1.856, allocations: 153 kB / 0.7576 GB, free: 141.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007372/1.857, allocations: 423.4 kB / 0.758 GB, free: 140.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003388/1.857, allocations: 175.9 kB / 0.7582 GB, free: 140.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009215/1.867, allocations: 4.549 MB / 0.7626 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.475e-06/1.867, allocations: 3.938 kB / 0.7626 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01058/1.877, allocations: 1.575 MB / 0.7642 GB, free: 134.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 288 * 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 (326): * Single equations (assignments): 323 * 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.001165/1.879, allocations: 350.7 kB / 0.7645 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01267/1.891, allocations: 6.329 MB / 0.7707 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.184e-05/1.891, allocations: 11.94 kB / 0.7707 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003285/1.895, allocations: 1.636 MB / 0.7723 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005972/1.901, allocations: 0.9185 MB / 0.7732 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03745/1.938, allocations: 22.22 MB / 0.7949 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01278/1.951, allocations: 5.965 MB / 0.8007 GB, free: 96.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001736/1.953, allocations: 0.4915 MB / 0.8012 GB, free: 95.71 MB / 0.5261 GB Notification: Performance of SimCode: time 2.084e-06/1.953, allocations: 4 kB / 0.8012 GB, free: 95.71 MB / 0.5261 GB Notification: Performance of Templates: time 0.4273/2.38, allocations: 95.59 MB / 0.8945 GB, free: 185.1 MB / 0.5261 GB