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.916/1.916, allocations: 194.9 MB / 208.5 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.04e-05/3.059e-05, allocations: 3 kB / 255.4 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07762/0.07767, allocations: 44.5 MB / 299.9 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3445/0.4222, allocations: 92.81 MB / 392.7 MB, free: 19.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.4225, allocations: 83.42 kB / 392.7 MB, free: 19.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3283/0.7508, allocations: 73.98 MB / 466.7 MB, free: 5.734 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.277e-06/0.7509, allocations: 0 / 466.7 MB, free: 5.734 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001834/0.751, allocations: 72 kB / 466.8 MB, free: 5.664 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.01072/0.7618, allocations: 3.433 MB / 470.2 MB, free: 2.172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.7618, allocations: 8.031 kB / 470.2 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01288/0.7747, allocations: 2.257 MB / 472.5 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01318/0.788, allocations: 3.901 MB / 476.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000445/0.7885, allocations: 279.1 kB / 476.7 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00182/0.7903, allocations: 359.9 kB / 477 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02872/0.8191, allocations: 10.21 MB / 487.2 MB, free: 144 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001769/0.8193, allocations: 55.47 kB / 487.3 MB, free: 88 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009654/0.8203, allocations: 179.9 kB / 487.5 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002015/0.8223, allocations: 0.9819 MB / 488.4 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02368/0.846, allocations: 8.302 MB / 496.7 MB, free: 6.617 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2984/1.144, allocations: 44.35 MB / 0.5284 GB, free: 53.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01264/1.157, allocations: 3.523 MB / 0.5319 GB, free: 52.69 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003174/1.16, allocations: 1.733 MB / 0.5336 GB, free: 52.66 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01358/1.174, allocations: 7.146 MB / 0.5405 GB, free: 50.83 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/1.174, allocations: 57.22 kB / 0.5406 GB, free: 50.79 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 5.752e-06/1.174, allocations: 0.5625 kB / 0.5406 GB, free: 50.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=155): time 0.0554/1.23, allocations: 14.35 MB / 0.5546 GB, free: 48.29 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/1.23, allocations: 147.6 kB / 0.5547 GB, free: 48.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006547/1.236, allocations: 3.037 MB / 0.5577 GB, free: 47.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003383/1.237, allocations: 43.92 kB / 0.5578 GB, free: 47.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001896/1.239, allocations: 2.673 MB / 0.5604 GB, free: 46.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008186/1.239, allocations: 0.6062 MB / 0.561 GB, free: 45.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005794/1.24, allocations: 110 kB / 0.5611 GB, free: 45.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00039/1.24, allocations: 0.5411 MB / 0.5616 GB, free: 45.63 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003965/1.244, allocations: 1.834 MB / 0.5634 GB, free: 45.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005905/1.25, allocations: 5.17 MB / 0.5684 GB, free: 40.28 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005857/1.256, allocations: 3.047 MB / 0.5714 GB, free: 39.44 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.633e-05/1.256, allocations: 36.75 kB / 0.5714 GB, free: 39.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.01951/1.276, allocations: 7.457 MB / 0.5787 GB, free: 37.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.276, allocations: 59.34 kB / 0.5788 GB, free: 37.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/1.276, allocations: 119.3 kB / 0.5789 GB, free: 37.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005122/1.281, allocations: 1.315 MB / 0.5802 GB, free: 37.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005581/1.287, allocations: 1.26 MB / 0.5814 GB, free: 37.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/1.299, allocations: 6.102 MB / 0.5874 GB, free: 34.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005925/1.304, allocations: 353.4 kB / 0.5877 GB, free: 34.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001135/1.306, allocations: 333.8 kB / 0.588 GB, free: 34.18 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.001117/1.307, allocations: 0.522 MB / 0.5885 GB, free: 33.75 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000728/1.308, allocations: 301.4 kB / 0.5888 GB, free: 33.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008525/1.316, allocations: 3.249 MB / 0.592 GB, free: 32.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.775e-05/1.316, allocations: 18.31 kB / 0.592 GB, free: 32.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/1.316, allocations: 7.375 kB / 0.592 GB, free: 32.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.052e-05/1.316, allocations: 6.656 kB / 0.592 GB, free: 32.57 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01861/1.335, allocations: 7.302 MB / 0.5992 GB, free: 27.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/1.335, allocations: 0 / 0.5992 GB, free: 27.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/1.337, allocations: 234 kB / 0.5994 GB, free: 27.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004669/1.341, allocations: 1.122 MB / 0.6005 GB, free: 26.78 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003418/1.342, allocations: 25.25 kB / 0.6005 GB, free: 26.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/1.352, allocations: 5.742 MB / 0.6061 GB, free: 21.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.696e-06/1.352, allocations: 7.969 kB / 0.6061 GB, free: 21.77 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01204/1.364, allocations: 5.54 MB / 0.6115 GB, free: 17.08 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/1.366, allocations: 0.571 MB / 0.6121 GB, free: 16.54 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007192/1.367, allocations: 24.62 kB / 0.6121 GB, free: 16.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002296/1.369, allocations: 108.2 kB / 0.6122 GB, free: 16.45 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004754/1.369, allocations: 93.47 kB / 0.6123 GB, free: 16.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001797/1.37, allocations: 43.56 kB / 0.6123 GB, free: 16.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004796/1.374, allocations: 2.08 MB / 0.6144 GB, free: 14.51 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.19e-06/1.375, allocations: 0 / 0.6144 GB, free: 14.51 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006138/1.381, allocations: 0.9013 MB / 0.6152 GB, free: 13.62 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.0006038/1.381, allocations: 173.5 kB / 0.6154 GB, free: 13.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008928/1.39, allocations: 4.392 MB / 0.6197 GB, free: 9.477 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.518e-06/1.39, allocations: 0 / 0.6197 GB, free: 9.477 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002809/1.393, allocations: 1.441 MB / 0.6211 GB, free: 8.172 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002146/1.395, allocations: 317.2 kB / 0.6214 GB, free: 7.887 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01699/1.412, allocations: 6.958 MB / 0.6282 GB, free: 1.805 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008367/1.421, allocations: 3.055 MB / 0.6312 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001275/1.422, allocations: 258.4 kB / 0.6314 GB, free: 15.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.929e-06/1.422, allocations: 0 / 0.6314 GB, free: 15.73 MB / 410.7 MB Notification: Performance of Templates: time 0.3397/1.762, allocations: 61.28 MB / 0.6913 GB, free: 100.4 MB / 426.7 MB