Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadModel(Modelica): time 2.046/2.046, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.181e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.0238/0.1354, allocations: 14.88 MB / 359.9 MB, free: 10 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.1489, allocations: 4.516 MB / 364.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003236/0.1522, allocations: 71.81 kB / 364.5 MB, free: 5.398 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002816/0.155, allocations: 0.7038 MB / 365.2 MB, free: 4.691 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009021/0.1641, allocations: 2.298 MB / 367.5 MB, free: 2.387 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002048/0.1662, allocations: 415.2 kB / 367.9 MB, free: 1.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003443/0.1697, allocations: 1.06 MB / 368.9 MB, free: 0.918 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003064/0.1728, allocations: 1.355 MB / 370.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/0.1741, allocations: 0.5065 MB / 370.8 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.1758, allocations: 0.7909 MB / 371.6 MB, free: 14.24 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.1782, allocations: 0.7295 MB / 372.3 MB, free: 13.51 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006949/0.1789, allocations: 84 kB / 372.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00143/0.1803, allocations: 0.8804 MB / 373.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006797/0.1811, allocations: 148 kB / 373.4 MB, free: 12.4 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005363/0.1864, allocations: 3.094 MB / 376.5 MB, free: 9.297 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1865, allocations: 0 / 376.5 MB, free: 9.297 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1865, allocations: 4 kB / 376.5 MB, free: 9.293 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001321/0.1867, allocations: 0 / 376.5 MB, free: 9.293 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: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.008502/0.1952, allocations: 2.548 MB / 379.1 MB, free: 6.688 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.585e-05/0.1953, allocations: 8.031 kB / 379.1 MB, free: 6.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01735/0.2126, allocations: 1.892 MB / 381 MB, free: 4.781 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006344/0.2191, allocations: 1.468 MB / 382.4 MB, free: 3.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002913/0.2194, allocations: 123 kB / 382.5 MB, free: 3.148 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001298/0.2207, allocations: 167.8 kB / 382.7 MB, free: 2.984 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02371/0.2445, allocations: 6.577 MB / 389.3 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001608/0.2447, allocations: 35.66 kB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001027/0.2457, allocations: 79.91 kB / 389.4 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006372/0.2522, allocations: 1.46 MB / 390.9 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02028/0.2725, allocations: 5.873 MB / 396.7 MB, free: 4.477 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3973/0.6699, allocations: 25.79 MB / 422.5 MB, free: 30.56 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009594/0.6795, allocations: 2.591 MB / 425.1 MB, free: 29.37 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01238/0.692, allocations: 4.837 MB / 429.9 MB, free: 26.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.6921, allocations: 44.11 kB / 430 MB, free: 26.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=97): time 4.559e-06/0.6921, allocations: 0 / 430 MB, free: 26.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=105): time 0.04002/0.7321, allocations: 10.03 MB / 440 MB, free: 19.93 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.7322, allocations: 148.9 kB / 440.2 MB, free: 19.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005085/0.7373, allocations: 2.527 MB / 442.7 MB, free: 17.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002957/0.7376, allocations: 38.56 kB / 442.7 MB, free: 17.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001517/0.7392, allocations: 2.036 MB / 444.8 MB, free: 15.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006555/0.7399, allocations: 427.6 kB / 445.2 MB, free: 14.72 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003684/0.7403, allocations: 85.25 kB / 445.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002502/0.7405, allocations: 485.7 kB / 445.7 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003518/0.7441, allocations: 1.429 MB / 447.2 MB, free: 12.72 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005124/0.7492, allocations: 4.026 MB / 451.2 MB, free: 7.375 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005238/0.7545, allocations: 2.337 MB / 453.5 MB, free: 5.039 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.946e-05/0.7547, allocations: 24 kB / 453.6 MB, free: 5.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01687/0.7715, allocations: 5.917 MB / 459.5 MB, free: 15.1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.535e-05/0.7717, allocations: 48 kB / 459.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001495/0.7719, allocations: 92 kB / 459.6 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004442/0.7763, allocations: 0.8281 MB / 460.4 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005969/0.7823, allocations: 0.9396 MB / 461.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01016/0.7925, allocations: 4.432 MB / 465.8 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00453/0.7971, allocations: 247.6 kB / 466.1 MB, free: 8.391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009242/0.7981, allocations: 259.7 kB / 466.3 MB, free: 8.141 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (498): * Single equations (assignments): 494 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003563/0.8017, allocations: 1.341 MB / 467.7 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006843/0.8024, allocations: 221.1 kB / 467.9 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007995/0.8104, allocations: 2.143 MB / 470 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.529e-05/0.8105, allocations: 12 kB / 470 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.8105, allocations: 7.953 kB / 470 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.779e-05/0.8106, allocations: 3.984 kB / 470 MB, free: 4.391 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/0.8274, allocations: 5.079 MB / 475.1 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-05/0.8275, allocations: 0 / 475.1 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/0.8291, allocations: 155.8 kB / 475.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004033/0.8332, allocations: 0.685 MB / 476 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002648/0.8335, allocations: 12.55 kB / 476 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009229/0.8427, allocations: 3.982 MB / 479.9 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.8428, allocations: 7.984 kB / 480 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01194/0.8547, allocations: 4.149 MB / 484.1 MB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008805/0.8557, allocations: 294.1 kB / 484.4 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008688/0.8565, allocations: 17.02 kB / 484.4 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002157/0.8587, allocations: 67.89 kB / 484.5 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00039/0.8592, allocations: 64.98 kB / 484.5 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/0.8593, allocations: 32.77 kB / 484.6 MB, free: 5.586 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004503/0.8639, allocations: 1.772 MB / 486.3 MB, free: 3.801 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.8639, allocations: 0 / 486.3 MB, free: 3.801 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004782/0.8687, allocations: 0.6869 MB / 487 MB, free: 3.125 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 70 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008189/0.8696, allocations: 199.4 kB / 487.2 MB, free: 2.938 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009058/0.8786, allocations: 3.45 MB / 490.7 MB, free: 15.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.567e-06/0.8787, allocations: 0 / 490.7 MB, free: 15.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002631/0.8813, allocations: 1.043 MB / 491.7 MB, free: 14.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/0.8836, allocations: 247.8 kB / 492 MB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/0.9004, allocations: 6.912 MB / 498.9 MB, free: 7.234 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004302/0.9047, allocations: 2.292 MB / 0.4894 GB, free: 4.914 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/0.906, allocations: 195.4 kB / 0.4896 GB, free: 4.723 MB / 378.7 MB Notification: Performance of SimCode: time 1.472e-06/0.906, allocations: 0 / 0.4896 GB, free: 4.723 MB / 378.7 MB Notification: Performance of Templates: time 0.1028/1.009, allocations: 46.92 MB / 0.5354 GB, free: 5.789 MB / 426.7 MB