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.Torque3.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.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.2_cpp_ModelicaTest.MultiBody.Forces.Torque3") Notification: Performance of loadModel(ModelicaTest): time 2.193/2.193, allocations: 234.9 MB / 250.5 MB, free: 10.45 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004447/0.0004449, allocations: 16 kB / 314.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2817, allocations: 54.88 MB / 369.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque3): time 0.4806/0.7623, allocations: 143.6 MB / 0.5007 GB, free: 0 / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.07274/0.8351, allocations: 30.9 MB / 0.5309 GB, free: 10.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03768/0.8728, allocations: 0.6894 MB / 0.5316 GB, free: 10.2 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.03755/0.9105, allocations: 7.43 MB / 0.5388 GB, free: 5.504 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.08513/0.9957, allocations: 20.11 MB / 0.5585 GB, free: 5.914 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009446/1.005, allocations: 1.551 MB / 0.56 GB, free: 4.375 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0791/1.084, allocations: 35.97 MB / 0.5951 GB, free: 380 kB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02857/1.113, allocations: 14.61 MB / 0.6094 GB, free: 1.664 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007215/1.12, allocations: 2.842 MB / 0.6122 GB, free: 14.81 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00782/1.128, allocations: 3.995 MB / 0.6161 GB, free: 10.8 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002465/1.131, allocations: 432 kB / 0.6165 GB, free: 10.38 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004549/1.135, allocations: 1.186 MB / 0.6176 GB, free: 9.195 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007307/1.142, allocations: 4.688 MB / 0.6222 GB, free: 4.496 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004245/1.147, allocations: 2.361 MB / 0.6245 GB, free: 2.121 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02403/1.171, allocations: 16.08 MB / 0.6402 GB, free: 2 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.484e-06/1.171, allocations: 0 / 0.6402 GB, free: 2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.9e-06/1.171, allocations: 0 / 0.6402 GB, free: 2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004214/1.171, allocations: 0 / 0.6402 GB, free: 2 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4184 * Number of variables: 4184 Notification: Performance of Generate backend data structure: time 0.03624/1.208, allocations: 12.4 MB / 0.6523 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/1.208, allocations: 8.031 kB / 0.6523 GB, free: 5.488 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1024/1.31, allocations: 14.81 MB / 0.6668 GB, free: 6.645 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5385/1.849, allocations: 8.583 MB / 0.6752 GB, free: 216.1 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008418/1.85, allocations: 0.7046 MB / 0.6759 GB, free: 215.8 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003192/1.853, allocations: 0.9542 MB / 0.6768 GB, free: 215.6 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06085/1.914, allocations: 28.33 MB / 0.7045 GB, free: 198 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000479/1.914, allocations: 104.2 kB / 0.7046 GB, free: 198 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002462/1.917, allocations: 445 kB / 0.705 GB, free: 197.6 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007253/1.924, allocations: 4.741 MB / 0.7096 GB, free: 192.9 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05546/1.979, allocations: 23.81 MB / 0.7329 GB, free: 169.1 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1469/2.126, allocations: 103.3 MB / 0.8338 GB, free: 64.88 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04693/2.173, allocations: 14.2 MB / 0.8477 GB, free: 50.52 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002698/2.176, allocations: 2.352 MB / 0.85 GB, free: 47.79 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001012/2.176, allocations: 94.88 kB / 0.85 GB, free: 47.68 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=559): time 1.192e-05/2.176, allocations: 0 / 0.85 GB, free: 47.68 MB / 0.5262 GB Notification: Performance of matching and sorting (n=643): time 0.4897/2.666, allocations: 66.24 MB / 0.9147 GB, free: 184.6 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/2.666, allocations: 331.7 kB / 0.9151 GB, free: 184.3 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01907/2.685, allocations: 10.73 MB / 0.9255 GB, free: 180.6 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001377/2.687, allocations: 128.9 kB / 0.9256 GB, free: 180.5 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.005124/2.692, allocations: 7.279 MB / 0.9328 GB, free: 174.7 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003074/2.695, allocations: 2.342 MB / 0.935 GB, free: 173 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001801/2.697, allocations: 290.2 kB / 0.9353 GB, free: 172.8 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0009624/2.698, allocations: 0.9108 MB / 0.9362 GB, free: 172.2 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01333/2.711, allocations: 6.669 MB / 0.9427 GB, free: 169.9 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01793/2.729, allocations: 14.24 MB / 0.9566 GB, free: 157.6 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01762/2.747, allocations: 9.552 MB / 0.966 GB, free: 152.6 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002127/2.747, allocations: 72 kB / 0.966 GB, free: 152.6 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1853) (initialization): time 0.05245/2.799, allocations: 23.45 MB / 0.9889 GB, free: 129.9 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002409/2.8, allocations: 116 kB / 0.989 GB, free: 129.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003312/2.8, allocations: 264.8 kB / 0.9893 GB, free: 129.5 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01108/2.811, allocations: 3.48 MB / 0.9927 GB, free: 126 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01525/2.826, allocations: 3.419 MB / 0.996 GB, free: 122.6 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03628/2.863, allocations: 24.52 MB / 1.02 GB, free: 97.56 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01415/2.877, allocations: 0.8632 MB / 1.021 GB, free: 96.7 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002822/2.88, allocations: 0.8046 MB / 1.022 GB, free: 95.89 MB / 0.5262 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.01227/2.892, allocations: 5.332 MB / 1.027 GB, free: 90.54 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004924/2.897, allocations: 0.9449 MB / 1.028 GB, free: 89.58 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07693/2.974, allocations: 15.03 MB / 1.042 GB, free: 74.48 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001597/2.974, allocations: 64 kB / 1.042 GB, free: 74.41 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000128/2.974, allocations: 20 kB / 1.042 GB, free: 74.39 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002311/2.975, allocations: 31.88 kB / 1.043 GB, free: 74.36 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07365/3.048, allocations: 32.02 MB / 1.074 GB, free: 42.31 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.008e-05/3.049, allocations: 4 kB / 1.074 GB, free: 42.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007447/3.056, allocations: 1.155 MB / 1.075 GB, free: 41.15 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01007/3.066, allocations: 3.048 MB / 1.078 GB, free: 38.09 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001474/3.068, allocations: 124 kB / 1.078 GB, free: 37.97 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3289/3.397, allocations: 22.99 MB / 1.1 GB, free: 167.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.878e-06/3.397, allocations: 10.75 kB / 1.1 GB, free: 167.2 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04812/3.445, allocations: 23.02 MB / 1.123 GB, free: 158.6 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006786/3.452, allocations: 2.097 MB / 1.125 GB, free: 158.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003369/3.455, allocations: 111.9 kB / 1.125 GB, free: 158 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007805/3.463, allocations: 487.3 kB / 1.126 GB, free: 157.9 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002085/3.465, allocations: 389.4 kB / 1.126 GB, free: 157.8 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00141/3.466, allocations: 166.6 kB / 1.126 GB, free: 157.8 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01493/3.481, allocations: 6.961 MB / 1.133 GB, free: 155.5 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.445e-06/3.481, allocations: 0 / 1.133 GB, free: 155.5 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01676/3.498, allocations: 2.983 MB / 1.136 GB, free: 154.6 MB / 0.5262 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.001926/3.5, allocations: 313.4 kB / 1.136 GB, free: 154.3 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.03128/3.531, allocations: 16.56 MB / 1.152 GB, free: 139.9 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/3.531, allocations: 6.234 kB / 1.152 GB, free: 139.8 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01605/3.548, allocations: 7.314 MB / 1.159 GB, free: 133.5 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007978/3.556, allocations: 1.196 MB / 1.161 GB, free: 132.5 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06318/3.619, allocations: 34.5 MB / 1.194 GB, free: 99.14 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01743/3.636, allocations: 8.312 MB / 1.202 GB, free: 90.77 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005213/3.642, allocations: 0.7727 MB / 1.203 GB, free: 90 MB / 0.5262 GB Notification: Performance of SimCode: time 1.688e-06/3.642, allocations: 6.844 kB / 1.203 GB, free: 90 MB / 0.5262 GB Notification: Performance of Templates: time 1.121/4.763, allocations: 348.5 MB / 1.543 GB, free: 157 MB / 0.5574 GB