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.185/2.185, allocations: 235 MB / 248.1 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.918e-05, allocations: 4 kB / 309.7 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.322, allocations: 54.85 MB / 364.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.4805, allocations: 105.3 MB / 469.9 MB, free: 7.152 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.4808, allocations: 72.78 kB / 469.9 MB, free: 7.082 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.117/1.597, allocations: 240.3 MB / 0.6936 GB, free: 13.23 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.148e-06/1.597, allocations: 0 / 0.6936 GB, free: 13.23 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008128/1.598, allocations: 263.9 kB / 0.6938 GB, free: 12.97 MB / 474.7 MB 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.04445/1.643, allocations: 12.35 MB / 0.7059 GB, free: 0.5195 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/1.643, allocations: 8.031 kB / 0.7059 GB, free: 0.5117 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3738/2.017, allocations: 12.82 MB / 0.7184 GB, free: 43.19 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03848/2.055, allocations: 13.29 MB / 0.7314 GB, free: 42.59 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001083/2.056, allocations: 0.9526 MB / 0.7323 GB, free: 42.56 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005344/2.062, allocations: 1.277 MB / 0.7336 GB, free: 42.55 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07857/2.14, allocations: 29.94 MB / 0.7628 GB, free: 36.39 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000873/2.141, allocations: 146.1 kB / 0.7629 GB, free: 36.38 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00509/2.146, allocations: 0.5927 MB / 0.7635 GB, free: 36.38 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005317/2.152, allocations: 2.861 MB / 0.7663 GB, free: 36.34 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0638/2.215, allocations: 24.31 MB / 0.7901 GB, free: 33.83 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5854/2.801, allocations: 127.8 MB / 0.9148 GB, free: 31.24 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04985/2.851, allocations: 13.95 MB / 0.9284 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01308/2.864, allocations: 7.957 MB / 0.9362 GB, free: 30.4 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0423/2.906, allocations: 19.83 MB / 0.9556 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.696e-05/2.906, allocations: 99.69 kB / 0.9557 GB, free: 27.58 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=562): time 1.161e-05/2.906, allocations: 0 / 0.9557 GB, free: 27.58 MB / 0.5261 GB Notification: Performance of matching and sorting (n=646): time 0.2179/3.124, allocations: 59.14 MB / 1.013 GB, free: 14.54 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002094/3.125, allocations: 383.2 kB / 1.014 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02908/3.154, allocations: 10.6 MB / 1.024 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001437/3.155, allocations: 130.3 kB / 1.024 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.006274/3.161, allocations: 8.016 MB / 1.032 GB, free: 3.496 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00328/3.165, allocations: 2.378 MB / 1.034 GB, free: 1.391 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002396/3.167, allocations: 308 kB / 1.035 GB, free: 1.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001534/3.169, allocations: 0.9675 MB / 1.036 GB, free: 308 kB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05603/3.225, allocations: 8.897 MB / 1.044 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02487/3.25, allocations: 15.05 MB / 1.059 GB, free: 14.14 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02161/3.271, allocations: 9.885 MB / 1.069 GB, free: 6.195 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002927/3.272, allocations: 84 kB / 1.069 GB, free: 6.113 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.0786/3.35, allocations: 24.94 MB / 1.093 GB, free: 4.109 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000282/3.351, allocations: 136 kB / 1.093 GB, free: 3.977 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004624/3.351, allocations: 292 kB / 1.094 GB, free: 3.691 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01169/3.363, allocations: 3.312 MB / 1.097 GB, free: 376 kB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01886/3.382, allocations: 3.766 MB / 1.1 GB, free: 12.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04248/3.424, allocations: 22.58 MB / 1.123 GB, free: 5.516 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01882/3.443, allocations: 0.9402 MB / 1.123 GB, free: 4.574 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00376/3.447, allocations: 0.8849 MB / 1.124 GB, free: 3.691 MB / 0.6042 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 () * 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.00598/3.453, allocations: 1.277 MB / 1.126 GB, free: 2.398 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003155/3.456, allocations: 1.068 MB / 1.127 GB, free: 1.316 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0397/3.496, allocations: 14.6 MB / 1.141 GB, free: 2.676 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001141/3.496, allocations: 71.52 kB / 1.141 GB, free: 2.609 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.805e-05/3.496, allocations: 19.84 kB / 1.141 GB, free: 2.594 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001434/3.496, allocations: 35.88 kB / 1.141 GB, free: 2.559 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4236/3.92, allocations: 32.39 MB / 1.173 GB, free: 169 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.579e-05/3.92, allocations: 13.3 kB / 1.173 GB, free: 169 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009039/3.929, allocations: 1.278 MB / 1.174 GB, free: 169 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01027/3.939, allocations: 2.833 MB / 1.177 GB, free: 168.9 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001539/3.941, allocations: 119.8 kB / 1.177 GB, free: 168.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03511/3.976, allocations: 21.08 MB / 1.197 GB, free: 163.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.405e-05/3.976, allocations: 17.44 kB / 1.197 GB, free: 163.6 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04658/4.023, allocations: 26.08 MB / 1.223 GB, free: 156.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007574/4.03, allocations: 2.181 MB / 1.225 GB, free: 155.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00404/4.034, allocations: 118.1 kB / 1.225 GB, free: 155.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009207/4.044, allocations: 449.1 kB / 1.225 GB, free: 155.7 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002103/4.046, allocations: 419.4 kB / 1.226 GB, free: 155.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00137/4.047, allocations: 166.2 kB / 1.226 GB, free: 155.6 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.01909/4.066, allocations: 7.645 MB / 1.234 GB, free: 153 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.204e-06/4.066, allocations: 3.531 kB / 1.234 GB, free: 153 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01925/4.086, allocations: 3.1 MB / 1.237 GB, free: 152.6 MB / 0.6198 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 () * 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.00183/4.087, allocations: 306.3 kB / 1.237 GB, free: 152.5 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.03278/4.12, allocations: 16.58 MB / 1.253 GB, free: 147.1 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.502e-05/4.12, allocations: 4.719 kB / 1.253 GB, free: 147.1 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.01564/4.136, allocations: 7.019 MB / 1.26 GB, free: 144.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009776/4.146, allocations: 1.344 MB / 1.261 GB, free: 143.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06895/4.215, allocations: 27.11 MB / 1.288 GB, free: 124 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02562/4.24, allocations: 8.877 MB / 1.296 GB, free: 117.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008346/4.249, allocations: 0.8403 MB / 1.297 GB, free: 116.8 MB / 0.6198 GB Notification: Performance of SimCode: time 3.388e-06/4.249, allocations: 4 kB / 1.297 GB, free: 116.8 MB / 0.6198 GB Notification: Performance of Templates: time 1.283/5.532, allocations: 373.1 MB / 1.661 GB, free: 157.5 MB / 0.6198 GB