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_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadModel(Modelica): time 1.694/1.694, allocations: 171.2 MB / 183.4 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.093e-05/4.118e-05, allocations: 4 kB / 225 MB, free: 2.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.228, allocations: 38.76 MB / 263.8 MB, free: 9.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1433/0.3713, allocations: 95.95 MB / 359.7 MB, free: 9.742 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.3716, allocations: 83.95 kB / 359.8 MB, free: 9.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.277/1.649, allocations: 234 MB / 0.5799 GB, free: 30.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.461e-06/1.649, allocations: 0 / 0.5799 GB, free: 30.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005981/1.65, allocations: 240.3 kB / 0.5801 GB, free: 30.42 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.04104/1.691, allocations: 12.29 MB / 0.5921 GB, free: 19.69 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/1.691, allocations: 8.031 kB / 0.5921 GB, free: 19.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02411/1.715, allocations: 3.982 MB / 0.596 GB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03314/1.748, allocations: 12.19 MB / 0.6079 GB, free: 3.695 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008956/1.749, allocations: 0.8871 MB / 0.6088 GB, free: 2.863 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005135/1.754, allocations: 1.187 MB / 0.6099 GB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3338/2.088, allocations: 33.37 MB / 0.6425 GB, free: 32.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006316/2.089, allocations: 98.38 kB / 0.6426 GB, free: 32.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005238/2.094, allocations: 0.535 MB / 0.6431 GB, free: 32.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004624/2.099, allocations: 2.581 MB / 0.6457 GB, free: 32.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08588/2.184, allocations: 30.24 MB / 0.6752 GB, free: 30.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4892/2.674, allocations: 120.3 MB / 0.7927 GB, free: 30.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06449/2.738, allocations: 17.22 MB / 0.8095 GB, free: 29.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01462/2.753, allocations: 8.722 MB / 0.818 GB, free: 29.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05629/2.809, allocations: 31.1 MB / 0.8484 GB, free: 21.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.706e-05/2.809, allocations: 82.98 kB / 0.8485 GB, free: 21.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=489): time 1.162e-05/2.809, allocations: 0 / 0.8485 GB, free: 21.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=726): time 0.7909/3.6, allocations: 122.3 MB / 0.9679 GB, free: 139.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.706e-05/3.6, allocations: 209.7 kB / 0.9681 GB, free: 139.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01621/3.617, allocations: 6.903 MB / 0.9749 GB, free: 139.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002036/3.619, allocations: 139.6 kB / 0.975 GB, free: 139.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005426/3.624, allocations: 7.073 MB / 0.9819 GB, free: 136.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00415/3.628, allocations: 2.574 MB / 0.9844 GB, free: 134.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00295/3.631, allocations: 295.5 kB / 0.9847 GB, free: 134.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001409/3.633, allocations: 0.9047 MB / 0.9856 GB, free: 134.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02116/3.654, allocations: 10.09 MB / 0.9954 GB, free: 134.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02547/3.68, allocations: 16.62 MB / 1.012 GB, free: 122.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02761/3.707, allocations: 12.87 MB / 1.024 GB, free: 117.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002307/3.707, allocations: 62.97 kB / 1.024 GB, free: 117.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.06163/3.769, allocations: 26.62 MB / 1.05 GB, free: 107.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001772/3.769, allocations: 101 kB / 1.05 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002681/3.77, allocations: 226 kB / 1.051 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004067/3.77, allocations: 353.6 kB / 1.051 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02619/3.796, allocations: 4.265 MB / 1.055 GB, free: 107.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004771/3.797, allocations: 456.5 kB / 1.056 GB, free: 107.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02045/3.817, allocations: 1.223 MB / 1.057 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007226/3.825, allocations: 0.7473 MB / 1.057 GB, free: 106.7 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.01154/3.836, allocations: 1.127 MB / 1.059 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00611/3.842, allocations: 0.8073 MB / 1.059 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0691/3.912, allocations: 19.38 MB / 1.078 GB, free: 90.61 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.967e-05/3.912, allocations: 72.55 kB / 1.078 GB, free: 90.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.4e-05/3.912, allocations: 3.438 kB / 1.078 GB, free: 90.54 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001356/3.912, allocations: 40.14 kB / 1.078 GB, free: 90.54 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09184/4.004, allocations: 42.32 MB / 1.12 GB, free: 55.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-05/4.004, allocations: 4 kB / 1.12 GB, free: 55.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01596/4.02, allocations: 2.15 MB / 1.122 GB, free: 53.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001053/4.02, allocations: 32 kB / 1.122 GB, free: 53.56 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001964/4.022, allocations: 127.5 kB / 1.122 GB, free: 53.44 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.239e-05/4.022, allocations: 35.89 kB / 1.122 GB, free: 53.41 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/4.022, allocations: 11.27 kB / 1.122 GB, free: 53.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3323/4.354, allocations: 35.07 MB / 1.156 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008148/4.362, allocations: 2.707 MB / 1.159 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003537/4.366, allocations: 121 kB / 1.159 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01089/4.377, allocations: 0.7607 MB / 1.16 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002514/4.38, allocations: 400.6 kB / 1.16 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001745/4.381, allocations: 178.7 kB / 1.16 GB, free: 128.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01196/4.393, allocations: 4.778 MB / 1.165 GB, free: 128.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.445e-06/4.393, allocations: 0 / 1.165 GB, free: 128.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01778/4.411, allocations: 3.168 MB / 1.168 GB, free: 128.4 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.00275/4.414, allocations: 416.6 kB / 1.168 GB, free: 128.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04424/4.458, allocations: 22.55 MB / 1.19 GB, free: 121.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/4.458, allocations: 4.281 kB / 1.19 GB, free: 121.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01926/4.477, allocations: 9.683 MB / 1.2 GB, free: 117.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007264/4.485, allocations: 0.8584 MB / 1.201 GB, free: 116.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07331/4.558, allocations: 28.75 MB / 1.229 GB, free: 105.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02007/4.578, allocations: 8.266 MB / 1.237 GB, free: 100 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.02225/4.601, allocations: 5.059 MB / 1.242 GB, free: 96.83 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008197/4.609, allocations: 0.6009 MB / 1.242 GB, free: 96.25 MB / 474.7 MB Notification: Performance of SimCode: time 1.975e-06/4.609, allocations: 6.438 kB / 1.242 GB, free: 96.25 MB / 474.7 MB Notification: Performance of Templates: time 0.8058/5.415, allocations: 121 MB / 1.361 GB, free: 104 MB / 474.8 MB