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.763/1.763, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.278e-05/3.275e-05, allocations: 4 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09214/0.0922, allocations: 38.77 MB / 266.9 MB, free: 1.121 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.02325/0.1155, allocations: 14.03 MB / 280.9 MB, free: 3.031 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01279/0.1284, allocations: 4.195 MB / 285.1 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003033/0.1315, allocations: 71.81 kB / 285.2 MB, free: 14.75 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002651/0.1342, allocations: 0.6844 MB / 285.9 MB, free: 14.07 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008371/0.1426, allocations: 2.154 MB / 288 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.1443, allocations: 367.3 kB / 288.4 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003339/0.1477, allocations: 1.065 MB / 289.5 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003453/0.1512, allocations: 1.605 MB / 291.1 MB, free: 8.836 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.1524, allocations: 490.7 kB / 291.5 MB, free: 8.355 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001686/0.1541, allocations: 0.8105 MB / 292.4 MB, free: 7.543 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002361/0.1565, allocations: 0.8152 MB / 293.2 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007234/0.1573, allocations: 84 kB / 293.3 MB, free: 6.645 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001451/0.1587, allocations: 0.8922 MB / 294.1 MB, free: 5.75 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006876/0.1595, allocations: 148 kB / 294.3 MB, free: 5.605 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005906/0.1654, allocations: 3.254 MB / 297.5 MB, free: 2.344 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1655, allocations: 0 / 297.5 MB, free: 2.344 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.942e-06/0.1655, allocations: 0 / 297.5 MB, free: 2.344 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001525/0.1656, allocations: 3.938 kB / 297.5 MB, free: 2.34 MB / 250.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.2295/0.3952, allocations: 2.501 MB / 300 MB, free: 29.43 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/0.3952, allocations: 9.312 kB / 300.1 MB, free: 29.43 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01414/0.4094, allocations: 2.054 MB / 302.1 MB, free: 29.26 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005078/0.4145, allocations: 1.588 MB / 303.7 MB, free: 28.78 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.4148, allocations: 126.7 kB / 303.8 MB, free: 28.75 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001869/0.4167, allocations: 260.5 kB / 304.1 MB, free: 28.7 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01849/0.4352, allocations: 6.552 MB / 310.6 MB, free: 25.45 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001445/0.4354, allocations: 34.7 kB / 310.7 MB, free: 25.43 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005106/0.436, allocations: 85.45 kB / 310.7 MB, free: 25.4 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00392/0.4399, allocations: 1.344 MB / 312.1 MB, free: 24.86 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01744/0.4574, allocations: 5.963 MB / 318.1 MB, free: 20.29 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04328/0.5007, allocations: 25.2 MB / 343.3 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01187/0.5127, allocations: 2.536 MB / 345.8 MB, free: 7.809 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009249/0.522, allocations: 3.531 MB / 349.3 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/0.5221, allocations: 54.92 kB / 349.4 MB, free: 4.035 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 5.33e-06/0.5221, allocations: 0 / 349.4 MB, free: 4.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.04755/0.5697, allocations: 10.36 MB / 359.7 MB, free: 9.465 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001834/0.5715, allocations: 1.603 MB / 361.3 MB, free: 7.691 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005929/0.5775, allocations: 2.529 MB / 363.9 MB, free: 5.145 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003606/0.5779, allocations: 42.91 kB / 363.9 MB, free: 5.098 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002259/0.5802, allocations: 2.057 MB / 366 MB, free: 3.047 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009324/0.5812, allocations: 496.6 kB / 366.4 MB, free: 2.566 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004485/0.5817, allocations: 84.94 kB / 366.5 MB, free: 2.484 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000386/0.582, allocations: 0.5007 MB / 367 MB, free: 1.973 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004639/0.5867, allocations: 1.605 MB / 368.6 MB, free: 368 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007472/0.5942, allocations: 4.371 MB / 373 MB, free: 10.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007071/0.6014, allocations: 2.603 MB / 375.6 MB, free: 7.988 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.362e-05/0.6015, allocations: 28 kB / 375.6 MB, free: 7.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=581) (initialization): time 0.02508/0.6266, allocations: 6.958 MB / 382.6 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.6268, allocations: 56.55 kB / 382.7 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01126/0.638, allocations: 2.559 MB / 385.2 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01268/0.6508, allocations: 1.618 MB / 386.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008326/0.6592, allocations: 0.9941 MB / 387.8 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02735/0.6866, allocations: 7.617 MB / 395.4 MB, free: 3.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00836/0.695, allocations: 319.6 kB / 395.8 MB, free: 3.551 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001497/0.6966, allocations: 280.9 kB / 396 MB, free: 3.277 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 449 * 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 (533): * Single equations (assignments): 525 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.005674/0.7023, allocations: 1.373 MB / 397.4 MB, free: 1.895 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006964/0.703, allocations: 232.9 kB / 397.6 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/0.7154, allocations: 2.808 MB / 400.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01126/0.7267, allocations: 2.477 MB / 402.9 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.657e-05/0.7268, allocations: 7.984 kB / 402.9 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.553e-05/0.7268, allocations: 7.969 kB / 402.9 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02644/0.7533, allocations: 6.727 MB / 409.7 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.848e-05/0.7534, allocations: 4 kB / 409.7 MB, free: 5.535 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00245/0.7558, allocations: 167.8 kB / 409.8 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.013/0.7689, allocations: 1.432 MB / 411.3 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003883/0.7693, allocations: 31.97 kB / 411.3 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02628/0.7956, allocations: 7.628 MB / 418.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002061/0.7977, allocations: 1.458 MB / 420.4 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02284/0.8206, allocations: 4.816 MB / 425.2 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009083/0.8216, allocations: 305.9 kB / 425.5 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007999/0.8224, allocations: 23.98 kB / 425.5 MB, free: 5.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002576/0.825, allocations: 107.8 kB / 425.6 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004468/0.8255, allocations: 77.94 kB / 425.7 MB, free: 5.016 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/0.8257, allocations: 35.98 kB / 425.7 MB, free: 4.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004766/0.8305, allocations: 1.767 MB / 427.5 MB, free: 3.203 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.72e-07/0.8305, allocations: 0 / 427.5 MB, free: 3.203 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00549/0.836, allocations: 0.7679 MB / 428.3 MB, free: 2.441 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.000807/0.8369, allocations: 181.8 kB / 428.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.2359/1.073, allocations: 4.279 MB / 432.7 MB, free: 111.6 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.073, allocations: 0 / 432.7 MB, free: 111.6 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006003/1.079, allocations: 1.703 MB / 434.4 MB, free: 111.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/1.081, allocations: 241.3 kB / 434.7 MB, free: 111.2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0179/1.099, allocations: 7.793 MB / 442.4 MB, free: 107.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004132/1.103, allocations: 2.328 MB / 444.8 MB, free: 106.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/1.104, allocations: 201.2 kB / 445 MB, free: 106.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/1.104, allocations: 0 / 445 MB, free: 106.6 MB / 346.7 MB Notification: Performance of Templates: time 0.1261/1.23, allocations: 70.59 MB / 0.5035 GB, free: 42.69 MB / 346.7 MB