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/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.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 1.837/1.837, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004463/0.0004466, allocations: 20 kB / 282.5 MB, free: 9.777 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08757/0.08804, allocations: 48.71 MB / 331.2 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque3): time 0.4009/0.489, allocations: 143.5 MB / 474.7 MB, free: 5.199 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.4087/0.8977, allocations: 30.83 MB / 0.4937 GB, free: 140 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03216/0.9299, allocations: 0.6904 MB / 0.4944 GB, free: 140 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.03145/0.9614, allocations: 7.901 MB / 0.5021 GB, free: 0 / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0665/1.028, allocations: 20.13 MB / 0.5217 GB, free: 11.09 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008844/1.037, allocations: 1.568 MB / 0.5233 GB, free: 10.7 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.07159/1.109, allocations: 35.95 MB / 0.5584 GB, free: 8.547 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02679/1.135, allocations: 14.61 MB / 0.5726 GB, free: 14.34 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006372/1.142, allocations: 2.836 MB / 0.5754 GB, free: 12.55 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007463/1.149, allocations: 3.986 MB / 0.5793 GB, free: 9.828 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002347/1.152, allocations: 432 kB / 0.5797 GB, free: 9.406 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004612/1.156, allocations: 1.187 MB / 0.5809 GB, free: 8.395 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007409/1.164, allocations: 4.684 MB / 0.5855 GB, free: 5.094 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004256/1.168, allocations: 2.349 MB / 0.5877 GB, free: 4.297 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02414/1.192, allocations: 16.06 MB / 0.6034 GB, free: 6.383 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.002e-06/1.192, allocations: 3.188 kB / 0.6034 GB, free: 6.383 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.861e-06/1.192, allocations: 4 kB / 0.6034 GB, free: 6.379 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004432/1.193, allocations: 0 / 0.6034 GB, free: 6.379 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: 4176 * Number of variables: 4176 Notification: Performance of Generate backend data structure: time 0.03675/1.229, allocations: 12.39 MB / 0.6155 GB, free: 11.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/1.23, allocations: 8.031 kB / 0.6155 GB, free: 11.04 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1038/1.333, allocations: 14.81 MB / 0.63 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02261/1.356, allocations: 8.572 MB / 0.6384 GB, free: 7.512 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009/1.357, allocations: 0.7061 MB / 0.6391 GB, free: 7.121 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003528/1.36, allocations: 0.944 MB / 0.64 GB, free: 6.504 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0714/1.432, allocations: 28.31 MB / 0.6676 GB, free: 0.9219 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005343/1.432, allocations: 104.5 kB / 0.6677 GB, free: 0.8633 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002895/1.435, allocations: 445.8 kB / 0.6682 GB, free: 0.7422 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009266/1.445, allocations: 4.737 MB / 0.6728 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7289/2.174, allocations: 23.79 MB / 0.696 GB, free: 86.65 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.162/2.336, allocations: 103.3 MB / 0.7969 GB, free: 39.72 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04799/2.384, allocations: 14.22 MB / 0.8107 GB, free: 31.42 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002682/2.386, allocations: 2.35 MB / 0.813 GB, free: 28.78 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001042/2.387, allocations: 94.91 kB / 0.8131 GB, free: 28.72 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=559): time 1.205e-05/2.387, allocations: 0.7656 kB / 0.8131 GB, free: 28.72 MB / 0.5262 GB Notification: Performance of matching and sorting (n=643): time 0.2314/2.618, allocations: 66.23 MB / 0.8778 GB, free: 6.777 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002423/2.618, allocations: 321.7 kB / 0.8781 GB, free: 6.402 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02311/2.641, allocations: 10.74 MB / 0.8886 GB, free: 14.5 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.00139/2.643, allocations: 125.9 kB / 0.8887 GB, free: 14.45 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.008128/2.651, allocations: 7.269 MB / 0.8958 GB, free: 7.344 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00422/2.655, allocations: 2.339 MB / 0.8981 GB, free: 5.023 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001823/2.657, allocations: 292.5 kB / 0.8984 GB, free: 4.738 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.00132/2.658, allocations: 0.9102 MB / 0.8993 GB, free: 3.816 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3086/2.967, allocations: 6.67 MB / 0.9058 GB, free: 259 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02026/2.987, allocations: 14.24 MB / 0.9197 GB, free: 248.5 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0202/3.008, allocations: 9.539 MB / 0.929 GB, free: 244.9 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003941/3.008, allocations: 75.69 kB / 0.9291 GB, free: 244.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=1853) (initialization): time 0.05713/3.065, allocations: 23.45 MB / 0.952 GB, free: 236.6 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002725/3.066, allocations: 120 kB / 0.9521 GB, free: 236.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000369/3.066, allocations: 260 kB / 0.9524 GB, free: 236.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01119/3.077, allocations: 3.489 MB / 0.9558 GB, free: 236 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01647/3.094, allocations: 3.414 MB / 0.9591 GB, free: 235.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03897/3.133, allocations: 24.52 MB / 0.983 GB, free: 216.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01406/3.147, allocations: 0.8581 MB / 0.9839 GB, free: 216 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002866/3.15, allocations: 0.8068 MB / 0.9847 GB, free: 215.2 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1193 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1733): * Single equations (assignments): 1726 * 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.01188/3.162, allocations: 5.333 MB / 0.9899 GB, free: 210.7 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00217/3.164, allocations: 0.9434 MB / 0.9908 GB, free: 210.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03344/3.197, allocations: 15.03 MB / 1.005 GB, free: 195.5 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.789e-05/3.197, allocations: 68.53 kB / 1.006 GB, free: 195.4 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.163e-05/3.197, allocations: 20 kB / 1.006 GB, free: 195.4 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001316/3.198, allocations: 27.89 kB / 1.006 GB, free: 195.4 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07163/3.269, allocations: 32 MB / 1.037 GB, free: 163.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.66e-05/3.269, allocations: 4 kB / 1.037 GB, free: 163.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007518/3.277, allocations: 1.162 MB / 1.038 GB, free: 162.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009959/3.287, allocations: 3.052 MB / 1.041 GB, free: 159.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001581/3.288, allocations: 120 kB / 1.041 GB, free: 159.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03571/3.324, allocations: 23 MB / 1.064 GB, free: 135.8 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/3.324, allocations: 11.89 kB / 1.064 GB, free: 135.8 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04608/3.37, allocations: 23.03 MB / 1.086 GB, free: 112.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006595/3.377, allocations: 2.101 MB / 1.088 GB, free: 110.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003184/3.38, allocations: 112 kB / 1.088 GB, free: 110.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007661/3.388, allocations: 483.9 kB / 1.089 GB, free: 110.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001974/3.39, allocations: 387.9 kB / 1.089 GB, free: 109.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008034/3.391, allocations: 164.7 kB / 1.089 GB, free: 109.6 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01426/3.405, allocations: 6.961 MB / 1.096 GB, free: 102.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.434e-06/3.405, allocations: 0 / 1.096 GB, free: 102.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0163/3.421, allocations: 2.987 MB / 1.099 GB, free: 99.65 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (554): * Single equations (assignments): 547 * 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.001763/3.423, allocations: 310.4 kB / 1.099 GB, free: 99.34 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03212/3.455, allocations: 16.56 MB / 1.115 GB, free: 82.76 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.287e-05/3.455, allocations: 5.75 kB / 1.115 GB, free: 82.76 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01584/3.471, allocations: 7.322 MB / 1.123 GB, free: 75.38 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007772/3.479, allocations: 1.195 MB / 1.124 GB, free: 74.19 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06439/3.543, allocations: 34.48 MB / 1.157 GB, free: 39.58 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.017/3.561, allocations: 8.304 MB / 1.165 GB, free: 31.22 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005599/3.566, allocations: 0.7829 MB / 1.166 GB, free: 30.44 MB / 0.573 GB Notification: Performance of SimCode: time 2.251e-06/3.566, allocations: 0 / 1.166 GB, free: 30.44 MB / 0.573 GB Notification: Performance of Templates: time 0.9968/4.563, allocations: 348.1 MB / 1.506 GB, free: 175.4 MB / 0.573 GB