Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 1.782/1.782, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.131e-05/4.147e-05, allocations: 2.844 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08289/0.08296, allocations: 44.5 MB / 299.8 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3505/0.4335, allocations: 92.8 MB / 392.6 MB, free: 19.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.4338, allocations: 88.84 kB / 392.7 MB, free: 19.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2738/0.7077, allocations: 73.98 MB / 466.7 MB, free: 5.773 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.18e-06/0.7077, allocations: 0 / 466.7 MB, free: 5.773 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001966/0.7079, allocations: 75.98 kB / 466.8 MB, free: 5.699 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1323 * Number of variables: 1323 Notification: Performance of Generate backend data structure: time 0.01105/0.719, allocations: 3.425 MB / 470.2 MB, free: 2.215 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.7191, allocations: 12.03 kB / 470.2 MB, free: 2.203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01321/0.7323, allocations: 2.261 MB / 472.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01292/0.7452, allocations: 3.893 MB / 476.4 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003983/0.7457, allocations: 279.1 kB / 476.6 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001612/0.7473, allocations: 363.9 kB / 477 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02695/0.7743, allocations: 10.25 MB / 487.2 MB, free: 144 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001697/0.7745, allocations: 59.47 kB / 487.3 MB, free: 84 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008164/0.7753, allocations: 179.9 kB / 487.5 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001999/0.7773, allocations: 0.9819 MB / 488.5 MB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02363/0.801, allocations: 8.473 MB / 496.9 MB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2932/1.094, allocations: 44.35 MB / 0.5286 GB, free: 53.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01216/1.106, allocations: 3.539 MB / 0.5321 GB, free: 52.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00298/1.109, allocations: 1.724 MB / 0.5337 GB, free: 52.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01288/1.122, allocations: 7.16 MB / 0.5407 GB, free: 50.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/1.122, allocations: 51.39 kB / 0.5408 GB, free: 50.47 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 5.543e-06/1.122, allocations: 0 / 0.5408 GB, free: 50.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=155): time 0.05721/1.18, allocations: 14.36 MB / 0.5548 GB, free: 47.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/1.18, allocations: 148.5 kB / 0.5549 GB, free: 47.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005281/1.185, allocations: 3.035 MB / 0.5579 GB, free: 47.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/1.185, allocations: 46.67 kB / 0.5579 GB, free: 47.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/1.187, allocations: 2.671 MB / 0.5606 GB, free: 45.97 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005985/1.188, allocations: 0.6044 MB / 0.5611 GB, free: 45.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003279/1.188, allocations: 109.7 kB / 0.5613 GB, free: 45.64 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003142/1.188, allocations: 0.5399 MB / 0.5618 GB, free: 45.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003581/1.192, allocations: 1.835 MB / 0.5636 GB, free: 45.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005294/1.197, allocations: 5.204 MB / 0.5687 GB, free: 40.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005715/1.203, allocations: 3.051 MB / 0.5716 GB, free: 39.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.717e-05/1.203, allocations: 36.31 kB / 0.5717 GB, free: 39.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.01919/1.222, allocations: 7.789 MB / 0.5793 GB, free: 37.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.787e-05/1.222, allocations: 62.59 kB / 0.5793 GB, free: 37.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/1.222, allocations: 119 kB / 0.5794 GB, free: 37.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005466/1.228, allocations: 1.307 MB / 0.5807 GB, free: 37.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005569/1.234, allocations: 1.258 MB / 0.582 GB, free: 36.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/1.245, allocations: 6.108 MB / 0.5879 GB, free: 34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005879/1.251, allocations: 349.3 kB / 0.5882 GB, free: 33.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/1.252, allocations: 337.9 kB / 0.5886 GB, free: 33.85 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (665): * Single equations (assignments): 661 * 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,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001221/1.254, allocations: 0.516 MB / 0.5891 GB, free: 33.42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006962/1.254, allocations: 306.7 kB / 0.5894 GB, free: 33.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008935/1.263, allocations: 3.242 MB / 0.5925 GB, free: 32.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.296e-05/1.263, allocations: 17.7 kB / 0.5926 GB, free: 32.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.484e-05/1.263, allocations: 2.906 kB / 0.5926 GB, free: 32.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.282e-05/1.263, allocations: 11.22 kB / 0.5926 GB, free: 32.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01822/1.282, allocations: 7.3 MB / 0.5997 GB, free: 27.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.453e-05/1.282, allocations: 11.94 kB / 0.5997 GB, free: 27.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/1.283, allocations: 238.8 kB / 0.5999 GB, free: 26.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004618/1.288, allocations: 1.112 MB / 0.601 GB, free: 26.28 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002983/1.288, allocations: 28.78 kB / 0.601 GB, free: 26.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009979/1.298, allocations: 5.729 MB / 0.6066 GB, free: 21.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.461e-06/1.298, allocations: 6.281 kB / 0.6066 GB, free: 21.28 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01111/1.309, allocations: 5.554 MB / 0.6121 GB, free: 16.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/1.311, allocations: 0.5665 MB / 0.6126 GB, free: 16.04 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006829/1.312, allocations: 20 kB / 0.6126 GB, free: 16.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002116/1.314, allocations: 116.1 kB / 0.6128 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003201/1.314, allocations: 88.22 kB / 0.6128 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001679/1.314, allocations: 36.62 kB / 0.6129 GB, free: 15.86 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004033/1.319, allocations: 2.085 MB / 0.6149 GB, free: 14.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.369e-06/1.319, allocations: 0 / 0.6149 GB, free: 14.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005741/1.324, allocations: 0.8953 MB / 0.6158 GB, free: 13.13 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 115 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004764/1.325, allocations: 178 kB / 0.616 GB, free: 12.96 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008538/1.333, allocations: 4.566 MB / 0.6204 GB, free: 8.805 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.014e-06/1.333, allocations: 4.75 kB / 0.6204 GB, free: 8.801 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002717/1.336, allocations: 1.457 MB / 0.6218 GB, free: 7.477 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/1.339, allocations: 312.9 kB / 0.6221 GB, free: 7.199 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01593/1.355, allocations: 6.961 MB / 0.6289 GB, free: 1.113 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004799/1.359, allocations: 2.894 MB / 0.6318 GB, free: 14.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/1.361, allocations: 254.7 kB / 0.632 GB, free: 14.65 MB / 410.7 MB Notification: Performance of SimCode: time 1.82e-06/1.361, allocations: 0 / 0.632 GB, free: 14.65 MB / 410.7 MB Notification: Performance of Templates: time 0.4202/1.781, allocations: 62.11 MB / 0.6927 GB, free: 100.5 MB / 426.7 MB