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.FrameTorques2.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.FrameTorques2,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.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 1.791/1.791, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004357/0.0004358, allocations: 16 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2836, allocations: 48.7 MB / 331.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1384/0.4221, allocations: 92.83 MB / 424.1 MB, free: 1.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.4224, allocations: 79.94 kB / 424.2 MB, free: 1.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8361/1.259, allocations: 169.8 MB / 0.58 GB, free: 15.26 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.262e-06/1.259, allocations: 0 / 0.58 GB, free: 15.26 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004898/1.259, allocations: 171.9 kB / 0.5802 GB, free: 15.09 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: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 0.02796/1.287, allocations: 9.033 MB / 0.589 GB, free: 5.961 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/1.287, allocations: 16.03 kB / 0.589 GB, free: 5.945 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06126/1.348, allocations: 12.08 MB / 0.6008 GB, free: 9.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03345/1.382, allocations: 10.98 MB / 0.6115 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009702/1.383, allocations: 0.6377 MB / 0.6122 GB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003792/1.387, allocations: 0.8472 MB / 0.613 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5738/1.961, allocations: 19.97 MB / 0.6325 GB, free: 54.89 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005299/1.961, allocations: 118.2 kB / 0.6326 GB, free: 54.89 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002954/1.964, allocations: 397.2 kB / 0.633 GB, free: 54.89 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00365/1.968, allocations: 1.815 MB / 0.6348 GB, free: 54.88 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06595/2.034, allocations: 16.28 MB / 0.6507 GB, free: 54.8 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.114/2.148, allocations: 82.07 MB / 0.7308 GB, free: 4.512 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02682/2.175, allocations: 8.151 MB / 0.7388 GB, free: 1.898 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007758/2.176, allocations: 0.6636 MB / 0.7394 GB, free: 1.309 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.176e-05/2.176, allocations: 69.08 kB / 0.7395 GB, free: 1.246 MB / 426.8 MB Notification: Performance of pre-optimization done (n=311): time 8.307e-06/2.176, allocations: 0 / 0.7395 GB, free: 1.246 MB / 426.8 MB Notification: Performance of matching and sorting (n=335): time 0.1088/2.284, allocations: 31 MB / 0.7698 GB, free: 1.207 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002119/2.285, allocations: 294 kB / 0.77 GB, free: 0.8594 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01733/2.302, allocations: 6.918 MB / 0.7768 GB, free: 11.23 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007071/2.303, allocations: 77.7 kB / 0.7769 GB, free: 11.14 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006017/2.309, allocations: 5.527 MB / 0.7823 GB, free: 6.148 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002051/2.311, allocations: 1.273 MB / 0.7835 GB, free: 5.023 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/2.312, allocations: 195.2 kB / 0.7837 GB, free: 4.836 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0008661/2.313, allocations: 0.7166 MB / 0.7844 GB, free: 4.223 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008517/2.321, allocations: 3.526 MB / 0.7878 GB, free: 1.266 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2985/2.62, allocations: 9.876 MB / 0.7975 GB, free: 82.29 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/2.632, allocations: 5.558 MB / 0.8029 GB, free: 82.25 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002685/2.632, allocations: 57.38 kB / 0.803 GB, free: 82.25 MB / 458.8 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.03313/2.665, allocations: 13.04 MB / 0.8157 GB, free: 81.6 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001878/2.665, allocations: 91.97 kB / 0.8158 GB, free: 81.6 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002798/2.666, allocations: 202.1 kB / 0.816 GB, free: 81.6 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003401/2.669, allocations: 1.05 MB / 0.817 GB, free: 81.57 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009708/2.679, allocations: 2.254 MB / 0.8192 GB, free: 81.37 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01642/2.695, allocations: 11.47 MB / 0.8304 GB, free: 75.94 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01039/2.706, allocations: 0.5314 MB / 0.8309 GB, free: 75.94 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001995/2.708, allocations: 0.5669 MB / 0.8315 GB, free: 75.94 MB / 458.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: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 (1179): * Single equations (assignments): 1172 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009883/2.718, allocations: 3.875 MB / 0.8353 GB, free: 75.62 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001669/2.719, allocations: 0.6821 MB / 0.8359 GB, free: 75.62 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01483/2.734, allocations: 6.035 MB / 0.8418 GB, free: 75.35 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.4e-05/2.734, allocations: 41.72 kB / 0.8419 GB, free: 75.35 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.498e-05/2.734, allocations: 11.27 kB / 0.8419 GB, free: 75.35 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.546e-05/2.734, allocations: 24.53 kB / 0.8419 GB, free: 75.35 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03782/2.772, allocations: 15.09 MB / 0.8566 GB, free: 71.21 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-05/2.772, allocations: 7 kB / 0.8566 GB, free: 71.21 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003708/2.776, allocations: 0.5543 MB / 0.8572 GB, free: 71.16 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002641/2.779, allocations: 0.6988 MB / 0.8579 GB, free: 70.99 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005894/2.779, allocations: 68.23 kB / 0.8579 GB, free: 70.95 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01344/2.793, allocations: 10.33 MB / 0.868 GB, free: 63.54 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.761e-06/2.793, allocations: 3.344 kB / 0.868 GB, free: 63.54 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01972/2.812, allocations: 10.2 MB / 0.878 GB, free: 59.36 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003963/2.816, allocations: 1.193 MB / 0.8791 GB, free: 58.71 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00179/2.818, allocations: 58.81 kB / 0.8792 GB, free: 58.67 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004515/2.823, allocations: 194.7 kB / 0.8794 GB, free: 58.63 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008623/2.824, allocations: 198 kB / 0.8796 GB, free: 58.6 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003451/2.824, allocations: 87.89 kB / 0.8797 GB, free: 58.58 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01102/2.835, allocations: 4.924 MB / 0.8845 GB, free: 56.94 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.193e-06/2.835, allocations: 0 / 0.8845 GB, free: 56.94 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01203/2.847, allocations: 1.861 MB / 0.8863 GB, free: 56.74 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009244/2.848, allocations: 212.5 kB / 0.8865 GB, free: 56.58 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01669/2.865, allocations: 9.005 MB / 0.8953 GB, free: 49.07 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 8.95e-06/2.865, allocations: 0 / 0.8953 GB, free: 49.07 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005655/2.871, allocations: 3.243 MB / 0.8984 GB, free: 46.17 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00563/2.876, allocations: 0.9248 MB / 0.8993 GB, free: 45.41 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04113/2.917, allocations: 22.35 MB / 0.9212 GB, free: 25.04 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01355/2.931, allocations: 6.127 MB / 0.9272 GB, free: 20.58 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002599/2.934, allocations: 0.5169 MB / 0.9277 GB, free: 20.09 MB / 458.8 MB Notification: Performance of SimCode: time 1.598e-06/2.934, allocations: 0 / 0.9277 GB, free: 20.09 MB / 458.8 MB Notification: Performance of Templates: time 0.9266/3.86, allocations: 244.5 MB / 1.166 GB, free: 118.7 MB / 0.4949 GB