Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.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) 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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadModel(Modelica): time 1.671/1.671, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.275e-05/3.295e-05, allocations: 7.984 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2102, allocations: 38.76 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3231/0.5333, allocations: 95.94 MB / 363.5 MB, free: 80.64 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.5336, allocations: 85.09 kB / 363.6 MB, free: 80.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9981/1.532, allocations: 234 MB / 0.5837 GB, free: 19.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.463e-06/1.532, allocations: 0 / 0.5837 GB, free: 19.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005714/1.532, allocations: 231.9 kB / 0.5839 GB, free: 19.35 MB / 346.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.04216/1.575, allocations: 12.29 MB / 0.5959 GB, free: 7.016 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/1.575, allocations: 12.02 kB / 0.5959 GB, free: 7.004 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02478/1.599, allocations: 3.985 MB / 0.5998 GB, free: 3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03931/1.639, allocations: 12.17 MB / 0.6117 GB, free: 6.836 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001307/1.64, allocations: 0.9022 MB / 0.6125 GB, free: 5.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006037/1.646, allocations: 1.175 MB / 0.6137 GB, free: 4.754 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3377/1.984, allocations: 33.51 MB / 0.6464 GB, free: 30.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005893/1.985, allocations: 103.6 kB / 0.6465 GB, free: 30.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005009/1.99, allocations: 0.5393 MB / 0.647 GB, free: 30.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004704/1.994, allocations: 2.575 MB / 0.6496 GB, free: 30.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08554/2.08, allocations: 30.6 MB / 0.6794 GB, free: 26.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4787/2.559, allocations: 121 MB / 0.7976 GB, free: 24.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0661/2.625, allocations: 17.27 MB / 0.8145 GB, free: 23.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01465/2.639, allocations: 8.725 MB / 0.823 GB, free: 23.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05628/2.696, allocations: 31.09 MB / 0.8534 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.767e-05/2.696, allocations: 80.67 kB / 0.8534 GB, free: 14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=489): time 1.027e-05/2.696, allocations: 0 / 0.8534 GB, free: 14 MB / 410.7 MB Notification: Performance of matching and sorting (n=726): time 0.8272/3.523, allocations: 122.4 MB / 0.9729 GB, free: 97.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.592e-05/3.523, allocations: 211.7 kB / 0.9731 GB, free: 97.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01588/3.539, allocations: 6.908 MB / 0.9799 GB, free: 95.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00201/3.541, allocations: 136.7 kB / 0.98 GB, free: 95.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004768/3.546, allocations: 6.835 MB / 0.9867 GB, free: 90.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003857/3.55, allocations: 2.58 MB / 0.9892 GB, free: 88.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002382/3.552, allocations: 289.5 kB / 0.9895 GB, free: 88.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001157/3.554, allocations: 0.9136 MB / 0.9904 GB, free: 87.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02063/3.574, allocations: 10.09 MB / 1 GB, free: 83.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02494/3.599, allocations: 16.7 MB / 1.017 GB, free: 70.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02495/3.624, allocations: 12.87 MB / 1.029 GB, free: 65.61 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001916/3.624, allocations: 66.19 kB / 1.029 GB, free: 65.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.05958/3.684, allocations: 26.99 MB / 1.056 GB, free: 47.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001753/3.684, allocations: 104 kB / 1.056 GB, free: 47.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002748/3.685, allocations: 224 kB / 1.056 GB, free: 47.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003888/3.685, allocations: 348 kB / 1.056 GB, free: 47.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0239/3.709, allocations: 4.259 MB / 1.06 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004712/3.709, allocations: 468.1 kB / 1.061 GB, free: 43.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01701/3.726, allocations: 1.221 MB / 1.062 GB, free: 42.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003709/3.73, allocations: 0.7433 MB / 1.063 GB, free: 41.96 MB / 442.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 () * 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.006153/3.736, allocations: 1.14 MB / 1.064 GB, free: 40.83 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003056/3.739, allocations: 0.8011 MB / 1.065 GB, free: 40.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3131/4.052, allocations: 21 MB / 1.085 GB, free: 95.78 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.413e-05/4.053, allocations: 72.88 kB / 1.085 GB, free: 95.78 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-05/4.053, allocations: 3.375 kB / 1.085 GB, free: 95.78 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001464/4.053, allocations: 36.2 kB / 1.085 GB, free: 95.78 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09725/4.15, allocations: 42.33 MB / 1.127 GB, free: 87.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.915e-05/4.15, allocations: 4.719 kB / 1.127 GB, free: 87.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01712/4.167, allocations: 2.149 MB / 1.129 GB, free: 87.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001121/4.167, allocations: 28.72 kB / 1.129 GB, free: 87.69 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00205/4.17, allocations: 129 kB / 1.129 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.479e-05/4.17, allocations: 31.25 kB / 1.129 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/4.17, allocations: 10.09 kB / 1.129 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06322/4.233, allocations: 33.59 MB / 1.162 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008499/4.241, allocations: 2.72 MB / 1.164 GB, free: 70.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003694/4.245, allocations: 121.1 kB / 1.164 GB, free: 70.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01055/4.256, allocations: 0.7604 MB / 1.165 GB, free: 70.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002445/4.258, allocations: 397.2 kB / 1.166 GB, free: 70.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001758/4.26, allocations: 181 kB / 1.166 GB, free: 70.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01177/4.272, allocations: 4.778 MB / 1.17 GB, free: 68.63 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.525e-06/4.272, allocations: 2.734 kB / 1.17 GB, free: 68.63 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01854/4.29, allocations: 3.173 MB / 1.173 GB, free: 68.32 MB / 442.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 () * 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.002651/4.293, allocations: 412.5 kB / 1.174 GB, free: 68.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0418/4.335, allocations: 22.91 MB / 1.196 GB, free: 48.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/4.335, allocations: 4 kB / 1.196 GB, free: 48.58 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01743/4.352, allocations: 9.725 MB / 1.206 GB, free: 39.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007058/4.36, allocations: 0.8505 MB / 1.207 GB, free: 38.85 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3368/4.696, allocations: 30.18 MB / 1.236 GB, free: 98.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02118/4.718, allocations: 8.274 MB / 1.244 GB, free: 97.94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01057/4.728, allocations: 0.7003 MB / 1.245 GB, free: 97.93 MB / 442.7 MB Notification: Performance of SimCode: time 2.301e-06/4.728, allocations: 0 / 1.245 GB, free: 97.93 MB / 442.7 MB Notification: Performance of Templates: time 0.5582/5.287, allocations: 185.6 MB / 1.426 GB, free: 84.48 MB / 442.7 MB