Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.15/2.15, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 6.154e-05/6.19e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.314, allocations: 44.49 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1599/0.474, allocations: 86.05 MB / 380.3 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000324/0.4744, allocations: 87.88 kB / 380.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5156/0.99, allocations: 56.69 MB / 437 MB, free: 91.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.99, allocations: 0 / 437 MB, free: 91.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001365/0.9902, allocations: 44.69 kB / 437.1 MB, free: 91.36 MB / 362.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.01014/1, allocations: 2.621 MB / 439.7 MB, free: 90.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/1, allocations: 10.88 kB / 439.7 MB, free: 90.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01486/1.015, allocations: 1.924 MB / 441.6 MB, free: 89.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01303/1.028, allocations: 3.392 MB / 445 MB, free: 89.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/1.029, allocations: 80.56 kB / 445.1 MB, free: 89.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001498/1.03, allocations: 140.2 kB / 445.2 MB, free: 89.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01/1.04, allocations: 4.091 MB / 449.3 MB, free: 89.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01558/1.056, allocations: 6.202 MB / 455.5 MB, free: 86.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002076/1.056, allocations: 38.47 kB / 455.6 MB, free: 86.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001257/1.057, allocations: 25.88 kB / 455.6 MB, free: 86.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001719/1.059, allocations: 0.7203 MB / 456.3 MB, free: 86.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04358/1.103, allocations: 30.46 MB / 486.8 MB, free: 59.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003742/1.107, allocations: 2.185 MB / 489 MB, free: 57.08 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002195/1.109, allocations: 1.126 MB / 490.1 MB, free: 55.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001607/1.11, allocations: 343.4 kB / 490.4 MB, free: 55.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/1.111, allocations: 50.94 kB / 490.5 MB, free: 55.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=106): time 4.99e-06/1.111, allocations: 0 / 490.5 MB, free: 55.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=114): time 0.03294/1.144, allocations: 9.702 MB / 0.4884 GB, free: 45.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/1.144, allocations: 144.9 kB / 0.4886 GB, free: 45.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004206/1.148, allocations: 2.05 MB / 0.4906 GB, free: 43.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003652/1.148, allocations: 25.7 kB / 0.4906 GB, free: 43.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001554/1.15, allocations: 2.085 MB / 0.4926 GB, free: 41.28 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000732/1.151, allocations: 454.2 kB / 0.4931 GB, free: 40.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000467/1.151, allocations: 0 / 0.4931 GB, free: 40.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002953/1.151, allocations: 0.4885 MB / 0.4936 GB, free: 40.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00326/1.155, allocations: 1.379 MB / 0.4949 GB, free: 38.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005103/1.16, allocations: 4.043 MB / 0.4989 GB, free: 33.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006299/1.166, allocations: 2.471 MB / 0.5013 GB, free: 31.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.574e-05/1.166, allocations: 28 kB / 0.5013 GB, free: 31.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=556) (initialization): time 0.01765/1.184, allocations: 5.612 MB / 0.5068 GB, free: 25.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.42e-05/1.184, allocations: 44 kB / 0.5068 GB, free: 25.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001298/1.184, allocations: 96.91 kB / 0.5069 GB, free: 25.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004365/1.189, allocations: 0.8396 MB / 0.5077 GB, free: 24.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006273/1.195, allocations: 0.9825 MB / 0.5087 GB, free: 23.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008522/1.204, allocations: 4.242 MB / 0.5128 GB, free: 19.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005355/1.209, allocations: 207.6 kB / 0.513 GB, free: 18.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/1.21, allocations: 264 kB / 0.5133 GB, free: 18.64 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 438 * 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 (520): * Single equations (assignments): 516 * 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.001023/1.211, allocations: 347.4 kB / 0.5136 GB, free: 18.3 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009266/1.22, allocations: 2.643 MB / 0.5162 GB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007729/1.221, allocations: 205.3 kB / 0.5164 GB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00852/1.23, allocations: 2.233 MB / 0.5186 GB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.743e-05/1.23, allocations: 12 kB / 0.5186 GB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/1.23, allocations: 7.953 kB / 0.5186 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.76e-05/1.23, allocations: 3.984 kB / 0.5186 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/1.247, allocations: 5.136 MB / 0.5236 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.997e-05/1.247, allocations: 4.156 kB / 0.5236 GB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/1.249, allocations: 167.6 kB / 0.5238 GB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003793/1.252, allocations: 0.6795 MB / 0.5244 GB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002833/1.253, allocations: 11.98 kB / 0.5244 GB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007198/1.26, allocations: 3.689 MB / 0.528 GB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/1.26, allocations: 7.969 kB / 0.5281 GB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01175/1.272, allocations: 4.368 MB / 0.5323 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001654/1.274, allocations: 438.3 kB / 0.5327 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006514/1.274, allocations: 4 kB / 0.5327 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002193/1.276, allocations: 75.83 kB / 0.5328 GB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004268/1.277, allocations: 64.23 kB / 0.5329 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/1.277, allocations: 44.05 kB / 0.5329 GB, free: 14.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003656/1.281, allocations: 1.355 MB / 0.5342 GB, free: 12.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.281, allocations: 0 / 0.5342 GB, free: 12.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005516/1.286, allocations: 0.5898 MB / 0.5348 GB, free: 12.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (83): * Single equations (assignments): 79 * 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.01451/1.301, allocations: 5.521 MB / 0.5402 GB, free: 6.633 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009026/1.31, allocations: 3.324 MB / 0.5435 GB, free: 3.324 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/1.31, allocations: 480 / 0.5435 GB, free: 3.324 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002644/1.313, allocations: 1.047 MB / 0.5445 GB, free: 2.266 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/1.315, allocations: 187.6 kB / 0.5447 GB, free: 2.078 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02068/1.336, allocations: 5.623 MB / 0.5501 GB, free: 12.37 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005079/1.341, allocations: 2.297 MB / 0.5524 GB, free: 10.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003572/1.344, allocations: 1.124 MB / 0.5535 GB, free: 8.93 MB / 394.7 MB Notification: Performance of SimCode: time 2.044e-06/1.344, allocations: 0 / 0.5535 GB, free: 8.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.039/5.383, allocations: 60.82 MB / 0.6129 GB, free: 87.25 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat