Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadModel(ModelicaTest): time 2.223/2.223, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004346/0.0004348, allocations: 12 kB / 314.3 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2791, allocations: 54.86 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque2): time 0.4802/0.7594, allocations: 156.6 MB / 0.5135 GB, free: 15.6 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.08143/0.8409, allocations: 33.39 MB / 0.5461 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03462/0.8755, allocations: 0.7639 MB / 0.5468 GB, free: 15.87 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02584/0.9014, allocations: 8.11 MB / 0.5547 GB, free: 7.902 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.07923/0.9807, allocations: 21.97 MB / 0.5762 GB, free: 3.672 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0103/0.991, allocations: 1.646 MB / 0.5778 GB, free: 2.023 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.07972/1.071, allocations: 36.48 MB / 0.6134 GB, free: 13.5 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03098/1.102, allocations: 15.6 MB / 0.6287 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007234/1.109, allocations: 3.095 MB / 0.6317 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0084/1.118, allocations: 4.248 MB / 0.6358 GB, free: 6.422 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.002613/1.12, allocations: 456 kB / 0.6363 GB, free: 5.977 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004793/1.125, allocations: 1.202 MB / 0.6375 GB, free: 4.773 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.00808/1.133, allocations: 5.05 MB / 0.6424 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.005083/1.138, allocations: 2.521 MB / 0.6448 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.02633/1.165, allocations: 16.99 MB / 0.6614 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.7e-06/1.165, allocations: 0 / 0.6614 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.434e-06/1.165, allocations: 0 / 0.6614 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000445/1.165, allocations: 0 / 0.6614 GB, free: 12.14 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4454 * Number of variables: 4454 Notification: Performance of Generate backend data structure: time 0.5969/1.762, allocations: 13.42 MB / 0.6745 GB, free: 217 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/1.762, allocations: 8.875 kB / 0.6746 GB, free: 217 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1136/1.876, allocations: 14.96 MB / 0.6892 GB, free: 212.4 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02168/1.897, allocations: 9.206 MB / 0.6982 GB, free: 203.8 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007133/1.898, allocations: 0.746 MB / 0.6989 GB, free: 203.1 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003817/1.902, allocations: 0.9987 MB / 0.6999 GB, free: 202.2 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06406/1.966, allocations: 29.99 MB / 0.7291 GB, free: 171 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005316/1.967, allocations: 119 kB / 0.7293 GB, free: 170.9 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003069/1.97, allocations: 476 kB / 0.7297 GB, free: 170.5 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007829/1.978, allocations: 5.058 MB / 0.7347 GB, free: 165.5 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05977/2.037, allocations: 24.9 MB / 0.759 GB, free: 140.6 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2533/2.291, allocations: 112 MB / 0.8683 GB, free: 26.74 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04867/2.34, allocations: 14.12 MB / 0.8821 GB, free: 12.44 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3694/2.709, allocations: 19.92 MB / 0.9016 GB, free: 194.5 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.714e-05/2.709, allocations: 99 kB / 0.9016 GB, free: 194.4 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=562): time 1.167e-05/2.709, allocations: 0 / 0.9016 GB, free: 194.4 MB / 0.5262 GB Notification: Performance of matching and sorting (n=646): time 0.2328/2.942, allocations: 71.69 MB / 0.9717 GB, free: 146.3 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/2.942, allocations: 385.2 kB / 0.972 GB, free: 145.9 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0238/2.966, allocations: 12.6 MB / 0.9843 GB, free: 133.3 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001386/2.967, allocations: 129.7 kB / 0.9844 GB, free: 133.2 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.005725/2.973, allocations: 7.972 MB / 0.9922 GB, free: 125.2 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003228/2.976, allocations: 2.367 MB / 0.9945 GB, free: 122.9 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002079/2.979, allocations: 313.3 kB / 0.9948 GB, free: 122.6 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001106/2.98, allocations: 0.9714 MB / 0.9958 GB, free: 121.6 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01406/2.994, allocations: 6.964 MB / 1.003 GB, free: 114.6 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01816/3.012, allocations: 15.4 MB / 1.018 GB, free: 95.41 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01793/3.03, allocations: 10.12 MB / 1.028 GB, free: 85.55 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000231/3.03, allocations: 84 kB / 1.028 GB, free: 85.47 MB / 0.5262 GB Notification: Performance of matching and sorting (n=2027) (initialization): time 0.05372/3.084, allocations: 24.81 MB / 1.052 GB, free: 60.64 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002361/3.084, allocations: 128 kB / 1.052 GB, free: 60.52 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003498/3.085, allocations: 292 kB / 1.052 GB, free: 60.23 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01079/3.095, allocations: 3.527 MB / 1.056 GB, free: 56.69 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01585/3.111, allocations: 3.696 MB / 1.059 GB, free: 52.99 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3643/3.476, allocations: 24.56 MB / 1.083 GB, free: 165.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0292/3.505, allocations: 0.9234 MB / 1.084 GB, free: 165.5 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003099/3.508, allocations: 0.8889 MB / 1.085 GB, free: 165.5 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1333 * 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 (1887): * Single equations (assignments): 1876 * Array equations: 7 * 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.01363/3.522, allocations: 5.731 MB / 1.091 GB, free: 163.3 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002942/3.525, allocations: 1.073 MB / 1.092 GB, free: 163.3 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0364/3.561, allocations: 15.17 MB / 1.106 GB, free: 157.9 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.156e-05/3.561, allocations: 71 kB / 1.107 GB, free: 157.9 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.348e-05/3.561, allocations: 20.47 kB / 1.107 GB, free: 157.9 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001304/3.561, allocations: 30.98 kB / 1.107 GB, free: 157.9 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07798/3.639, allocations: 33.22 MB / 1.139 GB, free: 145.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.213e-05/3.64, allocations: 8 kB / 1.139 GB, free: 145.7 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00739/3.647, allocations: 1.177 MB / 1.14 GB, free: 144.6 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01001/3.657, allocations: 3.062 MB / 1.143 GB, free: 141.5 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00158/3.659, allocations: 129.4 kB / 1.143 GB, free: 141.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03587/3.695, allocations: 23.06 MB / 1.166 GB, free: 118 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-05/3.695, allocations: 19.88 kB / 1.166 GB, free: 118 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04506/3.74, allocations: 23.39 MB / 1.189 GB, free: 94.86 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007092/3.747, allocations: 2.249 MB / 1.191 GB, free: 92.92 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003458/3.75, allocations: 121.3 kB / 1.191 GB, free: 92.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008447/3.759, allocations: 443.4 kB / 1.191 GB, free: 92.37 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00206/3.761, allocations: 412.6 kB / 1.192 GB, free: 91.97 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001117/3.762, allocations: 169.2 kB / 1.192 GB, free: 91.81 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01726/3.779, allocations: 8.216 MB / 1.2 GB, free: 83.63 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.164e-06/3.779, allocations: 0 / 1.2 GB, free: 83.63 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01793/3.797, allocations: 3.156 MB / 1.203 GB, free: 80.48 MB / 0.5262 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.00196/3.799, allocations: 317.6 kB / 1.203 GB, free: 80.17 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.03202/3.831, allocations: 17.17 MB / 1.22 GB, free: 63.09 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/3.831, allocations: 7.719 kB / 1.22 GB, free: 63.08 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01544/3.847, allocations: 7.321 MB / 1.227 GB, free: 55.73 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008995/3.856, allocations: 1.349 MB / 1.229 GB, free: 54.41 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0695/3.925, allocations: 36.81 MB / 1.265 GB, free: 17.55 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.313/4.238, allocations: 8.885 MB / 1.273 GB, free: 165.2 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005518/4.244, allocations: 0.8445 MB / 1.274 GB, free: 165.2 MB / 0.5262 GB Notification: Performance of SimCode: time 1.784e-06/4.244, allocations: 2.688 kB / 1.274 GB, free: 165.2 MB / 0.5262 GB Notification: Performance of Templates: time 0.7836/5.028, allocations: 374.4 MB / 1.64 GB, free: 10.77 MB / 0.5262 GB