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.622/1.622, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.228e-05/3.237e-05, allocations: 7.938 kB / 225 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2117, allocations: 38.76 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1435/0.3552, allocations: 95.94 MB / 359.7 MB, free: 9.785 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.3555, allocations: 87.95 kB / 359.8 MB, free: 9.699 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.149/1.505, allocations: 234 MB / 0.5798 GB, free: 30.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.956e-06/1.505, allocations: 0 / 0.5798 GB, free: 30.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005831/1.506, allocations: 235.8 kB / 0.5801 GB, free: 30.27 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.04146/1.547, allocations: 12.29 MB / 0.5921 GB, free: 19.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/1.547, allocations: 8.031 kB / 0.5921 GB, free: 19.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02432/1.571, allocations: 3.981 MB / 0.596 GB, free: 15.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03416/1.606, allocations: 12.19 MB / 0.6079 GB, free: 3.754 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001003/1.607, allocations: 0.8854 MB / 0.6087 GB, free: 2.922 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00545/1.612, allocations: 1.183 MB / 0.6099 GB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3584/1.971, allocations: 33.37 MB / 0.6425 GB, free: 32.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006079/1.971, allocations: 101.4 kB / 0.6426 GB, free: 32.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005159/1.976, allocations: 0.5331 MB / 0.6431 GB, free: 32.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00639/1.983, allocations: 2.584 MB / 0.6456 GB, free: 32.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1018/2.085, allocations: 30.23 MB / 0.6751 GB, free: 30.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.494/2.579, allocations: 120.4 MB / 0.7927 GB, free: 30.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06385/2.643, allocations: 17.21 MB / 0.8095 GB, free: 29.78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01439/2.657, allocations: 8.722 MB / 0.818 GB, free: 29.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05586/2.713, allocations: 31.09 MB / 0.8484 GB, free: 21.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001075/2.713, allocations: 89.97 kB / 0.8485 GB, free: 21.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=489): time 1.132e-05/2.713, allocations: 1.969 kB / 0.8485 GB, free: 21.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=726): time 0.8088/3.522, allocations: 122.3 MB / 0.9679 GB, free: 139.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/3.522, allocations: 207.9 kB / 0.9681 GB, free: 139.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01575/3.538, allocations: 6.906 MB / 0.9748 GB, free: 139.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002049/3.54, allocations: 137.6 kB / 0.975 GB, free: 139 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005006/3.545, allocations: 6.84 MB / 0.9817 GB, free: 136.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004062/3.549, allocations: 2.576 MB / 0.9842 GB, free: 134.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00295/3.552, allocations: 291.4 kB / 0.9845 GB, free: 134.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001505/3.554, allocations: 0.9085 MB / 0.9853 GB, free: 134.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02088/3.575, allocations: 10.09 MB / 0.9952 GB, free: 134.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02503/3.6, allocations: 16.61 MB / 1.011 GB, free: 122.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02535/3.625, allocations: 12.87 MB / 1.024 GB, free: 117.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002366/3.625, allocations: 65.97 kB / 1.024 GB, free: 117.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.05995/3.685, allocations: 26.35 MB / 1.05 GB, free: 107.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000187/3.686, allocations: 103.7 kB / 1.05 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002906/3.686, allocations: 232.4 kB / 1.05 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004232/3.686, allocations: 351.8 kB / 1.05 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02427/3.711, allocations: 4.257 MB / 1.055 GB, free: 107.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004735/3.711, allocations: 458.6 kB / 1.055 GB, free: 107.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01733/3.729, allocations: 1.232 MB / 1.056 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003893/3.732, allocations: 0.7485 MB / 1.057 GB, free: 106.8 MB / 474.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.006194/3.739, allocations: 1.127 MB / 1.058 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003357/3.742, allocations: 0.8004 MB / 1.059 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0422/3.784, allocations: 19.39 MB / 1.078 GB, free: 90.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-05/3.784, allocations: 72 kB / 1.078 GB, free: 90.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.501e-05/3.784, allocations: 4 kB / 1.078 GB, free: 90.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001371/3.785, allocations: 37.31 kB / 1.078 GB, free: 90.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09406/3.879, allocations: 42.31 MB / 1.119 GB, free: 55.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.201e-05/3.879, allocations: 8.938 kB / 1.119 GB, free: 55.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0161/3.895, allocations: 2.159 MB / 1.121 GB, free: 53.87 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/3.895, allocations: 28 kB / 1.121 GB, free: 53.84 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002093/3.897, allocations: 131.1 kB / 1.121 GB, free: 53.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.116e-05/3.897, allocations: 28 kB / 1.122 GB, free: 53.69 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.525e-06/3.897, allocations: 11.94 kB / 1.122 GB, free: 53.68 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3372/4.235, allocations: 35.04 MB / 1.156 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008312/4.243, allocations: 2.714 MB / 1.158 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003736/4.247, allocations: 121.3 kB / 1.159 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01033/4.257, allocations: 0.768 MB / 1.159 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002547/4.26, allocations: 395.7 kB / 1.16 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001979/4.262, allocations: 176.7 kB / 1.16 GB, free: 128.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01224/4.274, allocations: 4.783 MB / 1.164 GB, free: 128.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.122e-06/4.274, allocations: 0 / 1.164 GB, free: 128.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01777/4.292, allocations: 3.167 MB / 1.168 GB, free: 128.2 MB / 474.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.002731/4.295, allocations: 416.2 kB / 1.168 GB, free: 128.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0423/4.337, allocations: 22.55 MB / 1.19 GB, free: 121.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/4.337, allocations: 0 / 1.19 GB, free: 121.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01784/4.355, allocations: 9.686 MB / 1.199 GB, free: 117 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006989/4.362, allocations: 0.8563 MB / 1.2 GB, free: 116.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07783/4.44, allocations: 30.14 MB / 1.23 GB, free: 104.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0204/4.46, allocations: 8.269 MB / 1.238 GB, free: 99.11 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0105/4.471, allocations: 0.7088 MB / 1.238 GB, free: 98.43 MB / 474.7 MB Notification: Performance of SimCode: time 3.017e-06/4.471, allocations: 0 / 1.238 GB, free: 98.43 MB / 474.7 MB Notification: Performance of Templates: time 0.5485/5.019, allocations: 183.3 MB / 1.417 GB, free: 76.36 MB / 474.7 MB