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.Torque2.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.Torque2,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadModel(ModelicaTest): time 1.874/1.874, allocations: 209.3 MB / 224.9 MB, free: 188 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004467/0.0004468, allocations: 8 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.284, allocations: 48.71 MB / 331.3 MB, free: 6.477 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1472/0.4312, allocations: 98.6 MB / 429.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.4315, allocations: 71.97 kB / 430 MB, free: 11.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.44/1.872, allocations: 239.6 MB / 0.6539 GB, free: 29.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.651e-06/1.872, allocations: 3.031 kB / 0.6539 GB, free: 29.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007072/1.873, allocations: 255 kB / 0.6541 GB, free: 29.96 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: 4446 * Number of variables: 4446 Notification: Performance of Generate backend data structure: time 0.04265/1.915, allocations: 13.34 MB / 0.6671 GB, free: 25.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/1.915, allocations: 10.69 kB / 0.6671 GB, free: 25.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08256/1.998, allocations: 12.81 MB / 0.6796 GB, free: 24.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06282/2.061, allocations: 13.34 MB / 0.6927 GB, free: 22.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001069/2.062, allocations: 0.9554 MB / 0.6936 GB, free: 22.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005101/2.067, allocations: 1.27 MB / 0.6948 GB, free: 22.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07606/2.143, allocations: 30.15 MB / 0.7243 GB, free: 16.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007006/2.144, allocations: 153.3 kB / 0.7244 GB, free: 16.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004096/2.148, allocations: 0.5891 MB / 0.725 GB, free: 16.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005862/2.154, allocations: 2.857 MB / 0.7278 GB, free: 16.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06127/2.215, allocations: 24.67 MB / 0.7519 GB, free: 0.7344 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4981/2.713, allocations: 127.9 MB / 0.8768 GB, free: 27.77 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04723/2.761, allocations: 14.07 MB / 0.8906 GB, free: 27 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04198/2.803, allocations: 19.83 MB / 0.9099 GB, free: 23.74 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.526e-05/2.803, allocations: 98.88 kB / 0.91 GB, free: 23.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=562): time 1.077e-05/2.803, allocations: 0 / 0.91 GB, free: 23.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=646): time 0.5267/3.33, allocations: 68.08 MB / 0.9765 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/3.33, allocations: 382 kB / 0.9769 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.028/3.358, allocations: 10.74 MB / 0.9874 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001457/3.359, allocations: 125.5 kB / 0.9875 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0072/3.366, allocations: 8.004 MB / 0.9953 GB, free: 99 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003797/3.37, allocations: 2.379 MB / 0.9976 GB, free: 97.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002567/3.373, allocations: 312.7 kB / 0.9979 GB, free: 97.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001796/3.375, allocations: 0.9667 MB / 0.9989 GB, free: 97.26 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0152/3.39, allocations: 6.766 MB / 1.005 GB, free: 97.23 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02036/3.41, allocations: 15.19 MB / 1.02 GB, free: 86.52 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01993/3.43, allocations: 9.93 MB / 1.03 GB, free: 86.45 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002899/3.431, allocations: 86.62 kB / 1.03 GB, free: 86.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.05825/3.489, allocations: 24.35 MB / 1.054 GB, free: 81.94 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002406/3.489, allocations: 133.7 kB / 1.054 GB, free: 81.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004025/3.49, allocations: 296 kB / 1.054 GB, free: 81.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01139/3.501, allocations: 3.302 MB / 1.058 GB, free: 81.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01758/3.519, allocations: 3.764 MB / 1.061 GB, free: 80.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03638/3.555, allocations: 23.26 MB / 1.084 GB, free: 68.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01674/3.572, allocations: 0.941 MB / 1.085 GB, free: 68.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003363/3.575, allocations: 0.8823 MB / 1.086 GB, free: 68.18 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1343 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1897): * Single equations (assignments): 1890 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01447/3.59, allocations: 5.73 MB / 1.091 GB, free: 65.56 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002654/3.593, allocations: 1.08 MB / 1.092 GB, free: 64.96 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03327/3.626, allocations: 14.75 MB / 1.107 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.072e-05/3.626, allocations: 64.78 kB / 1.107 GB, free: 53.58 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.794e-05/3.626, allocations: 16 kB / 1.107 GB, free: 53.56 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001254/3.626, allocations: 37.86 kB / 1.107 GB, free: 53.56 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1031/3.729, allocations: 32.56 MB / 1.139 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.66e-05/3.729, allocations: 12 kB / 1.139 GB, free: 27.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008442/3.738, allocations: 1.277 MB / 1.14 GB, free: 26.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009589/3.747, allocations: 2.842 MB / 1.143 GB, free: 24.39 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001586/3.749, allocations: 118 kB / 1.143 GB, free: 24.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3543/4.103, allocations: 21.79 MB / 1.164 GB, free: 82.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-05/4.103, allocations: 20.09 kB / 1.164 GB, free: 82.09 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04909/4.153, allocations: 26.31 MB / 1.19 GB, free: 76.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007823/4.16, allocations: 2.189 MB / 1.192 GB, free: 76.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004059/4.165, allocations: 117.2 kB / 1.192 GB, free: 76.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009035/4.174, allocations: 449.5 kB / 1.192 GB, free: 76.61 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002048/4.176, allocations: 414.7 kB / 1.193 GB, free: 76.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001176/4.177, allocations: 169.1 kB / 1.193 GB, free: 76.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01856/4.195, allocations: 7.77 MB / 1.201 GB, free: 76.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.484e-06/4.196, allocations: 2.812 kB / 1.201 GB, free: 76.27 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01916/4.215, allocations: 3.102 MB / 1.204 GB, free: 76.27 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.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 (553): * Single equations (assignments): 546 * 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 {(4,75.0%) 18,(4,75.0%) 18,(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.002139/4.217, allocations: 301.4 kB / 1.204 GB, free: 76.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03239/4.249, allocations: 16.83 MB / 1.22 GB, free: 74.85 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/4.249, allocations: 0 / 1.22 GB, free: 74.85 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01563/4.265, allocations: 7.123 MB / 1.227 GB, free: 72.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009806/4.275, allocations: 1.345 MB / 1.229 GB, free: 71.59 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07096/4.346, allocations: 36.53 MB / 1.264 GB, free: 53.42 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02066/4.367, allocations: 8.874 MB / 1.273 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005/4.372, allocations: 0.8424 MB / 1.274 GB, free: 46.73 MB / 0.4948 GB Notification: Performance of SimCode: time 1.7e-06/4.372, allocations: 0 / 1.274 GB, free: 46.73 MB / 0.4948 GB Notification: Performance of Templates: time 1.181/5.553, allocations: 372.7 MB / 1.638 GB, free: 88.66 MB / 0.5417 GB