Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 2.548/2.548, allocations: 234.9 MB / 251.1 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004292/0.0004293, allocations: 12 kB / 314.9 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3488, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1873/0.5362, allocations: 104.1 MB / 473.9 MB, free: 2.539 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.5365, allocations: 91.89 kB / 473.9 MB, free: 2.449 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8576/1.394, allocations: 149.4 MB / 0.6088 GB, free: 10.02 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.225e-06/1.394, allocations: 0 / 0.6088 GB, free: 10.02 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004868/1.395, allocations: 148 kB / 0.6089 GB, free: 9.871 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2760 * Number of variables: 2760 Notification: Performance of Generate backend data structure: time 0.03354/1.428, allocations: 7.912 MB / 0.6166 GB, free: 1.871 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/1.428, allocations: 8.031 kB / 0.6167 GB, free: 1.863 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0553/1.484, allocations: 7.325 MB / 0.6238 GB, free: 10.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02955/1.513, allocations: 7.913 MB / 0.6315 GB, free: 2.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008162/1.514, allocations: 0.5855 MB / 0.6321 GB, free: 1.934 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004276/1.518, allocations: 0.7769 MB / 0.6329 GB, free: 1.156 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7184/2.237, allocations: 19.04 MB / 0.6515 GB, free: 55.94 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006488/2.238, allocations: 94.98 kB / 0.6516 GB, free: 55.94 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003821/2.241, allocations: 371.6 kB / 0.6519 GB, free: 55.94 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004034/2.245, allocations: 1.83 MB / 0.6537 GB, free: 55.92 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0484/2.294, allocations: 15.59 MB / 0.6689 GB, free: 55.85 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1435/2.437, allocations: 81.73 MB / 0.7487 GB, free: 19.47 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03802/2.476, allocations: 8.747 MB / 0.7573 GB, free: 16.84 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03192/2.508, allocations: 11.71 MB / 0.7687 GB, free: 9.926 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.664e-05/2.508, allocations: 65.19 kB / 0.7688 GB, free: 9.855 MB / 474.8 MB Notification: Performance of pre-optimization done (n=347): time 1.025e-05/2.508, allocations: 0 / 0.7688 GB, free: 9.855 MB / 474.8 MB Notification: Performance of matching and sorting (n=389): time 0.1968/2.705, allocations: 37.33 MB / 0.8052 GB, free: 11.03 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002085/2.705, allocations: 244.9 kB / 0.8055 GB, free: 10.74 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01947/2.724, allocations: 7.336 MB / 0.8126 GB, free: 4.641 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001106/2.725, allocations: 81.7 kB / 0.8127 GB, free: 4.555 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006068/2.732, allocations: 5.011 MB / 0.8176 GB, free: 24 kB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.3611/3.093, allocations: 1.437 MB / 0.819 GB, free: 102.9 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002237/3.095, allocations: 200.9 kB / 0.8192 GB, free: 102.9 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001358/3.096, allocations: 0.733 MB / 0.8199 GB, free: 102.6 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01285/3.109, allocations: 4.113 MB / 0.8239 GB, free: 102.6 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01599/3.125, allocations: 9.722 MB / 0.8334 GB, free: 95.45 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01622/3.142, allocations: 6.184 MB / 0.8395 GB, free: 95.4 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003713/3.142, allocations: 57.91 kB / 0.8395 GB, free: 95.4 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1297) (initialization): time 0.04357/3.186, allocations: 14.82 MB / 0.854 GB, free: 94.93 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001776/3.186, allocations: 91.41 kB / 0.8541 GB, free: 94.93 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000343/3.186, allocations: 193.4 kB / 0.8543 GB, free: 94.93 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007239/3.193, allocations: 1.689 MB / 0.8559 GB, free: 94.91 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01611/3.21, allocations: 2.422 MB / 0.8583 GB, free: 94.71 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02297/3.233, allocations: 11.73 MB / 0.8697 GB, free: 91.91 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01266/3.245, allocations: 0.568 MB / 0.8703 GB, free: 91.91 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002603/3.248, allocations: 0.5758 MB / 0.8709 GB, free: 91.91 MB / 0.4949 GB 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.01149/3.26, allocations: 3.614 MB / 0.8744 GB, free: 91.23 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001982/3.262, allocations: 0.6496 MB / 0.875 GB, free: 91 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02578/3.287, allocations: 8.174 MB / 0.883 GB, free: 87.94 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.811e-05/3.287, allocations: 42.67 kB / 0.883 GB, free: 87.94 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.345e-05/3.288, allocations: 14.08 kB / 0.8831 GB, free: 87.94 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001125/3.288, allocations: 20.12 kB / 0.8831 GB, free: 87.94 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05518/3.343, allocations: 18.25 MB / 0.9009 GB, free: 81.32 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.859e-05/3.343, allocations: 11.41 kB / 0.9009 GB, free: 81.32 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007588/3.351, allocations: 0.7657 MB / 0.9017 GB, free: 81.27 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007322/3.358, allocations: 1.392 MB / 0.903 GB, free: 80.99 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001335/3.359, allocations: 74.08 kB / 0.9031 GB, free: 80.95 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02602/3.385, allocations: 10.91 MB / 0.9137 GB, free: 75.13 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/3.385, allocations: 11.94 kB / 0.9138 GB, free: 75.12 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03398/3.419, allocations: 13 MB / 0.9265 GB, free: 63.73 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005266/3.425, allocations: 1.318 MB / 0.9277 GB, free: 62.52 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003075/3.428, allocations: 75.52 kB / 0.9278 GB, free: 62.45 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006917/3.435, allocations: 248 kB / 0.928 GB, free: 62.3 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001522/3.436, allocations: 244.3 kB / 0.9283 GB, free: 62.14 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001141/3.438, allocations: 103.2 kB / 0.9284 GB, free: 62.04 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01311/3.451, allocations: 4.717 MB / 0.933 GB, free: 58.19 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.082e-06/3.451, allocations: 0 / 0.933 GB, free: 58.19 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01365/3.464, allocations: 1.87 MB / 0.9348 GB, free: 56.33 MB / 0.4949 GB 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.001514/3.466, allocations: 237 kB / 0.935 GB, free: 56.12 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02483/3.491, allocations: 10.1 MB / 0.9449 GB, free: 47.31 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/3.491, allocations: 0 / 0.9449 GB, free: 47.31 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01076/3.502, allocations: 4.013 MB / 0.9488 GB, free: 43.82 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006565/3.508, allocations: 0.762 MB / 0.9496 GB, free: 43.17 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05031/3.559, allocations: 21.88 MB / 0.9709 GB, free: 23.32 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01335/3.572, allocations: 5.641 MB / 0.9764 GB, free: 19.19 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003809/3.576, allocations: 0.5171 MB / 0.9769 GB, free: 18.7 MB / 0.4949 GB Notification: Performance of SimCode: time 1.292e-06/3.576, allocations: 0 / 0.9769 GB, free: 18.7 MB / 0.4949 GB Notification: Performance of Templates: time 0.7047/4.281, allocations: 167 MB / 1.14 GB, free: 30.6 MB / 0.5105 GB