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.733/1.733, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.068e-05/3.078e-05, allocations: 8 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2777, allocations: 38.77 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1405/0.4183, allocations: 80.29 MB / 338.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.4186, allocations: 83.95 kB / 338.7 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.46/0.8786, allocations: 56.69 MB / 395.4 MB, free: 78.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.8787, allocations: 0 / 395.4 MB, free: 78.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001182/0.8788, allocations: 47.2 kB / 395.4 MB, free: 78.95 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.009411/0.8882, allocations: 2.618 MB / 398.1 MB, free: 76.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.8883, allocations: 11.97 kB / 398.1 MB, free: 76.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01403/0.9024, allocations: 1.923 MB / 400 MB, free: 74.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01231/0.9147, allocations: 3.395 MB / 403.4 MB, free: 70.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.9149, allocations: 80.86 kB / 403.5 MB, free: 70.85 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001178/0.9161, allocations: 136 kB / 403.6 MB, free: 70.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009105/0.9252, allocations: 4.099 MB / 407.7 MB, free: 66.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/0.9383, allocations: 6.194 MB / 413.9 MB, free: 59.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001326/0.9385, allocations: 39.69 kB / 413.9 MB, free: 59.69 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006485/0.9391, allocations: 20 kB / 413.9 MB, free: 59.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001443/0.9406, allocations: 0.7259 MB / 414.7 MB, free: 58.94 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04178/0.9824, allocations: 30.46 MB / 445.1 MB, free: 27.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003845/0.9863, allocations: 2.189 MB / 447.3 MB, free: 25.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002306/0.9887, allocations: 1.125 MB / 448.5 MB, free: 24.19 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001624/0.9904, allocations: 335.5 kB / 448.8 MB, free: 23.81 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/0.9905, allocations: 50.88 kB / 448.8 MB, free: 23.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=106): time 5.43e-06/0.9905, allocations: 0 / 448.8 MB, free: 23.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=114): time 0.03186/1.022, allocations: 9.697 MB / 458.5 MB, free: 13.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/1.022, allocations: 137 kB / 458.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003628/1.026, allocations: 2.05 MB / 460.7 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003395/1.026, allocations: 29.64 kB / 460.7 MB, free: 11.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/1.028, allocations: 2.085 MB / 462.8 MB, free: 9.527 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006574/1.029, allocations: 450.2 kB / 463.3 MB, free: 9.082 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000293/1.029, allocations: 0 / 463.3 MB, free: 9.082 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002684/1.029, allocations: 0.4963 MB / 463.8 MB, free: 8.574 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002764/1.032, allocations: 1.379 MB / 465.1 MB, free: 7.188 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004383/1.036, allocations: 4.046 MB / 469.2 MB, free: 1.781 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006354/1.043, allocations: 2.476 MB / 471.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.718e-05/1.043, allocations: 28 kB / 471.7 MB, free: 15.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=556) (initialization): time 0.01935/1.062, allocations: 5.597 MB / 477.3 MB, free: 9.672 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.477e-05/1.063, allocations: 48.06 kB / 477.3 MB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001678/1.063, allocations: 96 kB / 477.4 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004483/1.067, allocations: 0.8444 MB / 478.3 MB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006218/1.073, allocations: 0.9825 MB / 479.3 MB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01/1.083, allocations: 4.241 MB / 483.5 MB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005075/1.089, allocations: 211.6 kB / 483.7 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001075/1.09, allocations: 271.9 kB / 484 MB, free: 2.875 MB / 330.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.0008842/1.091, allocations: 332.5 kB / 484.3 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01001/1.101, allocations: 2.636 MB / 486.9 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008005/1.102, allocations: 209.3 kB / 487.1 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008996/1.111, allocations: 2.244 MB / 489.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-05/1.111, allocations: 15.98 kB / 489.4 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/1.111, allocations: 11.94 kB / 489.4 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.113e-05/1.111, allocations: 3.984 kB / 489.4 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01844/1.129, allocations: 5.13 MB / 494.5 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.262e-05/1.129, allocations: 4 kB / 494.5 MB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/1.131, allocations: 159.8 kB / 494.7 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004064/1.135, allocations: 0.6797 MB / 495.4 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002801/1.135, allocations: 4 kB / 495.4 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008572/1.144, allocations: 3.696 MB / 499.1 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.826e-06/1.144, allocations: 4.031 kB / 499.1 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.247/1.391, allocations: 4.366 MB / 0.4916 GB, free: 95.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/1.393, allocations: 445.3 kB / 0.4921 GB, free: 95.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006293/1.393, allocations: 4.047 kB / 0.4921 GB, free: 95.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001931/1.395, allocations: 73.81 kB / 0.4921 GB, free: 95.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/1.395, allocations: 59.7 kB / 0.4922 GB, free: 95.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/1.396, allocations: 38.3 kB / 0.4922 GB, free: 95.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003171/1.399, allocations: 1.356 MB / 0.4936 GB, free: 95.69 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.152e-06/1.399, allocations: 3.969 kB / 0.4936 GB, free: 95.69 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005602/1.405, allocations: 0.5933 MB / 0.4941 GB, free: 95.69 MB / 346.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.01248/1.417, allocations: 5.518 MB / 0.4995 GB, free: 94.08 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007573/1.425, allocations: 3.312 MB / 0.5028 GB, free: 93.96 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/1.425, allocations: 7.328 kB / 0.5028 GB, free: 93.96 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002893/1.428, allocations: 1.043 MB / 0.5038 GB, free: 93.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002629/1.43, allocations: 191 kB / 0.504 GB, free: 93.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04085/1.471, allocations: 5.623 MB / 0.5095 GB, free: 92.4 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009719/1.481, allocations: 2.293 MB / 0.5117 GB, free: 91.37 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003676/1.485, allocations: 1.122 MB / 0.5128 GB, free: 90.51 MB / 346.7 MB Notification: Performance of SimCode: time 1.793e-06/1.485, allocations: 0 / 0.5128 GB, free: 90.51 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.735/5.22, allocations: 60.83 MB / 0.5722 GB, free: 43.26 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