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.Torque.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.Torque,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.Torque") Notification: Performance of loadModel(ModelicaTest): time 1.792/1.792, allocations: 209.3 MB / 222.4 MB, free: 7.715 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.539e-05/3.555e-05, allocations: 8 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08953/0.08959, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3629/0.4525, allocations: 94.6 MB / 421.1 MB, free: 12.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.4528, allocations: 70.97 kB / 421.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7603/1.213, allocations: 131.8 MB / 0.5401 GB, free: 73.99 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.931e-06/1.213, allocations: 0 / 0.5401 GB, free: 73.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004598/1.214, allocations: 130.8 kB / 0.5402 GB, free: 73.99 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.02197/1.236, allocations: 6.657 MB / 0.5467 GB, free: 71.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/1.236, allocations: 9.688 kB / 0.5467 GB, free: 71.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03758/1.273, allocations: 7.15 MB / 0.5537 GB, free: 70.94 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02192/1.295, allocations: 7.43 MB / 0.5609 GB, free: 70.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005548/1.296, allocations: 0.5019 MB / 0.5614 GB, free: 70.06 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002842/1.299, allocations: 0.664 MB / 0.5621 GB, free: 70.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03981/1.339, allocations: 16.05 MB / 0.5778 GB, free: 66.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003575/1.339, allocations: 97.48 kB / 0.5778 GB, free: 66.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002196/1.341, allocations: 322.8 kB / 0.5782 GB, free: 66.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002741/1.344, allocations: 1.551 MB / 0.5797 GB, free: 66.03 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03217/1.376, allocations: 12.92 MB / 0.5923 GB, free: 65.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08682/1.463, allocations: 72.96 MB / 0.6635 GB, free: 5.121 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02046/1.483, allocations: 6.479 MB / 0.6699 GB, free: 15.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007036/1.491, allocations: 3.679 MB / 0.6735 GB, free: 12.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02149/1.512, allocations: 9.272 MB / 0.6825 GB, free: 4.59 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.332e-05/1.512, allocations: 60.34 kB / 0.6826 GB, free: 4.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=269): time 7.572e-06/1.512, allocations: 7.938 kB / 0.6826 GB, free: 4.512 MB / 442.7 MB Notification: Performance of matching and sorting (n=311): time 0.3432/1.856, allocations: 25.86 MB / 0.7078 GB, free: 80.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.61e-05/1.856, allocations: 242.5 kB / 0.7081 GB, free: 80.03 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01125/1.867, allocations: 6.101 MB / 0.714 GB, free: 79.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005949/1.868, allocations: 73.05 kB / 0.7141 GB, free: 79.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002953/1.87, allocations: 4.583 MB / 0.7186 GB, free: 77.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0014/1.872, allocations: 1.18 MB / 0.7197 GB, free: 76.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006983/1.873, allocations: 185.2 kB / 0.7199 GB, free: 76.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005381/1.873, allocations: 0.6852 MB / 0.7206 GB, free: 76.28 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006532/1.88, allocations: 3.495 MB / 0.724 GB, free: 76.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009042/1.889, allocations: 8.773 MB / 0.7325 GB, free: 69.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009769/1.899, allocations: 5.484 MB / 0.7379 GB, free: 69.42 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/1.899, allocations: 53.41 kB / 0.7379 GB, free: 69.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.02878/1.928, allocations: 13.28 MB / 0.7509 GB, free: 66.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/1.928, allocations: 84.62 kB / 0.751 GB, free: 66.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001832/1.928, allocations: 188.3 kB / 0.7512 GB, free: 66.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005037/1.933, allocations: 1.701 MB / 0.7528 GB, free: 66.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00881/1.942, allocations: 2.126 MB / 0.7549 GB, free: 66.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01736/1.959, allocations: 11.35 MB / 0.766 GB, free: 60.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009529/1.969, allocations: 0.5342 MB / 0.7665 GB, free: 60.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001863/1.971, allocations: 0.5325 MB / 0.767 GB, free: 60 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * Number of states: 0 () * Number of discrete variables: 60 (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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1104): * Single equations (assignments): 1099 * 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.002401/1.973, allocations: 0.8019 MB / 0.7678 GB, free: 59.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001542/1.975, allocations: 0.5945 MB / 0.7684 GB, free: 59.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02825/2.003, allocations: 6.685 MB / 0.7749 GB, free: 56.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-05/2.003, allocations: 33.66 kB / 0.775 GB, free: 56.67 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.711e-05/2.003, allocations: 8.562 kB / 0.775 GB, free: 56.67 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.942e-05/2.003, allocations: 17.22 kB / 0.775 GB, free: 56.67 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06136/2.065, allocations: 15.13 MB / 0.7898 GB, free: 47.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.142e-05/2.065, allocations: 4.562 kB / 0.7898 GB, free: 47.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003522/2.068, allocations: 0.5606 MB / 0.7903 GB, free: 47.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004662/2.073, allocations: 1.425 MB / 0.7917 GB, free: 46.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00063/2.074, allocations: 52 kB / 0.7918 GB, free: 46.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0163/2.09, allocations: 10.49 MB / 0.802 GB, free: 37.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-05/2.09, allocations: 14.11 kB / 0.802 GB, free: 37.06 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02007/2.11, allocations: 11.73 MB / 0.8135 GB, free: 26.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00365/2.114, allocations: 1.162 MB / 0.8146 GB, free: 25.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001594/2.115, allocations: 52 kB / 0.8147 GB, free: 25.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004082/2.12, allocations: 212.6 kB / 0.8149 GB, free: 25.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008281/2.12, allocations: 186.8 kB / 0.815 GB, free: 25.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003292/2.121, allocations: 86.28 kB / 0.8151 GB, free: 25.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.009256/2.13, allocations: 4.349 MB / 0.8194 GB, free: 21.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-06/2.13, allocations: 3.031 kB / 0.8194 GB, free: 21.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01118/2.141, allocations: 1.651 MB / 0.821 GB, free: 19.64 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 249 * 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.0009898/2.142, allocations: 209.5 kB / 0.8212 GB, free: 19.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01556/2.158, allocations: 8.688 MB / 0.8297 GB, free: 11.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.931e-06/2.158, allocations: 0 / 0.8297 GB, free: 11.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006453/2.164, allocations: 3.335 MB / 0.8329 GB, free: 8.516 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004959/2.169, allocations: 0.7108 MB / 0.8336 GB, free: 7.906 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06383/2.233, allocations: 14.26 MB / 0.8475 GB, free: 12.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2719/2.505, allocations: 5.036 MB / 0.8525 GB, free: 86.95 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002571/2.508, allocations: 477.9 kB / 0.8529 GB, free: 86.95 MB / 458.7 MB Notification: Performance of SimCode: time 2.169e-06/2.508, allocations: 0.6562 kB / 0.8529 GB, free: 86.95 MB / 458.7 MB Notification: Performance of Templates: time 0.2088/2.717, allocations: 147.4 MB / 0.9969 GB, free: 5.141 MB / 458.7 MB