Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadModel(Modelica): time 1.701/1.701, allocations: 171.2 MB / 186.3 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.859e-05/2.858e-05, allocations: 0 / 228.1 MB, free: 7.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08238/0.08243, allocations: 38.77 MB / 266.9 MB, free: 1.117 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.02747/0.11, allocations: 14.31 MB / 281.2 MB, free: 2.75 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01512/0.1251, allocations: 4.29 MB / 285.5 MB, free: 14.45 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003502/0.1287, allocations: 75.81 kB / 285.6 MB, free: 14.37 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003228/0.132, allocations: 0.6921 MB / 286.3 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.1423, allocations: 2.174 MB / 288.4 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002326/0.1446, allocations: 451 kB / 288.9 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003965/0.1486, allocations: 1.053 MB / 289.9 MB, free: 10 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003518/0.1522, allocations: 1.339 MB / 291.3 MB, free: 8.641 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001285/0.1535, allocations: 0.4988 MB / 291.8 MB, free: 8.141 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002076/0.1556, allocations: 0.7987 MB / 292.6 MB, free: 7.34 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002954/0.1586, allocations: 0.7645 MB / 293.3 MB, free: 6.574 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008501/0.1595, allocations: 88 kB / 293.4 MB, free: 6.488 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001752/0.1613, allocations: 0.8804 MB / 294.3 MB, free: 5.605 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008259/0.1622, allocations: 148 kB / 294.4 MB, free: 5.461 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006943/0.1691, allocations: 3.106 MB / 297.6 MB, free: 2.348 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1692, allocations: 0 / 297.6 MB, free: 2.348 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1692, allocations: 4 kB / 297.6 MB, free: 2.344 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001072/0.1693, allocations: 0 / 297.6 MB, free: 2.344 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: 948 * Number of variables: 948 Notification: Performance of Generate backend data structure: time 0.2456/0.415, allocations: 2.574 MB / 300.1 MB, free: 29.47 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.415, allocations: 9.094 kB / 300.1 MB, free: 29.47 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0121/0.4272, allocations: 1.896 MB / 302 MB, free: 29.3 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00507/0.4323, allocations: 1.612 MB / 303.6 MB, free: 28.83 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/0.4326, allocations: 123.8 kB / 303.8 MB, free: 28.8 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/0.4337, allocations: 165.2 kB / 303.9 MB, free: 28.76 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01731/0.451, allocations: 6.595 MB / 310.5 MB, free: 25.55 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001216/0.4512, allocations: 26.72 kB / 310.6 MB, free: 25.54 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006997/0.4519, allocations: 83.92 kB / 310.6 MB, free: 25.51 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003909/0.4558, allocations: 1.412 MB / 312 MB, free: 24.96 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01665/0.4725, allocations: 5.867 MB / 317.9 MB, free: 20.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04246/0.515, allocations: 25.72 MB / 343.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/0.5252, allocations: 2.582 MB / 346.2 MB, free: 7.535 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01407/0.5394, allocations: 4.837 MB / 351 MB, free: 2.625 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.612e-05/0.5395, allocations: 46.5 kB / 351.1 MB, free: 2.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=97): time 5.069e-06/0.5395, allocations: 0 / 351.1 MB, free: 2.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=105): time 0.04563/0.5851, allocations: 10.08 MB / 361.2 MB, free: 8.301 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.5853, allocations: 145 kB / 361.3 MB, free: 8.129 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006648/0.592, allocations: 2.526 MB / 363.8 MB, free: 5.586 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003337/0.5924, allocations: 37.7 kB / 363.9 MB, free: 5.543 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002519/0.5949, allocations: 2.035 MB / 365.9 MB, free: 3.516 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009029/0.5959, allocations: 422.6 kB / 366.3 MB, free: 3.105 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005055/0.5964, allocations: 81.48 kB / 366.4 MB, free: 3.027 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004442/0.5969, allocations: 495.8 kB / 366.9 MB, free: 2.531 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00446/0.6013, allocations: 1.417 MB / 368.3 MB, free: 1.109 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007478/0.6089, allocations: 4.007 MB / 372.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00646/0.6154, allocations: 2.332 MB / 374.6 MB, free: 9.465 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.16e-05/0.6155, allocations: 24 kB / 374.7 MB, free: 9.441 MB / 298.7 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.01966/0.6352, allocations: 5.878 MB / 380.5 MB, free: 3.551 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.6354, allocations: 44 kB / 380.6 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001682/0.6356, allocations: 92 kB / 380.7 MB, free: 3.418 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004478/0.6401, allocations: 0.8324 MB / 381.5 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005964/0.6461, allocations: 0.9318 MB / 382.4 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/0.6567, allocations: 4.437 MB / 386.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004652/0.6614, allocations: 243.6 kB / 387.1 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009576/0.6624, allocations: 257.4 kB / 387.4 MB, free: 12.6 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 422 * Number of states: 0 () * Number of discrete variables: 18 (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.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 (495): * Single equations (assignments): 491 * 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.00386/0.6663, allocations: 1.342 MB / 388.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007338/0.667, allocations: 225 kB / 388.9 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008239/0.6753, allocations: 2.137 MB / 391.1 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.478e-05/0.6754, allocations: 19.94 kB / 391.1 MB, free: 8.852 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/0.6755, allocations: 4 kB / 391.1 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.473e-05/0.6755, allocations: 7.984 kB / 391.1 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/0.6926, allocations: 5.064 MB / 396.2 MB, free: 3.719 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.819e-05/0.6927, allocations: 4 kB / 396.2 MB, free: 3.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001663/0.6943, allocations: 159.8 kB / 396.3 MB, free: 3.559 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004171/0.6985, allocations: 0.68 MB / 397 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002969/0.6989, allocations: 20 kB / 397 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00963/0.7085, allocations: 3.992 MB / 401 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.7086, allocations: 3.938 kB / 401 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/0.721, allocations: 4.141 MB / 405.2 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001694/0.7228, allocations: 469.8 kB / 405.6 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005916/0.7234, allocations: 12 kB / 405.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/0.7252, allocations: 76.66 kB / 405.7 MB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/0.7255, allocations: 56.36 kB / 405.8 MB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/0.7257, allocations: 29.72 kB / 405.8 MB, free: 9.879 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.004875/0.7306, allocations: 1.763 MB / 407.6 MB, free: 8.105 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.7306, allocations: 0 / 407.6 MB, free: 8.105 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004875/0.7355, allocations: 0.6823 MB / 408.2 MB, free: 7.434 MB / 330.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.0008411/0.7364, allocations: 194.8 kB / 408.4 MB, free: 7.246 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.009412/0.7458, allocations: 3.438 MB / 411.9 MB, free: 3.816 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.7459, allocations: 0 / 411.9 MB, free: 3.816 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002655/0.7486, allocations: 1.039 MB / 412.9 MB, free: 2.766 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.7508, allocations: 239 kB / 413.1 MB, free: 2.531 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01696/0.7678, allocations: 6.893 MB / 420 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004242/0.7721, allocations: 2.287 MB / 422.3 MB, free: 9.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001163/0.7733, allocations: 195.4 kB / 422.5 MB, free: 9.078 MB / 346.7 MB Notification: Performance of SimCode: time 1.754e-06/0.7733, allocations: 0 / 422.5 MB, free: 9.078 MB / 346.7 MB Notification: Performance of Templates: time 0.3266/1.1, allocations: 46.78 MB / 469.3 MB, free: 84.39 MB / 346.7 MB