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.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.719/1.719, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.964e-05/2.959e-05, allocations: 7.984 kB / 228.2 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08272/0.08277, allocations: 38.77 MB / 266.9 MB, free: 480 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0361/0.1189, allocations: 22.72 MB / 289.6 MB, free: 9.668 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01405/0.133, allocations: 4.969 MB / 294.6 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005051/0.1382, allocations: 103.8 kB / 294.7 MB, free: 4.582 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004363/0.1426, allocations: 1.171 MB / 295.9 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01195/0.1546, allocations: 3.062 MB / 298.9 MB, free: 344 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.1565, allocations: 187.7 kB / 299.1 MB, free: 156 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2361/0.3927, allocations: 0.8788 MB / 300 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004057/0.3968, allocations: 1.601 MB / 301.6 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001344/0.3982, allocations: 467 kB / 302.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00216/0.4004, allocations: 0.7556 MB / 302.8 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00198/0.4024, allocations: 0.5049 MB / 303.3 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000753/0.4032, allocations: 64.34 kB / 303.4 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001625/0.4049, allocations: 0.9429 MB / 304.3 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000957/0.4059, allocations: 163.8 kB / 304.5 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006307/0.4122, allocations: 3.214 MB / 307.7 MB, free: 4.043 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.4123, allocations: 3.094 kB / 307.7 MB, free: 4.043 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.167e-06/0.4123, allocations: 0 / 307.7 MB, free: 4.043 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000203/0.4125, allocations: 1.156 kB / 307.7 MB, free: 4.043 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: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.007814/0.4203, allocations: 2.388 MB / 310.1 MB, free: 2.773 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.4204, allocations: 12.19 kB / 310.1 MB, free: 2.773 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01411/0.4345, allocations: 2.104 MB / 312.2 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003767/0.4383, allocations: 1.126 MB / 313.3 MB, free: 1.621 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.4386, allocations: 148.7 kB / 313.5 MB, free: 1.617 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009144/0.4395, allocations: 200.5 kB / 313.7 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03102/0.4705, allocations: 8.531 MB / 322.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001335/0.4707, allocations: 41.97 kB / 322.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004845/0.4712, allocations: 100.2 kB / 322.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004931/0.4762, allocations: 1.646 MB / 324 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03146/0.5077, allocations: 7.127 MB / 331.1 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05357/0.5613, allocations: 29.85 MB / 361 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0425/0.6038, allocations: 4.972 MB / 365.9 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00828/0.6122, allocations: 3.416 MB / 369.4 MB, free: 5.266 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.983e-05/0.6123, allocations: 46.25 kB / 369.4 MB, free: 5.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=104): time 5.33e-06/0.6123, allocations: 4 kB / 369.4 MB, free: 5.211 MB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.0871/0.6994, allocations: 9.481 MB / 378.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.6996, allocations: 195.8 kB / 379.1 MB, free: 11.37 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007178/0.7068, allocations: 2.676 MB / 381.8 MB, free: 8.676 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003176/0.7072, allocations: 41.7 kB / 381.8 MB, free: 8.629 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002802/0.71, allocations: 2.397 MB / 384.2 MB, free: 6.238 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00093/0.7109, allocations: 485.5 kB / 384.7 MB, free: 5.766 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006587/0.7116, allocations: 104 kB / 384.8 MB, free: 5.664 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0006885/0.7123, allocations: 0.5885 MB / 385.4 MB, free: 5.066 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004677/0.717, allocations: 1.576 MB / 386.9 MB, free: 3.484 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00794/0.725, allocations: 5.089 MB / 392 MB, free: 12.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006976/0.732, allocations: 2.789 MB / 394.8 MB, free: 9.996 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001097/0.7322, allocations: 36 kB / 394.8 MB, free: 9.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01806/0.7503, allocations: 6.346 MB / 401.2 MB, free: 4.367 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000112/0.7504, allocations: 56 kB / 401.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002054/0.7507, allocations: 128 kB / 401.4 MB, free: 4.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002505/0.7509, allocations: 184 kB / 401.5 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0109/0.7618, allocations: 1.432 MB / 403 MB, free: 2.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004815/0.7624, allocations: 250.1 kB / 403.2 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009442/0.7718, allocations: 0.7421 MB / 404 MB, free: 1.746 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001231/0.7731, allocations: 350.7 kB / 404.3 MB, free: 1.406 MB / 330.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.004175/0.7773, allocations: 1.528 MB / 405.8 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006635/0.778, allocations: 248.8 kB / 406.1 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002064/0.7801, allocations: 0.8089 MB / 406.9 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.041e-05/0.7801, allocations: 12.38 kB / 406.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.7802, allocations: 4 kB / 406.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.7802, allocations: 3.984 kB / 406.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006602/0.7868, allocations: 2.36 MB / 409.3 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.238e-05/0.7869, allocations: 7.938 kB / 409.3 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004669/0.7916, allocations: 395.5 kB / 409.7 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.891e-05/0.7916, allocations: 4 kB / 409.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002058/0.7918, allocations: 35.97 kB / 409.7 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.106e-05/0.7919, allocations: 4 kB / 409.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.7919, allocations: 3.938 kB / 409.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005579/0.7975, allocations: 2.833 MB / 412.5 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008779/0.7984, allocations: 305.7 kB / 412.8 MB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005602/0.799, allocations: 35.98 kB / 412.9 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.8006, allocations: 39.78 kB / 412.9 MB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001945/0.8008, allocations: 55.92 kB / 413 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.8009, allocations: 31.98 kB / 413 MB, free: 8.613 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004557/0.8055, allocations: 1.812 MB / 414.8 MB, free: 6.797 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.8056, allocations: 0 / 414.8 MB, free: 6.797 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005641/0.8112, allocations: 0.8101 MB / 415.6 MB, free: 5.988 MB / 346.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.0006053/0.8119, allocations: 159 kB / 415.8 MB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01165/0.8235, allocations: 3.541 MB / 419.3 MB, free: 2.309 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/0.8236, allocations: 384 / 419.3 MB, free: 2.309 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002415/0.826, allocations: 0.6999 MB / 420 MB, free: 1.609 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002827/0.8289, allocations: 234.2 kB / 420.3 MB, free: 1.379 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0275/0.8564, allocations: 8.276 MB / 428.5 MB, free: 9.055 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006332/0.8628, allocations: 2.413 MB / 430.9 MB, free: 6.617 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.01012/0.873, allocations: 1.617 MB / 432.6 MB, free: 4.992 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001173/0.8742, allocations: 183.4 kB / 432.7 MB, free: 4.812 MB / 362.7 MB Notification: Performance of SimCode: time 1.423e-06/0.8742, allocations: 4 kB / 432.7 MB, free: 4.809 MB / 362.7 MB Notification: Performance of Templates: time 0.284/1.158, allocations: 19.69 MB / 452.4 MB, free: 122.6 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]