Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadModel(Modelica): time 1.882/1.882, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.654e-05/2.677e-05, allocations: 4 kB / 255.4 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07804/0.07809, allocations: 44.5 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.345/0.4231, allocations: 84.71 MB / 384.6 MB, free: 20.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.4234, allocations: 88.25 kB / 384.7 MB, free: 20.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2101/0.6335, allocations: 56.72 MB / 441.4 MB, free: 12.65 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.762e-06/0.6336, allocations: 0 / 441.4 MB, free: 12.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001475/0.6338, allocations: 48 kB / 441.4 MB, free: 12.61 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 931 * Number of variables: 931 Notification: Performance of Generate backend data structure: time 0.008168/0.6419, allocations: 2.526 MB / 444 MB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.642, allocations: 8.031 kB / 444 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/0.6535, allocations: 1.976 MB / 445.9 MB, free: 8.234 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01093/0.6645, allocations: 3.269 MB / 449.2 MB, free: 5.477 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/0.6648, allocations: 173.8 kB / 449.4 MB, free: 5.359 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009746/0.6658, allocations: 235.8 kB / 449.6 MB, free: 5.188 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01503/0.6808, allocations: 6.693 MB / 456.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00014/0.681, allocations: 39.62 kB / 456.3 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005507/0.6816, allocations: 131.9 kB / 456.5 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001425/0.683, allocations: 0.7072 MB / 457.2 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.6968, allocations: 5.567 MB / 462.7 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04592/0.7427, allocations: 33.3 MB / 496 MB, free: 6.324 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006145/0.7489, allocations: 2.266 MB / 498.3 MB, free: 3.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001967/0.751, allocations: 1.011 MB / 499.3 MB, free: 2.887 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.005e-05/0.7511, allocations: 15.92 kB / 499.3 MB, free: 2.871 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.716e-05/0.7511, allocations: 46.31 kB / 499.4 MB, free: 2.816 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 4.883e-06/0.7511, allocations: 0 / 499.4 MB, free: 2.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.02296/0.7741, allocations: 6.999 MB / 0.4945 GB, free: 11.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.7742, allocations: 144.5 kB / 0.4947 GB, free: 11.52 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005197/0.7795, allocations: 2.481 MB / 0.4971 GB, free: 9.016 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002221/0.7797, allocations: 45.69 kB / 0.4971 GB, free: 8.965 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002079/0.7818, allocations: 2.054 MB / 0.4991 GB, free: 6.883 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006514/0.7825, allocations: 442.6 kB / 0.4995 GB, free: 6.445 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00031/0.7828, allocations: 84 kB / 0.4996 GB, free: 6.363 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004356/0.7833, allocations: 0.4886 MB / 0.5001 GB, free: 5.863 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002906/0.7862, allocations: 1.356 MB / 0.5014 GB, free: 4.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005761/0.792, allocations: 4.112 MB / 0.5054 GB, free: 14.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005144/0.7971, allocations: 2.359 MB / 0.5077 GB, free: 12.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-05/0.7973, allocations: 28 kB / 0.5078 GB, free: 12.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.01538/0.8127, allocations: 5.595 MB / 0.5132 GB, free: 6.988 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.988e-05/0.8128, allocations: 55.61 kB / 0.5133 GB, free: 6.938 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001386/0.813, allocations: 104 kB / 0.5134 GB, free: 6.836 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003127/0.8161, allocations: 0.7967 MB / 0.5142 GB, free: 6.035 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004558/0.8207, allocations: 0.9903 MB / 0.5151 GB, free: 5.043 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007894/0.8286, allocations: 4.11 MB / 0.5191 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004546/0.8332, allocations: 283.5 kB / 0.5194 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009401/0.8342, allocations: 272 kB / 0.5197 GB, free: 264 kB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 15 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (528): * Single equations (assignments): 524 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2209/1.055, allocations: 436.4 kB / 0.5201 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005609/1.056, allocations: 230.2 kB / 0.5203 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005405/1.061, allocations: 1.836 MB / 0.5221 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-05/1.061, allocations: 12.5 kB / 0.5221 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/1.061, allocations: 6.562 kB / 0.5221 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.293e-05/1.061, allocations: 5.438 kB / 0.5221 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/1.074, allocations: 4.789 MB / 0.5268 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/1.074, allocations: 1.406 kB / 0.5268 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000946/1.075, allocations: 146 kB / 0.5269 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002622/1.078, allocations: 0.6364 MB / 0.5276 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/1.078, allocations: 21.88 kB / 0.5276 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00591/1.084, allocations: 3.628 MB / 0.5311 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.544e-06/1.084, allocations: 8.766 kB / 0.5311 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007628/1.091, allocations: 3.747 MB / 0.5348 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/1.093, allocations: 439.4 kB / 0.5352 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003596/1.093, allocations: 20.08 kB / 0.5352 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/1.094, allocations: 64.58 kB / 0.5353 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/1.095, allocations: 61.34 kB / 0.5354 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/1.095, allocations: 40.61 kB / 0.5354 GB, free: 106.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003124/1.098, allocations: 1.711 MB / 0.5371 GB, free: 106.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.035e-06/1.098, allocations: 0 / 0.5371 GB, free: 106.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004433/1.102, allocations: 0.6406 MB / 0.5377 GB, free: 106.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (75): * Single equations (assignments): 71 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000388/1.103, allocations: 157.9 kB / 0.5378 GB, free: 106.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006167/1.109, allocations: 3.188 MB / 0.541 GB, free: 106.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.905e-06/1.109, allocations: 0 / 0.541 GB, free: 106.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/1.111, allocations: 0.9034 MB / 0.5418 GB, free: 106.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/1.112, allocations: 227.8 kB / 0.5421 GB, free: 106 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009222/1.121, allocations: 4.683 MB / 0.5466 GB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/1.124, allocations: 2.237 MB / 0.5488 GB, free: 104.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008264/1.125, allocations: 196.8 kB / 0.549 GB, free: 104.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.822e-06/1.125, allocations: 0 / 0.549 GB, free: 104.4 MB / 410.7 MB Notification: Performance of Templates: time 0.06226/1.187, allocations: 44.59 MB / 0.5926 GB, free: 83.33 MB / 410.7 MB