Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadModel(Modelica): time 1.83/1.83, allocations: 194.9 MB / 211.7 MB, free: 2.973 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003603, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08086/0.08124, allocations: 44.51 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3719/0.4532, allocations: 101.7 MB / 410.2 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/0.4535, allocations: 96.34 kB / 410.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.086/1.539, allocations: 233.8 MB / 0.629 GB, free: 22.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.761e-06/1.539, allocations: 4 kB / 0.629 GB, free: 22.47 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005956/1.54, allocations: 236 kB / 0.6293 GB, free: 22.24 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.04432/1.584, allocations: 13.01 MB / 0.642 GB, free: 9.125 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/1.584, allocations: 8.031 kB / 0.642 GB, free: 9.117 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02469/1.609, allocations: 3.986 MB / 0.6459 GB, free: 5.109 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03761/1.647, allocations: 12.22 MB / 0.6578 GB, free: 8.801 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001286/1.648, allocations: 0.8905 MB / 0.6587 GB, free: 7.906 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005909/1.654, allocations: 1.183 MB / 0.6598 GB, free: 6.723 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3653/2.019, allocations: 33.8 MB / 0.6928 GB, free: 39.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006011/2.02, allocations: 97.41 kB / 0.6929 GB, free: 39.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005153/2.025, allocations: 0.5334 MB / 0.6934 GB, free: 39.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004528/2.03, allocations: 2.58 MB / 0.696 GB, free: 39.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08871/2.118, allocations: 31.06 MB / 0.7263 GB, free: 38.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4857/2.604, allocations: 120.6 MB / 0.844 GB, free: 79.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07051/2.675, allocations: 17.35 MB / 0.861 GB, free: 78.95 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05756/2.732, allocations: 31.08 MB / 0.8913 GB, free: 71.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.049e-05/2.732, allocations: 90.88 kB / 0.8914 GB, free: 71.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=489): time 1.03e-05/2.732, allocations: 0 / 0.8914 GB, free: 71.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=726): time 1.19/3.923, allocations: 170.4 MB / 1.058 GB, free: 77.28 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/3.923, allocations: 200.8 kB / 1.058 GB, free: 77.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01737/3.94, allocations: 7.023 MB / 1.065 GB, free: 75.27 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002222/3.943, allocations: 136.7 kB / 1.065 GB, free: 75.15 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005058/3.948, allocations: 6.835 MB / 1.072 GB, free: 69.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004208/3.952, allocations: 2.578 MB / 1.074 GB, free: 67.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003078/3.955, allocations: 289.4 kB / 1.074 GB, free: 67.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001609/3.957, allocations: 0.9174 MB / 1.075 GB, free: 67.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02263/3.979, allocations: 10.29 MB / 1.085 GB, free: 62.89 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02758/4.007, allocations: 16.92 MB / 1.102 GB, free: 49.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02787/4.035, allocations: 13.01 MB / 1.115 GB, free: 44.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002108/4.035, allocations: 68.16 kB / 1.115 GB, free: 44.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.06418/4.099, allocations: 27.41 MB / 1.141 GB, free: 26.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001871/4.1, allocations: 107.8 kB / 1.142 GB, free: 26.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003162/4.1, allocations: 224 kB / 1.142 GB, free: 26.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003782/4.1, allocations: 353.3 kB / 1.142 GB, free: 26.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02439/4.125, allocations: 4.266 MB / 1.146 GB, free: 22.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004753/4.125, allocations: 460.9 kB / 1.147 GB, free: 22.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01739/4.143, allocations: 1.223 MB / 1.148 GB, free: 21.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003886/4.147, allocations: 0.7428 MB / 1.149 GB, free: 20.77 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1031 * Number of states: 0 () * Number of discrete variables: 99 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[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 (1845): * Single equations (assignments): 1839 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01562/4.162, allocations: 5.462 MB / 1.154 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003394/4.166, allocations: 0.7944 MB / 1.155 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3422/4.508, allocations: 20.57 MB / 1.175 GB, free: 72.12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001041/4.508, allocations: 77.7 kB / 1.175 GB, free: 72.12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-05/4.508, allocations: 1.188 kB / 1.175 GB, free: 72.12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001531/4.508, allocations: 32.92 kB / 1.175 GB, free: 72.12 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1043/4.613, allocations: 42.54 MB / 1.216 GB, free: 66.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.186e-05/4.613, allocations: 7.031 kB / 1.216 GB, free: 66.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01804/4.631, allocations: 2.148 MB / 1.219 GB, free: 66.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001023/4.631, allocations: 29.25 kB / 1.219 GB, free: 66.36 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002174/4.633, allocations: 131.2 kB / 1.219 GB, free: 66.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.584e-05/4.633, allocations: 33.69 kB / 1.219 GB, free: 66.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.659e-06/4.633, allocations: 6.969 kB / 1.219 GB, free: 66.27 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09961/4.733, allocations: 33.94 MB / 1.252 GB, free: 49.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008598/4.741, allocations: 2.706 MB / 1.255 GB, free: 48.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003726/4.745, allocations: 123.8 kB / 1.255 GB, free: 48.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0108/4.756, allocations: 0.7625 MB / 1.255 GB, free: 48.72 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002644/4.759, allocations: 389.4 kB / 1.256 GB, free: 48.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002082/4.761, allocations: 178 kB / 1.256 GB, free: 48.62 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01272/4.774, allocations: 4.898 MB / 1.261 GB, free: 46.97 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.517e-06/4.774, allocations: 0 / 1.261 GB, free: 46.97 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0181/4.792, allocations: 3.17 MB / 1.264 GB, free: 46.66 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 2 (rev.phi,rev.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 (710): * Single equations (assignments): 707 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002956/4.795, allocations: 415.4 kB / 1.264 GB, free: 46.48 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04621/4.841, allocations: 23.24 MB / 1.287 GB, free: 34.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/4.841, allocations: 3.844 kB / 1.287 GB, free: 34.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0184/4.859, allocations: 9.831 MB / 1.297 GB, free: 25.68 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006997/4.867, allocations: 0.8562 MB / 1.297 GB, free: 24.95 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3871/5.254, allocations: 40.07 MB / 1.336 GB, free: 90.37 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02221/5.276, allocations: 8.27 MB / 1.345 GB, free: 89.38 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01423/5.29, allocations: 0.7061 MB / 1.345 GB, free: 89.37 MB / 474.7 MB Notification: Performance of SimCode: time 2.546e-06/5.29, allocations: 1.562 kB / 1.345 GB, free: 89.37 MB / 474.7 MB Notification: Performance of Templates: time 0.6012/5.891, allocations: 185.7 MB / 1.527 GB, free: 55.8 MB / 474.7 MB