Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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 2.199/2.199, allocations: 209.2 MB / 225.4 MB, free: 296 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004593/0.0004594, allocations: 12 kB / 283.1 MB, free: 9.645 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3655, allocations: 48.71 MB / 331.8 MB, free: 6.473 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1818/0.5474, allocations: 97.26 MB / 429.1 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003295/0.5478, allocations: 79.95 kB / 429.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9124/1.46, allocations: 149.3 MB / 0.5648 GB, free: 31.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.026e-06/1.46, allocations: 0 / 0.5648 GB, free: 31.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004814/1.461, allocations: 151.9 kB / 0.565 GB, free: 31.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: 2756 * Number of variables: 2756 Notification: Performance of Generate backend data structure: time 0.03469/1.495, allocations: 7.904 MB / 0.5727 GB, free: 23.68 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/1.496, allocations: 12.03 kB / 0.5727 GB, free: 23.67 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0545/1.55, allocations: 7.314 MB / 0.5799 GB, free: 16.33 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02849/1.579, allocations: 7.924 MB / 0.5876 GB, free: 8.324 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007985/1.579, allocations: 0.5777 MB / 0.5882 GB, free: 7.746 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004491/1.584, allocations: 0.7614 MB / 0.5889 GB, free: 6.984 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06577/1.65, allocations: 19.05 MB / 0.6075 GB, free: 2.414 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006419/1.65, allocations: 95.05 kB / 0.6076 GB, free: 2.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00439/1.655, allocations: 371.8 kB / 0.608 GB, free: 1.957 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004758/1.66, allocations: 1.829 MB / 0.6097 GB, free: 128 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05664/1.716, allocations: 15.57 MB / 0.625 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5728/2.289, allocations: 81.69 MB / 0.7047 GB, free: 20.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03794/2.327, allocations: 8.742 MB / 0.7133 GB, free: 17.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02983/2.357, allocations: 11.7 MB / 0.7247 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.635e-05/2.357, allocations: 73.36 kB / 0.7248 GB, free: 12.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=347): time 7.213e-06/2.357, allocations: 0 / 0.7248 GB, free: 12.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=389): time 0.1619/2.519, allocations: 37.3 MB / 0.7612 GB, free: 11.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001777/2.519, allocations: 252.5 kB / 0.7614 GB, free: 11.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02022/2.54, allocations: 7.336 MB / 0.7686 GB, free: 5.535 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001163/2.541, allocations: 81.7 kB / 0.7687 GB, free: 5.449 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006215/2.547, allocations: 5.004 MB / 0.7736 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003085/2.55, allocations: 1.441 MB / 0.775 GB, free: 15.63 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001739/2.552, allocations: 200 kB / 0.7751 GB, free: 15.44 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009748/2.553, allocations: 0.7361 MB / 0.7759 GB, free: 14.82 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01779/2.571, allocations: 4.103 MB / 0.7799 GB, free: 11.35 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02717/2.598, allocations: 9.72 MB / 0.7894 GB, free: 15.94 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04075/2.639, allocations: 6.174 MB / 0.7954 GB, free: 10.67 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003156/2.639, allocations: 56 kB / 0.7954 GB, free: 10.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=1297) (initialization): time 0.4283/3.068, allocations: 14.83 MB / 0.8099 GB, free: 104.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001625/3.068, allocations: 91.03 kB / 0.81 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004053/3.068, allocations: 196.8 kB / 0.8102 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007757/3.076, allocations: 1.69 MB / 0.8119 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01696/3.093, allocations: 2.424 MB / 0.8142 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02452/3.118, allocations: 11.73 MB / 0.8257 GB, free: 101.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01293/3.131, allocations: 0.5664 MB / 0.8262 GB, free: 101.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002737/3.133, allocations: 0.5822 MB / 0.8268 GB, free: 101.7 MB / 474.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.01216/3.146, allocations: 3.606 MB / 0.8303 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002253/3.148, allocations: 0.6503 MB / 0.831 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02675/3.175, allocations: 8.191 MB / 0.839 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.879e-05/3.175, allocations: 36.91 kB / 0.839 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-05/3.175, allocations: 10.31 kB / 0.839 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001042/3.175, allocations: 18.89 kB / 0.839 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0592/3.234, allocations: 18.24 MB / 0.8568 GB, free: 98.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-05/3.234, allocations: 4.531 kB / 0.8568 GB, free: 98.74 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007621/3.242, allocations: 0.7718 MB / 0.8576 GB, free: 98.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006696/3.249, allocations: 1.401 MB / 0.859 GB, free: 98.44 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001195/3.25, allocations: 72.14 kB / 0.859 GB, free: 98.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02315/3.273, allocations: 10.91 MB / 0.8697 GB, free: 92.69 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/3.273, allocations: 13.84 kB / 0.8697 GB, free: 92.69 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03586/3.309, allocations: 13 MB / 0.8824 GB, free: 87.62 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005483/3.315, allocations: 1.32 MB / 0.8837 GB, free: 87.04 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003219/3.318, allocations: 71.44 kB / 0.8837 GB, free: 87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007179/3.325, allocations: 253.4 kB / 0.884 GB, free: 86.95 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001566/3.327, allocations: 237.2 kB / 0.8842 GB, free: 86.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008853/3.328, allocations: 103.4 kB / 0.8843 GB, free: 86.89 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0138/3.341, allocations: 4.717 MB / 0.8889 GB, free: 85.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.954e-06/3.341, allocations: 0 / 0.8889 GB, free: 85.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0141/3.356, allocations: 1.877 MB / 0.8907 GB, free: 85.13 MB / 474.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.001762/3.357, allocations: 234.1 kB / 0.891 GB, free: 84.99 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02492/3.382, allocations: 10.09 MB / 0.9008 GB, free: 78.05 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/3.382, allocations: 11.22 kB / 0.9008 GB, free: 78.04 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01305/3.395, allocations: 4.021 MB / 0.9048 GB, free: 74.55 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007406/3.403, allocations: 0.7692 MB / 0.9055 GB, free: 73.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05409/3.457, allocations: 21.85 MB / 0.9269 GB, free: 54.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01399/3.471, allocations: 5.638 MB / 0.9324 GB, free: 50.07 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004164/3.475, allocations: 0.5199 MB / 0.9329 GB, free: 49.58 MB / 474.7 MB Notification: Performance of SimCode: time 1.733e-06/3.475, allocations: 4 kB / 0.9329 GB, free: 49.57 MB / 474.7 MB Notification: Performance of Templates: time 0.6797/4.155, allocations: 166.9 MB / 1.096 GB, free: 31.87 MB / 474.7 MB