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.922/1.922, allocations: 171.1 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.221e-05, allocations: 4 kB / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.08786, allocations: 38.77 MB / 266.9 MB, free: 1.117 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.3698/0.4577, allocations: 87.34 MB / 354.2 MB, free: 9.219 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.06036/0.5181, allocations: 19.19 MB / 373.4 MB, free: 5.973 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02362/0.5418, allocations: 474.9 kB / 373.9 MB, free: 5.508 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.018/0.5598, allocations: 4.596 MB / 378.5 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0494/0.6092, allocations: 11.83 MB / 390.3 MB, free: 5.023 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01116/0.6204, allocations: 1.99 MB / 392.3 MB, free: 3.031 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01259/0.6331, allocations: 3.969 MB / 396.3 MB, free: 15.06 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03701/0.6701, allocations: 16.91 MB / 413.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006462/0.6766, allocations: 2.373 MB / 415.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008267/0.685, allocations: 3.55 MB / 419.1 MB, free: 8.133 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005798/0.6908, allocations: 1.447 MB / 420.6 MB, free: 6.684 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003126/0.694, allocations: 332 kB / 420.9 MB, free: 6.359 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007436/0.7015, allocations: 4.177 MB / 425.1 MB, free: 2.172 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004002/0.7055, allocations: 0.7109 MB / 425.8 MB, free: 1.461 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.6249/1.33, allocations: 18.51 MB / 444.3 MB, free: 22.21 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/1.33, allocations: 0.8438 kB / 444.3 MB, free: 22.21 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.965e-06/1.33, allocations: 0 / 444.3 MB, free: 22.21 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0008314/1.331, allocations: 2.281 kB / 444.3 MB, free: 22.21 MB / 362.8 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.05125/1.383, allocations: 11.94 MB / 456.2 MB, free: 18.17 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/1.383, allocations: 8.5 kB / 456.2 MB, free: 18.17 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02961/1.412, allocations: 3.727 MB / 460 MB, free: 17.41 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0273/1.44, allocations: 7.866 MB / 467.8 MB, free: 16.3 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001039/1.441, allocations: 0.7459 MB / 468.6 MB, free: 16.28 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006924/1.448, allocations: 1.099 MB / 469.7 MB, free: 16.27 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1241/1.572, allocations: 34.92 MB / 0.4928 GB, free: 2.582 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00062/1.573, allocations: 84.17 kB / 0.4928 GB, free: 2.543 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005896/1.578, allocations: 453.9 kB / 0.4933 GB, free: 2.426 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009791/1.588, allocations: 4.306 MB / 0.4975 GB, free: 14.98 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1246/1.713, allocations: 32.91 MB / 0.5296 GB, free: 8.344 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5343/2.247, allocations: 113.9 MB / 0.6409 GB, free: 140.7 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.09477/2.342, allocations: 18.69 MB / 0.6591 GB, free: 139.7 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06926/2.411, allocations: 32.72 MB / 0.6911 GB, free: 115.7 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.174e-05/2.412, allocations: 81.98 kB / 0.6912 GB, free: 115.6 MB / 458.8 MB Notification: Performance of pre-optimization done (n=489): time 9.027e-06/2.412, allocations: 4.25 kB / 0.6912 GB, free: 115.6 MB / 458.8 MB Notification: Performance of matching and sorting (n=726): time 1.465/3.876, allocations: 171.6 MB / 0.8587 GB, free: 169 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/3.877, allocations: 201.8 kB / 0.8589 GB, free: 168.7 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01719/3.894, allocations: 7.502 MB / 0.8663 GB, free: 162.4 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002519/3.896, allocations: 138.9 kB / 0.8664 GB, free: 162.2 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005331/3.902, allocations: 6.815 MB / 0.873 GB, free: 155.9 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004879/3.907, allocations: 2.572 MB / 0.8756 GB, free: 153.4 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003328/3.91, allocations: 284.5 kB / 0.8758 GB, free: 153.1 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001333/3.911, allocations: 0.9065 MB / 0.8767 GB, free: 152.2 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02492/3.936, allocations: 10.54 MB / 0.887 GB, free: 141.6 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02925/3.966, allocations: 17.05 MB / 0.9037 GB, free: 121.7 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03093/3.997, allocations: 13.2 MB / 0.9165 GB, free: 108.6 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002361/3.997, allocations: 67.98 kB / 0.9166 GB, free: 108.5 MB / 458.8 MB Notification: Performance of matching and sorting (n=1862) (initialization): time 0.07141/4.068, allocations: 27.79 MB / 0.9437 GB, free: 80.68 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001582/4.069, allocations: 104.8 kB / 0.9438 GB, free: 80.59 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003157/4.069, allocations: 231.9 kB / 0.9441 GB, free: 80.36 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003412/4.069, allocations: 344 kB / 0.9444 GB, free: 80.02 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03804/4.107, allocations: 4.465 MB / 0.9488 GB, free: 75.55 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005039/4.108, allocations: 458.2 kB / 0.9492 GB, free: 75.1 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02123/4.129, allocations: 1.135 MB / 0.9503 GB, free: 73.96 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003961/4.133, allocations: 0.7355 MB / 0.951 GB, free: 73.23 MB / 458.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.01607/4.149, allocations: 5.383 MB / 0.9563 GB, free: 67.82 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003983/4.153, allocations: 0.7984 MB / 0.9571 GB, free: 67.02 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05346/4.207, allocations: 19.92 MB / 0.9765 GB, free: 47.02 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001141/4.207, allocations: 72 kB / 0.9766 GB, free: 46.95 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.239e-05/4.207, allocations: 0 / 0.9766 GB, free: 46.95 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001743/4.207, allocations: 39.8 kB / 0.9766 GB, free: 46.91 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3891/4.596, allocations: 43.02 MB / 1.019 GB, free: 164.9 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.501e-05/4.596, allocations: 8.812 kB / 1.019 GB, free: 164.9 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02743/4.624, allocations: 2.407 MB / 1.021 GB, free: 164.8 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001523/4.624, allocations: 31.06 kB / 1.021 GB, free: 164.8 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00281/4.627, allocations: 135.5 kB / 1.021 GB, free: 164.7 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001141/4.627, allocations: 34.06 kB / 1.021 GB, free: 164.7 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/4.627, allocations: 7.812 kB / 1.021 GB, free: 164.7 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07772/4.705, allocations: 34.41 MB / 1.055 GB, free: 140.5 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01016/4.715, allocations: 2.749 MB / 1.057 GB, free: 138.5 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005138/4.72, allocations: 120 kB / 1.058 GB, free: 138.4 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01474/4.735, allocations: 0.7446 MB / 1.058 GB, free: 138 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002934/4.738, allocations: 389.8 kB / 1.059 GB, free: 137.7 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002318/4.74, allocations: 188.7 kB / 1.059 GB, free: 137.5 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01302/4.753, allocations: 5.271 MB / 1.064 GB, free: 133.2 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.753e-06/4.753, allocations: 0 / 1.064 GB, free: 133.2 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01915/4.773, allocations: 3.184 MB / 1.067 GB, free: 130 MB / 458.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.003616/4.776, allocations: 414.4 kB / 1.068 GB, free: 129.6 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.05366/4.83, allocations: 23.55 MB / 1.091 GB, free: 106.2 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/4.83, allocations: 7.281 kB / 1.091 GB, free: 106.2 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.023/4.853, allocations: 9.972 MB / 1.1 GB, free: 96.2 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008727/4.862, allocations: 0.8562 MB / 1.101 GB, free: 95.37 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09747/4.959, allocations: 38.99 MB / 1.139 GB, free: 56.5 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01938/4.979, allocations: 8.271 MB / 1.147 GB, free: 48.2 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01365/4.993, allocations: 0.7142 MB / 1.148 GB, free: 47.48 MB / 458.8 MB Notification: Performance of SimCode: time 1.683e-06/4.993, allocations: 0 / 1.148 GB, free: 47.48 MB / 458.8 MB Notification: Performance of Templates: time 0.9904/5.983, allocations: 187 MB / 1.331 GB, free: 140 MB / 458.8 MB