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/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.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.794/1.794, allocations: 209.3 MB / 224.9 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004377/0.0004377, allocations: 19.94 kB / 282.6 MB, free: 9.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2842, allocations: 48.7 MB / 331.3 MB, free: 6.309 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.4296, allocations: 97.27 MB / 428.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.4299, allocations: 71.97 kB / 428.6 MB, free: 12.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7399/1.17, allocations: 148.4 MB / 0.5635 GB, free: 32.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.554e-06/1.17, allocations: 0 / 0.5635 GB, free: 32.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003908/1.17, allocations: 148 kB / 0.5636 GB, free: 32.25 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: 2756 * Number of variables: 2756 Notification: Performance of Generate backend data structure: time 0.02483/1.195, allocations: 7.897 MB / 0.5713 GB, free: 24.26 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/1.195, allocations: 16.03 kB / 0.5714 GB, free: 24.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0373/1.232, allocations: 7.318 MB / 0.5785 GB, free: 16.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02144/1.254, allocations: 7.916 MB / 0.5862 GB, free: 8.906 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006641/1.255, allocations: 0.5816 MB / 0.5868 GB, free: 8.324 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003115/1.258, allocations: 0.7614 MB / 0.5876 GB, free: 7.562 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05079/1.309, allocations: 18.99 MB / 0.6061 GB, free: 3.051 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004418/1.309, allocations: 87.12 kB / 0.6062 GB, free: 2.965 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002771/1.312, allocations: 375.8 kB / 0.6065 GB, free: 2.598 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003857/1.316, allocations: 1.825 MB / 0.6083 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04466/1.36, allocations: 15.59 MB / 0.6235 GB, free: 1.148 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3739/1.734, allocations: 81.69 MB / 0.7033 GB, free: 20.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03017/1.765, allocations: 8.752 MB / 0.7119 GB, free: 18.33 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02459/1.789, allocations: 11.7 MB / 0.7233 GB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.393e-05/1.789, allocations: 73.44 kB / 0.7234 GB, free: 12.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=347): time 7.956e-06/1.789, allocations: 0 / 0.7234 GB, free: 12.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=389): time 0.1304/1.92, allocations: 36.89 MB / 0.7594 GB, free: 13.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001897/1.92, allocations: 248.3 kB / 0.7596 GB, free: 13.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01685/1.937, allocations: 6.559 MB / 0.766 GB, free: 8.082 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008828/1.938, allocations: 86.92 kB / 0.7661 GB, free: 7.996 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005699/1.944, allocations: 5.003 MB / 0.771 GB, free: 3.461 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002486/1.946, allocations: 1.436 MB / 0.7724 GB, free: 2.188 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001506/1.948, allocations: 200 kB / 0.7726 GB, free: 1.992 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001161/1.949, allocations: 0.7359 MB / 0.7733 GB, free: 1.367 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02518/1.974, allocations: 4.955 MB / 0.7781 GB, free: 0 / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01636/1.99, allocations: 9.687 MB / 0.7876 GB, free: 3.875 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2918/2.282, allocations: 6.176 MB / 0.7936 GB, free: 95.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001715/2.283, allocations: 55.66 kB / 0.7937 GB, free: 95.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=1297) (initialization): time 0.03716/2.32, allocations: 14.88 MB / 0.8082 GB, free: 94.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001566/2.32, allocations: 89.75 kB / 0.8083 GB, free: 94.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002623/2.32, allocations: 194.2 kB / 0.8085 GB, free: 94.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005799/2.326, allocations: 1.726 MB / 0.8102 GB, free: 94.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01075/2.337, allocations: 2.426 MB / 0.8125 GB, free: 94.67 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0189/2.356, allocations: 11.75 MB / 0.824 GB, free: 91.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01056/2.366, allocations: 0.5695 MB / 0.8246 GB, free: 91.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002201/2.369, allocations: 0.5708 MB / 0.8251 GB, free: 91.88 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 892 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1225): * Single equations (assignments): 1220 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01419/2.383, allocations: 3.617 MB / 0.8287 GB, free: 91.55 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003143/2.386, allocations: 0.6483 MB / 0.8293 GB, free: 91.55 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03353/2.42, allocations: 8.225 MB / 0.8373 GB, free: 90.33 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.151e-05/2.42, allocations: 40.66 kB / 0.8374 GB, free: 90.33 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.745e-05/2.42, allocations: 15.12 kB / 0.8374 GB, free: 90.33 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001008/2.42, allocations: 22.55 kB / 0.8374 GB, free: 90.32 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05645/2.476, allocations: 18.29 MB / 0.8553 GB, free: 83.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.116e-05/2.476, allocations: 11 kB / 0.8553 GB, free: 83.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005226/2.482, allocations: 0.7642 MB / 0.856 GB, free: 83.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004912/2.487, allocations: 1.432 MB / 0.8574 GB, free: 83.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008543/2.488, allocations: 82.81 kB / 0.8575 GB, free: 83.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01823/2.506, allocations: 10.92 MB / 0.8682 GB, free: 77.66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/2.506, allocations: 12.94 kB / 0.8682 GB, free: 77.66 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03317/2.539, allocations: 14.51 MB / 0.8823 GB, free: 65.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007804/2.547, allocations: 1.32 MB / 0.8836 GB, free: 64.69 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003467/2.55, allocations: 75.89 kB / 0.8837 GB, free: 64.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009664/2.56, allocations: 251.6 kB / 0.8839 GB, free: 64.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001803/2.562, allocations: 249.2 kB / 0.8842 GB, free: 64.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008618/2.563, allocations: 103.7 kB / 0.8843 GB, free: 64.21 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0191/2.582, allocations: 4.717 MB / 0.8889 GB, free: 60.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.65e-06/2.582, allocations: 0 / 0.8889 GB, free: 60.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.02196/2.604, allocations: 1.867 MB / 0.8907 GB, free: 58.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * 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 (329): * Single equations (assignments): 324 * 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.001758/2.606, allocations: 243.9 kB / 0.8909 GB, free: 58.28 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03685/2.643, allocations: 10.09 MB / 0.9008 GB, free: 49.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.64e-05/2.643, allocations: 4 kB / 0.9008 GB, free: 49.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01767/2.661, allocations: 4.029 MB / 0.9047 GB, free: 45.96 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01859/2.679, allocations: 0.7728 MB / 0.9055 GB, free: 45.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05/2.729, allocations: 21.79 MB / 0.9268 GB, free: 25.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0125/2.742, allocations: 5.636 MB / 0.9323 GB, free: 21.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003036/2.745, allocations: 0.5152 MB / 0.9328 GB, free: 20.81 MB / 458.7 MB Notification: Performance of SimCode: time 1.817e-06/2.745, allocations: 0 / 0.9328 GB, free: 20.81 MB / 458.7 MB Notification: Performance of Templates: time 0.5574/3.302, allocations: 166.9 MB / 1.096 GB, free: 24.2 MB / 474.7 MB