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.Torque.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.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.2_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 2.322/2.322, allocations: 234.9 MB / 250.5 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004535/0.000454, allocations: 16 kB / 314.3 MB, free: 9.652 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2904, allocations: 54.87 MB / 369.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.1054/0.3959, allocations: 74.22 MB / 443.4 MB, free: 2.352 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0448/0.4408, allocations: 16.65 MB / 460 MB, free: 1.656 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01447/0.4553, allocations: 363.2 kB / 460.4 MB, free: 1.301 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01177/0.4671, allocations: 3.799 MB / 464.2 MB, free: 13.48 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03561/0.5027, allocations: 10.6 MB / 474.8 MB, free: 2.859 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004859/0.5076, allocations: 0.866 MB / 475.7 MB, free: 1.992 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.03938/0.5471, allocations: 18.47 MB / 494.1 MB, free: 15.5 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01379/0.5609, allocations: 7.377 MB / 0.4898 GB, free: 8.027 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003611/0.5646, allocations: 1.647 MB / 0.4914 GB, free: 6.375 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00403/0.5686, allocations: 2.239 MB / 0.4936 GB, free: 4.129 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009782/0.5696, allocations: 232 kB / 0.4938 GB, free: 3.902 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00283/0.5725, allocations: 1.038 MB / 0.4948 GB, free: 2.863 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003617/0.5761, allocations: 2.615 MB / 0.4973 GB, free: 248 kB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.2961/0.8723, allocations: 1.343 MB / 0.4987 GB, free: 24.83 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.8837, allocations: 8.897 MB / 0.5073 GB, free: 24.22 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.8838, allocations: 2.75 kB / 0.5073 GB, free: 24.22 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.962e-06/0.8838, allocations: 1.25 kB / 0.5073 GB, free: 24.22 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003356/0.8842, allocations: 0.5625 kB / 0.5073 GB, free: 24.22 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: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.01966/0.9038, allocations: 7.152 MB / 0.5143 GB, free: 21.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.9039, allocations: 9.219 kB / 0.5143 GB, free: 21.35 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.054/0.9579, allocations: 8.271 MB / 0.5224 GB, free: 20.37 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.9695, allocations: 4.811 MB / 0.5271 GB, free: 18.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004113/0.97, allocations: 383 kB / 0.5275 GB, free: 18.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002009/0.972, allocations: 0.5061 MB / 0.528 GB, free: 18.87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03452/1.007, allocations: 15.81 MB / 0.5434 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002739/1.007, allocations: 66.53 kB / 0.5435 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001483/1.008, allocations: 239.8 kB / 0.5437 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004612/1.013, allocations: 2.832 MB / 0.5465 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03156/1.045, allocations: 13.17 MB / 0.5593 GB, free: 5.035 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1039/1.149, allocations: 61.19 MB / 0.6191 GB, free: 1.887 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02361/1.172, allocations: 6.727 MB / 0.6257 GB, free: 12.59 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0216/1.194, allocations: 9.337 MB / 0.6348 GB, free: 5.738 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.649e-05/1.194, allocations: 66.39 kB / 0.6348 GB, free: 5.68 MB / 490.7 MB Notification: Performance of pre-optimization done (n=269): time 6.966e-06/1.194, allocations: 0 / 0.6348 GB, free: 5.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=311): time 0.1176/1.312, allocations: 32.09 MB / 0.6662 GB, free: 9.504 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000192/1.312, allocations: 250.3 kB / 0.6664 GB, free: 9.215 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01717/1.329, allocations: 7.185 MB / 0.6734 GB, free: 2.051 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007944/1.33, allocations: 77.14 kB / 0.6735 GB, free: 1.973 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005314/1.335, allocations: 4.556 MB / 0.678 GB, free: 13.44 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002176/1.337, allocations: 1.175 MB / 0.6791 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001233/1.339, allocations: 185.6 kB / 0.6793 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0009512/1.34, allocations: 0.6948 MB / 0.68 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00969/1.349, allocations: 3.668 MB / 0.6835 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2865/1.636, allocations: 8.949 MB / 0.6923 GB, free: 206.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0116/1.647, allocations: 5.591 MB / 0.6977 GB, free: 205.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002464/1.648, allocations: 54.53 kB / 0.6978 GB, free: 205.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.03195/1.68, allocations: 13.66 MB / 0.7111 GB, free: 200.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001808/1.68, allocations: 85.53 kB / 0.7112 GB, free: 200.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002547/1.68, allocations: 182.5 kB / 0.7114 GB, free: 200.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005742/1.686, allocations: 1.81 MB / 0.7132 GB, free: 200.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008861/1.695, allocations: 2.116 MB / 0.7152 GB, free: 200 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01892/1.714, allocations: 12.33 MB / 0.7273 GB, free: 192 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009307/1.723, allocations: 0.5285 MB / 0.7278 GB, free: 191.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001914/1.725, allocations: 0.5342 MB / 0.7283 GB, free: 191 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 845 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1092 * Array equations: 5 * 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.007734/1.733, allocations: 3.221 MB / 0.7314 GB, free: 188.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001348/1.734, allocations: 0.5871 MB / 0.732 GB, free: 188 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01634/1.751, allocations: 6.971 MB / 0.7388 GB, free: 182.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.724e-05/1.751, allocations: 35.98 kB / 0.7389 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.455e-05/1.751, allocations: 8 kB / 0.7389 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.327e-05/1.751, allocations: 15 kB / 0.7389 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03589/1.787, allocations: 15.51 MB / 0.754 GB, free: 168 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.192e-05/1.787, allocations: 4 kB / 0.754 GB, free: 168 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00349/1.79, allocations: 0.527 MB / 0.7545 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005102/1.795, allocations: 1.521 MB / 0.756 GB, free: 166 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008147/1.796, allocations: 60 kB / 0.7561 GB, free: 165.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01793/1.814, allocations: 11.48 MB / 0.7673 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.118e-06/1.814, allocations: 7.953 kB / 0.7673 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02214/1.836, allocations: 11.3 MB / 0.7783 GB, free: 143 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003772/1.84, allocations: 1.18 MB / 0.7795 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001726/1.842, allocations: 60 kB / 0.7796 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004305/1.846, allocations: 207.7 kB / 0.7798 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/1.847, allocations: 193.9 kB / 0.7799 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003525/1.848, allocations: 79.98 kB / 0.78 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009663/1.858, allocations: 4.64 MB / 0.7845 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.098e-06/1.858, allocations: 0 / 0.7845 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01035/1.868, allocations: 1.679 MB / 0.7862 GB, free: 135 MB / 0.5261 GB 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 () * Number of clocked 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.001215/1.869, allocations: 220 kB / 0.7864 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01721/1.886, allocations: 8.976 MB / 0.7952 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.585e-06/1.886, allocations: 0 / 0.7952 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007615/1.894, allocations: 3.49 MB / 0.7986 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004878/1.899, allocations: 0.7131 MB / 0.7993 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03586/1.935, allocations: 19.14 MB / 0.8179 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01063/1.946, allocations: 5.037 MB / 0.8229 GB, free: 97.27 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002712/1.948, allocations: 475.3 kB / 0.8233 GB, free: 96.81 MB / 0.5261 GB Notification: Performance of SimCode: time 2.046e-06/1.948, allocations: 0 / 0.8233 GB, free: 96.81 MB / 0.5261 GB Notification: Performance of Templates: time 0.4979/2.446, allocations: 148.4 MB / 0.9682 GB, free: 142.1 MB / 0.5261 GB