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.855/1.855, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.864e-05/2.889e-05, allocations: 0 / 255.4 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07791/0.07796, allocations: 44.51 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3988/0.4768, allocations: 101.7 MB / 401.5 MB, free: 17.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.4771, allocations: 89.31 kB / 401.6 MB, free: 17.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.046/1.524, allocations: 234 MB / 0.6207 GB, free: 29.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.992e-06/1.524, allocations: 0 / 0.6207 GB, free: 29.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005778/1.524, allocations: 235.9 kB / 0.6209 GB, free: 29.36 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.04154/1.566, allocations: 12.3 MB / 0.6329 GB, free: 16.96 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/1.566, allocations: 8.031 kB / 0.6329 GB, free: 16.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02502/1.591, allocations: 3.979 MB / 0.6368 GB, free: 12.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03506/1.626, allocations: 12.18 MB / 0.6487 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001105/1.627, allocations: 0.8945 MB / 0.6496 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006117/1.633, allocations: 1.179 MB / 0.6507 GB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3695/2.003, allocations: 33.37 MB / 0.6833 GB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000712/2.004, allocations: 99.47 kB / 0.6834 GB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005511/2.009, allocations: 0.532 MB / 0.6839 GB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004711/2.014, allocations: 2.586 MB / 0.6865 GB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0878/2.102, allocations: 30.22 MB / 0.716 GB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2018/2.304, allocations: 120.4 MB / 0.8335 GB, free: 3.133 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3851/2.689, allocations: 19.45 MB / 0.8525 GB, free: 91.56 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01563/2.704, allocations: 8.724 MB / 0.861 GB, free: 91.51 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05843/2.763, allocations: 31.09 MB / 0.8914 GB, free: 83.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.113e-05/2.763, allocations: 89.77 kB / 0.8915 GB, free: 83.79 MB / 458.7 MB Notification: Performance of pre-optimization done (n=489): time 1.048e-05/2.763, allocations: 0 / 0.8915 GB, free: 83.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=726): time 0.8086/3.572, allocations: 122.2 MB / 1.011 GB, free: 85.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/3.572, allocations: 202 kB / 1.011 GB, free: 85.27 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01905/3.591, allocations: 6.906 MB / 1.018 GB, free: 84.84 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002134/3.593, allocations: 138.2 kB / 1.018 GB, free: 84.81 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005073/3.598, allocations: 6.833 MB / 1.025 GB, free: 82.14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004133/3.602, allocations: 2.578 MB / 1.027 GB, free: 80.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002941/3.605, allocations: 289.5 kB / 1.027 GB, free: 80.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001465/3.607, allocations: 0.9082 MB / 1.028 GB, free: 80.23 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02143/3.628, allocations: 10.09 MB / 1.038 GB, free: 80.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02618/3.654, allocations: 16.62 MB / 1.054 GB, free: 71.97 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02626/3.681, allocations: 12.88 MB / 1.067 GB, free: 67.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002498/3.681, allocations: 67.59 kB / 1.067 GB, free: 67.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.06244/3.744, allocations: 26.35 MB / 1.093 GB, free: 57.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001923/3.744, allocations: 101.2 kB / 1.093 GB, free: 57.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002877/3.744, allocations: 226.5 kB / 1.093 GB, free: 57.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004396/3.745, allocations: 351.3 kB / 1.093 GB, free: 57.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02568/3.77, allocations: 4.256 MB / 1.098 GB, free: 57.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005059/3.771, allocations: 467.1 kB / 1.098 GB, free: 56.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01813/3.789, allocations: 1.222 MB / 1.099 GB, free: 56.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004113/3.793, allocations: 0.7445 MB / 1.1 GB, free: 56.59 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.006879/3.8, allocations: 1.135 MB / 1.101 GB, free: 55.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003639/3.804, allocations: 0.7927 MB / 1.102 GB, free: 55.25 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04411/3.848, allocations: 19.4 MB / 1.121 GB, free: 46.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.279e-05/3.848, allocations: 75.77 kB / 1.121 GB, free: 46.44 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.429e-05/3.848, allocations: 0 / 1.121 GB, free: 46.44 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001424/3.848, allocations: 38.5 kB / 1.121 GB, free: 46.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0964/3.945, allocations: 42.29 MB / 1.162 GB, free: 11.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.321e-05/3.945, allocations: 15.89 kB / 1.162 GB, free: 11.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01665/3.961, allocations: 2.15 MB / 1.164 GB, free: 9.527 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001089/3.961, allocations: 35.78 kB / 1.164 GB, free: 9.496 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002057/3.964, allocations: 136.9 kB / 1.164 GB, free: 9.375 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.144e-05/3.964, allocations: 33.91 kB / 1.164 GB, free: 9.344 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.549e-06/3.964, allocations: 4 kB / 1.164 GB, free: 9.34 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.356/4.32, allocations: 33.6 MB / 1.197 GB, free: 75.86 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008613/4.328, allocations: 2.713 MB / 1.2 GB, free: 75.76 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003805/4.332, allocations: 125.4 kB / 1.2 GB, free: 75.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01057/4.343, allocations: 0.7583 MB / 1.201 GB, free: 75.76 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002781/4.346, allocations: 391.2 kB / 1.201 GB, free: 75.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002296/4.348, allocations: 184 kB / 1.201 GB, free: 75.75 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01257/4.361, allocations: 4.774 MB / 1.206 GB, free: 74.64 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.477e-06/4.361, allocations: 0 / 1.206 GB, free: 74.64 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0177/4.378, allocations: 3.166 MB / 1.209 GB, free: 74.32 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.002717/4.381, allocations: 426.4 kB / 1.209 GB, free: 74.14 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04489/4.426, allocations: 22.55 MB / 1.231 GB, free: 65.28 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/4.426, allocations: 3.281 kB / 1.231 GB, free: 65.28 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01871/4.445, allocations: 9.686 MB / 1.241 GB, free: 61.02 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007038/4.452, allocations: 0.8582 MB / 1.242 GB, free: 60.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08005/4.532, allocations: 30.13 MB / 1.271 GB, free: 45.35 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01998/4.552, allocations: 8.271 MB / 1.279 GB, free: 39.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01042/4.562, allocations: 0.7011 MB / 1.28 GB, free: 38.66 MB / 458.7 MB Notification: Performance of SimCode: time 2.362e-06/4.563, allocations: 0 / 1.28 GB, free: 38.66 MB / 458.7 MB Notification: Performance of Templates: time 0.5736/5.136, allocations: 183.2 MB / 1.459 GB, free: 16.18 MB / 458.7 MB