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.844/1.844, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.489e-05/2.528e-05, allocations: 3.938 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2524, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1563/0.4088, allocations: 101 MB / 395.1 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.4091, allocations: 87.89 kB / 395.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.231/1.64, allocations: 228.5 MB / 0.6091 GB, free: 31.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.025e-06/1.64, allocations: 4 kB / 0.6091 GB, free: 31.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000601/1.641, allocations: 232.1 kB / 0.6093 GB, free: 31.91 MB / 378.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.04472/1.685, allocations: 12.28 MB / 0.6213 GB, free: 27.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/1.686, allocations: 11.22 kB / 0.6213 GB, free: 27.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02627/1.712, allocations: 3.985 MB / 0.6252 GB, free: 27.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03747/1.749, allocations: 12.17 MB / 0.6371 GB, free: 25.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007005/1.75, allocations: 385.9 kB / 0.6375 GB, free: 25.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005479/1.756, allocations: 0.7037 MB / 0.6382 GB, free: 25.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04405/1.8, allocations: 21.49 MB / 0.6592 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08511/1.885, allocations: 27.42 MB / 0.6859 GB, free: 3.961 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007068/1.886, allocations: 99.09 kB / 0.686 GB, free: 3.863 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005104/1.891, allocations: 52 kB / 0.6861 GB, free: 3.812 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005348/1.896, allocations: 2.578 MB / 0.6886 GB, free: 1.238 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4535/2.35, allocations: 116.8 MB / 0.8027 GB, free: 20.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01642/2.366, allocations: 10.5 MB / 0.8129 GB, free: 15.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01338/2.38, allocations: 8.504 MB / 0.8213 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06348/2.443, allocations: 30.88 MB / 0.8514 GB, free: 6.387 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001359/2.443, allocations: 79.78 kB / 0.8515 GB, free: 6.301 MB / 442.7 MB Notification: Performance of pre-optimization done (n=483): time 1.087e-05/2.443, allocations: 0 / 0.8515 GB, free: 6.301 MB / 442.7 MB Notification: Performance of matching and sorting (n=708): time 0.7585/3.202, allocations: 115.5 MB / 0.9643 GB, free: 92.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.42e-05/3.202, allocations: 197.6 kB / 0.9645 GB, free: 92.51 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01358/3.216, allocations: 6.083 MB / 0.9704 GB, free: 87.35 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002052/3.218, allocations: 25.7 kB / 0.9705 GB, free: 87.32 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004669/3.222, allocations: 7.027 MB / 0.9773 GB, free: 81.04 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003841/3.226, allocations: 2.43 MB / 0.9797 GB, free: 78.83 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002712/3.229, allocations: 0 / 0.9797 GB, free: 78.83 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001498/3.23, allocations: 0.9184 MB / 0.9806 GB, free: 78.07 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01846/3.249, allocations: 9.701 MB / 0.9901 GB, free: 69.19 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02264/3.272, allocations: 16.53 MB / 1.006 GB, free: 50.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02841/3.3, allocations: 12.91 MB / 1.019 GB, free: 39.76 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000229/3.3, allocations: 68 kB / 1.019 GB, free: 39.69 MB / 458.7 MB Notification: Performance of matching and sorting (n=1887) (initialization): time 0.359/3.659, allocations: 26.36 MB / 1.045 GB, free: 91.06 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002521/3.66, allocations: 107.8 kB / 1.045 GB, free: 91.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003802/3.66, allocations: 239.9 kB / 1.045 GB, free: 91.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005631/3.661, allocations: 363.4 kB / 1.045 GB, free: 91.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02428/3.685, allocations: 4.296 MB / 1.05 GB, free: 91.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004957/3.686, allocations: 483.2 kB / 1.05 GB, free: 91.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01723/3.703, allocations: 0.951 MB / 1.051 GB, free: 91.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004078/3.707, allocations: 0.7654 MB / 1.052 GB, free: 91.06 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1086 * 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 (1857): * Single equations (assignments): 1851 * 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.006671/3.714, allocations: 0.7798 MB / 1.052 GB, free: 90.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003417/3.717, allocations: 0.747 MB / 1.053 GB, free: 90.89 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04092/3.758, allocations: 18.52 MB / 1.071 GB, free: 90.58 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.066e-05/3.758, allocations: 75.5 kB / 1.071 GB, free: 90.58 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.318e-05/3.758, allocations: 0 / 1.071 GB, free: 90.58 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001457/3.758, allocations: 33.52 kB / 1.071 GB, free: 90.58 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0866/3.845, allocations: 38.46 MB / 1.109 GB, free: 78.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.283e-05/3.845, allocations: 7.75 kB / 1.109 GB, free: 78.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01637/3.861, allocations: 2.118 MB / 1.111 GB, free: 78.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001238/3.862, allocations: 24.62 kB / 1.111 GB, free: 78.76 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002002/3.864, allocations: 17.34 kB / 1.111 GB, free: 78.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-05/3.864, allocations: 23.28 kB / 1.111 GB, free: 78.75 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.546e-06/3.864, allocations: 0 / 1.111 GB, free: 78.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05655/3.92, allocations: 31.9 MB / 1.142 GB, free: 59.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007809/3.928, allocations: 2.634 MB / 1.145 GB, free: 57.73 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00333/3.932, allocations: 4 kB / 1.145 GB, free: 57.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00982/3.941, allocations: 0.6527 MB / 1.145 GB, free: 57.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002442/3.944, allocations: 370.9 kB / 1.146 GB, free: 57.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001335/3.945, allocations: 170.1 kB / 1.146 GB, free: 57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009492/3.955, allocations: 4.046 MB / 1.15 GB, free: 53.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.063e-06/3.955, allocations: 0 / 1.15 GB, free: 53.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01724/3.972, allocations: 2.752 MB / 1.153 GB, free: 50.78 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (692): * Single equations (assignments): 689 * 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.002513/3.975, allocations: 291.7 kB / 1.153 GB, free: 50.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03832/4.013, allocations: 22.06 MB / 1.174 GB, free: 30.26 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.161e-06/4.013, allocations: 3.938 kB / 1.174 GB, free: 30.26 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01656/4.03, allocations: 9.514 MB / 1.184 GB, free: 21.45 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005819/4.035, allocations: 0.6284 MB / 1.184 GB, free: 20.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4342/4.47, allocations: 30.95 MB / 1.214 GB, free: 91.16 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02023/4.49, allocations: 8.236 MB / 1.223 GB, free: 90.16 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009247/4.499, allocations: 0.6772 MB / 1.223 GB, free: 90.16 MB / 458.7 MB Notification: Performance of SimCode: time 1.952e-06/4.499, allocations: 0 / 1.223 GB, free: 90.16 MB / 458.7 MB Notification: Performance of Templates: time 0.5668/5.066, allocations: 180.1 MB / 1.399 GB, free: 61.91 MB / 458.7 MB