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/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.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 2.036/2.036, allocations: 209.4 MB / 217.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.668e-05/1.673e-05, allocations: 0 / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2619, allocations: 48.69 MB / 320 MB, free: 14.37 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1387/0.4007, allocations: 92.09 MB / 412.1 MB, free: 4.301 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.4009, allocations: 71.97 kB / 412.2 MB, free: 4.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7723/1.173, allocations: 166.2 MB / 0.5648 GB, free: 10 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.558e-06/1.173, allocations: 0 / 0.5648 GB, free: 10 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005674/1.174, allocations: 172 kB / 0.565 GB, free: 9.836 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.02872/1.203, allocations: 8.249 MB / 0.573 GB, free: 1.508 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/1.203, allocations: 8.031 kB / 0.5731 GB, free: 1.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06452/1.267, allocations: 12.09 MB / 0.5849 GB, free: 5.375 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5748/1.842, allocations: 10.92 MB / 0.5955 GB, free: 48.61 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004966/1.843, allocations: 279.2 kB / 0.5958 GB, free: 48.61 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003233/1.846, allocations: 0.5029 MB / 0.5963 GB, free: 48.61 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02472/1.871, allocations: 11.43 MB / 0.6074 GB, free: 48.57 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0384/1.909, allocations: 17.16 MB / 0.6242 GB, free: 44.45 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005227/1.91, allocations: 115.7 kB / 0.6243 GB, free: 44.45 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00278/1.912, allocations: 47.81 kB / 0.6244 GB, free: 44.45 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00314/1.916, allocations: 1.815 MB / 0.6261 GB, free: 44.43 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1087/2.024, allocations: 78.67 MB / 0.703 GB, free: 9.805 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009564/2.034, allocations: 5.844 MB / 0.7087 GB, free: 7.004 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007035/2.041, allocations: 3.987 MB / 0.7126 GB, free: 5.117 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001075/2.042, allocations: 0.6719 MB / 0.7132 GB, free: 4.395 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.506e-05/2.042, allocations: 65.19 kB / 0.7133 GB, free: 4.324 MB / 426.8 MB Notification: Performance of pre-optimization done (n=311): time 9.311e-06/2.042, allocations: 3.625 kB / 0.7133 GB, free: 4.324 MB / 426.8 MB Notification: Performance of matching and sorting (n=338): time 0.1033/2.146, allocations: 34.07 MB / 0.7466 GB, free: 7.004 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002012/2.146, allocations: 294.2 kB / 0.7468 GB, free: 6.66 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01413/2.16, allocations: 5.526 MB / 0.7522 GB, free: 1.824 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000656/2.161, allocations: 25.7 kB / 0.7523 GB, free: 1.793 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.2742/2.435, allocations: 5.746 MB / 0.7579 GB, free: 91.73 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001744/2.437, allocations: 1.239 MB / 0.7591 GB, free: 91.14 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009066/2.438, allocations: 3.781 kB / 0.7591 GB, free: 91.14 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0007379/2.438, allocations: 0.735 MB / 0.7598 GB, free: 90.81 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007362/2.446, allocations: 3.334 MB / 0.7631 GB, free: 90.79 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/2.456, allocations: 9.236 MB / 0.7721 GB, free: 83.15 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/2.466, allocations: 5.48 MB / 0.7774 GB, free: 83.11 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002016/2.467, allocations: 58.22 kB / 0.7775 GB, free: 83.11 MB / 458.8 MB Notification: Performance of matching and sorting (n=1310) (initialization): time 0.02804/2.495, allocations: 11.91 MB / 0.7891 GB, free: 82.59 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001636/2.495, allocations: 99.05 kB / 0.7892 GB, free: 82.59 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002386/2.495, allocations: 210.8 kB / 0.7894 GB, free: 82.59 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003323/2.499, allocations: 1.047 MB / 0.7904 GB, free: 82.56 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009993/2.509, allocations: 2.341 MB / 0.7927 GB, free: 82.36 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/2.523, allocations: 10.85 MB / 0.8033 GB, free: 77.05 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0104/2.534, allocations: 355.5 kB / 0.8036 GB, free: 77.03 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002171/2.536, allocations: 0.5956 MB / 0.8042 GB, free: 77.03 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1230): * Single equations (assignments): 1223 * 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.003282/2.539, allocations: 0.6307 MB / 0.8048 GB, free: 76.61 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00142/2.541, allocations: 0.5988 MB / 0.8054 GB, free: 76.29 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01359/2.554, allocations: 5.681 MB / 0.811 GB, free: 75.99 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-05/2.554, allocations: 35.45 kB / 0.811 GB, free: 75.99 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.763e-05/2.554, allocations: 15.5 kB / 0.811 GB, free: 75.99 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-05/2.555, allocations: 18.66 kB / 0.811 GB, free: 75.99 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03366/2.588, allocations: 13.38 MB / 0.8241 GB, free: 73.98 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.419e-05/2.588, allocations: 4.594 kB / 0.8241 GB, free: 73.98 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003902/2.592, allocations: 0.5633 MB / 0.8247 GB, free: 73.94 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002728/2.595, allocations: 0.7001 MB / 0.8253 GB, free: 73.76 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000607/2.596, allocations: 13.56 kB / 0.8254 GB, free: 73.75 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01269/2.608, allocations: 9.702 MB / 0.8348 GB, free: 66.71 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.487e-06/2.608, allocations: 11.16 kB / 0.8348 GB, free: 66.7 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01818/2.627, allocations: 9.762 MB / 0.8444 GB, free: 62.42 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003359/2.63, allocations: 1.077 MB / 0.8454 GB, free: 61.79 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001527/2.632, allocations: 3.281 kB / 0.8454 GB, free: 61.79 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004263/2.636, allocations: 147.5 kB / 0.8456 GB, free: 61.79 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008714/2.637, allocations: 191.6 kB / 0.8458 GB, free: 61.77 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003437/2.637, allocations: 82.55 kB / 0.8458 GB, free: 61.75 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008636/2.646, allocations: 3.763 MB / 0.8495 GB, free: 60.25 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.118e-06/2.646, allocations: 4.703 kB / 0.8495 GB, free: 60.25 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01181/2.658, allocations: 1.624 MB / 0.8511 GB, free: 58.64 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (279): * Single equations (assignments): 272 * 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.0008594/2.659, allocations: 156.6 kB / 0.8513 GB, free: 58.48 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01503/2.674, allocations: 8.482 MB / 0.8595 GB, free: 50.83 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 7.93e-06/2.674, allocations: 0 / 0.8595 GB, free: 50.83 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005147/2.679, allocations: 3.104 MB / 0.8626 GB, free: 47.98 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004846/2.684, allocations: 0.7313 MB / 0.8633 GB, free: 47.37 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03741/2.721, allocations: 15.74 MB / 0.8786 GB, free: 33.4 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01372/2.735, allocations: 6.147 MB / 0.8847 GB, free: 28.93 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002499/2.737, allocations: 494.2 kB / 0.8851 GB, free: 28.46 MB / 458.8 MB Notification: Performance of SimCode: time 1.717e-06/2.737, allocations: 0 / 0.8851 GB, free: 28.46 MB / 458.8 MB Notification: Performance of Templates: time 0.9448/3.682, allocations: 239.1 MB / 1.119 GB, free: 122.2 MB / 0.4949 GB