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.ForcesAndTorques.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.ForcesAndTorques,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",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 2.252/2.252, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004354/0.0004356, allocations: 8 kB / 314.3 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2874, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForcesAndTorques): time 0.1163/0.4038, allocations: 87.07 MB / 456.3 MB, free: 3.434 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05006/0.4539, allocations: 19.31 MB / 475.6 MB, free: 64 kB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.3405/0.7944, allocations: 426.3 kB / 476 MB, free: 448 kB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0131/0.8076, allocations: 4.469 MB / 480.4 MB, free: 444 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03852/0.8462, allocations: 12.37 MB / 492.8 MB, free: 14.86 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005663/0.8519, allocations: 0.9906 MB / 493.8 MB, free: 14.62 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.03764/0.8896, allocations: 18.83 MB / 0.5006 GB, free: 9.496 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01526/0.9049, allocations: 8.832 MB / 0.5093 GB, free: 6.473 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003844/0.9087, allocations: 1.822 MB / 0.511 GB, free: 5.309 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004687/0.9135, allocations: 2.513 MB / 0.5135 GB, free: 3.594 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001485/0.915, allocations: 268 kB / 0.5137 GB, free: 3.332 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003561/0.9186, allocations: 1.065 MB / 0.5148 GB, free: 2.445 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004419/0.9231, allocations: 2.97 MB / 0.5177 GB, free: 372 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002312/0.9254, allocations: 1.531 MB / 0.5192 GB, free: 15.85 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01561/0.9411, allocations: 10.35 MB / 0.5293 GB, free: 6.867 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.919e-06/0.9411, allocations: 4 kB / 0.5293 GB, free: 6.863 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.9411, allocations: 0 / 0.5293 GB, free: 6.863 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002757/0.9414, allocations: 0 / 0.5293 GB, free: 6.863 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2760 * Number of variables: 2760 Notification: Performance of Generate backend data structure: time 0.02238/0.9638, allocations: 7.876 MB / 0.537 GB, free: 15.63 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.9639, allocations: 8.031 kB / 0.537 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0563/1.02, allocations: 8.454 MB / 0.5452 GB, free: 7.879 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01311/1.033, allocations: 5.177 MB / 0.5503 GB, free: 4.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004828/1.034, allocations: 449.7 kB / 0.5507 GB, free: 3.934 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002099/1.036, allocations: 0.5801 MB / 0.5513 GB, free: 3.555 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04344/1.079, allocations: 18.74 MB / 0.5696 GB, free: 5.113 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002565/1.08, allocations: 73.34 kB / 0.5697 GB, free: 5.078 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001104/1.081, allocations: 275.2 kB / 0.5699 GB, free: 5.004 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006247/1.087, allocations: 3.317 MB / 0.5732 GB, free: 2.301 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04167/1.129, allocations: 15.67 MB / 0.5885 GB, free: 7.344 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1177/1.247, allocations: 69.99 MB / 0.6568 GB, free: 8.555 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5406/1.787, allocations: 8.545 MB / 0.6652 GB, free: 214.5 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0245/1.812, allocations: 11.74 MB / 0.6766 GB, free: 211.1 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.73e-05/1.812, allocations: 72.55 kB / 0.6767 GB, free: 211 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=347): time 7.866e-06/1.812, allocations: 0 / 0.6767 GB, free: 211 MB / 0.5262 GB Notification: Performance of matching and sorting (n=389): time 0.1176/1.93, allocations: 38.34 MB / 0.7141 GB, free: 186.9 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.695e-05/1.93, allocations: 256.6 kB / 0.7144 GB, free: 186.6 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01421/1.944, allocations: 7.621 MB / 0.7218 GB, free: 179 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0008031/1.945, allocations: 89.09 kB / 0.7219 GB, free: 178.9 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003403/1.948, allocations: 4.976 MB / 0.7268 GB, free: 174 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001849/1.95, allocations: 1.446 MB / 0.7282 GB, free: 172.5 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0011/1.951, allocations: 196 kB / 0.7284 GB, free: 172.3 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0006242/1.952, allocations: 0.7323 MB / 0.7291 GB, free: 171.6 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008559/1.96, allocations: 4.214 MB / 0.7332 GB, free: 167.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01126/1.972, allocations: 9.788 MB / 0.7428 GB, free: 155 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/1.983, allocations: 6.284 MB / 0.7489 GB, free: 148.9 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001549/1.983, allocations: 59.98 kB / 0.749 GB, free: 148.8 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1302) (initialization): time 0.03299/2.016, allocations: 15.09 MB / 0.7637 GB, free: 133.7 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001591/2.017, allocations: 93.5 kB / 0.7638 GB, free: 133.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002137/2.017, allocations: 195.7 kB / 0.764 GB, free: 133.4 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005682/2.022, allocations: 1.836 MB / 0.7658 GB, free: 131.6 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0108/2.033, allocations: 2.382 MB / 0.7681 GB, free: 129.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01866/2.052, allocations: 12.41 MB / 0.7802 GB, free: 116.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009826/2.062, allocations: 0.5735 MB / 0.7808 GB, free: 116 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001875/2.064, allocations: 0.5764 MB / 0.7813 GB, free: 115.4 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 887 * Number of states: 0 () * Number of discrete variables: 66 (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],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[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 (1220): * Single equations (assignments): 1213 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00778/2.072, allocations: 3.613 MB / 0.7849 GB, free: 111.8 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001405/2.073, allocations: 0.6402 MB / 0.7855 GB, free: 111.1 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01953/2.093, allocations: 8.439 MB / 0.7937 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.728e-05/2.093, allocations: 43.95 kB / 0.7938 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.599e-05/2.093, allocations: 8 kB / 0.7938 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.868e-05/2.093, allocations: 19.92 kB / 0.7938 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04309/2.136, allocations: 18.63 MB / 0.812 GB, free: 83.88 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.084e-05/2.136, allocations: 8 kB / 0.812 GB, free: 83.87 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004616/2.141, allocations: 0.7066 MB / 0.8127 GB, free: 83.16 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005173/2.146, allocations: 1.534 MB / 0.8142 GB, free: 81.62 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009315/2.147, allocations: 79.94 kB / 0.8143 GB, free: 81.54 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01859/2.165, allocations: 11.58 MB / 0.8256 GB, free: 69.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.944e-06/2.165, allocations: 11.94 kB / 0.8256 GB, free: 69.68 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02589/2.191, allocations: 13.37 MB / 0.8386 GB, free: 56.14 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004045/2.195, allocations: 1.344 MB / 0.84 GB, free: 54.77 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00187/2.197, allocations: 72 kB / 0.84 GB, free: 54.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004989/2.202, allocations: 262 kB / 0.8403 GB, free: 54.44 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00122/2.204, allocations: 242.8 kB / 0.8405 GB, free: 54.2 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004528/2.204, allocations: 108 kB / 0.8406 GB, free: 54.1 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.00999/2.214, allocations: 4.936 MB / 0.8454 GB, free: 49.19 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.541e-06/2.214, allocations: 0 / 0.8454 GB, free: 49.19 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0109/2.225, allocations: 1.901 MB / 0.8473 GB, free: 47.29 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (329): * Single equations (assignments): 324 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.0012/2.226, allocations: 242.1 kB / 0.8475 GB, free: 47.06 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01905/2.245, allocations: 10.26 MB / 0.8575 GB, free: 36.81 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/2.245, allocations: 4 kB / 0.8575 GB, free: 36.8 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.008761/2.254, allocations: 4.134 MB / 0.8616 GB, free: 32.65 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005148/2.259, allocations: 0.7715 MB / 0.8623 GB, free: 31.89 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3142/2.574, allocations: 21.94 MB / 0.8838 GB, free: 195.3 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01177/2.586, allocations: 5.65 MB / 0.8893 GB, free: 194.4 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003013/2.589, allocations: 0.5218 MB / 0.8898 GB, free: 194.4 MB / 0.5262 GB Notification: Performance of SimCode: time 1.965e-06/2.589, allocations: 0 / 0.8898 GB, free: 194.4 MB / 0.5262 GB Notification: Performance of Templates: time 0.2219/2.811, allocations: 167.8 MB / 1.054 GB, free: 43.86 MB / 0.5262 GB