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 2.163/2.163, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.026e-05, allocations: 4 kB / 258.8 MB, free: 8.699 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3077, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.1604/0.4682, allocations: 87.35 MB / 390.6 MB, free: 6.16 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07219/0.5405, allocations: 19.21 MB / 409.8 MB, free: 2.891 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02228/0.5628, allocations: 486.9 kB / 410.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01747/0.5804, allocations: 4.592 MB / 414.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05051/0.6309, allocations: 11.83 MB / 426.7 MB, free: 1.941 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.3289/0.9599, allocations: 1.977 MB / 428.7 MB, free: 3.352 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.9721, allocations: 3.968 MB / 432.7 MB, free: 3.312 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03326/1.005, allocations: 16.9 MB / 449.6 MB, free: 18.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006368/1.012, allocations: 2.372 MB / 452 MB, free: 18.06 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007931/1.02, allocations: 3.547 MB / 455.5 MB, free: 18.04 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006167/1.026, allocations: 1.457 MB / 457 MB, free: 18.04 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003523/1.03, allocations: 331.1 kB / 457.3 MB, free: 18.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00744/1.037, allocations: 4.175 MB / 461.5 MB, free: 18.04 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004846/1.042, allocations: 0.7097 MB / 462.2 MB, free: 18.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02779/1.07, allocations: 18.51 MB / 480.7 MB, free: 7.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/1.07, allocations: 3.938 kB / 480.7 MB, free: 7.816 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.337e-06/1.07, allocations: 0 / 480.7 MB, free: 7.816 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0009033/1.071, allocations: 0 / 480.7 MB, free: 7.816 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.05119/1.122, allocations: 11.93 MB / 492.6 MB, free: 12.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/1.122, allocations: 8.031 kB / 492.6 MB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02968/1.152, allocations: 3.728 MB / 496.4 MB, free: 9.312 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02802/1.18, allocations: 7.866 MB / 0.4924 GB, free: 4.008 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001433/1.181, allocations: 0.7376 MB / 0.4931 GB, free: 3.594 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008708/1.19, allocations: 1.098 MB / 0.4942 GB, free: 2.867 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1462/1.336, allocations: 34.92 MB / 0.5283 GB, free: 8.734 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005778/1.337, allocations: 89.36 kB / 0.5284 GB, free: 8.691 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005067/1.342, allocations: 452.9 kB / 0.5288 GB, free: 8.574 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01092/1.353, allocations: 4.314 MB / 0.533 GB, free: 5.117 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.126/1.479, allocations: 32.91 MB / 0.5652 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7924/2.272, allocations: 113.9 MB / 0.6764 GB, free: 116.2 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.09505/2.367, allocations: 18.68 MB / 0.6947 GB, free: 99.41 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08506/2.452, allocations: 32.71 MB / 0.7266 GB, free: 65.59 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001131/2.452, allocations: 89.58 kB / 0.7267 GB, free: 65.5 MB / 474.8 MB Notification: Performance of pre-optimization done (n=489): time 1.313e-05/2.452, allocations: 0 / 0.7267 GB, free: 65.5 MB / 474.8 MB Notification: Performance of matching and sorting (n=726): time 1.546/3.998, allocations: 171.6 MB / 0.8943 GB, free: 105.3 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/3.998, allocations: 205.8 kB / 0.8945 GB, free: 105.1 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01743/4.016, allocations: 7.492 MB / 0.9018 GB, free: 97.61 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002733/4.018, allocations: 142.5 kB / 0.9019 GB, free: 97.46 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005453/4.024, allocations: 6.822 MB / 0.9086 GB, free: 90.64 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005008/4.029, allocations: 2.57 MB / 0.9111 GB, free: 88.09 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003565/4.032, allocations: 287.7 kB / 0.9114 GB, free: 87.82 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001233/4.034, allocations: 0.9065 MB / 0.9122 GB, free: 86.9 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02565/4.059, allocations: 10.53 MB / 0.9225 GB, free: 76.36 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03003/4.089, allocations: 17.06 MB / 0.9392 GB, free: 56.19 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03136/4.121, allocations: 13.19 MB / 0.9521 GB, free: 42.97 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002007/4.121, allocations: 64 kB / 0.9521 GB, free: 42.91 MB / 474.8 MB Notification: Performance of matching and sorting (n=1862) (initialization): time 0.3799/4.501, allocations: 27.78 MB / 0.9793 GB, free: 156.4 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001949/4.501, allocations: 98.53 kB / 0.9794 GB, free: 156.4 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004163/4.502, allocations: 225.1 kB / 0.9796 GB, free: 156.4 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000429/4.502, allocations: 346.6 kB / 0.9799 GB, free: 156.4 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03834/4.541, allocations: 4.466 MB / 0.9843 GB, free: 156 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006177/4.541, allocations: 456.9 kB / 0.9847 GB, free: 155.9 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02905/4.57, allocations: 1.139 MB / 0.9858 GB, free: 155.7 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006239/4.577, allocations: 0.7398 MB / 0.9865 GB, free: 155.6 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1018 * 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 (1832): * Single equations (assignments): 1826 * 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.02443/4.601, allocations: 5.383 MB / 0.9918 GB, free: 153.1 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005891/4.607, allocations: 0.8009 MB / 0.9926 GB, free: 153.1 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07969/4.687, allocations: 19.91 MB / 1.012 GB, free: 139.3 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.274e-05/4.687, allocations: 68 kB / 1.012 GB, free: 139.2 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.137e-05/4.687, allocations: 4 kB / 1.012 GB, free: 139.2 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001859/4.687, allocations: 34.69 kB / 1.012 GB, free: 139.2 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1137/4.801, allocations: 43.03 MB / 1.054 GB, free: 97.57 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.109e-05/4.801, allocations: 8 kB / 1.054 GB, free: 97.57 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02743/4.828, allocations: 2.402 MB / 1.057 GB, free: 95.16 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001186/4.829, allocations: 32 kB / 1.057 GB, free: 95.13 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00249/4.831, allocations: 131.9 kB / 1.057 GB, free: 95 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.314e-05/4.831, allocations: 35.92 kB / 1.057 GB, free: 94.97 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/4.831, allocations: 10.91 kB / 1.057 GB, free: 94.96 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08836/4.92, allocations: 34.41 MB / 1.09 GB, free: 60.59 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01318/4.933, allocations: 2.749 MB / 1.093 GB, free: 57.85 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006083/4.939, allocations: 124 kB / 1.093 GB, free: 57.73 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01905/4.958, allocations: 0.7448 MB / 1.094 GB, free: 56.99 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003892/4.962, allocations: 384.5 kB / 1.094 GB, free: 56.61 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003053/4.965, allocations: 184 kB / 1.094 GB, free: 56.43 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01374/4.979, allocations: 5.282 MB / 1.1 GB, free: 51.16 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.353e-06/4.979, allocations: 4 kB / 1.1 GB, free: 51.16 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01875/4.998, allocations: 3.183 MB / 1.103 GB, free: 47.99 MB / 474.8 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.003863/5.002, allocations: 405.2 kB / 1.103 GB, free: 47.61 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.3474/5.349, allocations: 23.55 MB / 1.126 GB, free: 166.8 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/5.349, allocations: 7.938 kB / 1.126 GB, free: 166.8 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02251/5.372, allocations: 9.97 MB / 1.136 GB, free: 162.4 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008081/5.38, allocations: 0.8592 MB / 1.137 GB, free: 161.9 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09818/5.478, allocations: 38.99 MB / 1.175 GB, free: 137.9 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02027/5.498, allocations: 8.271 MB / 1.183 GB, free: 131.6 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01397/5.512, allocations: 0.7142 MB / 1.183 GB, free: 130.9 MB / 474.8 MB Notification: Performance of SimCode: time 2.154e-06/5.513, allocations: 0 / 1.183 GB, free: 130.9 MB / 474.8 MB Notification: Performance of Templates: time 0.786/6.299, allocations: 187 MB / 1.366 GB, free: 83.57 MB / 474.8 MB