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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadModel(Modelica): time 2.036/2.036, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.721e-05/2.728e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.41 MB / 345 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.4422/0.5518, allocations: 90.92 MB / 435.9 MB, free: 2.344 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06017/0.612, allocations: 20.02 MB / 455.9 MB, free: 7.207 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02449/0.6366, allocations: 497.7 kB / 456.4 MB, free: 7.137 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01768/0.6543, allocations: 4.698 MB / 461.1 MB, free: 3.078 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05103/0.7054, allocations: 12.38 MB / 473.5 MB, free: 6.668 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01074/0.7162, allocations: 1.97 MB / 475.4 MB, free: 4.695 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0122/0.7284, allocations: 3.982 MB / 479.4 MB, free: 0.707 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03788/0.7664, allocations: 16.9 MB / 496.3 MB, free: 15.73 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006499/0.7729, allocations: 2.362 MB / 498.7 MB, free: 13.36 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008363/0.7814, allocations: 3.55 MB / 0.4905 GB, free: 9.805 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005946/0.7874, allocations: 1.408 MB / 0.4918 GB, free: 8.395 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003193/0.7906, allocations: 324 kB / 0.4922 GB, free: 8.078 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007645/0.7983, allocations: 4.173 MB / 0.4962 GB, free: 3.895 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003925/0.8023, allocations: 0.7109 MB / 0.4969 GB, free: 3.184 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02859/0.8309, allocations: 18.47 MB / 0.515 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.831, allocations: 0 / 0.515 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.831, allocations: 0 / 0.515 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008041/0.8318, allocations: 0 / 0.515 GB, free: 0.6719 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.04666/0.8785, allocations: 11.74 MB / 0.5264 GB, free: 4.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.8786, allocations: 12.03 kB / 0.5264 GB, free: 4.828 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02862/0.9072, allocations: 3.725 MB / 0.5301 GB, free: 1.082 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.024/0.9313, allocations: 7.383 MB / 0.5373 GB, free: 9.621 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001071/0.9324, allocations: 0.7456 MB / 0.538 GB, free: 8.875 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006151/0.9386, allocations: 1.101 MB / 0.5391 GB, free: 7.773 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7185/1.657, allocations: 34.79 MB / 0.5731 GB, free: 142.4 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000645/1.658, allocations: 77.53 kB / 0.5731 GB, free: 142.4 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004649/1.662, allocations: 458.6 kB / 0.5736 GB, free: 142.1 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01252/1.675, allocations: 4.545 MB / 0.578 GB, free: 141.3 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1124/1.788, allocations: 32.92 MB / 0.6102 GB, free: 119.7 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2036/1.991, allocations: 114 MB / 0.7215 GB, free: 4.441 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1005/2.092, allocations: 18.68 MB / 0.7397 GB, free: 1.605 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3927/2.485, allocations: 32.69 MB / 0.7716 GB, free: 136.2 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.125e-05/2.485, allocations: 82.39 kB / 0.7717 GB, free: 136.1 MB / 474.8 MB Notification: Performance of pre-optimization done (n=489): time 9.628e-06/2.485, allocations: 0 / 0.7717 GB, free: 136.1 MB / 474.8 MB Notification: Performance of matching and sorting (n=726): time 1.583/4.067, allocations: 171.4 MB / 0.9391 GB, free: 128 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001794/4.067, allocations: 201.2 kB / 0.9393 GB, free: 127.9 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02757/4.095, allocations: 7.485 MB / 0.9466 GB, free: 125.2 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.003558/4.099, allocations: 141 kB / 0.9468 GB, free: 125.1 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.008367/4.107, allocations: 6.816 MB / 0.9534 GB, free: 119.8 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.006997/4.114, allocations: 2.578 MB / 0.956 GB, free: 117.8 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004725/4.119, allocations: 286.2 kB / 0.9562 GB, free: 117.6 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.002166/4.121, allocations: 0.9043 MB / 0.9571 GB, free: 117 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0412/4.163, allocations: 10.53 MB / 0.9674 GB, free: 112.7 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04776/4.21, allocations: 17.08 MB / 0.9841 GB, free: 99.71 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04901/4.26, allocations: 13.21 MB / 0.997 GB, free: 89.65 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002865/4.26, allocations: 64 kB / 0.997 GB, free: 89.59 MB / 474.8 MB Notification: Performance of matching and sorting (n=1865) (initialization): time 0.1144/4.374, allocations: 27.81 MB / 1.024 GB, free: 63.27 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000262/4.375, allocations: 107.1 kB / 1.024 GB, free: 63.17 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000471/4.375, allocations: 220.9 kB / 1.025 GB, free: 62.96 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005542/4.376, allocations: 348 kB / 1.025 GB, free: 62.62 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.05826/4.434, allocations: 4.47 MB / 1.029 GB, free: 58.14 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005228/4.435, allocations: 462.2 kB / 1.03 GB, free: 57.69 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02124/4.456, allocations: 1.144 MB / 1.031 GB, free: 56.54 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003977/4.46, allocations: 0.7433 MB / 1.031 GB, free: 55.8 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1021 * Number of states: 0 () * Number of discrete variables: 102 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1835): * Single equations (assignments): 1829 * 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.01624/4.476, allocations: 5.384 MB / 1.037 GB, free: 50.4 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004096/4.48, allocations: 0.7982 MB / 1.038 GB, free: 49.59 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05469/4.535, allocations: 19.91 MB / 1.057 GB, free: 29.6 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/4.535, allocations: 72 kB / 1.057 GB, free: 29.53 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.151e-05/4.535, allocations: 0 / 1.057 GB, free: 29.53 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001991/4.535, allocations: 35.88 kB / 1.057 GB, free: 29.5 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4625/4.998, allocations: 43.02 MB / 1.099 GB, free: 121.3 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.091e-05/4.998, allocations: 10.41 kB / 1.099 GB, free: 121.3 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0269/5.025, allocations: 2.407 MB / 1.101 GB, free: 121.2 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001415/5.025, allocations: 37.61 kB / 1.101 GB, free: 121.2 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002544/5.028, allocations: 128.5 kB / 1.102 GB, free: 121.1 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001304/5.028, allocations: 31.41 kB / 1.102 GB, free: 121.1 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/5.028, allocations: 7.906 kB / 1.102 GB, free: 121.1 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07871/5.107, allocations: 34.41 MB / 1.135 GB, free: 104.6 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009764/5.117, allocations: 2.741 MB / 1.138 GB, free: 103.5 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004984/5.122, allocations: 119.3 kB / 1.138 GB, free: 103.5 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01431/5.136, allocations: 0.7471 MB / 1.139 GB, free: 103.4 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002979/5.139, allocations: 389.4 kB / 1.139 GB, free: 103.3 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002339/5.141, allocations: 187 kB / 1.139 GB, free: 103.3 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01307/5.154, allocations: 5.272 MB / 1.144 GB, free: 99.89 MB / 474.8 MB Notification: Performance of sort global known variables: time 6.31e-07/5.154, allocations: 3.25 kB / 1.144 GB, free: 99.89 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01815/5.173, allocations: 3.181 MB / 1.148 GB, free: 96.74 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.003479/5.176, allocations: 409.5 kB / 1.148 GB, free: 96.38 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.05366/5.23, allocations: 23.57 MB / 1.171 GB, free: 75.37 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/5.23, allocations: 0 / 1.171 GB, free: 75.37 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0232/5.253, allocations: 9.968 MB / 1.181 GB, free: 66.41 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008357/5.262, allocations: 0.8616 MB / 1.182 GB, free: 65.66 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09417/5.356, allocations: 38.98 MB / 1.22 GB, free: 27.11 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02353/5.379, allocations: 8.267 MB / 1.228 GB, free: 18.8 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01857/5.398, allocations: 0.7103 MB / 1.228 GB, free: 18.09 MB / 474.8 MB Notification: Performance of SimCode: time 2.244e-06/5.398, allocations: 0 / 1.228 GB, free: 18.09 MB / 474.8 MB Notification: Performance of Templates: time 0.8078/6.206, allocations: 187 MB / 1.411 GB, free: 10.83 MB / 490.8 MB