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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 1.657/1.657, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.84e-05/2.864e-05, allocations: 4 kB / 225 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2159, allocations: 38.77 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.35, allocations: 87.06 MB / 350.8 MB, free: 2.684 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.3504, allocations: 91.94 kB / 350.9 MB, free: 2.594 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4535/0.8039, allocations: 73.92 MB / 424.8 MB, free: 48.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.707e-06/0.8039, allocations: 0 / 424.8 MB, free: 48.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001593/0.8041, allocations: 64 kB / 424.9 MB, free: 48.9 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1322 * Number of variables: 1322 Notification: Performance of Generate backend data structure: time 0.00947/0.8136, allocations: 3.429 MB / 428.3 MB, free: 45.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.8137, allocations: 8.031 kB / 428.3 MB, free: 45.4 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01691/0.8306, allocations: 2.265 MB / 430.6 MB, free: 43.13 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.842, allocations: 3.886 MB / 434.5 MB, free: 39.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002961/0.8423, allocations: 279.1 kB / 434.8 MB, free: 38.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001457/0.8438, allocations: 359.8 kB / 435.1 MB, free: 38.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02835/0.8722, allocations: 10.22 MB / 445.3 MB, free: 27.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001695/0.8724, allocations: 51.5 kB / 445.4 MB, free: 27.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009572/0.8734, allocations: 179.9 kB / 445.6 MB, free: 27.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001666/0.875, allocations: 0.9818 MB / 446.5 MB, free: 26.17 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01985/0.8949, allocations: 8.294 MB / 454.8 MB, free: 17.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05714/0.9521, allocations: 44.03 MB / 498.9 MB, free: 4.449 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01286/0.965, allocations: 3.523 MB / 0.4906 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2332/1.198, allocations: 1.722 MB / 0.4923 GB, free: 84.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01322/1.212, allocations: 7.138 MB / 0.4993 GB, free: 82.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/1.212, allocations: 50.12 kB / 0.4993 GB, free: 82.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 6.402e-06/1.212, allocations: 0 / 0.4993 GB, free: 82.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.05744/1.269, allocations: 14.37 MB / 0.5133 GB, free: 80.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.96e-05/1.269, allocations: 149.1 kB / 0.5135 GB, free: 80.29 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005982/1.275, allocations: 3.032 MB / 0.5164 GB, free: 79.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003284/1.276, allocations: 48.77 kB / 0.5165 GB, free: 79.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/1.277, allocations: 2.671 MB / 0.5191 GB, free: 78.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007085/1.278, allocations: 0.6055 MB / 0.5197 GB, free: 78 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000418/1.278, allocations: 107.5 kB / 0.5198 GB, free: 77.99 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003273/1.279, allocations: 0.5347 MB / 0.5203 GB, free: 77.58 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003862/1.283, allocations: 1.837 MB / 0.5221 GB, free: 76.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005672/1.288, allocations: 5.173 MB / 0.5272 GB, free: 71.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005657/1.294, allocations: 3.044 MB / 0.5301 GB, free: 71.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.67e-05/1.294, allocations: 33.94 kB / 0.5302 GB, free: 71.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.0188/1.313, allocations: 7.466 MB / 0.5375 GB, free: 68.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001033/1.313, allocations: 56.97 kB / 0.5375 GB, free: 68.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001369/1.313, allocations: 118.9 kB / 0.5376 GB, free: 68.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00524/1.319, allocations: 1.302 MB / 0.5389 GB, free: 68.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005272/1.324, allocations: 1.255 MB / 0.5401 GB, free: 67.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/1.334, allocations: 6.126 MB / 0.5461 GB, free: 61.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00578/1.34, allocations: 348.5 kB / 0.5464 GB, free: 61.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/1.341, allocations: 343 kB / 0.5468 GB, free: 61.25 MB / 346.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.0009133/1.342, allocations: 0.5125 MB / 0.5473 GB, free: 60.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006507/1.343, allocations: 308 kB / 0.5476 GB, free: 60.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007913/1.351, allocations: 3.246 MB / 0.5507 GB, free: 57.94 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.491e-05/1.351, allocations: 16.56 kB / 0.5507 GB, free: 57.92 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/1.351, allocations: 4 kB / 0.5507 GB, free: 57.92 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.332e-05/1.351, allocations: 10.52 kB / 0.5508 GB, free: 57.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01747/1.368, allocations: 7.297 MB / 0.5579 GB, free: 52.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.266e-05/1.368, allocations: 0 / 0.5579 GB, free: 52.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/1.37, allocations: 234.5 kB / 0.5581 GB, free: 51.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004514/1.375, allocations: 1.12 MB / 0.5592 GB, free: 51.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003037/1.375, allocations: 27.69 kB / 0.5592 GB, free: 51.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00968/1.385, allocations: 5.728 MB / 0.5648 GB, free: 46.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.513e-06/1.385, allocations: 12.03 kB / 0.5648 GB, free: 46.24 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/1.395, allocations: 5.552 MB / 0.5703 GB, free: 41.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001639/1.397, allocations: 0.5655 MB / 0.5708 GB, free: 41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004873/1.397, allocations: 31.95 kB / 0.5708 GB, free: 40.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001823/1.399, allocations: 106.7 kB / 0.5709 GB, free: 40.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002963/1.4, allocations: 91.3 kB / 0.571 GB, free: 40.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001668/1.4, allocations: 39.8 kB / 0.5711 GB, free: 40.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00375/1.404, allocations: 2.09 MB / 0.5731 GB, free: 38.97 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.013e-06/1.404, allocations: 4 kB / 0.5731 GB, free: 38.96 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005658/1.409, allocations: 0.895 MB / 0.574 GB, free: 38.08 MB / 346.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.0004234/1.41, allocations: 159.8 kB / 0.5741 GB, free: 37.92 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008003/1.418, allocations: 4.396 MB / 0.5784 GB, free: 33.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.924e-06/1.418, allocations: 1 kB / 0.5784 GB, free: 33.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002551/1.42, allocations: 1.446 MB / 0.5798 GB, free: 32.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/1.422, allocations: 312.7 kB / 0.5801 GB, free: 31.86 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/1.437, allocations: 6.948 MB / 0.5869 GB, free: 24.88 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003907/1.441, allocations: 2.902 MB / 0.5898 GB, free: 21.97 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/1.443, allocations: 247.4 kB / 0.59 GB, free: 21.73 MB / 346.7 MB Notification: Performance of SimCode: time 3.027e-06/1.443, allocations: 0 / 0.59 GB, free: 21.73 MB / 346.7 MB Notification: Performance of Templates: time 0.2964/1.739, allocations: 61.29 MB / 0.6498 GB, free: 84.54 MB / 362.7 MB