Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.811/1.811, allocations: 194.9 MB / 210.6 MB, free: 9.32 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.369e-05/2.376e-05, allocations: 0 / 258.8 MB, free: 9.027 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2899, allocations: 44.51 MB / 303.3 MB, free: 12.85 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.03338/0.3234, allocations: 22.72 MB / 326 MB, free: 6.961 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01331/0.3367, allocations: 4.977 MB / 331 MB, free: 1.973 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004274/0.3411, allocations: 111.8 kB / 331.1 MB, free: 1.863 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004028/0.3451, allocations: 1.163 MB / 332.3 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01088/0.356, allocations: 3.058 MB / 335.3 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.3576, allocations: 195.6 kB / 335.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002293/0.3599, allocations: 0.8812 MB / 336.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002807/0.3627, allocations: 1.607 MB / 338 MB, free: 10.92 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006496/0.3634, allocations: 466.8 kB / 338.5 MB, free: 10.46 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001304/0.3647, allocations: 0.7558 MB / 339.2 MB, free: 9.707 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.366, allocations: 0.5071 MB / 339.7 MB, free: 9.199 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000335/0.3664, allocations: 64 kB / 339.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.3675, allocations: 0.9428 MB / 340.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005274/0.368, allocations: 164 kB / 340.9 MB, free: 8.031 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004308/0.3723, allocations: 3.217 MB / 344.1 MB, free: 4.809 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.3724, allocations: 0 / 344.1 MB, free: 4.809 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3724, allocations: 0 / 344.1 MB, free: 4.809 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.225e-05/0.3725, allocations: 0 / 344.1 MB, free: 4.809 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.005128/0.3776, allocations: 2.399 MB / 346.5 MB, free: 2.348 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.3777, allocations: 12.03 kB / 346.5 MB, free: 2.336 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01373/0.3914, allocations: 2.102 MB / 348.6 MB, free: 232 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003435/0.3949, allocations: 1.118 MB / 349.8 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.3951, allocations: 151.7 kB / 349.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006658/0.3958, allocations: 195.8 kB / 350.1 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02922/0.425, allocations: 8.531 MB / 358.6 MB, free: 5.594 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001141/0.4252, allocations: 35.66 kB / 358.7 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004148/0.4256, allocations: 99.84 kB / 358.8 MB, free: 5.461 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004872/0.4305, allocations: 1.647 MB / 360.4 MB, free: 3.812 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02991/0.4604, allocations: 7.119 MB / 367.5 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04793/0.5084, allocations: 29.85 MB / 397.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04177/0.5502, allocations: 4.981 MB / 402.4 MB, free: 8.781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007549/0.5578, allocations: 3.418 MB / 405.8 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.5579, allocations: 42.56 kB / 405.8 MB, free: 5.223 MB / 346.7 MB Notification: Performance of pre-optimization done (n=104): time 4.148e-06/0.5579, allocations: 0 / 405.8 MB, free: 5.223 MB / 346.7 MB Notification: Performance of matching and sorting (n=104): time 0.08654/0.6445, allocations: 9.485 MB / 415.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.6446, allocations: 195.9 kB / 415.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005453/0.6501, allocations: 2.68 MB / 418.2 MB, free: 8.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001911/0.6503, allocations: 37.7 kB / 418.2 MB, free: 8.621 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002288/0.6526, allocations: 2.398 MB / 420.6 MB, free: 6.184 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007054/0.6533, allocations: 478.4 kB / 421.1 MB, free: 5.711 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003228/0.6537, allocations: 104 kB / 421.2 MB, free: 5.609 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004959/0.6542, allocations: 0.5808 MB / 421.8 MB, free: 5.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003857/0.6581, allocations: 1.58 MB / 423.3 MB, free: 3.434 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2489/0.907, allocations: 5.081 MB / 428.4 MB, free: 104.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006767/0.9138, allocations: 2.785 MB / 431.2 MB, free: 103.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001487/0.914, allocations: 35.94 kB / 431.2 MB, free: 103.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01379/0.9278, allocations: 6.357 MB / 437.6 MB, free: 101.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.344e-05/0.9279, allocations: 57.56 kB / 437.7 MB, free: 101.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000133/0.9281, allocations: 127.8 kB / 437.8 MB, free: 101.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001802/0.9283, allocations: 187.9 kB / 438 MB, free: 101.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008523/0.9368, allocations: 1.434 MB / 439.4 MB, free: 101.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001887/0.937, allocations: 252 kB / 439.6 MB, free: 101.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004456/0.9415, allocations: 0.7366 MB / 440.4 MB, free: 101.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005143/0.942, allocations: 341.2 kB / 440.7 MB, free: 101 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (671): * Single equations (assignments): 668 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002553/0.9446, allocations: 1.533 MB / 442.2 MB, free: 99.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004792/0.9451, allocations: 239.6 kB / 442.5 MB, free: 99.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/0.9467, allocations: 0.8058 MB / 443.3 MB, free: 98.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.038e-05/0.9467, allocations: 13.25 kB / 443.3 MB, free: 98.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.9467, allocations: 4 kB / 443.3 MB, free: 98.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.9468, allocations: 6.75 kB / 443.3 MB, free: 98.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00452/0.9513, allocations: 2.356 MB / 445.7 MB, free: 96.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.9513, allocations: 4 kB / 445.7 MB, free: 96.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004271/0.9556, allocations: 393.8 kB / 446.1 MB, free: 96.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.9556, allocations: 11.94 kB / 446.1 MB, free: 96.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.9558, allocations: 39.92 kB / 446.1 MB, free: 96.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.137e-06/0.9558, allocations: 6.625 kB / 446.1 MB, free: 96.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.9558, allocations: 0 / 446.1 MB, free: 96.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004211/0.96, allocations: 2.83 MB / 448.9 MB, free: 93.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005046/0.9605, allocations: 301.1 kB / 449.2 MB, free: 93.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004582/0.961, allocations: 26.25 kB / 449.3 MB, free: 93.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/0.9625, allocations: 40.8 kB / 449.3 MB, free: 93.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.9626, allocations: 62.7 kB / 449.4 MB, free: 93.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.9627, allocations: 31.98 kB / 449.4 MB, free: 93.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00312/0.9659, allocations: 1.812 MB / 451.2 MB, free: 91.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.9659, allocations: 0 / 451.2 MB, free: 91.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004523/0.9704, allocations: 0.8069 MB / 452 MB, free: 90.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 78 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003855/0.9708, allocations: 166.9 kB / 452.2 MB, free: 90.56 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006909/0.9778, allocations: 3.536 MB / 455.7 MB, free: 87.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/0.9778, allocations: 0 / 455.7 MB, free: 87.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.979, allocations: 0.6939 MB / 456.4 MB, free: 86.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.9805, allocations: 241.1 kB / 456.6 MB, free: 86.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.9947, allocations: 8.274 MB / 464.9 MB, free: 77.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002809/0.9975, allocations: 2.425 MB / 467.3 MB, free: 75.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.006168/1.004, allocations: 1.615 MB / 469 MB, free: 73.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005885/1.004, allocations: 183.4 kB / 469.1 MB, free: 73.55 MB / 362.7 MB Notification: Performance of SimCode: time 1.153e-06/1.004, allocations: 0 / 469.1 MB, free: 73.55 MB / 362.7 MB Notification: Performance of Templates: time 0.06806/1.072, allocations: 19.71 MB / 488.8 MB, free: 53.93 MB / 362.7 MB "" Variables in the reference:time,body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3] Variables in the result:body1.animation,body1.m,body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.specularCoefficient,body1.sphere.specularCoefficient,body1.stateSelect,body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.animation,body2.m,body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.specularCoefficient,body2.sphere.specularCoefficient,body2.stateSelect,body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.animation,body3.m,body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.specularCoefficient,body3.sphere.specularCoefficient,body3.stateSelect,body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.animation,body4.m,body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.specularCoefficient,body4.sphere.specularCoefficient,body4.stateSelect,body4.v_0[1],body4.v_0[2],body4.v_0[3],spring.animation,spring.c,spring.fixedRotationAtFrame_a,spring.fixedRotationAtFrame_b,spring.lengthFraction,spring.lineForce.animateLine,spring.lineForce.animateMass,spring.lineForce.fixedRotationAtFrame_a,spring.lineForce.fixedRotationAtFrame_b,spring.lineForce.lengthFraction,spring.lineForce.lineShape.extra,spring.lineForce.lineShape.specularCoefficient,spring.lineForce.lineShape.width,spring.lineForce.lineShapeExtra,spring.lineForce.lineShapeWidth,spring.lineForce.m,spring.lineForce.s_small,spring.lineForce.specularCoefficient,spring.m,spring.numberOfWindings,spring.s_unstretched,spring.showMass,spring.specularCoefficient,spring.spring.c,spring.spring.s_rel0,spring.width,time,world.animateGravity,world.animateWorld,world.axisDiameter,world.axisLength,world.axisShowLabels,world.defaultArrowDiameter,world.defaultAxisLength,world.defaultBodyDiameter,world.defaultForceLength,world.defaultForceWidth,world.defaultFrameDiameterFraction,world.defaultJointLength,world.defaultJointWidth,world.defaultN_to_m,world.defaultNm_to_m,world.defaultSpecularCoefficient,world.defaultWidthFraction,world.driveTrainMechanics3D,world.enableAnimation,world.g,world.gravityArrowDiameter,world.gravityArrowLength,world.gravityArrowTail[1],world.gravityArrowTail[2],world.gravityArrowTail[3],world.gravityHeadLength,world.gravityHeadWidth,world.gravityLineLength,world.gravitySphere.height,world.gravitySphere.length,world.gravitySphere.width,world.gravitySphereDiameter,world.gravityType,world.headLength,world.headWidth,world.labelStart,world.lineLength,world.lineWidth,world.mue,world.n[1],world.n[2],world.n[3],world.ndim,world.ndim2,world.ndim_pointGravity,world.nominalLength,world.scaledLabel,world.x_arrowHead.height,world.x_arrowHead.length,world.x_arrowHead.r[1],world.x_arrowHead.width,world.x_arrowLine.height,world.x_arrowLine.length,world.x_arrowLine.width,world.x_label.cylinders[1].height,world.x_label.cylinders[1].r[1],world.x_label.cylinders[1].width,world.x_label.cylinders[2].height,world.x_label.cylinders[2].width,world.x_label.diameter,world.x_label.lines[1,2,1],world.x_label.lines[1,2,2],world.x_label.lines[2,1,2],world.x_label.lines[2,2,1],world.x_label.n,world.x_label.r_abs[1],world.x_label.r_lines[1],world.y_arrowHead.height,world.y_arrowHead.length,world.y_arrowHead.r[2],world.y_arrowHead.width,world.y_arrowLine.height,world.y_arrowLine.length,world.y_arrowLine.width,world.y_label.cylinders[1].height,world.y_label.cylinders[1].r[2],world.y_label.cylinders[1].width,world.y_label.cylinders[2].height,world.y_label.cylinders[2].width,world.y_label.diameter,world.y_label.lines[1,2,1],world.y_label.n,world.y_label.r_abs[2],world.y_label.r_lines[2],world.z_arrowHead.height,world.z_arrowHead.length,world.z_arrowHead.r[3],world.z_arrowHead.width,world.z_arrowLine.height,world.z_arrowLine.length,world.z_arrowLine.width,world.z_label.cylinders[1].height,world.z_label.cylinders[1].r[3],world.z_label.cylinders[1].width,world.z_label.cylinders[2].height,world.z_label.cylinders[2].width,world.z_label.cylinders[3].height,world.z_label.cylinders[3].width,world.z_label.diameter,world.z_label.lines[1,2,1],world.z_label.lines[2,1,2],world.z_label.lines[2,2,1],world.z_label.lines[2,2,2],world.z_label.lines[3,1,2],world.z_label.lines[3,2,1],world.z_label.n,world.z_label.r_abs[3],world.z_label.r_lines[3]