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.63/1.63, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.774e-05/4.797e-05, allocations: 11.92 kB / 225 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2273, allocations: 38.76 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1241/0.3514, allocations: 80.96 MB / 344.7 MB, free: 8.789 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.3518, allocations: 79.95 kB / 344.8 MB, free: 8.711 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4084/0.7602, allocations: 57.67 MB / 402.5 MB, free: 70.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.015e-06/0.7603, allocations: 7.875 kB / 402.5 MB, free: 70.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.657e-05/0.7604, allocations: 52 kB / 402.5 MB, free: 70.88 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: 948 * Number of variables: 948 Notification: Performance of Generate backend data structure: time 0.01417/0.7746, allocations: 2.616 MB / 405.1 MB, free: 68.22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.322e-05/0.7747, allocations: 15.97 kB / 405.2 MB, free: 68.21 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02359/0.7983, allocations: 1.919 MB / 407.1 MB, free: 66.28 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02048/0.8188, allocations: 3.39 MB / 410.5 MB, free: 62.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003757/0.8193, allocations: 191.6 kB / 410.7 MB, free: 62.72 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001854/0.8212, allocations: 241.7 kB / 410.9 MB, free: 62.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02541/0.8466, allocations: 6.744 MB / 417.6 MB, free: 55.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001114/0.8468, allocations: 39.59 kB / 417.7 MB, free: 55.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004653/0.8472, allocations: 127.9 kB / 417.8 MB, free: 54.9 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001047/0.8483, allocations: 0.715 MB / 418.5 MB, free: 54.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01199/0.8603, allocations: 5.731 MB / 424.3 MB, free: 48.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0336/0.894, allocations: 31.13 MB / 455.4 MB, free: 16.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006734/0.9007, allocations: 2.595 MB / 458 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001862/0.9026, allocations: 1.207 MB / 459.2 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009809/0.9125, allocations: 5.141 MB / 464.3 MB, free: 7.051 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.9125, allocations: 42.56 kB / 464.4 MB, free: 7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 4.99e-06/0.9126, allocations: 0 / 464.4 MB, free: 7 MB / 314.7 MB Notification: Performance of matching and sorting (n=105): time 0.02345/0.936, allocations: 8.014 MB / 472.4 MB, free: 14.85 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.9362, allocations: 141 kB / 472.5 MB, free: 14.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005119/0.9413, allocations: 2.365 MB / 474.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002387/0.9416, allocations: 41.7 kB / 474.9 MB, free: 12.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002089/0.9437, allocations: 2.027 MB / 477 MB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000689/0.9444, allocations: 426.7 kB / 477.4 MB, free: 9.773 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003894/0.9448, allocations: 79.98 kB / 477.4 MB, free: 9.695 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004295/0.9452, allocations: 499.7 kB / 477.9 MB, free: 9.195 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003208/0.9485, allocations: 1.386 MB / 479.3 MB, free: 7.805 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005834/0.9543, allocations: 3.943 MB / 483.3 MB, free: 2.559 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004975/0.9593, allocations: 2.315 MB / 485.6 MB, free: 256 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.026e-05/0.9595, allocations: 24 kB / 485.6 MB, free: 232 kB / 330.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.01535/0.9748, allocations: 5.533 MB / 491.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.647e-05/0.975, allocations: 46.81 kB / 491.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001323/0.9751, allocations: 95.98 kB / 491.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00319/0.9783, allocations: 0.8201 MB / 492.1 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004135/0.9825, allocations: 0.94 MB / 493 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008327/0.9909, allocations: 4.289 MB / 497.3 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004346/0.9952, allocations: 283.6 kB / 497.6 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007652/0.996, allocations: 259.9 kB / 497.9 MB, free: 3.824 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 420 * 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 (493): * Single equations (assignments): 489 * 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.0008117/0.9969, allocations: 421 kB / 498.3 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005586/0.9974, allocations: 225.1 kB / 498.5 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005722/1.003, allocations: 2.114 MB / 0.4889 GB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.484e-05/1.003, allocations: 12 kB / 0.4889 GB, free: 1.035 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/1.003, allocations: 11.95 kB / 0.4889 GB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/1.003, allocations: 7.984 kB / 0.4889 GB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2092/1.213, allocations: 5.058 MB / 0.4938 GB, free: 92.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.959e-05/1.213, allocations: 3.344 kB / 0.4938 GB, free: 92.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/1.214, allocations: 142.7 kB / 0.494 GB, free: 92.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002853/1.217, allocations: 0.6819 MB / 0.4946 GB, free: 92.65 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002078/1.217, allocations: 20.33 kB / 0.4947 GB, free: 92.65 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006229/1.223, allocations: 3.832 MB / 0.4984 GB, free: 91.4 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.857e-06/1.223, allocations: 5.219 kB / 0.4984 GB, free: 91.4 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008089/1.231, allocations: 4.123 MB / 0.5024 GB, free: 90.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001206/1.232, allocations: 459.3 kB / 0.5029 GB, free: 90.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000428/1.233, allocations: 16.25 kB / 0.5029 GB, free: 90.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001385/1.234, allocations: 83.61 kB / 0.503 GB, free: 90.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/1.235, allocations: 63.97 kB / 0.503 GB, free: 90.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/1.235, allocations: 32.25 kB / 0.5031 GB, free: 90.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002916/1.238, allocations: 1.644 MB / 0.5047 GB, free: 90.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.433e-06/1.238, allocations: 0 / 0.5047 GB, free: 90.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004295/1.242, allocations: 0.6773 MB / 0.5053 GB, free: 90.61 MB / 346.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.0004528/1.242, allocations: 181.6 kB / 0.5055 GB, free: 90.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005972/1.248, allocations: 3.264 MB / 0.5087 GB, free: 89.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/1.248, allocations: 3.688 kB / 0.5087 GB, free: 89.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/1.25, allocations: 1.007 MB / 0.5097 GB, free: 89.47 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/1.252, allocations: 229.2 kB / 0.5099 GB, free: 89.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009857/1.262, allocations: 4.844 MB / 0.5146 GB, free: 87.58 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002779/1.265, allocations: 2.282 MB / 0.5169 GB, free: 86.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008441/1.266, allocations: 194.3 kB / 0.517 GB, free: 86.55 MB / 346.7 MB Notification: Performance of SimCode: time 2.163e-06/1.266, allocations: 0 / 0.517 GB, free: 86.55 MB / 346.7 MB Notification: Performance of Templates: time 0.06126/1.327, allocations: 45.63 MB / 0.5616 GB, free: 50.1 MB / 346.7 MB