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.Forces.ForcesAndTorques.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForcesAndTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 1.946/1.946, allocations: 209.4 MB / 217.3 MB, free: 4.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.648e-05/1.654e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2678, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1485/0.4164, allocations: 96.5 MB / 416.5 MB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.4166, allocations: 75.95 kB / 416.6 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7673/1.184, allocations: 145 MB / 0.5484 GB, free: 11.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.281e-06/1.184, allocations: 0 / 0.5484 GB, free: 11.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004052/1.184, allocations: 155.9 kB / 0.5486 GB, free: 11.2 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2756 * Number of variables: 2756 Notification: Performance of Generate backend data structure: time 0.02377/1.208, allocations: 7.37 MB / 0.5558 GB, free: 3.754 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/1.208, allocations: 8.031 kB / 0.5558 GB, free: 3.746 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03998/1.248, allocations: 7.322 MB / 0.5629 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02614/1.274, allocations: 7.858 MB / 0.5706 GB, free: 4.457 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005405/1.275, allocations: 252 kB / 0.5708 GB, free: 4.211 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003361/1.278, allocations: 459.9 kB / 0.5713 GB, free: 3.762 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02746/1.306, allocations: 10.98 MB / 0.582 GB, free: 8.777 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2994/1.605, allocations: 16.42 MB / 0.598 GB, free: 53.06 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003978/1.606, allocations: 92.69 kB / 0.5981 GB, free: 53.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002167/1.608, allocations: 46.59 kB / 0.5982 GB, free: 53.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003232/1.611, allocations: 1.831 MB / 0.5999 GB, free: 53.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1022/1.714, allocations: 77.64 MB / 0.6758 GB, free: 25.63 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009883/1.723, allocations: 6.741 MB / 0.6823 GB, free: 22.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006571/1.73, allocations: 4.347 MB / 0.6866 GB, free: 20.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001032/1.731, allocations: 0.7268 MB / 0.6873 GB, free: 19.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/1.731, allocations: 66.5 kB / 0.6874 GB, free: 19.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 8.873e-06/1.731, allocations: 0 / 0.6874 GB, free: 19.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=384): time 0.08805/1.819, allocations: 32.2 MB / 0.7188 GB, free: 7.582 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001674/1.82, allocations: 249.9 kB / 0.719 GB, free: 7.332 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01142/1.831, allocations: 5.01 MB / 0.7239 GB, free: 3.641 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007895/1.832, allocations: 25.7 kB / 0.724 GB, free: 3.609 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005374/1.837, allocations: 5.267 MB / 0.7291 GB, free: 14.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002311/1.84, allocations: 1.386 MB / 0.7305 GB, free: 13.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/1.841, allocations: 0 / 0.7305 GB, free: 13.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009888/1.842, allocations: 0.7492 MB / 0.7312 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00901/1.851, allocations: 3.914 MB / 0.735 GB, free: 9.418 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01836/1.869, allocations: 9.691 MB / 0.7445 GB, free: 13.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02468/1.894, allocations: 6.099 MB / 0.7504 GB, free: 8.473 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003951/1.894, allocations: 60 kB / 0.7505 GB, free: 8.414 MB / 458.7 MB Notification: Performance of matching and sorting (n=1347) (initialization): time 0.3827/2.277, allocations: 14.1 MB / 0.7643 GB, free: 93.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002078/2.277, allocations: 93.34 kB / 0.7644 GB, free: 93.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003219/2.278, allocations: 204.1 kB / 0.7645 GB, free: 93.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00577/2.283, allocations: 1.741 MB / 0.7662 GB, free: 93.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01154/2.295, allocations: 2.522 MB / 0.7687 GB, free: 93.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01754/2.313, allocations: 10.82 MB / 0.7793 GB, free: 90.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01016/2.323, allocations: 399.4 kB / 0.7797 GB, free: 90.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002122/2.325, allocations: 0.5993 MB / 0.7802 GB, free: 90.62 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 66 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1275): * Single equations (assignments): 1270 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002607/2.328, allocations: 0.621 MB / 0.7808 GB, free: 90.51 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/2.329, allocations: 0.5562 MB / 0.7814 GB, free: 90.51 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01699/2.346, allocations: 7.494 MB / 0.7887 GB, free: 90.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-05/2.346, allocations: 39.56 kB / 0.7887 GB, free: 90.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.151e-05/2.346, allocations: 10.34 kB / 0.7888 GB, free: 90.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.47e-05/2.346, allocations: 20.72 kB / 0.7888 GB, free: 90.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04774/2.394, allocations: 16.39 MB / 0.8048 GB, free: 89.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.017e-05/2.394, allocations: 6.125 kB / 0.8048 GB, free: 89.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01103/2.405, allocations: 0.7527 MB / 0.8055 GB, free: 89.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01058/2.416, allocations: 1.411 MB / 0.8069 GB, free: 89.39 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001455/2.417, allocations: 18.45 kB / 0.8069 GB, free: 89.39 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03464/2.452, allocations: 9.896 MB / 0.8166 GB, free: 85.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.962e-05/2.452, allocations: 12.59 kB / 0.8166 GB, free: 85.84 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03141/2.484, allocations: 13.29 MB / 0.8296 GB, free: 80.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003579/2.487, allocations: 1.184 MB / 0.8307 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001606/2.489, allocations: 9.812 kB / 0.8307 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004394/2.493, allocations: 196 kB / 0.8309 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001063/2.494, allocations: 229.3 kB / 0.8311 GB, free: 79.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004621/2.495, allocations: 104.8 kB / 0.8312 GB, free: 79.58 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007367/2.502, allocations: 3.352 MB / 0.8345 GB, free: 78.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.165e-06/2.502, allocations: 3.5 kB / 0.8345 GB, free: 78.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01161/2.514, allocations: 1.607 MB / 0.8361 GB, free: 78.35 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (330): * Single equations (assignments): 325 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001061/2.515, allocations: 161.8 kB / 0.8362 GB, free: 78.26 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01887/2.534, allocations: 9.799 MB / 0.8458 GB, free: 73.78 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/2.534, allocations: 4 kB / 0.8458 GB, free: 73.78 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007552/2.541, allocations: 3.819 MB / 0.8495 GB, free: 70.43 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004155/2.546, allocations: 0.5589 MB / 0.8501 GB, free: 69.96 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03488/2.581, allocations: 15.68 MB / 0.8654 GB, free: 56.29 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.012/2.593, allocations: 5.65 MB / 0.8709 GB, free: 52.16 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002861/2.596, allocations: 485.6 kB / 0.8714 GB, free: 51.71 MB / 458.7 MB Notification: Performance of SimCode: time 1.819e-06/2.596, allocations: 1.969 kB / 0.8714 GB, free: 51.71 MB / 458.7 MB Notification: Performance of Templates: time 0.4913/3.087, allocations: 160.5 MB / 1.028 GB, free: 48.11 MB / 458.7 MB