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.Torque3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque3,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.Torque3") Notification: Performance of loadModel(ModelicaTest): time 2.038/2.038, allocations: 209.4 MB / 217.3 MB, free: 4.145 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.085e-05/2.097e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2631, allocations: 48.68 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1451/0.4083, allocations: 96.41 MB / 416.4 MB, free: 4 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.4086, allocations: 76.03 kB / 416.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.21/1.619, allocations: 217.8 MB / 0.6194 GB, free: 30.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.089e-06/1.619, allocations: 0 / 0.6194 GB, free: 30.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006759/1.62, allocations: 241.3 kB / 0.6196 GB, free: 30.67 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4176 * Number of variables: 4176 Notification: Performance of Generate backend data structure: time 0.03811/1.658, allocations: 11.37 MB / 0.6307 GB, free: 26.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/1.658, allocations: 7.25 kB / 0.6307 GB, free: 26.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07005/1.728, allocations: 12.64 MB / 0.6431 GB, free: 25.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03452/1.763, allocations: 12.52 MB / 0.6553 GB, free: 24.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007045/1.763, allocations: 394.1 kB / 0.6557 GB, free: 24.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004818/1.768, allocations: 0.7026 MB / 0.6564 GB, free: 24.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0364/1.805, allocations: 16.71 MB / 0.6727 GB, free: 24.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05521/1.86, allocations: 24.43 MB / 0.6965 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007203/1.861, allocations: 127.6 kB / 0.6967 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004356/1.865, allocations: 63.95 kB / 0.6967 GB, free: 9.957 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004346/1.869, allocations: 2.682 MB / 0.6993 GB, free: 7.742 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4842/2.354, allocations: 110.3 MB / 0.807 GB, free: 30.59 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01619/2.37, allocations: 10.81 MB / 0.8176 GB, free: 29.34 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01165/2.382, allocations: 7.545 MB / 0.825 GB, free: 29.27 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002758/2.384, allocations: 2.344 MB / 0.8272 GB, free: 27.28 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001012/2.385, allocations: 94.11 kB / 0.8273 GB, free: 27.23 MB / 474.7 MB Notification: Performance of pre-optimization done (n=541): time 1.196e-05/2.385, allocations: 0 / 0.8273 GB, free: 27.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=629): time 0.1584/2.543, allocations: 56.88 MB / 0.8829 GB, free: 14.12 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/2.543, allocations: 327.2 kB / 0.8832 GB, free: 13.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01564/2.559, allocations: 7.053 MB / 0.8901 GB, free: 11.29 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001361/2.56, allocations: 25.7 kB / 0.8901 GB, free: 11.26 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006697/2.567, allocations: 7.642 MB / 0.8976 GB, free: 5.586 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003774/2.571, allocations: 2.232 MB / 0.8997 GB, free: 3.906 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002197/2.573, allocations: 2.281 kB / 0.8997 GB, free: 3.906 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001857/2.575, allocations: 0.9355 MB / 0.9007 GB, free: 3.324 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02757/2.602, allocations: 6.959 MB / 0.9075 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0232/2.626, allocations: 14.02 MB / 0.9211 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02006/2.646, allocations: 9.201 MB / 0.9301 GB, free: 8.098 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003123/2.646, allocations: 80 kB / 0.9302 GB, free: 8.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1919) (initialization): time 0.05876/2.705, allocations: 21.37 MB / 0.9511 GB, free: 6.664 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002907/2.705, allocations: 124 kB / 0.9512 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004735/2.706, allocations: 276 kB / 0.9515 GB, free: 6.273 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01148/2.717, allocations: 3.284 MB / 0.9547 GB, free: 3.836 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01741/2.735, allocations: 3.605 MB / 0.9582 GB, free: 0.8164 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3447/3.079, allocations: 21.39 MB / 0.9791 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01536/3.095, allocations: 0.5884 MB / 0.9796 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003438/3.098, allocations: 0.8469 MB / 0.9805 GB, free: 112.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1255 * Number of states: 0 () * Number of discrete variables: 105 (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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[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],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 (1799): * Single equations (assignments): 1792 * 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%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005355/3.104, allocations: 0.8329 MB / 0.9813 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002783/3.107, allocations: 0.8178 MB / 0.9821 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03399/3.141, allocations: 13.75 MB / 0.9955 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001201/3.141, allocations: 63.78 kB / 0.9956 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.667e-05/3.141, allocations: 22.78 kB / 0.9956 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001401/3.141, allocations: 26.34 kB / 0.9956 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07068/3.212, allocations: 27.66 MB / 1.023 GB, free: 110 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.181e-05/3.212, allocations: 3.781 kB / 1.023 GB, free: 110 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008063/3.22, allocations: 1.223 MB / 1.024 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009564/3.229, allocations: 2.815 MB / 1.027 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00158/3.231, allocations: 19.41 kB / 1.027 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0317/3.263, allocations: 19.66 MB / 1.046 GB, free: 98.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.305e-06/3.263, allocations: 3.75 kB / 1.046 GB, free: 98.91 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04507/3.308, allocations: 21.53 MB / 1.067 GB, free: 90.71 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006173/3.314, allocations: 1.835 MB / 1.069 GB, free: 89.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003126/3.317, allocations: 9.766 kB / 1.069 GB, free: 89.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007693/3.325, allocations: 386.2 kB / 1.069 GB, free: 89.77 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002041/3.327, allocations: 373.2 kB / 1.069 GB, free: 89.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001352/3.328, allocations: 155.3 kB / 1.07 GB, free: 89.68 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01138/3.34, allocations: 4.761 MB / 1.074 GB, free: 87.63 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.502e-06/3.34, allocations: 0 / 1.074 GB, free: 87.63 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01794/3.358, allocations: 2.535 MB / 1.077 GB, free: 85.11 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (540): * Single equations (assignments): 533 * 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.001724/3.36, allocations: 188.2 kB / 1.077 GB, free: 84.99 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0303/3.39, allocations: 15.84 MB / 1.092 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.757e-06/3.39, allocations: 0 / 1.092 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01384/3.404, allocations: 6.715 MB / 1.099 GB, free: 65.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006992/3.411, allocations: 0.8722 MB / 1.1 GB, free: 64.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06128/3.472, allocations: 24.75 MB / 1.124 GB, free: 43.31 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02016/3.492, allocations: 8.315 MB / 1.132 GB, free: 37.31 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005112/3.498, allocations: 0.7149 MB / 1.133 GB, free: 36.65 MB / 0.5105 GB Notification: Performance of SimCode: time 2.155e-06/3.498, allocations: 0 / 1.133 GB, free: 36.65 MB / 0.5105 GB Notification: Performance of Templates: time 1.072/4.57, allocations: 338.2 MB / 1.463 GB, free: 35.36 MB / 0.5105 GB