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_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadModel(Modelica): time 1.81/1.81, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.702e-05/2.716e-05, allocations: 0 / 255.4 MB, free: 2.715 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07869/0.07874, allocations: 44.51 MB / 299.9 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3654/0.4442, allocations: 101.7 MB / 401.6 MB, free: 17.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.4445, allocations: 90.75 kB / 401.6 MB, free: 17.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.093/1.538, allocations: 234 MB / 0.6207 GB, free: 29.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.279e-06/1.538, allocations: 0 / 0.6207 GB, free: 29.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005914/1.538, allocations: 236 kB / 0.6209 GB, free: 29 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.04241/1.581, allocations: 12.29 MB / 0.6329 GB, free: 16.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/1.581, allocations: 12.03 kB / 0.6329 GB, free: 16.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02539/1.606, allocations: 3.979 MB / 0.6368 GB, free: 12.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03428/1.641, allocations: 12.18 MB / 0.6487 GB, free: 344 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001184/1.642, allocations: 0.8944 MB / 0.6496 GB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006096/1.648, allocations: 1.187 MB / 0.6508 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3671/2.015, allocations: 33.37 MB / 0.6833 GB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001055/2.016, allocations: 106.2 kB / 0.6834 GB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007205/2.023, allocations: 0.5342 MB / 0.684 GB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004497/2.028, allocations: 2.573 MB / 0.6865 GB, free: 41.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08305/2.111, allocations: 30.23 MB / 0.716 GB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2377/2.349, allocations: 120.4 MB / 0.8335 GB, free: 3.035 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3658/2.715, allocations: 19.39 MB / 0.8525 GB, free: 91.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01485/2.73, allocations: 8.725 MB / 0.861 GB, free: 91.74 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05534/2.785, allocations: 31.09 MB / 0.8914 GB, free: 84.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.568e-05/2.785, allocations: 89.7 kB / 0.8914 GB, free: 84.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=489): time 9.726e-06/2.785, allocations: 0 / 0.8914 GB, free: 84.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=726): time 0.8146/3.6, allocations: 122.2 MB / 1.011 GB, free: 85.76 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/3.6, allocations: 207 kB / 1.011 GB, free: 85.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01872/3.619, allocations: 6.903 MB / 1.018 GB, free: 85.16 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002125/3.621, allocations: 137.4 kB / 1.018 GB, free: 85.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005627/3.626, allocations: 7.072 MB / 1.025 GB, free: 82.51 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004228/3.631, allocations: 2.579 MB / 1.027 GB, free: 80.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003061/3.634, allocations: 290.4 kB / 1.028 GB, free: 80.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001246/3.635, allocations: 0.9091 MB / 1.028 GB, free: 80.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02295/3.658, allocations: 10.09 MB / 1.038 GB, free: 80.58 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02522/3.683, allocations: 16.61 MB / 1.055 GB, free: 72.36 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02603/3.709, allocations: 12.87 MB / 1.067 GB, free: 67.55 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002299/3.71, allocations: 64.22 kB / 1.067 GB, free: 67.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.06098/3.771, allocations: 26.62 MB / 1.093 GB, free: 57.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000184/3.771, allocations: 107.5 kB / 1.093 GB, free: 57.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002765/3.771, allocations: 227.9 kB / 1.093 GB, free: 57.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004271/3.772, allocations: 346.2 kB / 1.094 GB, free: 57.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02507/3.797, allocations: 4.26 MB / 1.098 GB, free: 57.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005186/3.797, allocations: 462.7 kB / 1.098 GB, free: 56.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01782/3.815, allocations: 1.224 MB / 1.1 GB, free: 56.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003842/3.819, allocations: 0.7451 MB / 1.1 GB, free: 56.62 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 () * 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.005876/3.825, allocations: 1.131 MB / 1.101 GB, free: 55.71 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002862/3.828, allocations: 0.7964 MB / 1.102 GB, free: 55.28 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04323/3.871, allocations: 19.39 MB / 1.121 GB, free: 46.14 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.742e-05/3.871, allocations: 70.81 kB / 1.121 GB, free: 46.07 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.402e-05/3.871, allocations: 4 kB / 1.121 GB, free: 46.07 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001257/3.871, allocations: 35.11 kB / 1.121 GB, free: 46.07 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09116/3.963, allocations: 42.3 MB / 1.163 GB, free: 10.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.97e-05/3.963, allocations: 14.62 kB / 1.163 GB, free: 10.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01625/3.979, allocations: 2.154 MB / 1.165 GB, free: 9.148 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001052/3.979, allocations: 31.94 kB / 1.165 GB, free: 9.117 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001969/3.981, allocations: 126.9 kB / 1.165 GB, free: 9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.722e-05/3.981, allocations: 28 kB / 1.165 GB, free: 8.973 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/3.981, allocations: 11.94 kB / 1.165 GB, free: 8.961 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3783/4.359, allocations: 33.6 MB / 1.198 GB, free: 75.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008648/4.368, allocations: 2.701 MB / 1.2 GB, free: 75.38 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003911/4.372, allocations: 117.7 kB / 1.2 GB, free: 75.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01065/4.383, allocations: 0.7666 MB / 1.201 GB, free: 75.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002551/4.385, allocations: 388.4 kB / 1.202 GB, free: 75.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001992/4.387, allocations: 178.8 kB / 1.202 GB, free: 75.38 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0211/4.409, allocations: 4.781 MB / 1.206 GB, free: 74.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.491e-06/4.409, allocations: 0.6562 kB / 1.206 GB, free: 74.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.03282/4.441, allocations: 3.171 MB / 1.209 GB, free: 73.98 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 () * 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.004684/4.446, allocations: 412 kB / 1.21 GB, free: 73.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.05864/4.505, allocations: 22.56 MB / 1.232 GB, free: 64.94 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/4.505, allocations: 3.75 kB / 1.232 GB, free: 64.94 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01828/4.523, allocations: 9.685 MB / 1.241 GB, free: 60.68 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006858/4.53, allocations: 0.858 MB / 1.242 GB, free: 60.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07208/4.602, allocations: 28.75 MB / 1.27 GB, free: 46.17 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01909/4.621, allocations: 8.269 MB / 1.278 GB, free: 40.16 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.02267/4.644, allocations: 5.058 MB / 1.283 GB, free: 36.95 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007977/4.652, allocations: 0.6028 MB / 1.284 GB, free: 36.38 MB / 458.7 MB Notification: Performance of SimCode: time 1.975e-06/4.652, allocations: 0 / 1.284 GB, free: 36.38 MB / 458.7 MB Notification: Performance of Templates: time 0.8544/5.506, allocations: 121 MB / 1.402 GB, free: 63.1 MB / 458.8 MB