Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.828e-05/3.841e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09821/0.0983, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4343/0.5327, allocations: 85.04 MB / 385 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.533, allocations: 83.41 kB / 385.1 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2237/0.7568, allocations: 56.6 MB / 441.7 MB, free: 5.777 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.7568, allocations: 0 / 441.7 MB, free: 5.777 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001573/0.757, allocations: 44 kB / 441.7 MB, free: 5.734 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.01841/0.7754, allocations: 2.915 MB / 444.6 MB, free: 2.957 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.138e-05/0.7755, allocations: 8.031 kB / 444.6 MB, free: 2.949 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002365/0.7779, allocations: 0.4927 MB / 445.1 MB, free: 2.645 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01733/0.7953, allocations: 2.067 MB / 447.2 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01564/0.811, allocations: 3.58 MB / 450.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003469/0.8114, allocations: 189.9 kB / 450.9 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001668/0.813, allocations: 249 kB / 451.2 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02096/0.834, allocations: 6.813 MB / 458 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001784/0.8343, allocations: 47.52 kB / 458 MB, free: 6.266 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007833/0.8351, allocations: 135.6 kB / 458.2 MB, free: 6.152 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001791/0.8369, allocations: 0.7066 MB / 458.9 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01871/0.8556, allocations: 5.822 MB / 464.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06924/0.9249, allocations: 32.28 MB / 497 MB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01622/0.9412, allocations: 2.516 MB / 499.5 MB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002923/0.9441, allocations: 0.9852 MB / 0.4888 GB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01117/0.9554, allocations: 3.558 MB / 0.4922 GB, free: 7 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.84e-05/0.9555, allocations: 47 kB / 0.4923 GB, free: 6.945 MB / 394.7 MB Notification: Performance of pre-optimization done (n=105): time 7.664e-06/0.9555, allocations: 0 / 0.4923 GB, free: 6.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=118): time 0.03985/0.9954, allocations: 8.686 MB / 0.5008 GB, free: 14.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001787/0.9972, allocations: 1.576 MB / 0.5023 GB, free: 12.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005739/1.003, allocations: 2.391 MB / 0.5046 GB, free: 9.965 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000361/1.003, allocations: 37.8 kB / 0.5047 GB, free: 9.922 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002254/1.006, allocations: 2.07 MB / 0.5067 GB, free: 7.859 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009113/1.007, allocations: 485.3 kB / 0.5071 GB, free: 7.391 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000424/1.007, allocations: 84 kB / 0.5072 GB, free: 7.309 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004077/1.007, allocations: 0.4967 MB / 0.5077 GB, free: 6.801 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004396/1.012, allocations: 1.547 MB / 0.5092 GB, free: 5.246 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3002/1.312, allocations: 4.306 MB / 0.5134 GB, free: 108.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006696/1.319, allocations: 2.57 MB / 0.5159 GB, free: 108.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.464e-05/1.319, allocations: 28.16 kB / 0.516 GB, free: 108.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.02431/1.343, allocations: 6.792 MB / 0.5226 GB, free: 107.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.191e-05/1.344, allocations: 52.06 kB / 0.5226 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01072/1.354, allocations: 2.495 MB / 0.5251 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009001/1.363, allocations: 1.503 MB / 0.5266 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005907/1.369, allocations: 0.9954 MB / 0.5275 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01415/1.383, allocations: 7.279 MB / 0.5346 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005592/1.389, allocations: 364.9 kB / 0.535 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006954/1.39, allocations: 271.7 kB / 0.5352 GB, free: 105 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.0008659/1.391, allocations: 453.3 kB / 0.5357 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005076/1.391, allocations: 229.9 kB / 0.5359 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01047/1.402, allocations: 2.794 MB / 0.5386 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00959/1.411, allocations: 2.455 MB / 0.541 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/1.411, allocations: 6.656 kB / 0.541 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.359e-05/1.411, allocations: 3.891 kB / 0.541 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02037/1.432, allocations: 6.701 MB / 0.5476 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/1.432, allocations: 0 / 0.5476 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/1.434, allocations: 170.8 kB / 0.5477 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008339/1.442, allocations: 1.431 MB / 0.5491 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002614/1.442, allocations: 32.73 kB / 0.5492 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01471/1.457, allocations: 7.441 MB / 0.5564 GB, free: 98.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001041/1.458, allocations: 1.444 MB / 0.5578 GB, free: 97.19 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/1.472, allocations: 4.798 MB / 0.5625 GB, free: 95.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008084/1.472, allocations: 290 kB / 0.5628 GB, free: 95.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004309/1.473, allocations: 27.91 kB / 0.5628 GB, free: 95.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00215/1.475, allocations: 121.5 kB / 0.5629 GB, free: 95.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003619/1.475, allocations: 76.86 kB / 0.563 GB, free: 95.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/1.476, allocations: 40.47 kB / 0.5631 GB, free: 95.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003236/1.479, allocations: 1.654 MB / 0.5647 GB, free: 94.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.479, allocations: 0 / 0.5647 GB, free: 94.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004815/1.484, allocations: 0.7601 MB / 0.5654 GB, free: 94.5 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.498, allocations: 5.614 MB / 0.5709 GB, free: 92.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0104/1.508, allocations: 4.191 MB / 0.575 GB, free: 88.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.509, allocations: 0 / 0.575 GB, free: 88.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004987/1.514, allocations: 1.689 MB / 0.5766 GB, free: 86.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/1.515, allocations: 244.7 kB / 0.5769 GB, free: 86.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01793/1.533, allocations: 6.6 MB / 0.5833 GB, free: 81.08 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002998/1.536, allocations: 2.325 MB / 0.5856 GB, free: 79.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002486/1.539, allocations: 1.129 MB / 0.5867 GB, free: 78.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.539, allocations: 0.875 kB / 0.5867 GB, free: 78.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.373/5.912, allocations: 86.19 MB / 0.6709 GB, free: 106.7 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.SpringWithMass_res.mat does not exist to compare? outputFormat=mat