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.797/1.797, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.59e-05/3.602e-05, allocations: 4 kB / 255.3 MB, free: 3.203 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08097/0.08103, allocations: 44.49 MB / 299.8 MB, free: 6.652 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4447, allocations: 101.7 MB / 401.5 MB, free: 17.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.4449, allocations: 87.88 kB / 401.6 MB, free: 17.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.048/1.493, allocations: 234 MB / 0.6207 GB, free: 29.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.16e-06/1.493, allocations: 0 / 0.6207 GB, free: 29.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005764/1.493, allocations: 232 kB / 0.6209 GB, free: 29.43 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.0427/1.536, allocations: 12.3 MB / 0.6329 GB, free: 17.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/1.536, allocations: 12.03 kB / 0.6329 GB, free: 17.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02564/1.562, allocations: 3.979 MB / 0.6368 GB, free: 13.03 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03521/1.597, allocations: 12.18 MB / 0.6487 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001016/1.598, allocations: 0.8905 MB / 0.6496 GB, free: 15.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006285/1.605, allocations: 1.187 MB / 0.6507 GB, free: 14.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3669/1.971, allocations: 33.51 MB / 0.6834 GB, free: 41.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006341/1.972, allocations: 99.53 kB / 0.6835 GB, free: 41.37 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00524/1.977, allocations: 0.5361 MB / 0.6841 GB, free: 41.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004317/1.982, allocations: 2.584 MB / 0.6866 GB, free: 41.35 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08069/2.063, allocations: 30.6 MB / 0.7165 GB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1947/2.257, allocations: 120.4 MB / 0.834 GB, free: 2.816 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3787/2.636, allocations: 19.5 MB / 0.853 GB, free: 91.78 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01484/2.651, allocations: 8.733 MB / 0.8616 GB, free: 91.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05444/2.705, allocations: 31.09 MB / 0.8919 GB, free: 84.05 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.753e-05/2.706, allocations: 86.23 kB / 0.892 GB, free: 84.01 MB / 458.7 MB Notification: Performance of pre-optimization done (n=489): time 1.071e-05/2.706, allocations: 0 / 0.892 GB, free: 84.01 MB / 458.7 MB Notification: Performance of matching and sorting (n=726): time 0.7807/3.486, allocations: 122.2 MB / 1.011 GB, free: 85.82 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/3.486, allocations: 203 kB / 1.012 GB, free: 85.66 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01855/3.505, allocations: 6.908 MB / 1.018 GB, free: 85.23 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00215/3.507, allocations: 138.3 kB / 1.018 GB, free: 85.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005206/3.512, allocations: 6.833 MB / 1.025 GB, free: 82.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004358/3.517, allocations: 2.578 MB / 1.028 GB, free: 80.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003164/3.52, allocations: 291.7 kB / 1.028 GB, free: 80.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001452/3.522, allocations: 0.9106 MB / 1.029 GB, free: 80.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02071/3.542, allocations: 10.09 MB / 1.039 GB, free: 80.58 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02502/3.567, allocations: 16.7 MB / 1.055 GB, free: 72.32 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02534/3.593, allocations: 12.87 MB / 1.068 GB, free: 67.61 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002497/3.593, allocations: 64.78 kB / 1.068 GB, free: 67.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.06229/3.655, allocations: 26.98 MB / 1.094 GB, free: 57.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002231/3.656, allocations: 108.5 kB / 1.094 GB, free: 57.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003363/3.656, allocations: 224.8 kB / 1.094 GB, free: 57.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004481/3.656, allocations: 348.6 kB / 1.095 GB, free: 57.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02459/3.681, allocations: 4.263 MB / 1.099 GB, free: 56.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004922/3.682, allocations: 461.7 kB / 1.099 GB, free: 56.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01782/3.699, allocations: 1.222 MB / 1.1 GB, free: 56.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004016/3.703, allocations: 0.7476 MB / 1.101 GB, free: 56.36 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.006852/3.71, allocations: 1.136 MB / 1.102 GB, free: 55.44 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003496/3.714, allocations: 0.7998 MB / 1.103 GB, free: 55 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04355/3.757, allocations: 19.39 MB / 1.122 GB, free: 45.53 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.252e-05/3.758, allocations: 71.97 kB / 1.122 GB, free: 45.46 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-05/3.758, allocations: 7.938 kB / 1.122 GB, free: 45.46 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001508/3.758, allocations: 36.7 kB / 1.122 GB, free: 45.46 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09687/3.855, allocations: 42.31 MB / 1.163 GB, free: 10.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-05/3.855, allocations: 15.89 kB / 1.163 GB, free: 10.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01653/3.871, allocations: 2.15 MB / 1.165 GB, free: 8.523 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001067/3.871, allocations: 32 kB / 1.166 GB, free: 8.492 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00206/3.874, allocations: 124.9 kB / 1.166 GB, free: 8.375 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.824e-05/3.874, allocations: 33.53 kB / 1.166 GB, free: 8.344 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.477e-05/3.874, allocations: 8 kB / 1.166 GB, free: 8.336 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3488/4.223, allocations: 33.6 MB / 1.198 GB, free: 75.17 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008094/4.231, allocations: 2.705 MB / 1.201 GB, free: 75.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00358/4.234, allocations: 123.9 kB / 1.201 GB, free: 75.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01022/4.245, allocations: 0.7565 MB / 1.202 GB, free: 75.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002517/4.247, allocations: 394 kB / 1.202 GB, free: 75.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001537/4.249, allocations: 185.8 kB / 1.203 GB, free: 75.06 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01204/4.261, allocations: 4.779 MB / 1.207 GB, free: 74 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.413e-06/4.261, allocations: 0 / 1.207 GB, free: 74 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01776/4.279, allocations: 3.164 MB / 1.21 GB, free: 73.68 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.002753/4.281, allocations: 417.8 kB / 1.211 GB, free: 73.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04249/4.324, allocations: 22.91 MB / 1.233 GB, free: 64.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.355e-05/4.324, allocations: 2.938 kB / 1.233 GB, free: 64.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01794/4.342, allocations: 9.721 MB / 1.243 GB, free: 60.27 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007034/4.349, allocations: 0.8577 MB / 1.243 GB, free: 59.87 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0786/4.428, allocations: 30.17 MB / 1.273 GB, free: 44.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02132/4.449, allocations: 8.266 MB / 1.281 GB, free: 38.21 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01069/4.46, allocations: 0.7084 MB / 1.282 GB, free: 37.54 MB / 458.7 MB Notification: Performance of SimCode: time 2.398e-06/4.46, allocations: 0 / 1.282 GB, free: 37.54 MB / 458.7 MB Notification: Performance of Templates: time 0.6042/5.064, allocations: 185.6 MB / 1.463 GB, free: 12.23 MB / 458.7 MB