Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 / 251.1 MB, free: 9.691 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000445/0.0004453, allocations: 12 kB / 314.9 MB, free: 9.746 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3691, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1886/0.5578, allocations: 101.5 MB / 471.3 MB, free: 7.152 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/0.5582, allocations: 79.91 kB / 471.4 MB, free: 7.074 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8604/1.419, allocations: 132.8 MB / 0.59 GB, free: 43.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.887e-06/1.419, allocations: 4 kB / 0.59 GB, free: 43.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000711/1.419, allocations: 128 kB / 0.5901 GB, free: 43.25 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.0434/1.463, allocations: 7.172 MB / 0.5971 GB, free: 35.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/1.463, allocations: 8.031 kB / 0.5971 GB, free: 35.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07932/1.542, allocations: 7.139 MB / 0.6041 GB, free: 28.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03978/1.582, allocations: 7.466 MB / 0.6114 GB, free: 21.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009064/1.583, allocations: 0.5052 MB / 0.6119 GB, free: 20.76 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004953/1.588, allocations: 0.6644 MB / 0.6125 GB, free: 20.1 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06955/1.658, allocations: 16.25 MB / 0.6284 GB, free: 2.348 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006995/1.659, allocations: 95.06 kB / 0.6285 GB, free: 2.254 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003631/1.662, allocations: 323.8 kB / 0.6288 GB, free: 1.938 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003415/1.666, allocations: 1.549 MB / 0.6303 GB, free: 388 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04382/1.71, allocations: 13.14 MB / 0.6431 GB, free: 3.191 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4797/2.189, allocations: 72.97 MB / 0.7144 GB, free: 46.65 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02589/2.215, allocations: 6.52 MB / 0.7208 GB, free: 45.95 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02401/2.239, allocations: 9.275 MB / 0.7298 GB, free: 44.28 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.022e-05/2.239, allocations: 61.81 kB / 0.7299 GB, free: 44.24 MB / 474.7 MB Notification: Performance of pre-optimization done (n=269): time 7.845e-06/2.239, allocations: 0 / 0.7299 GB, free: 44.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=311): time 0.1323/2.372, allocations: 30.86 MB / 0.76 GB, free: 38.17 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/2.372, allocations: 250.1 kB / 0.7603 GB, free: 37.91 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01665/2.389, allocations: 6.901 MB / 0.767 GB, free: 35.67 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008836/2.39, allocations: 70.08 kB / 0.7671 GB, free: 35.61 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004232/2.394, allocations: 4.592 MB / 0.7715 GB, free: 31.95 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002034/2.396, allocations: 1.182 MB / 0.7727 GB, free: 31.09 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001542/2.397, allocations: 179.8 kB / 0.7729 GB, free: 30.95 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007251/2.398, allocations: 0.6887 MB / 0.7735 GB, free: 30.47 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009331/2.408, allocations: 3.566 MB / 0.777 GB, free: 29.28 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01291/2.421, allocations: 8.888 MB / 0.7857 GB, free: 21 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01303/2.434, allocations: 5.499 MB / 0.7911 GB, free: 19.12 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002168/2.434, allocations: 55.17 kB / 0.7911 GB, free: 19.12 MB / 474.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03724/2.471, allocations: 13.39 MB / 0.8042 GB, free: 8.996 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001437/2.471, allocations: 94.42 kB / 0.8043 GB, free: 8.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003366/2.472, allocations: 184 kB / 0.8045 GB, free: 8.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007021/2.479, allocations: 1.67 MB / 0.8061 GB, free: 7.477 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01373/2.493, allocations: 2.134 MB / 0.8082 GB, free: 5.652 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02383/2.516, allocations: 11.65 MB / 0.8196 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01152/2.528, allocations: 0.5261 MB / 0.8201 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002401/2.53, allocations: 0.5343 MB / 0.8206 GB, free: 10.24 MB / 490.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 () * Number of clocked 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.0107/2.541, allocations: 3.227 MB / 0.8238 GB, free: 7.398 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001924/2.543, allocations: 0.5862 MB / 0.8243 GB, free: 6.805 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02303/2.566, allocations: 6.705 MB / 0.8309 GB, free: 1.367 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.193e-05/2.566, allocations: 32 kB / 0.8309 GB, free: 1.336 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.844e-05/2.566, allocations: 11.66 kB / 0.8309 GB, free: 1.328 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.753e-05/2.566, allocations: 11.81 kB / 0.8309 GB, free: 1.328 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0504/2.617, allocations: 15.15 MB / 0.8457 GB, free: 5.125 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.972e-05/2.617, allocations: 4 kB / 0.8457 GB, free: 5.121 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00598/2.623, allocations: 0.5641 MB / 0.8463 GB, free: 4.684 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007032/2.63, allocations: 1.387 MB / 0.8476 GB, free: 3.348 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008585/2.631, allocations: 52 kB / 0.8477 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02496/2.656, allocations: 10.81 MB / 0.8582 GB, free: 8.242 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.29e-05/2.656, allocations: 11.92 kB / 0.8582 GB, free: 8.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3994/3.055, allocations: 10.93 MB / 0.8689 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004619/3.06, allocations: 1.152 MB / 0.87 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002692/3.063, allocations: 60.77 kB / 0.8701 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006145/3.069, allocations: 197.5 kB / 0.8703 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001203/3.07, allocations: 190.5 kB / 0.8705 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006812/3.071, allocations: 83.52 kB / 0.8706 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01259/3.084, allocations: 4.412 MB / 0.8749 GB, free: 131.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.42e-07/3.084, allocations: 3.844 kB / 0.8749 GB, free: 131.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01228/3.096, allocations: 1.658 MB / 0.8765 GB, free: 131.9 MB / 0.5105 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.001414/3.097, allocations: 206.9 kB / 0.8767 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02088/3.118, allocations: 8.802 MB / 0.8853 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/3.118, allocations: 0 / 0.8853 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009503/3.128, allocations: 3.379 MB / 0.8886 GB, free: 131.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006585/3.134, allocations: 0.7177 MB / 0.8893 GB, free: 131.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04639/3.181, allocations: 19.04 MB / 0.9079 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01202/3.193, allocations: 5.035 MB / 0.9128 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003294/3.196, allocations: 473.8 kB / 0.9132 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.643e-06/3.196, allocations: 3.281 kB / 0.9132 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.6333/3.83, allocations: 147.5 MB / 1.057 GB, free: 132.5 MB / 0.5105 GB