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.ForcesAndTorques.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.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.1_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 1.845/1.845, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.712e-05/2.733e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/0.08569, allocations: 48.71 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3678/0.4536, allocations: 97.17 MB / 423.7 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.4539, allocations: 75.16 kB / 423.8 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8685/1.322, allocations: 148.6 MB / 0.5589 GB, free: 74.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.16e-06/1.322, allocations: 0 / 0.5589 GB, free: 74.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003975/1.323, allocations: 151.1 kB / 0.5591 GB, free: 74.34 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: 2756 * Number of variables: 2756 Notification: Performance of Generate backend data structure: time 0.04463/1.368, allocations: 7.365 MB / 0.5663 GB, free: 71.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.391e-05/1.368, allocations: 11.78 kB / 0.5663 GB, free: 71.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06219/1.43, allocations: 7.323 MB / 0.5734 GB, free: 70.94 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02324/1.453, allocations: 7.886 MB / 0.5811 GB, free: 69.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006748/1.454, allocations: 0.5782 MB / 0.5817 GB, free: 69.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003473/1.457, allocations: 0.7702 MB / 0.5825 GB, free: 69.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04869/1.506, allocations: 18.83 MB / 0.6008 GB, free: 64.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004707/1.507, allocations: 92.06 kB / 0.6009 GB, free: 64.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003261/1.51, allocations: 372.3 kB / 0.6013 GB, free: 63.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00334/1.513, allocations: 1.831 MB / 0.6031 GB, free: 63.58 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03943/1.553, allocations: 15.34 MB / 0.6181 GB, free: 55.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4782/2.031, allocations: 81.68 MB / 0.6978 GB, free: 35.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03189/2.063, allocations: 8.657 MB / 0.7063 GB, free: 34.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007903/2.071, allocations: 4.626 MB / 0.7108 GB, free: 34.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02402/2.095, allocations: 11.7 MB / 0.7222 GB, free: 32.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.212e-05/2.095, allocations: 70.75 kB / 0.7223 GB, free: 32.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=347): time 8.397e-06/2.095, allocations: 0 / 0.7223 GB, free: 32.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=389): time 0.1261/2.221, allocations: 31.49 MB / 0.753 GB, free: 26.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.768e-05/2.221, allocations: 248 kB / 0.7533 GB, free: 26.55 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01415/2.235, allocations: 6.488 MB / 0.7596 GB, free: 26 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008412/2.236, allocations: 86.42 kB / 0.7597 GB, free: 25.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003753/2.24, allocations: 5.007 MB / 0.7646 GB, free: 22.46 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001879/2.242, allocations: 1.446 MB / 0.766 GB, free: 21.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/2.243, allocations: 198.4 kB / 0.7662 GB, free: 21.24 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006955/2.244, allocations: 0.7321 MB / 0.7669 GB, free: 20.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008597/2.253, allocations: 4.02 MB / 0.7708 GB, free: 19.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01166/2.264, allocations: 9.593 MB / 0.7802 GB, free: 10.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01182/2.276, allocations: 6.155 MB / 0.7862 GB, free: 8.684 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001799/2.276, allocations: 60.78 kB / 0.7863 GB, free: 8.684 MB / 442.7 MB Notification: Performance of matching and sorting (n=1297) (initialization): time 0.03416/2.311, allocations: 14.68 MB / 0.8006 GB, free: 15.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002019/2.311, allocations: 91.19 kB / 0.8007 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003498/2.311, allocations: 200 kB / 0.8009 GB, free: 14.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005941/2.317, allocations: 1.722 MB / 0.8026 GB, free: 13.56 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01157/2.329, allocations: 2.425 MB / 0.8049 GB, free: 11.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02125/2.35, allocations: 11.4 MB / 0.8161 GB, free: 1.285 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01096/2.361, allocations: 0.5695 MB / 0.8166 GB, free: 0.8047 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002384/2.363, allocations: 0.5777 MB / 0.8172 GB, free: 256 kB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 892 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1225): * Single equations (assignments): 1220 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004436/2.368, allocations: 0.9008 MB / 0.8181 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00196/2.37, allocations: 0.6401 MB / 0.8187 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03297/2.403, allocations: 8.134 MB / 0.8266 GB, free: 8.211 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001478/2.403, allocations: 42.97 kB / 0.8267 GB, free: 8.172 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.238e-05/2.403, allocations: 13.38 kB / 0.8267 GB, free: 8.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001211/2.403, allocations: 17.72 kB / 0.8267 GB, free: 8.16 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07975/2.483, allocations: 18.24 MB / 0.8445 GB, free: 9.523 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.769e-05/2.483, allocations: 11.56 kB / 0.8445 GB, free: 9.516 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005355/2.489, allocations: 0.7638 MB / 0.8453 GB, free: 8.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005422/2.494, allocations: 1.427 MB / 0.8467 GB, free: 7.348 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009271/2.495, allocations: 80.77 kB / 0.8467 GB, free: 7.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02103/2.516, allocations: 10.59 MB / 0.8571 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.429e-05/2.516, allocations: 11.94 kB / 0.8571 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03131/2.547, allocations: 14.36 MB / 0.8711 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00502/2.553, allocations: 1.332 MB / 0.8724 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003705/2.556, allocations: 67.88 kB / 0.8725 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00805/2.564, allocations: 260.6 kB / 0.8727 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001273/2.566, allocations: 238.8 kB / 0.873 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006664/2.566, allocations: 104.8 kB / 0.8731 GB, free: 11.62 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01261/2.579, allocations: 4.658 MB / 0.8776 GB, free: 6.992 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.044e-06/2.579, allocations: 0 / 0.8776 GB, free: 6.992 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01238/2.591, allocations: 1.867 MB / 0.8794 GB, free: 5.133 MB / 0.5105 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 () * 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.001274/2.593, allocations: 230.7 kB / 0.8797 GB, free: 4.906 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3261/2.919, allocations: 9.937 MB / 0.8894 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/2.919, allocations: 0 / 0.8894 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009187/2.928, allocations: 3.97 MB / 0.8932 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005716/2.934, allocations: 0.7701 MB / 0.894 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04052/2.975, allocations: 16.02 MB / 0.9096 GB, free: 149.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01318/2.988, allocations: 5.637 MB / 0.9151 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003151/2.991, allocations: 0.5183 MB / 0.9156 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of SimCode: time 2.393e-06/2.991, allocations: 3.391 kB / 0.9156 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of Templates: time 0.5178/3.509, allocations: 166.8 MB / 1.079 GB, free: 149.6 MB / 0.5105 GB