Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.687/1.687, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.43e-05/3.44e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2567, allocations: 38.77 MB / 263.9 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1464/0.4032, allocations: 80.96 MB / 344.8 MB, free: 8.68 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003115/0.4035, allocations: 83.95 kB / 344.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4742/0.8778, allocations: 57.69 MB / 402.6 MB, free: 70.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.8778, allocations: 3.938 kB / 402.6 MB, free: 70.74 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001292/0.878, allocations: 48 kB / 402.6 MB, free: 70.7 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.009968/0.8879, allocations: 2.616 MB / 405.3 MB, free: 68.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.888, allocations: 11.97 kB / 405.3 MB, free: 68.03 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001931/0.89, allocations: 498.7 kB / 405.7 MB, free: 67.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01917/0.9092, allocations: 1.923 MB / 407.7 MB, free: 65.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01848/0.9277, allocations: 3.389 MB / 411.1 MB, free: 62.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004057/0.9282, allocations: 184.4 kB / 411.2 MB, free: 62.06 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002074/0.9303, allocations: 239.9 kB / 411.5 MB, free: 61.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02617/0.9565, allocations: 6.744 MB / 418.2 MB, free: 54.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002377/0.9568, allocations: 43.59 kB / 418.3 MB, free: 54.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001732/0.9586, allocations: 119.9 kB / 418.4 MB, free: 54.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002464/0.9611, allocations: 0.7267 MB / 419.1 MB, free: 53.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02426/0.9854, allocations: 5.72 MB / 424.8 MB, free: 47.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0598/1.045, allocations: 31.14 MB / 456 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01394/1.059, allocations: 2.594 MB / 458.6 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003566/1.063, allocations: 1.211 MB / 459.8 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01867/1.082, allocations: 5.142 MB / 464.9 MB, free: 6.375 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/1.082, allocations: 38.56 kB / 464.9 MB, free: 6.328 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 6.923e-06/1.082, allocations: 0 / 464.9 MB, free: 6.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=105): time 0.0467/1.128, allocations: 8.018 MB / 473 MB, free: 14.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/1.129, allocations: 141 kB / 473.1 MB, free: 14.01 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008779/1.137, allocations: 2.365 MB / 475.5 MB, free: 11.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004129/1.138, allocations: 41.7 kB / 475.5 MB, free: 11.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003251/1.141, allocations: 2.024 MB / 477.5 MB, free: 9.523 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00117/1.142, allocations: 426.7 kB / 477.9 MB, free: 9.102 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007239/1.143, allocations: 83.94 kB / 478 MB, free: 9.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0006329/1.144, allocations: 491.7 kB / 478.5 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006058/1.15, allocations: 1.386 MB / 479.9 MB, free: 7.137 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009433/1.159, allocations: 3.939 MB / 483.8 MB, free: 1.895 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008576/1.168, allocations: 2.321 MB / 486.2 MB, free: 15.58 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001217/1.168, allocations: 24 kB / 486.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.02373/1.192, allocations: 5.538 MB / 491.7 MB, free: 10.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.214e-05/1.192, allocations: 47.98 kB / 491.8 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/1.192, allocations: 92 kB / 491.9 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004277/1.197, allocations: 0.8203 MB / 492.7 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005869/1.202, allocations: 0.9358 MB / 493.6 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009912/1.212, allocations: 4.289 MB / 497.9 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005808/1.218, allocations: 279.6 kB / 498.2 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/1.219, allocations: 260 kB / 498.4 MB, free: 3.156 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.001151/1.221, allocations: 428.5 kB / 498.8 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008011/1.221, allocations: 229 kB / 499.1 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/1.233, allocations: 2.11 MB / 0.4894 GB, free: 380 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.91e-05/1.233, allocations: 15.95 kB / 0.4895 GB, free: 364 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/1.233, allocations: 4 kB / 0.4895 GB, free: 360 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.831e-05/1.233, allocations: 7.984 kB / 0.4895 GB, free: 352 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2568/1.49, allocations: 5.059 MB / 0.4944 GB, free: 92.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-05/1.49, allocations: 3.969 kB / 0.4944 GB, free: 92.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/1.491, allocations: 144.2 kB / 0.4945 GB, free: 92.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003596/1.495, allocations: 0.6778 MB / 0.4952 GB, free: 92.72 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001702/1.495, allocations: 23.14 kB / 0.4952 GB, free: 92.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007314/1.502, allocations: 3.833 MB / 0.499 GB, free: 91.47 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.502, allocations: 3.938 kB / 0.499 GB, free: 91.47 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00964/1.512, allocations: 4.124 MB / 0.503 GB, free: 90.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00137/1.513, allocations: 463.3 kB / 0.5034 GB, free: 90.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003995/1.514, allocations: 18.03 kB / 0.5035 GB, free: 90.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/1.515, allocations: 85.45 kB / 0.5035 GB, free: 90.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002354/1.516, allocations: 64.48 kB / 0.5036 GB, free: 90.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/1.516, allocations: 34.52 kB / 0.5036 GB, free: 90.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003524/1.519, allocations: 1.641 MB / 0.5052 GB, free: 90.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.192e-06/1.519, allocations: 0 / 0.5052 GB, free: 90.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004654/1.524, allocations: 0.6745 MB / 0.5059 GB, free: 90.67 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.0104/1.535, allocations: 5.09 MB / 0.5109 GB, free: 88.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007102/1.542, allocations: 3.255 MB / 0.514 GB, free: 87.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/1.542, allocations: 0 / 0.514 GB, free: 87.46 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/1.544, allocations: 1.023 MB / 0.515 GB, free: 87.05 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001907/1.546, allocations: 230.2 kB / 0.5153 GB, free: 86.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01585/1.562, allocations: 5.695 MB / 0.5208 GB, free: 84.87 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00486/1.567, allocations: 2.29 MB / 0.5231 GB, free: 83.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00375/1.57, allocations: 1.124 MB / 0.5242 GB, free: 82.97 MB / 346.7 MB Notification: Performance of SimCode: time 1.993e-06/1.57, allocations: 0 / 0.5242 GB, free: 82.97 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.002/5.572, allocations: 61.4 MB / 0.5841 GB, free: 26.93 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat