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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 171.1 MB / 186.3 MB, free: 1.332 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.259e-05/3.258e-05, allocations: 8 kB / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08064/0.08069, allocations: 38.76 MB / 266.9 MB, free: 1.121 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2817/0.3624, allocations: 36.87 MB / 303.8 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02381/0.3863, allocations: 8.536 MB / 312.3 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01048/0.3968, allocations: 191.8 kB / 312.5 MB, free: 2.73 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007629/0.4045, allocations: 1.911 MB / 314.4 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02231/0.4269, allocations: 5.273 MB / 319.7 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003898/0.4308, allocations: 0.6643 MB / 320.3 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005794/0.4367, allocations: 1.913 MB / 322.2 MB, free: 88 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008446/0.4452, allocations: 4.017 MB / 326.3 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002838/0.4481, allocations: 0.8964 MB / 327.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003603/0.4518, allocations: 1.425 MB / 328.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003278/0.4551, allocations: 0.9122 MB / 329.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001123/0.4562, allocations: 134.4 kB / 329.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002406/0.4587, allocations: 1.619 MB / 331.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001411/0.4601, allocations: 284.1 kB / 331.5 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009971/0.4701, allocations: 5.645 MB / 337.2 MB, free: 8.512 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4702, allocations: 0 / 337.2 MB, free: 8.512 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.4702, allocations: 0 / 337.2 MB, free: 8.512 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000265/0.4705, allocations: 0 / 337.2 MB, free: 8.512 MB / 266.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.01391/0.4844, allocations: 4.194 MB / 341.4 MB, free: 4.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.472e-05/0.4845, allocations: 8.031 kB / 341.4 MB, free: 4.562 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01681/0.5013, allocations: 2.483 MB / 343.9 MB, free: 2.152 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008375/0.5097, allocations: 2.867 MB / 346.7 MB, free: 15.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004011/0.5102, allocations: 267.5 kB / 347 MB, free: 15.03 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002242/0.5125, allocations: 420.9 kB / 347.4 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03646/0.5489, allocations: 12.09 MB / 359.5 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001769/0.5492, allocations: 47.53 kB / 359.5 MB, free: 1.84 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007738/0.55, allocations: 167.2 kB / 359.7 MB, free: 1.715 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005767/0.5557, allocations: 2.128 MB / 361.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03643/0.5922, allocations: 10.11 MB / 371.9 MB, free: 5.473 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08942/0.6817, allocations: 44.32 MB / 416.2 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03468/0.7164, allocations: 6.69 MB / 422.9 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02792/0.7444, allocations: 8.411 MB / 431.3 MB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.896e-05/0.7445, allocations: 47.56 kB / 431.4 MB, free: 8.602 MB / 362.7 MB Notification: Performance of pre-optimization done (n=165): time 6.973e-06/0.7446, allocations: 4 kB / 431.4 MB, free: 8.598 MB / 362.7 MB Notification: Performance of matching and sorting (n=188): time 0.3669/1.111, allocations: 22.51 MB / 453.9 MB, free: 123.9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001391/1.113, allocations: 1.615 MB / 455.5 MB, free: 122.4 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008689/1.122, allocations: 3.946 MB / 459.5 MB, free: 120.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005673/1.122, allocations: 55.86 kB / 459.5 MB, free: 120.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0028/1.125, allocations: 3.304 MB / 462.8 MB, free: 118.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001282/1.126, allocations: 0.7451 MB / 463.6 MB, free: 117.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006809/1.127, allocations: 131.6 kB / 463.7 MB, free: 117.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004141/1.128, allocations: 0.5898 MB / 464.3 MB, free: 117.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0063/1.134, allocations: 2.327 MB / 466.6 MB, free: 116.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009351/1.143, allocations: 6.406 MB / 473 MB, free: 109.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008539/1.152, allocations: 3.724 MB / 476.7 MB, free: 106.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/1.152, allocations: 40 kB / 476.8 MB, free: 106.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=866) (initialization): time 0.02545/1.177, allocations: 9.156 MB / 485.9 MB, free: 97.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/1.178, allocations: 68.19 kB / 486 MB, free: 97.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009563/1.187, allocations: 3.091 MB / 489.1 MB, free: 94.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006096/1.193, allocations: 1.205 MB / 490.3 MB, free: 93.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00917/1.203, allocations: 1.56 MB / 491.9 MB, free: 91.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00699/1.21, allocations: 4.639 MB / 496.5 MB, free: 86.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007813/1.217, allocations: 444.4 kB / 496.9 MB, free: 86.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001365/1.219, allocations: 408 kB / 497.3 MB, free: 86.03 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * 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 (828): * Single equations (assignments): 819 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.005467/1.224, allocations: 2.153 MB / 499.5 MB, free: 83.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/1.225, allocations: 367.2 kB / 499.8 MB, free: 83.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01128/1.237, allocations: 3.488 MB / 0.4915 GB, free: 79.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009446/1.246, allocations: 2.943 MB / 0.4944 GB, free: 77.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.102e-05/1.246, allocations: 0 / 0.4944 GB, free: 77.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.488e-05/1.246, allocations: 15.91 kB / 0.4944 GB, free: 77.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02912/1.276, allocations: 10.47 MB / 0.5046 GB, free: 66.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.97e-05/1.276, allocations: 12 kB / 0.5047 GB, free: 66.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00314/1.279, allocations: 373.2 kB / 0.505 GB, free: 65.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005171/1.284, allocations: 0.9825 MB / 0.506 GB, free: 64.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004832/1.285, allocations: 57.31 kB / 0.506 GB, free: 64.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00715/1.292, allocations: 4.678 MB / 0.5106 GB, free: 59.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00112/1.293, allocations: 1.468 MB / 0.512 GB, free: 58.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01563/1.308, allocations: 7.575 MB / 0.5194 GB, free: 50.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002473/1.311, allocations: 0.6874 MB / 0.5201 GB, free: 49.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001256/1.312, allocations: 53.39 kB / 0.5201 GB, free: 49.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004024/1.316, allocations: 163.8 kB / 0.5203 GB, free: 49.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006911/1.317, allocations: 168.5 kB / 0.5205 GB, free: 49.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002468/1.317, allocations: 73.3 kB / 0.5205 GB, free: 49.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006387/1.324, allocations: 2.746 MB / 0.5232 GB, free: 46.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.192e-06/1.324, allocations: 0 / 0.5232 GB, free: 46.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007749/1.332, allocations: 1.147 MB / 0.5243 GB, free: 45.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 55 * 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 (165): * Single equations (assignments): 158 * 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.000999/1.333, allocations: 215 kB / 0.5245 GB, free: 44.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01535/1.348, allocations: 6.022 MB / 0.5304 GB, free: 38.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/1.348, allocations: 4 kB / 0.5304 GB, free: 38.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006957/1.355, allocations: 2.253 MB / 0.5326 GB, free: 36.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003885/1.359, allocations: 446.2 kB / 0.5331 GB, free: 36.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0332/1.392, allocations: 12.95 MB / 0.5457 GB, free: 22.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009881/1.402, allocations: 3.509 MB / 0.5491 GB, free: 19.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002424/1.405, allocations: 327.4 kB / 0.5494 GB, free: 19.11 MB / 362.7 MB Notification: Performance of SimCode: time 2.465e-06/1.405, allocations: 0 / 0.5494 GB, free: 19.11 MB / 362.7 MB Notification: Performance of Templates: time 0.58/1.985, allocations: 132 MB / 0.6783 GB, free: 6.066 MB / 362.7 MB