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.143/2.143, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.0004341, allocations: 12 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2739, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1561/0.43, allocations: 105.4 MB / 474.7 MB, free: 1.148 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/0.4303, allocations: 87.89 kB / 474.7 MB, free: 1.062 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.46/1.89, allocations: 240 MB / 0.698 GB, free: 40.02 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.397e-06/1.89, allocations: 3.938 kB / 0.698 GB, free: 40.02 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000747/1.891, allocations: 252.7 kB / 0.6982 GB, free: 40.02 MB / 458.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.04368/1.935, allocations: 13.33 MB / 0.7113 GB, free: 35.02 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/1.935, allocations: 11.22 kB / 0.7113 GB, free: 35.02 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06674/2.001, allocations: 12.81 MB / 0.7238 GB, free: 34.13 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03736/2.039, allocations: 13.35 MB / 0.7368 GB, free: 32.63 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001158/2.04, allocations: 0.9538 MB / 0.7378 GB, free: 32.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005411/2.045, allocations: 1.285 MB / 0.739 GB, free: 32.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07586/2.121, allocations: 30.17 MB / 0.7685 GB, free: 7.57 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007763/2.122, allocations: 146.5 kB / 0.7686 GB, free: 7.43 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005065/2.127, allocations: 0.5984 MB / 0.7692 GB, free: 6.906 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004787/2.132, allocations: 2.857 MB / 0.772 GB, free: 4.504 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06947/2.202, allocations: 24.69 MB / 0.7961 GB, free: 12.79 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5234/2.725, allocations: 127.8 MB / 0.9209 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04786/2.773, allocations: 14.08 MB / 0.9346 GB, free: 31.21 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04108/2.814, allocations: 19.83 MB / 0.954 GB, free: 42.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.664e-05/2.814, allocations: 94.53 kB / 0.9541 GB, free: 42.35 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=562): time 1.035e-05/2.814, allocations: 2.844 kB / 0.9541 GB, free: 42.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=646): time 0.2216/3.036, allocations: 67.85 MB / 1.02 GB, free: 6.449 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002752/3.036, allocations: 380.4 kB / 1.021 GB, free: 6.004 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3552/3.391, allocations: 10.72 MB / 1.031 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001389/3.393, allocations: 127.2 kB / 1.031 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006504/3.399, allocations: 8.016 MB / 1.039 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003164/3.403, allocations: 2.375 MB / 1.041 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002128/3.405, allocations: 309.7 kB / 1.042 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001186/3.406, allocations: 0.9689 MB / 1.043 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01477/3.421, allocations: 6.768 MB / 1.049 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01929/3.44, allocations: 15.2 MB / 1.064 GB, free: 109 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01907/3.459, allocations: 9.93 MB / 1.074 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003013/3.459, allocations: 84.66 kB / 1.074 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.05704/3.517, allocations: 24.34 MB / 1.098 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002557/3.517, allocations: 129.3 kB / 1.098 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004236/3.517, allocations: 298.8 kB / 1.098 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01106/3.528, allocations: 3.304 MB / 1.101 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01672/3.545, allocations: 3.76 MB / 1.105 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03618/3.581, allocations: 23.25 MB / 1.128 GB, free: 90.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01678/3.598, allocations: 0.9346 MB / 1.129 GB, free: 90.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003399/3.602, allocations: 0.8962 MB / 1.129 GB, free: 90.59 MB / 0.5417 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 () * Number of clocked 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.01475/3.616, allocations: 5.739 MB / 1.135 GB, free: 87.97 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002879/3.619, allocations: 1.068 MB / 1.136 GB, free: 87.38 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03484/3.654, allocations: 14.75 MB / 1.151 GB, free: 79.46 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.321e-05/3.654, allocations: 68 kB / 1.151 GB, free: 79.39 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.631e-05/3.654, allocations: 19.94 kB / 1.151 GB, free: 79.38 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001474/3.654, allocations: 30.38 kB / 1.151 GB, free: 79.38 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07797/3.732, allocations: 32.55 MB / 1.182 GB, free: 53.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.273e-05/3.733, allocations: 15.94 kB / 1.182 GB, free: 53.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008259/3.741, allocations: 1.278 MB / 1.184 GB, free: 52.19 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009451/3.75, allocations: 2.837 MB / 1.186 GB, free: 50.23 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001578/3.752, allocations: 126.4 kB / 1.187 GB, free: 50.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03458/3.787, allocations: 21.74 MB / 1.208 GB, free: 30.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.44e-05/3.787, allocations: 15.94 kB / 1.208 GB, free: 30.73 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4067/4.193, allocations: 26.99 MB / 1.234 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01239/4.206, allocations: 2.185 MB / 1.236 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005771/4.212, allocations: 117.4 kB / 1.236 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01493/4.227, allocations: 447.2 kB / 1.237 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003095/4.23, allocations: 412.7 kB / 1.237 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002051/4.232, allocations: 167 kB / 1.237 GB, free: 106 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.02149/4.253, allocations: 7.767 MB / 1.245 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.824e-06/4.253, allocations: 3.406 kB / 1.245 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.03612/4.29, allocations: 3.102 MB / 1.248 GB, free: 105.7 MB / 0.5417 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 () * Number of clocked 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.00307/4.293, allocations: 305.4 kB / 1.248 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.05338/4.346, allocations: 16.83 MB / 1.265 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/4.346, allocations: 2.25 kB / 1.265 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01593/4.362, allocations: 7.122 MB / 1.272 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009639/4.372, allocations: 1.341 MB / 1.273 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07049/4.442, allocations: 36.54 MB / 1.309 GB, free: 88.73 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01991/4.462, allocations: 8.88 MB / 1.317 GB, free: 86.19 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005142/4.467, allocations: 0.8392 MB / 1.318 GB, free: 86.16 MB / 0.5417 GB Notification: Performance of SimCode: time 2.506e-06/4.468, allocations: 3.75 kB / 1.318 GB, free: 86.16 MB / 0.5417 GB Notification: Performance of Templates: time 1.223/5.69, allocations: 373.1 MB / 1.683 GB, free: 146.8 MB / 0.5886 GB