Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.904/1.904, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.633e-05/3.648e-05, allocations: 7.984 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09064/0.09072, allocations: 44.52 MB / 300 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4143/0.505, allocations: 85.04 MB / 385 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003035/0.5054, allocations: 80.78 kB / 385.1 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2665/0.772, allocations: 56.6 MB / 441.7 MB, free: 5.469 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.772, allocations: 0 / 441.7 MB, free: 5.469 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001858/0.7722, allocations: 44 kB / 441.7 MB, free: 5.426 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: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.01945/0.7917, allocations: 2.909 MB / 444.6 MB, free: 2.648 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.7918, allocations: 12.03 kB / 444.6 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001741/0.7935, allocations: 499.8 kB / 445.1 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01694/0.8105, allocations: 2.057 MB / 447.2 MB, free: 300 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01562/0.8262, allocations: 3.588 MB / 450.8 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003068/0.8265, allocations: 190 kB / 451 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001617/0.8282, allocations: 254.7 kB / 451.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02126/0.8495, allocations: 6.812 MB / 458 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001691/0.8497, allocations: 43.53 kB / 458.1 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000983/0.8507, allocations: 130.9 kB / 458.2 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001874/0.8526, allocations: 0.7147 MB / 458.9 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01874/0.8713, allocations: 5.83 MB / 464.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05293/0.9243, allocations: 32.27 MB / 497 MB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01183/0.9362, allocations: 2.51 MB / 499.5 MB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00263/0.9389, allocations: 0.9887 MB / 0.4888 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009568/0.9485, allocations: 3.561 MB / 0.4923 GB, free: 6.625 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.961e-05/0.9486, allocations: 47 kB / 0.4923 GB, free: 6.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=105): time 4.529e-06/0.9486, allocations: 0 / 0.4923 GB, free: 6.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=118): time 0.04064/0.9893, allocations: 8.683 MB / 0.5008 GB, free: 13.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001809/0.9911, allocations: 1.58 MB / 0.5023 GB, free: 12.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006397/0.9976, allocations: 2.387 MB / 0.5047 GB, free: 9.602 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000349/0.998, allocations: 45.73 kB / 0.5047 GB, free: 9.551 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002295/1, allocations: 2.069 MB / 0.5067 GB, free: 7.484 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009469/1.001, allocations: 484.5 kB / 0.5072 GB, free: 7.016 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007067/1.002, allocations: 87.52 kB / 0.5073 GB, free: 6.934 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005526/1.003, allocations: 0.492 MB / 0.5077 GB, free: 6.434 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004731/1.007, allocations: 1.547 MB / 0.5093 GB, free: 4.879 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2657/1.273, allocations: 4.303 MB / 0.5135 GB, free: 108.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006508/1.28, allocations: 2.573 MB / 0.516 GB, free: 108.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001068/1.28, allocations: 28.06 kB / 0.516 GB, free: 108.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.02343/1.303, allocations: 6.858 MB / 0.5227 GB, free: 107.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.264e-05/1.303, allocations: 46.84 kB / 0.5227 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01117/1.315, allocations: 2.492 MB / 0.5252 GB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009208/1.324, allocations: 1.5 MB / 0.5266 GB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005727/1.33, allocations: 0.9962 MB / 0.5276 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01415/1.344, allocations: 7.28 MB / 0.5347 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005767/1.35, allocations: 363.9 kB / 0.5351 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008789/1.35, allocations: 278.8 kB / 0.5353 GB, free: 104.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 447 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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 (531): * Single equations (assignments): 523 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008715/1.351, allocations: 443.3 kB / 0.5358 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005283/1.352, allocations: 233.9 kB / 0.536 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/1.363, allocations: 2.79 MB / 0.5387 GB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009837/1.372, allocations: 2.463 MB / 0.5411 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/1.372, allocations: 3.531 kB / 0.5411 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.11e-05/1.372, allocations: 3.797 kB / 0.5411 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02037/1.393, allocations: 6.697 MB / 0.5477 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/1.393, allocations: 7.641 kB / 0.5477 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/1.395, allocations: 161.7 kB / 0.5478 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008355/1.403, allocations: 1.433 MB / 0.5492 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000233/1.403, allocations: 29.02 kB / 0.5492 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01492/1.418, allocations: 7.445 MB / 0.5565 GB, free: 98.26 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001053/1.419, allocations: 1.446 MB / 0.5579 GB, free: 96.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01381/1.433, allocations: 4.804 MB / 0.5626 GB, free: 95.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008659/1.434, allocations: 291.7 kB / 0.5629 GB, free: 94.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005705/1.435, allocations: 26 kB / 0.5629 GB, free: 94.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002194/1.437, allocations: 121.2 kB / 0.563 GB, free: 94.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003513/1.437, allocations: 79.47 kB / 0.5631 GB, free: 94.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/1.437, allocations: 39.38 kB / 0.5632 GB, free: 94.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003406/1.441, allocations: 1.641 MB / 0.5648 GB, free: 94.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.441, allocations: 0 / 0.5648 GB, free: 94.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004996/1.446, allocations: 0.761 MB / 0.5655 GB, free: 94.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01427/1.46, allocations: 5.615 MB / 0.571 GB, free: 91.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01046/1.471, allocations: 4.196 MB / 0.5751 GB, free: 88.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/1.471, allocations: 0 / 0.5751 GB, free: 88.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005084/1.476, allocations: 1.685 MB / 0.5767 GB, free: 86.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/1.478, allocations: 233.5 kB / 0.5769 GB, free: 86.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/1.496, allocations: 6.311 MB / 0.5831 GB, free: 81.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003491/1.499, allocations: 2.317 MB / 0.5854 GB, free: 79.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005556/1.505, allocations: 1.387 MB / 0.5867 GB, free: 78.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002373/1.507, allocations: 1.088 MB / 0.5878 GB, free: 77.57 MB / 410.7 MB Notification: Performance of SimCode: time 1.723e-06/1.508, allocations: 0 / 0.5878 GB, free: 77.57 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1406/1.648, allocations: 54.3 MB / 0.6408 GB, free: 26.42 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/1.648, allocations: 205.4 kB / 0.641 GB, free: 26.19 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.645/6.293, allocations: 0 / 0.641 GB, free: 26.19 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat