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.789/1.789, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.099e-05/3.114e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08896/0.08902, allocations: 48.69 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4087/0.4978, allocations: 98.51 MB / 425 MB, free: 9.023 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.4981, allocations: 80.45 kB / 425.1 MB, free: 8.984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.135/1.634, allocations: 239.9 MB / 0.6494 GB, free: 32.06 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.163e-06/1.634, allocations: 0 / 0.6494 GB, free: 32.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007386/1.634, allocations: 263.9 kB / 0.6497 GB, free: 31.8 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.04123/1.676, allocations: 12.33 MB / 0.6617 GB, free: 19.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/1.676, allocations: 11.97 kB / 0.6617 GB, free: 19.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06656/1.742, allocations: 12.82 MB / 0.6742 GB, free: 6.496 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0387/1.781, allocations: 13.28 MB / 0.6872 GB, free: 9.121 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00144/1.782, allocations: 0.9626 MB / 0.6882 GB, free: 8.156 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005734/1.788, allocations: 1.273 MB / 0.6894 GB, free: 6.883 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3681/2.156, allocations: 29.9 MB / 0.7186 GB, free: 46.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008909/2.157, allocations: 151.4 kB / 0.7187 GB, free: 46.36 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005103/2.162, allocations: 0.5871 MB / 0.7193 GB, free: 46.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005511/2.168, allocations: 2.861 MB / 0.7221 GB, free: 46.33 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.108/2.276, allocations: 24.3 MB / 0.7458 GB, free: 46.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1878/2.464, allocations: 127.7 MB / 0.8705 GB, free: 3.742 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3895/2.853, allocations: 14.29 MB / 0.8845 GB, free: 96.64 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01394/2.867, allocations: 7.961 MB / 0.8922 GB, free: 96.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04309/2.911, allocations: 19.84 MB / 0.9116 GB, free: 93.78 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.371e-05/2.911, allocations: 98.19 kB / 0.9117 GB, free: 93.74 MB / 490.7 MB Notification: Performance of pre-optimization done (n=562): time 1.161e-05/2.911, allocations: 0 / 0.9117 GB, free: 93.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=646): time 0.2049/3.116, allocations: 59.14 MB / 0.9695 GB, free: 77.38 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/3.116, allocations: 385.2 kB / 0.9698 GB, free: 76.99 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02497/3.141, allocations: 10.61 MB / 0.9802 GB, free: 73.12 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001445/3.142, allocations: 128 kB / 0.9803 GB, free: 72.99 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006152/3.148, allocations: 7.999 MB / 0.9881 GB, free: 65.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003069/3.152, allocations: 2.377 MB / 0.9904 GB, free: 63.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002118/3.154, allocations: 316.8 kB / 0.9907 GB, free: 63.29 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001365/3.155, allocations: 0.969 MB / 0.9917 GB, free: 62.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01366/3.169, allocations: 6.623 MB / 0.9982 GB, free: 56.55 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01852/3.187, allocations: 15.05 MB / 1.013 GB, free: 38.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01848/3.206, allocations: 9.88 MB / 1.023 GB, free: 30.91 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000241/3.206, allocations: 86.62 kB / 1.023 GB, free: 30.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.05492/3.261, allocations: 24.05 MB / 1.046 GB, free: 10.83 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00022/3.261, allocations: 128 kB / 1.046 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000356/3.262, allocations: 296 kB / 1.046 GB, free: 10.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01162/3.273, allocations: 3.479 MB / 1.05 GB, free: 8.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3603/3.634, allocations: 3.763 MB / 1.054 GB, free: 78.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0376/3.671, allocations: 22.59 MB / 1.076 GB, free: 73.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01731/3.689, allocations: 0.9348 MB / 1.077 GB, free: 73.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003544/3.692, allocations: 0.8927 MB / 1.077 GB, free: 73.56 MB / 490.7 MB 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 () * 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.005759/3.698, allocations: 1.276 MB / 1.079 GB, free: 73.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003187/3.701, allocations: 1.073 MB / 1.08 GB, free: 73.44 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03578/3.737, allocations: 14.6 MB / 1.094 GB, free: 73.08 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.121e-05/3.737, allocations: 67.39 kB / 1.094 GB, free: 73.08 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.846e-05/3.737, allocations: 15.38 kB / 1.094 GB, free: 73.08 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001254/3.737, allocations: 33.84 kB / 1.094 GB, free: 73.08 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08086/3.818, allocations: 32.38 MB / 1.126 GB, free: 65.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.026e-05/3.818, allocations: 11.41 kB / 1.126 GB, free: 65.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008481/3.827, allocations: 1.281 MB / 1.127 GB, free: 65.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0103/3.837, allocations: 2.83 MB / 1.13 GB, free: 65.34 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001577/3.839, allocations: 122.5 kB / 1.13 GB, free: 65.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03524/3.874, allocations: 21.08 MB / 1.15 GB, free: 54.19 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-05/3.874, allocations: 23.44 kB / 1.15 GB, free: 54.19 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04544/3.92, allocations: 26.08 MB / 1.176 GB, free: 38 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01108/3.931, allocations: 2.192 MB / 1.178 GB, free: 36.15 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005978/3.937, allocations: 120.6 kB / 1.178 GB, free: 36.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0149/3.952, allocations: 455.3 kB / 1.179 GB, free: 35.76 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003/3.955, allocations: 412.9 kB / 1.179 GB, free: 35.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001916/3.957, allocations: 169.9 kB / 1.179 GB, free: 35.35 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0241/3.981, allocations: 7.646 MB / 1.187 GB, free: 28.63 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.085e-06/3.981, allocations: 4 kB / 1.187 GB, free: 28.63 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01904/4, allocations: 3.099 MB / 1.19 GB, free: 25.54 MB / 490.7 MB 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 () * 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.001812/4.002, allocations: 311.3 kB / 1.19 GB, free: 25.31 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03139/4.033, allocations: 16.58 MB / 1.206 GB, free: 10.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/4.033, allocations: 4 kB / 1.206 GB, free: 10.62 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0142/4.048, allocations: 7.01 MB / 1.213 GB, free: 4.352 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009329/4.057, allocations: 1.348 MB / 1.214 GB, free: 3.23 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.388/4.445, allocations: 28.54 MB / 1.242 GB, free: 90.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02442/4.47, allocations: 8.879 MB / 1.251 GB, free: 89.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005698/4.475, allocations: 0.834 MB / 1.252 GB, free: 89.27 MB / 0.4948 GB Notification: Performance of SimCode: time 2.236e-06/4.475, allocations: 1.344 kB / 1.252 GB, free: 89.27 MB / 0.4948 GB Notification: Performance of Templates: time 1.171/5.646, allocations: 372.7 MB / 1.616 GB, free: 121 MB / 0.5261 GB