Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.797/1.797, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 6.352e-05/6.347e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2692, allocations: 38.77 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1403/0.4095, allocations: 79.42 MB / 343.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/0.4099, allocations: 75.95 kB / 343.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4671/0.877, allocations: 56.42 MB / 399.8 MB, free: 73.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.877, allocations: 4 kB / 399.8 MB, free: 73.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.697e-05/0.8771, allocations: 48 kB / 399.8 MB, free: 73.52 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: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.01666/0.8938, allocations: 2.902 MB / 402.7 MB, free: 70.58 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.8939, allocations: 8.031 kB / 402.7 MB, free: 70.57 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001602/0.8955, allocations: 0.4997 MB / 403.2 MB, free: 70.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01601/0.9115, allocations: 2.036 MB / 405.2 MB, free: 68.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01402/0.9256, allocations: 3.58 MB / 408.8 MB, free: 64.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.9258, allocations: 196.7 kB / 409 MB, free: 64.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001423/0.9273, allocations: 250.9 kB / 409.3 MB, free: 64.06 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01642/0.9437, allocations: 6.819 MB / 416.1 MB, free: 56.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001378/0.9439, allocations: 43.62 kB / 416.1 MB, free: 56.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005644/0.9445, allocations: 131.7 kB / 416.3 MB, free: 56.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001412/0.9459, allocations: 0.6994 MB / 417 MB, free: 55.69 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01604/0.9619, allocations: 5.83 MB / 422.8 MB, free: 49.85 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05669/1.019, allocations: 32.26 MB / 455.1 MB, free: 16.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01501/1.034, allocations: 2.523 MB / 457.6 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003003/1.037, allocations: 0.9848 MB / 458.6 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01064/1.047, allocations: 3.552 MB / 462.1 MB, free: 9.082 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/1.048, allocations: 42.94 kB / 462.2 MB, free: 9.031 MB / 314.7 MB Notification: Performance of pre-optimization done (n=105): time 4.639e-06/1.048, allocations: 0 / 462.2 MB, free: 9.031 MB / 314.7 MB Notification: Performance of matching and sorting (n=118): time 0.044/1.092, allocations: 8.684 MB / 470.8 MB, free: 220 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00229/1.094, allocations: 1.584 MB / 472.4 MB, free: 14.46 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00768/1.102, allocations: 2.395 MB / 474.8 MB, free: 12.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004098/1.102, allocations: 45.69 kB / 474.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002771/1.105, allocations: 2.046 MB / 476.9 MB, free: 9.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00113/1.106, allocations: 493.8 kB / 477.4 MB, free: 9.422 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005774/1.107, allocations: 88 kB / 477.5 MB, free: 9.336 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0005551/1.107, allocations: 0.4968 MB / 478 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006047/1.113, allocations: 1.551 MB / 479.5 MB, free: 7.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00956/1.123, allocations: 4.295 MB / 483.8 MB, free: 1.582 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008843/1.132, allocations: 2.565 MB / 486.4 MB, free: 15.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001028/1.132, allocations: 28 kB / 486.4 MB, free: 14.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.02785/1.16, allocations: 6.699 MB / 493.1 MB, free: 8.277 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.226e-05/1.16, allocations: 44 kB / 493.2 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01056/1.171, allocations: 2.413 MB / 495.6 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008836/1.179, allocations: 1.42 MB / 497 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006484/1.186, allocations: 1.014 MB / 498 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2463/1.432, allocations: 6.884 MB / 0.493 GB, free: 90.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00591/1.438, allocations: 362.8 kB / 0.4934 GB, free: 90.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001058/1.439, allocations: 277.4 kB / 0.4937 GB, free: 90.82 MB / 346.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 (534): * Single equations (assignments): 526 * 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 {1} * 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.0009617/1.44, allocations: 446.3 kB / 0.4941 GB, free: 90.71 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006469/1.441, allocations: 226.6 kB / 0.4943 GB, free: 90.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/1.452, allocations: 2.787 MB / 0.497 GB, free: 90.62 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009945/1.462, allocations: 2.452 MB / 0.4994 GB, free: 90.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-05/1.462, allocations: 7.656 kB / 0.4994 GB, free: 90.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.161e-05/1.462, allocations: 3.328 kB / 0.4994 GB, free: 90.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02039/1.483, allocations: 6.713 MB / 0.506 GB, free: 89.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/1.483, allocations: 0 / 0.506 GB, free: 89.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/1.484, allocations: 170.9 kB / 0.5061 GB, free: 89.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008518/1.493, allocations: 1.431 MB / 0.5075 GB, free: 89.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002785/1.493, allocations: 32.31 kB / 0.5076 GB, free: 89.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01497/1.508, allocations: 7.435 MB / 0.5148 GB, free: 85.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0011/1.509, allocations: 1.457 MB / 0.5163 GB, free: 83.81 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01393/1.523, allocations: 4.796 MB / 0.5209 GB, free: 82.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008171/1.524, allocations: 299.1 kB / 0.5212 GB, free: 82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004622/1.525, allocations: 23.42 kB / 0.5213 GB, free: 81.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002214/1.527, allocations: 126.9 kB / 0.5214 GB, free: 81.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003428/1.527, allocations: 75.56 kB / 0.5214 GB, free: 81.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/1.527, allocations: 44.73 kB / 0.5215 GB, free: 81.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003363/1.531, allocations: 1.644 MB / 0.5231 GB, free: 81.35 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.531, allocations: 0 / 0.5231 GB, free: 81.35 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004851/1.536, allocations: 0.7511 MB / 0.5238 GB, free: 81.27 MB / 346.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.01422/1.55, allocations: 5.617 MB / 0.5293 GB, free: 78.31 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01026/1.56, allocations: 4.079 MB / 0.5333 GB, free: 74.89 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/1.56, allocations: 4 kB / 0.5333 GB, free: 74.89 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005023/1.565, allocations: 1.67 MB / 0.5349 GB, free: 73.42 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/1.567, allocations: 238.8 kB / 0.5352 GB, free: 73.21 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01808/1.585, allocations: 6.604 MB / 0.5416 GB, free: 67.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003345/1.589, allocations: 2.334 MB / 0.5439 GB, free: 65.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002357/1.591, allocations: 1.118 MB / 0.545 GB, free: 64.83 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/1.591, allocations: 0 / 0.545 GB, free: 64.83 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.62/6.212, allocations: 85.98 MB / 0.6289 GB, free: 105.8 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat