Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadModel(Modelica): time 1.932/1.932, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.984e-05/3.012e-05, allocations: 3.156 kB / 255.3 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08054/0.08059, allocations: 44.5 MB / 299.8 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.346/0.4267, allocations: 90.28 MB / 390.1 MB, free: 20.15 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.427, allocations: 83.48 kB / 390.2 MB, free: 20.15 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3483/0.7753, allocations: 91.78 MB / 482 MB, free: 6.348 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.052e-06/0.7754, allocations: 0 / 482 MB, free: 6.348 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002676/0.7757, allocations: 88 kB / 482.1 MB, free: 6.262 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: 1644 * Number of variables: 1644 Notification: Performance of Generate backend data structure: time 0.01936/0.795, allocations: 4.621 MB / 486.7 MB, free: 1.574 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.7951, allocations: 16.02 kB / 486.7 MB, free: 1.559 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01638/0.8115, allocations: 2.681 MB / 489.4 MB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01825/0.8298, allocations: 5.555 MB / 494.9 MB, free: 9.246 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005363/0.8304, allocations: 349.2 kB / 495.3 MB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002172/0.8325, allocations: 467.8 kB / 495.7 MB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03484/0.8674, allocations: 12.27 MB / 0.4961 GB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002784/0.8677, allocations: 75.3 kB / 0.4962 GB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001875/0.8696, allocations: 223.9 kB / 0.4964 GB, free: 10.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002741/0.8724, allocations: 1.171 MB / 0.4975 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2629/1.135, allocations: 9.915 MB / 0.5072 GB, free: 70.24 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06405/1.199, allocations: 52.34 MB / 0.5583 GB, free: 38.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01337/1.213, allocations: 4.033 MB / 0.5623 GB, free: 37.43 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003175/1.216, allocations: 1.589 MB / 0.5638 GB, free: 37.39 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01527/1.231, allocations: 7.403 MB / 0.571 GB, free: 35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/1.231, allocations: 58.08 kB / 0.5711 GB, free: 34.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=165): time 6.153e-06/1.231, allocations: 1.969 kB / 0.5711 GB, free: 34.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=188): time 0.05035/1.282, allocations: 13.82 MB / 0.5846 GB, free: 30.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001136/1.283, allocations: 1.598 MB / 0.5862 GB, free: 28.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007827/1.291, allocations: 3.664 MB / 0.5897 GB, free: 27.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003777/1.291, allocations: 50.53 kB / 0.5898 GB, free: 27.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002308/1.294, allocations: 3.302 MB / 0.593 GB, free: 24.48 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009454/1.295, allocations: 0.7601 MB / 0.5938 GB, free: 23.94 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006489/1.295, allocations: 132.1 kB / 0.5939 GB, free: 23.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000443/1.296, allocations: 0.5838 MB / 0.5944 GB, free: 23.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00473/1.3, allocations: 2.102 MB / 0.5965 GB, free: 22.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006977/1.307, allocations: 6.156 MB / 0.6025 GB, free: 16.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007022/1.315, allocations: 3.539 MB / 0.606 GB, free: 15.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/1.315, allocations: 44.14 kB / 0.606 GB, free: 15.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.02151/1.336, allocations: 8.634 MB / 0.6144 GB, free: 12.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000114/1.336, allocations: 67.34 kB / 0.6145 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007146/1.344, allocations: 2.699 MB / 0.6171 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004381/1.348, allocations: 1.079 MB / 0.6182 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007027/1.355, allocations: 1.575 MB / 0.6197 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005363/1.36, allocations: 4.371 MB / 0.624 GB, free: 7.043 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00744/1.368, allocations: 0.509 MB / 0.6245 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001277/1.369, allocations: 409.9 kB / 0.6249 GB, free: 6.242 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 42 (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],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (825): * Single equations (assignments): 816 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001752/1.371, allocations: 0.6174 MB / 0.6255 GB, free: 5.625 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000825/1.372, allocations: 367.2 kB / 0.6258 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007729/1.38, allocations: 3.129 MB / 0.6289 GB, free: 2.766 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006225/1.386, allocations: 2.599 MB / 0.6314 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.896e-05/1.386, allocations: 11.09 kB / 0.6314 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.73e-05/1.386, allocations: 6.797 kB / 0.6315 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02673/1.413, allocations: 9.977 MB / 0.6412 GB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.791e-05/1.413, allocations: 16.06 kB / 0.6412 GB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002186/1.415, allocations: 348.6 kB / 0.6415 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004058/1.419, allocations: 0.9751 MB / 0.6425 GB, free: 7.617 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004356/1.42, allocations: 66.33 kB / 0.6426 GB, free: 7.562 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007271/1.427, allocations: 4.588 MB / 0.647 GB, free: 3.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00156/1.428, allocations: 1.458 MB / 0.6485 GB, free: 1.723 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01387/1.442, allocations: 7.144 MB / 0.6554 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002318/1.445, allocations: 0.6504 MB / 0.6561 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001001/1.446, allocations: 57.95 kB / 0.6561 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003215/1.449, allocations: 174 kB / 0.6563 GB, free: 10 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006109/1.45, allocations: 163.2 kB / 0.6565 GB, free: 9.895 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002552/1.45, allocations: 67.94 kB / 0.6565 GB, free: 9.832 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00675/1.457, allocations: 2.521 MB / 0.659 GB, free: 7.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.88e-07/1.457, allocations: 0 / 0.659 GB, free: 7.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00826/1.465, allocations: 1.114 MB / 0.6601 GB, free: 6.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 157 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008311/1.466, allocations: 220.5 kB / 0.6603 GB, free: 6.273 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01354/1.479, allocations: 5.624 MB / 0.6658 GB, free: 1.168 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.579e-05/1.48, allocations: 4 kB / 0.6658 GB, free: 1.164 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2389/1.718, allocations: 2.112 MB / 0.6678 GB, free: 100.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003378/1.722, allocations: 439.9 kB / 0.6683 GB, free: 100.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02478/1.747, allocations: 9.187 MB / 0.6772 GB, free: 98.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008027/1.755, allocations: 3.5 MB / 0.6806 GB, free: 97.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/1.756, allocations: 313.9 kB / 0.6809 GB, free: 97.8 MB / 426.7 MB Notification: Performance of SimCode: time 2.135e-06/1.756, allocations: 0 / 0.6809 GB, free: 97.8 MB / 426.7 MB Notification: Performance of Templates: time 0.1849/1.941, allocations: 130.8 MB / 0.8087 GB, free: 12.68 MB / 426.7 MB