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.CutForce.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.CutForce,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForce1a.force.3.|cutForce2a.force.3.|cutForce2b.force.3.|cutForce1a.force.2.|cutForce2a.force.2.|cutForce2b.force.2.|cutForce1a.force.1.|cutForce2a.force.1.|cutForce2b.force.1.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutForce") Notification: Performance of loadModel(ModelicaTest): time 1.914/1.914, allocations: 209.3 MB / 224.9 MB, free: 1.203 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007454/0.0007455, allocations: 16 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09848/0.09926, allocations: 48.7 MB / 331.3 MB, free: 8.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.4468, allocations: 92.06 MB / 423.3 MB, free: 9.109 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.4471, allocations: 75.97 kB / 423.4 MB, free: 9.035 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8137/1.261, allocations: 158.9 MB / 0.5687 GB, free: 63.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.852e-06/1.261, allocations: 0 / 0.5687 GB, free: 63.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003417/1.261, allocations: 155.9 kB / 0.5688 GB, free: 63.5 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: 2796 * Number of variables: 2796 Notification: Performance of Generate backend data structure: time 0.02306/1.284, allocations: 8.292 MB / 0.5769 GB, free: 55.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/1.284, allocations: 8.031 kB / 0.5769 GB, free: 55.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02342/1.308, allocations: 3.628 MB / 0.5805 GB, free: 51.47 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0243/1.332, allocations: 9.587 MB / 0.5899 GB, free: 41.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006679/1.333, allocations: 0.5938 MB / 0.5904 GB, free: 41.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003104/1.336, allocations: 0.7888 MB / 0.5912 GB, free: 40.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04414/1.38, allocations: 18.95 MB / 0.6097 GB, free: 19.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003267/1.381, allocations: 99.11 kB / 0.6098 GB, free: 19.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001934/1.383, allocations: 383.8 kB / 0.6102 GB, free: 19.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003065/1.386, allocations: 1.782 MB / 0.6119 GB, free: 17.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03679/1.422, allocations: 14.97 MB / 0.6265 GB, free: 2.715 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7047/2.127, allocations: 78.99 MB / 0.7037 GB, free: 17.98 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02391/2.151, allocations: 6.095 MB / 0.7096 GB, free: 17.3 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02446/2.176, allocations: 10.99 MB / 0.7203 GB, free: 14.09 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/2.176, allocations: 60.56 kB / 0.7204 GB, free: 14.05 MB / 426.8 MB Notification: Performance of pre-optimization done (n=238): time 6.773e-06/2.176, allocations: 0 / 0.7204 GB, free: 14.05 MB / 426.8 MB Notification: Performance of matching and sorting (n=262): time 0.05994/2.236, allocations: 16.27 MB / 0.7363 GB, free: 9.203 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/2.236, allocations: 166.1 kB / 0.7364 GB, free: 9.039 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01271/2.248, allocations: 5.906 MB / 0.7422 GB, free: 8.5 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004307/2.249, allocations: 63.23 kB / 0.7423 GB, free: 8.469 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003833/2.253, allocations: 5.354 MB / 0.7475 GB, free: 4.336 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001154/2.254, allocations: 1.006 MB / 0.7485 GB, free: 3.609 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007875/2.255, allocations: 184.8 kB / 0.7487 GB, free: 3.469 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000725/2.256, allocations: 0.6794 MB / 0.7493 GB, free: 19 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006844/2.262, allocations: 2.565 MB / 0.7518 GB, free: 18.23 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01158/2.274, allocations: 8.162 MB / 0.7598 GB, free: 9.914 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009734/2.284, allocations: 4.435 MB / 0.7641 GB, free: 8.465 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001604/2.284, allocations: 58.75 kB / 0.7642 GB, free: 8.465 MB / 442.8 MB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.02575/2.31, allocations: 10.2 MB / 0.7741 GB, free: 5.211 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001572/2.31, allocations: 89.31 kB / 0.7742 GB, free: 5.211 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002604/2.31, allocations: 199.7 kB / 0.7744 GB, free: 5.211 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003203/2.311, allocations: 295.6 kB / 0.7747 GB, free: 5.211 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009226/2.32, allocations: 2.185 MB / 0.7768 GB, free: 4.941 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003854/2.32, allocations: 395.3 kB / 0.7772 GB, free: 4.855 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009978/2.33, allocations: 0.615 MB / 0.7778 GB, free: 4.68 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001629/2.332, allocations: 0.537 MB / 0.7783 GB, free: 4.609 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * 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],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[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],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[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],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[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 (1128): * Single equations (assignments): 1125 * 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.008969/2.341, allocations: 3.6 MB / 0.7819 GB, free: 2.77 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001404/2.342, allocations: 0.5746 MB / 0.7824 GB, free: 2.188 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008202/2.351, allocations: 2.856 MB / 0.7852 GB, free: 15.91 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.236e-05/2.351, allocations: 31.05 kB / 0.7852 GB, free: 15.88 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/2.351, allocations: 0 / 0.7852 GB, free: 15.88 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.413e-05/2.351, allocations: 10.45 kB / 0.7852 GB, free: 15.88 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05694/2.408, allocations: 26.47 MB / 0.8111 GB, free: 9.391 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000103/2.408, allocations: 52 kB / 0.8111 GB, free: 9.34 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002536/2.41, allocations: 0.5163 MB / 0.8116 GB, free: 8.891 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001079/2.41, allocations: 76 kB / 0.8117 GB, free: 8.816 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003822/2.411, allocations: 115.5 kB / 0.8118 GB, free: 8.707 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001082/2.411, allocations: 101 kB / 0.8119 GB, free: 8.617 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.395e-05/2.411, allocations: 91.42 kB / 0.812 GB, free: 8.531 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2869/2.698, allocations: 14.59 MB / 0.8263 GB, free: 104.2 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002242/2.7, allocations: 0.6811 MB / 0.8269 GB, free: 104.1 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001805/2.702, allocations: 126.3 kB / 0.827 GB, free: 104.1 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004867/2.707, allocations: 199.4 kB / 0.8272 GB, free: 104.1 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008177/2.708, allocations: 351.1 kB / 0.8276 GB, free: 104.1 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003552/2.708, allocations: 151.4 kB / 0.8277 GB, free: 104.1 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01203/2.72, allocations: 4.195 MB / 0.8318 GB, free: 103.8 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.207e-06/2.72, allocations: 0.5312 kB / 0.8318 GB, free: 103.8 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01136/2.732, allocations: 1.493 MB / 0.8333 GB, free: 103.8 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 240 * 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 (270): * Single equations (assignments): 267 * 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.001018/2.733, allocations: 291.9 kB / 0.8335 GB, free: 103.8 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01449/2.747, allocations: 5.969 MB / 0.8394 GB, free: 103.7 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 4.115e-05/2.747, allocations: 8.281 kB / 0.8394 GB, free: 103.7 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003504/2.751, allocations: 1.474 MB / 0.8408 GB, free: 103.6 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006242/2.757, allocations: 0.8686 MB / 0.8417 GB, free: 103.6 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03767/2.795, allocations: 20.88 MB / 0.8621 GB, free: 93.95 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01268/2.808, allocations: 5.739 MB / 0.8677 GB, free: 93.06 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001798/2.809, allocations: 464.6 kB / 0.8681 GB, free: 93.05 MB / 474.8 MB Notification: Performance of SimCode: time 1.778e-06/2.809, allocations: 0 / 0.8681 GB, free: 93.05 MB / 474.8 MB Notification: Performance of Templates: time 0.1359/2.945, allocations: 91.89 MB / 0.9578 GB, free: 35.29 MB / 474.8 MB