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 1.964/1.964, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.122e-05/3.129e-05, allocations: 8 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09453, allocations: 44.5 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4442/0.5388, allocations: 86.71 MB / 386.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003114/0.5392, allocations: 81.53 kB / 386.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2316/0.7708, allocations: 57.68 MB / 444.4 MB, free: 3.168 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.7709, allocations: 0 / 444.4 MB, free: 3.168 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001284/0.771, allocations: 44 kB / 444.5 MB, free: 3.125 MB / 330.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.01008/0.7811, allocations: 2.622 MB / 447.1 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/0.7812, allocations: 8.031 kB / 447.1 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001849/0.783, allocations: 495.8 kB / 447.6 MB, free: 356 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01488/0.7979, allocations: 1.926 MB / 449.5 MB, free: 14.44 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01401/0.812, allocations: 3.405 MB / 452.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002605/0.8123, allocations: 178.6 kB / 453.1 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001501/0.8138, allocations: 242 kB / 453.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01892/0.8328, allocations: 6.741 MB / 460.1 MB, free: 4.637 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001506/0.833, allocations: 39.59 kB / 460.1 MB, free: 4.598 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006647/0.8336, allocations: 123.3 kB / 460.2 MB, free: 4.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00173/0.8354, allocations: 0.7228 MB / 461 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01774/0.8531, allocations: 5.723 MB / 466.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0533/0.9065, allocations: 31.14 MB / 497.8 MB, free: 14.03 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/0.9171, allocations: 2.608 MB / 0.4887 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002951/0.92, allocations: 1.188 MB / 0.4899 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01456/0.9346, allocations: 5.145 MB / 0.4949 GB, free: 4.797 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.9347, allocations: 46.5 kB / 0.4949 GB, free: 4.742 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 4.519e-06/0.9348, allocations: 0 / 0.4949 GB, free: 4.742 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.03352/0.9683, allocations: 8.013 MB / 0.5028 GB, free: 12.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.235e-05/0.9684, allocations: 144.9 kB / 0.5029 GB, free: 12.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005104/0.9735, allocations: 2.369 MB / 0.5052 GB, free: 10.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003122/0.9739, allocations: 37.7 kB / 0.5052 GB, free: 10 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002097/0.976, allocations: 2.028 MB / 0.5072 GB, free: 7.977 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008032/0.9768, allocations: 424 kB / 0.5076 GB, free: 7.566 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004166/0.9772, allocations: 80 kB / 0.5077 GB, free: 7.488 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004252/0.9777, allocations: 499.7 kB / 0.5082 GB, free: 6.988 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003864/0.9816, allocations: 1.386 MB / 0.5095 GB, free: 5.598 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006296/0.9879, allocations: 3.943 MB / 0.5134 GB, free: 360 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2728/1.261, allocations: 2.31 MB / 0.5156 GB, free: 108.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.074e-05/1.261, allocations: 25.81 kB / 0.5157 GB, free: 108.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.01771/1.279, allocations: 5.528 MB / 0.5211 GB, free: 108.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.645e-05/1.279, allocations: 53.03 kB / 0.5211 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001684/1.279, allocations: 94.94 kB / 0.5212 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004552/1.283, allocations: 0.8209 MB / 0.522 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005781/1.289, allocations: 0.9352 MB / 0.5229 GB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009242/1.299, allocations: 4.3 MB / 0.5271 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005137/1.304, allocations: 273.6 kB / 0.5274 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007117/1.304, allocations: 260.6 kB / 0.5276 GB, free: 107 MB / 410.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.0007914/1.305, allocations: 427.8 kB / 0.528 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000509/1.306, allocations: 222.9 kB / 0.5282 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006708/1.313, allocations: 2.116 MB / 0.5303 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.095e-05/1.313, allocations: 16.67 kB / 0.5303 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/1.313, allocations: 3.5 kB / 0.5303 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-05/1.313, allocations: 3.938 kB / 0.5303 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/1.327, allocations: 5.071 MB / 0.5353 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-05/1.327, allocations: 3.906 kB / 0.5353 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001383/1.328, allocations: 142.3 kB / 0.5354 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00356/1.332, allocations: 0.6772 MB / 0.5361 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001653/1.332, allocations: 23.36 kB / 0.5361 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007367/1.339, allocations: 3.831 MB / 0.5399 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.339, allocations: 3.531 kB / 0.5399 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/1.349, allocations: 4.129 MB / 0.5439 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001392/1.351, allocations: 456.9 kB / 0.5443 GB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000421/1.351, allocations: 19.67 kB / 0.5443 GB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001819/1.353, allocations: 75.06 kB / 0.5444 GB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/1.353, allocations: 63.61 kB / 0.5445 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/1.353, allocations: 32.67 kB / 0.5445 GB, free: 104 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00342/1.357, allocations: 1.651 MB / 0.5461 GB, free: 103.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.02e-07/1.357, allocations: 0 / 0.5461 GB, free: 103.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004856/1.362, allocations: 0.6695 MB / 0.5468 GB, free: 103.4 MB / 410.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.01053/1.372, allocations: 5.086 MB / 0.5517 GB, free: 100.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007668/1.38, allocations: 3.266 MB / 0.5549 GB, free: 99.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/1.38, allocations: 0 / 0.5549 GB, free: 99.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002077/1.382, allocations: 1.013 MB / 0.5559 GB, free: 99.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/1.384, allocations: 230.2 kB / 0.5561 GB, free: 99.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01696/1.401, allocations: 5.693 MB / 0.5617 GB, free: 97.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003049/1.404, allocations: 2.285 MB / 0.5639 GB, free: 96.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002306/1.406, allocations: 1.128 MB / 0.565 GB, free: 95.25 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/1.407, allocations: 0 / 0.565 GB, free: 95.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.701/5.107, allocations: 61.42 MB / 0.625 GB, free: 44.27 MB / 410.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