Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.076/2.076, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.081e-05/4.102e-05, allocations: 5.562 kB / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 50.41 MB / 342.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4457/0.5594, allocations: 90.02 MB / 432.7 MB, free: 3.969 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.5598, allocations: 89 kB / 432.8 MB, free: 3.922 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2246/0.7844, allocations: 53.51 MB / 486.3 MB, free: 2.609 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.7845, allocations: 0 / 486.3 MB, free: 2.609 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001418/0.7846, allocations: 55.94 kB / 486.3 MB, free: 2.555 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.008578/0.7932, allocations: 2.458 MB / 488.8 MB, free: 36 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.638e-05/0.7933, allocations: 8.031 kB / 488.8 MB, free: 28 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002773/0.7961, allocations: 0.5727 MB / 489.4 MB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01553/0.8117, allocations: 1.957 MB / 491.3 MB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005967/0.8177, allocations: 1.415 MB / 492.7 MB, free: 12.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003921/0.8181, allocations: 226 kB / 492.9 MB, free: 11.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001896/0.82, allocations: 303.8 kB / 493.2 MB, free: 11.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04399/0.864, allocations: 8.929 MB / 0.4904 GB, free: 1.625 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002465/0.8643, allocations: 59.45 kB / 0.4905 GB, free: 1.566 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009317/0.8653, allocations: 155.9 kB / 0.4906 GB, free: 1.414 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003028/0.8683, allocations: 0.7969 MB / 0.4914 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03798/0.9064, allocations: 7.006 MB / 0.4982 GB, free: 9.598 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3572/1.264, allocations: 38.37 MB / 0.5357 GB, free: 92.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03921/1.303, allocations: 5.34 MB / 0.5409 GB, free: 91.77 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002407/1.305, allocations: 0.936 MB / 0.5418 GB, free: 91.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007832/1.313, allocations: 3.696 MB / 0.5454 GB, free: 89.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/1.313, allocations: 54.64 kB / 0.5455 GB, free: 89.86 MB / 442.7 MB Notification: Performance of pre-optimization done (n=111): time 4.939e-06/1.313, allocations: 0 / 0.5455 GB, free: 89.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.06983/1.383, allocations: 8.201 MB / 0.5535 GB, free: 89.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.685e-05/1.383, allocations: 189.5 kB / 0.5537 GB, free: 89.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005835/1.389, allocations: 2.684 MB / 0.5563 GB, free: 89.15 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002222/1.389, allocations: 43.08 kB / 0.5563 GB, free: 89.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001905/1.391, allocations: 2.429 MB / 0.5587 GB, free: 87.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006729/1.392, allocations: 0.4919 MB / 0.5592 GB, free: 87.53 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003901/1.392, allocations: 106.3 kB / 0.5593 GB, free: 87.53 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000309/1.393, allocations: 0.5357 MB / 0.5598 GB, free: 87.22 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003198/1.396, allocations: 1.461 MB / 0.5612 GB, free: 87.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005181/1.401, allocations: 4.971 MB / 0.5661 GB, free: 82.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005542/1.407, allocations: 2.731 MB / 0.5688 GB, free: 82.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000105/1.407, allocations: 35.31 kB / 0.5688 GB, free: 82.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01422/1.421, allocations: 5.79 MB / 0.5745 GB, free: 82.01 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.238e-05/1.421, allocations: 59.16 kB / 0.5745 GB, free: 82.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/1.421, allocations: 127.9 kB / 0.5746 GB, free: 82.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002087/1.422, allocations: 183.2 kB / 0.5748 GB, free: 82.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009632/1.431, allocations: 1.521 MB / 0.5763 GB, free: 81.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002227/1.432, allocations: 250.3 kB / 0.5765 GB, free: 81.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005471/1.437, allocations: 0.7548 MB / 0.5773 GB, free: 81.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008343/1.438, allocations: 342.7 kB / 0.5776 GB, free: 81.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (681): * Single equations (assignments): 678 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008773/1.439, allocations: 0.5305 MB / 0.5781 GB, free: 81.13 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005618/1.439, allocations: 257 kB / 0.5784 GB, free: 80.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/1.441, allocations: 0.7416 MB / 0.5791 GB, free: 80.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-05/1.441, allocations: 11.56 kB / 0.5791 GB, free: 80.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/1.441, allocations: 2.812 kB / 0.5791 GB, free: 80.77 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/1.441, allocations: 3.562 kB / 0.5791 GB, free: 80.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008215/1.45, allocations: 3.229 MB / 0.5823 GB, free: 79.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.758e-05/1.45, allocations: 2.562 kB / 0.5823 GB, free: 79.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005105/1.455, allocations: 476.8 kB / 0.5827 GB, free: 79.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.121e-05/1.455, allocations: 3.5 kB / 0.5827 GB, free: 79.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002083/1.455, allocations: 33.69 kB / 0.5827 GB, free: 79.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.086e-05/1.455, allocations: 7 kB / 0.5828 GB, free: 79.51 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.455, allocations: 0 / 0.5828 GB, free: 79.51 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004372/1.459, allocations: 2.64 MB / 0.5853 GB, free: 78.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000795/1.46, allocations: 312.9 kB / 0.5856 GB, free: 77.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004822/1.461, allocations: 30.67 kB / 0.5857 GB, free: 77.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/1.463, allocations: 50.56 kB / 0.5857 GB, free: 77.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/1.463, allocations: 56.09 kB / 0.5858 GB, free: 77.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/1.463, allocations: 41.5 kB / 0.5858 GB, free: 77.83 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003797/1.467, allocations: 1.802 MB / 0.5876 GB, free: 77.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.467, allocations: 0 / 0.5876 GB, free: 77.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006006/1.473, allocations: 0.8435 MB / 0.5884 GB, free: 76.97 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 84 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007945/1.481, allocations: 3.6 MB / 0.5919 GB, free: 74.46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01018/1.491, allocations: 3.191 MB / 0.595 GB, free: 71.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.477e-06/1.491, allocations: 8.062 kB / 0.595 GB, free: 71.56 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/1.492, allocations: 0.613 MB / 0.5956 GB, free: 71.01 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/1.494, allocations: 241.1 kB / 0.5959 GB, free: 70.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02191/1.516, allocations: 7.222 MB / 0.6029 GB, free: 64.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004058/1.52, allocations: 2.45 MB / 0.6053 GB, free: 62.69 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007267/1.528, allocations: 1.645 MB / 0.6069 GB, free: 61.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003012/1.531, allocations: 1.212 MB / 0.6081 GB, free: 60.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.733e-06/1.531, allocations: 0 / 0.6081 GB, free: 60.55 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1211/1.652, allocations: 50.78 MB / 0.6577 GB, free: 11.48 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002128/1.652, allocations: 184.2 kB / 0.6579 GB, free: 11.25 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.198/5.85, allocations: 0 / 0.6579 GB, free: 11.25 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat