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 2.18/2.18, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.573e-05/2.584e-05, allocations: 0 / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2875, allocations: 44.51 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1836/0.4711, allocations: 92.13 MB / 386.3 MB, free: 5.816 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.4715, allocations: 87.95 kB / 386.3 MB, free: 5.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4819/0.9534, allocations: 72.4 MB / 458.7 MB, free: 88.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.9534, allocations: 0 / 458.7 MB, free: 88.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001423/0.9536, allocations: 63.69 kB / 458.8 MB, free: 88.25 MB / 362.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.009556/0.9631, allocations: 3.423 MB / 462.2 MB, free: 85.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.9632, allocations: 15.69 kB / 462.2 MB, free: 85.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0122/0.9754, allocations: 2.26 MB / 464.5 MB, free: 84.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01096/0.9864, allocations: 3.888 MB / 468.4 MB, free: 80.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001981/0.9867, allocations: 116 kB / 468.5 MB, free: 80.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001386/0.9881, allocations: 208 kB / 468.7 MB, free: 79.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01079/0.9989, allocations: 5.507 MB / 474.2 MB, free: 74.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01597/1.015, allocations: 8.455 MB / 482.7 MB, free: 64.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001461/1.015, allocations: 51.47 kB / 482.7 MB, free: 64.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00065/1.016, allocations: 31.81 kB / 482.7 MB, free: 64.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00152/1.017, allocations: 0.9818 MB / 483.7 MB, free: 63.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04656/1.064, allocations: 43.42 MB / 0.5148 GB, free: 19.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003899/1.068, allocations: 2.686 MB / 0.5174 GB, free: 16.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002451/1.07, allocations: 1.619 MB / 0.519 GB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000577/1.071, allocations: 0.5475 MB / 0.5195 GB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/1.071, allocations: 55.34 kB / 0.5196 GB, free: 14.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=145): time 5.663e-06/1.071, allocations: 0 / 0.5196 GB, free: 14.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=162): time 0.04657/1.118, allocations: 16.16 MB / 0.5354 GB, free: 13.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/1.118, allocations: 149.8 kB / 0.5355 GB, free: 13.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00585/1.124, allocations: 2.594 MB / 0.538 GB, free: 11.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003602/1.124, allocations: 25.7 kB / 0.5381 GB, free: 11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002841/1.127, allocations: 2.755 MB / 0.5407 GB, free: 8.203 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.128, allocations: 0.6286 MB / 0.5414 GB, free: 7.566 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00044/1.128, allocations: 0 / 0.5414 GB, free: 7.566 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005418/1.129, allocations: 0.5426 MB / 0.5419 GB, free: 7.012 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004207/1.133, allocations: 1.796 MB / 0.5436 GB, free: 5.207 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007799/1.141, allocations: 5.279 MB / 0.5488 GB, free: 14.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006666/1.148, allocations: 3.045 MB / 0.5518 GB, free: 11.11 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/1.148, allocations: 36 kB / 0.5518 GB, free: 11.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=739) (initialization): time 0.02116/1.169, allocations: 7.279 MB / 0.5589 GB, free: 3.785 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/1.169, allocations: 60 kB / 0.559 GB, free: 3.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001829/1.169, allocations: 128 kB / 0.5591 GB, free: 3.602 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005511/1.175, allocations: 1.3 MB / 0.5604 GB, free: 2.301 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005615/1.181, allocations: 1.318 MB / 0.5616 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2385/1.419, allocations: 5.806 MB / 0.5673 GB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00558/1.425, allocations: 254.8 kB / 0.5676 GB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001224/1.426, allocations: 348.2 kB / 0.5679 GB, free: 102.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * 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 (696): * Single equations (assignments): 692 * 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.001071/1.427, allocations: 416.8 kB / 0.5683 GB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006645/1.428, allocations: 283.2 kB / 0.5686 GB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008786/1.437, allocations: 3.144 MB / 0.5716 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.425e-05/1.437, allocations: 18.44 kB / 0.5716 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/1.437, allocations: 7.469 kB / 0.5717 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.424e-05/1.437, allocations: 7.547 kB / 0.5717 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01832/1.455, allocations: 6.897 MB / 0.5784 GB, free: 101.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.07e-05/1.455, allocations: 2.938 kB / 0.5784 GB, free: 101.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/1.457, allocations: 243.9 kB / 0.5786 GB, free: 101.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005213/1.462, allocations: 1.096 MB / 0.5797 GB, free: 101.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003962/1.463, allocations: 15.52 kB / 0.5797 GB, free: 101.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/1.473, allocations: 5.456 MB / 0.585 GB, free: 99.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.122e-06/1.473, allocations: 3.656 kB / 0.5851 GB, free: 99.07 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0123/1.485, allocations: 5.54 MB / 0.5905 GB, free: 97.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/1.487, allocations: 0.5476 MB / 0.591 GB, free: 96.89 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005859/1.488, allocations: 7.297 kB / 0.591 GB, free: 96.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002024/1.49, allocations: 90.38 kB / 0.5911 GB, free: 96.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004081/1.49, allocations: 88.28 kB / 0.5912 GB, free: 96.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/1.49, allocations: 38.56 kB / 0.5912 GB, free: 96.87 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00369/1.494, allocations: 1.704 MB / 0.5929 GB, free: 96.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.423e-06/1.494, allocations: 0.5625 kB / 0.5929 GB, free: 96.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006265/1.5, allocations: 0.7699 MB / 0.5936 GB, free: 96.23 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 (126): * Single equations (assignments): 122 * 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.0006161/1.501, allocations: 151.4 kB / 0.5938 GB, free: 96.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008681/1.51, allocations: 4.415 MB / 0.5981 GB, free: 94.86 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.437e-06/1.51, allocations: 1.031 kB / 0.5981 GB, free: 94.86 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002991/1.513, allocations: 1.458 MB / 0.5995 GB, free: 94.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/1.515, allocations: 250 kB / 0.5997 GB, free: 94.16 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01775/1.532, allocations: 7.021 MB / 0.6066 GB, free: 91.74 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004745/1.537, allocations: 2.901 MB / 0.6094 GB, free: 89.65 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/1.538, allocations: 250.8 kB / 0.6097 GB, free: 89.41 MB / 394.7 MB Notification: Performance of SimCode: time 1.968e-06/1.538, allocations: 0 / 0.6097 GB, free: 89.41 MB / 394.7 MB Notification: Performance of Templates: time 0.08545/1.624, allocations: 60.44 MB / 0.6687 GB, free: 33.38 MB / 394.7 MB