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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadModel(Modelica): time 2.056/2.056, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.065e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 50.41 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.05971/0.1669, allocations: 38.69 MB / 383.7 MB, free: 2.145 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02578/0.1928, allocations: 8.999 MB / 392.7 MB, free: 9.117 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008843/0.2017, allocations: 203.5 kB / 392.9 MB, free: 8.918 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006908/0.2086, allocations: 1.96 MB / 394.8 MB, free: 6.949 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0211/0.2298, allocations: 5.547 MB / 400.4 MB, free: 1.387 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00391/0.2337, allocations: 0.663 MB / 401 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.3058/0.5396, allocations: 1.946 MB / 403 MB, free: 4.441 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01054/0.5502, allocations: 4.035 MB / 407 MB, free: 4.105 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003131/0.5534, allocations: 0.9055 MB / 407.9 MB, free: 4.105 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004172/0.5576, allocations: 1.466 MB / 409.4 MB, free: 4.098 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003756/0.5615, allocations: 0.9337 MB / 410.3 MB, free: 4.098 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001572/0.5631, allocations: 139.4 kB / 410.5 MB, free: 4.098 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00338/0.5665, allocations: 1.673 MB / 412.1 MB, free: 4.098 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002153/0.5687, allocations: 296.4 kB / 412.4 MB, free: 4.098 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009582/0.5783, allocations: 5.736 MB / 418.2 MB, free: 3.609 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5784, allocations: 0 / 418.2 MB, free: 3.609 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.5784, allocations: 4 kB / 418.2 MB, free: 3.605 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003559/0.5787, allocations: 0 / 418.2 MB, free: 3.605 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.0143/0.5931, allocations: 4.287 MB / 422.4 MB, free: 1.016 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.5931, allocations: 9.625 kB / 422.5 MB, free: 1.016 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01714/0.6103, allocations: 2.53 MB / 425 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008843/0.6192, allocations: 2.614 MB / 427.6 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003576/0.6196, allocations: 275.9 kB / 427.9 MB, free: 15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00276/0.6224, allocations: 434.5 kB / 428.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04177/0.6642, allocations: 12.33 MB / 440.6 MB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000254/0.6645, allocations: 48.56 kB / 440.7 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002146/0.6667, allocations: 174.2 kB / 440.8 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006457/0.6732, allocations: 2.165 MB / 443 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0389/0.7121, allocations: 10.33 MB / 453.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1048/0.8169, allocations: 44.9 MB / 498.2 MB, free: 7.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03568/0.8527, allocations: 7.166 MB / 0.4936 GB, free: 64 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02519/0.8779, allocations: 9.298 MB / 0.5026 GB, free: 6.453 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.89e-05/0.8781, allocations: 55.06 kB / 0.5027 GB, free: 6.395 MB / 410.7 MB Notification: Performance of pre-optimization done (n=183): time 7.233e-06/0.8781, allocations: 0 / 0.5027 GB, free: 6.395 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.1108/0.9889, allocations: 22.4 MB / 0.5246 GB, free: 15.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001889/0.9908, allocations: 1.61 MB / 0.5261 GB, free: 14.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01071/1.002, allocations: 3.953 MB / 0.53 GB, free: 10.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006153/1.002, allocations: 57.7 kB / 0.5301 GB, free: 9.984 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003956/1.006, allocations: 3.335 MB / 0.5333 GB, free: 6.656 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/1.008, allocations: 0.8023 MB / 0.5341 GB, free: 5.859 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001075/1.009, allocations: 130.8 kB / 0.5342 GB, free: 5.734 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000769/1.01, allocations: 0.5978 MB / 0.5348 GB, free: 5.129 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007721/1.018, allocations: 2.348 MB / 0.5371 GB, free: 2.777 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01153/1.029, allocations: 6.445 MB / 0.5434 GB, free: 10.36 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/1.04, allocations: 3.755 MB / 0.5471 GB, free: 6.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001374/1.04, allocations: 48 kB / 0.5471 GB, free: 6.684 MB / 458.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.04062/1.08, allocations: 10.09 MB / 0.557 GB, free: 13.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/1.081, allocations: 68 kB / 0.557 GB, free: 13.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02217/1.103, allocations: 4.004 MB / 0.5609 GB, free: 9.379 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01966/1.123, allocations: 2.188 MB / 0.5631 GB, free: 7.176 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01061/1.133, allocations: 1.596 MB / 0.5646 GB, free: 5.719 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3135/1.447, allocations: 6.354 MB / 0.5708 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008204/1.455, allocations: 451.7 kB / 0.5713 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002057/1.457, allocations: 415.6 kB / 0.5717 GB, free: 166.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (848): * Single equations (assignments): 839 * 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.00692/1.464, allocations: 2.179 MB / 0.5738 GB, free: 166 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001058/1.465, allocations: 374.5 kB / 0.5742 GB, free: 166 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01231/1.477, allocations: 3.508 MB / 0.5776 GB, free: 165.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01073/1.488, allocations: 2.942 MB / 0.5805 GB, free: 164.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-05/1.488, allocations: 3.594 kB / 0.5805 GB, free: 164.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.329e-05/1.488, allocations: 11.67 kB / 0.5805 GB, free: 164.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03186/1.52, allocations: 10.74 MB / 0.591 GB, free: 160.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-05/1.52, allocations: 13.03 kB / 0.591 GB, free: 160.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003347/1.524, allocations: 389.1 kB / 0.5913 GB, free: 160.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00533/1.529, allocations: 0.9871 MB / 0.5923 GB, free: 160.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006176/1.53, allocations: 62.11 kB / 0.5924 GB, free: 160 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007517/1.537, allocations: 4.678 MB / 0.5969 GB, free: 157 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001394/1.539, allocations: 1.484 MB / 0.5984 GB, free: 155.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01655/1.555, allocations: 7.838 MB / 0.606 GB, free: 151.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/1.557, allocations: 458.8 kB / 0.6065 GB, free: 150.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00163/1.559, allocations: 58.28 kB / 0.6065 GB, free: 150.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003888/1.562, allocations: 174.8 kB / 0.6067 GB, free: 150.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007454/1.563, allocations: 173.7 kB / 0.6069 GB, free: 150.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002777/1.564, allocations: 78.03 kB / 0.6069 GB, free: 150.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006851/1.57, allocations: 2.75 MB / 0.6096 GB, free: 149.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.353e-06/1.571, allocations: 3.812 kB / 0.6096 GB, free: 149.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008368/1.579, allocations: 1.194 MB / 0.6108 GB, free: 149.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 (180): * Single equations (assignments): 173 * 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 {(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 Backend phase and start with SimCode phase: time 0.00126/1.58, allocations: 237 kB / 0.611 GB, free: 149.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01649/1.597, allocations: 6.107 MB / 0.617 GB, free: 144.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.069e-05/1.597, allocations: 10.19 kB / 0.617 GB, free: 144.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00717/1.604, allocations: 2.28 MB / 0.6192 GB, free: 142.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004047/1.608, allocations: 462.9 kB / 0.6197 GB, free: 141.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0297/1.638, allocations: 13.22 MB / 0.6326 GB, free: 128.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007718/1.646, allocations: 3.552 MB / 0.636 GB, free: 125.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001852/1.648, allocations: 327.4 kB / 0.6364 GB, free: 124.8 MB / 474.7 MB Notification: Performance of SimCode: time 2.194e-06/1.648, allocations: 4 kB / 0.6364 GB, free: 124.8 MB / 474.7 MB Notification: Performance of Templates: time 0.5392/2.187, allocations: 135 MB / 0.7682 GB, free: 155.4 MB / 474.7 MB