Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadModel(Modelica): time 1.642/1.642, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.601e-05/3.611e-05, allocations: 7.938 kB / 225 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2758, allocations: 38.76 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.125/0.4008, allocations: 79.43 MB / 343.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.4011, allocations: 79.95 kB / 343.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.398/0.7992, allocations: 56.43 MB / 399.7 MB, free: 73.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.143e-06/0.7992, allocations: 4 kB / 399.7 MB, free: 73.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.791e-05/0.7993, allocations: 48 kB / 399.7 MB, free: 73.51 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: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.01181/0.8112, allocations: 2.902 MB / 402.6 MB, free: 70.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.8112, allocations: 12.02 kB / 402.6 MB, free: 70.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/0.8225, allocations: 2.032 MB / 404.7 MB, free: 68.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.8334, allocations: 3.593 MB / 408.3 MB, free: 64.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002511/0.8337, allocations: 187.6 kB / 408.5 MB, free: 64.76 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001191/0.8349, allocations: 249.9 kB / 408.7 MB, free: 64.54 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0148/0.8498, allocations: 6.801 MB / 415.5 MB, free: 57.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.85, allocations: 35.69 kB / 415.5 MB, free: 57.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000852/0.8508, allocations: 133.6 kB / 415.7 MB, free: 56.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001164/0.852, allocations: 0.6916 MB / 416.4 MB, free: 56.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/0.8644, allocations: 5.716 MB / 422.1 MB, free: 50.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03418/0.8986, allocations: 32.26 MB / 454.3 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007835/0.9065, allocations: 2.508 MB / 456.8 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/0.9083, allocations: 0.993 MB / 457.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006275/0.9146, allocations: 3.556 MB / 461.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.9147, allocations: 46.94 kB / 461.4 MB, free: 9.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=105): time 5.258e-06/0.9147, allocations: 0 / 461.4 MB, free: 9.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=118): time 0.02543/0.9401, allocations: 8.676 MB / 470.1 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001428/0.9416, allocations: 1.576 MB / 471.7 MB, free: 15.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005512/0.9472, allocations: 2.403 MB / 474.1 MB, free: 12.69 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002646/0.9475, allocations: 41.7 kB / 474.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002159/0.9496, allocations: 2.05 MB / 476.2 MB, free: 10.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007909/0.9505, allocations: 489.8 kB / 476.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003953/0.9509, allocations: 84 kB / 476.7 MB, free: 10 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004358/0.9513, allocations: 0.5006 MB / 477.2 MB, free: 9.488 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003618/0.9549, allocations: 1.547 MB / 478.8 MB, free: 7.934 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006468/0.9615, allocations: 4.263 MB / 483.1 MB, free: 2.285 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005566/0.9671, allocations: 2.578 MB / 485.6 MB, free: 15.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.533e-05/0.9672, allocations: 28 kB / 485.7 MB, free: 15.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.01865/0.9859, allocations: 6.415 MB / 492.1 MB, free: 9.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.677e-05/0.986, allocations: 48 kB / 492.1 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007542/0.9936, allocations: 2.413 MB / 494.5 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006716/1, allocations: 1.424 MB / 496 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004484/1.005, allocations: 1.01 MB / 497 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2125/1.217, allocations: 6.875 MB / 0.492 GB, free: 90.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004965/1.222, allocations: 367.8 kB / 0.4924 GB, free: 90.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008714/1.223, allocations: 274.9 kB / 0.4926 GB, free: 90.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 447 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (534): * Single equations (assignments): 526 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008061/1.224, allocations: 444.6 kB / 0.4931 GB, free: 90.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005757/1.225, allocations: 224 kB / 0.4933 GB, free: 90.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008764/1.234, allocations: 2.785 MB / 0.496 GB, free: 90.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00732/1.241, allocations: 2.464 MB / 0.4984 GB, free: 90.49 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/1.241, allocations: 3.938 kB / 0.4984 GB, free: 90.49 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.617e-05/1.241, allocations: 11.16 kB / 0.4984 GB, free: 90.49 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/1.258, allocations: 6.703 MB / 0.505 GB, free: 89.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/1.258, allocations: 2.906 kB / 0.505 GB, free: 89.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/1.259, allocations: 162.2 kB / 0.5051 GB, free: 89.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006158/1.265, allocations: 1.432 MB / 0.5065 GB, free: 89.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003079/1.266, allocations: 31.69 kB / 0.5066 GB, free: 89.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/1.278, allocations: 7.44 MB / 0.5138 GB, free: 85.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009632/1.279, allocations: 1.455 MB / 0.5152 GB, free: 84.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/1.289, allocations: 4.798 MB / 0.5199 GB, free: 82.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007198/1.29, allocations: 297.5 kB / 0.5202 GB, free: 82.22 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004384/1.291, allocations: 20.06 kB / 0.5202 GB, free: 82.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001609/1.292, allocations: 124.3 kB / 0.5203 GB, free: 82.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002944/1.292, allocations: 78.53 kB / 0.5204 GB, free: 82.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/1.293, allocations: 43.11 kB / 0.5205 GB, free: 82.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00302/1.296, allocations: 1.651 MB / 0.5221 GB, free: 81.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.89e-07/1.296, allocations: 0 / 0.5221 GB, free: 81.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005205/1.301, allocations: 0.7493 MB / 0.5228 GB, free: 81.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005666/1.302, allocations: 164.8 kB / 0.523 GB, free: 81.39 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008547/1.31, allocations: 3.929 MB / 0.5268 GB, free: 80.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.787e-06/1.31, allocations: 0 / 0.5268 GB, free: 80.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003884/1.314, allocations: 1.662 MB / 0.5284 GB, free: 78.92 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/1.316, allocations: 238.5 kB / 0.5287 GB, free: 78.72 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/1.328, allocations: 5.705 MB / 0.5342 GB, free: 73.92 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00354/1.332, allocations: 2.324 MB / 0.5365 GB, free: 72.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008109/1.332, allocations: 206.8 kB / 0.5367 GB, free: 71.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.647e-06/1.332, allocations: 0 / 0.5367 GB, free: 71.89 MB / 346.7 MB Notification: Performance of Templates: time 0.08487/1.417, allocations: 69.3 MB / 0.6044 GB, free: 4.629 MB / 346.7 MB