Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.766/1.766, allocations: 171.2 MB / 183.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.814e-05/2.845e-05, allocations: 0 / 225.1 MB, free: 2.129 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2765, allocations: 38.77 MB / 263.9 MB, free: 9.695 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1401/0.4166, allocations: 79.41 MB / 343.3 MB, free: 10.17 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/0.417, allocations: 87.95 kB / 343.4 MB, free: 10.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4501/0.8671, allocations: 56.42 MB / 399.8 MB, free: 73.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.8671, allocations: 4 kB / 399.8 MB, free: 73.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001098/0.8672, allocations: 51.94 kB / 399.8 MB, free: 73.23 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.01635/0.8836, allocations: 2.9 MB / 402.7 MB, free: 70.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.84e-05/0.8837, allocations: 12.02 kB / 402.7 MB, free: 70.28 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001641/0.8853, allocations: 0.4946 MB / 403.2 MB, free: 69.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01632/0.9017, allocations: 2.035 MB / 405.3 MB, free: 67.76 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0139/0.9156, allocations: 3.584 MB / 408.9 MB, free: 64.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.9159, allocations: 189.9 kB / 409 MB, free: 64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001405/0.9173, allocations: 250.9 kB / 409.3 MB, free: 63.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01626/0.9336, allocations: 6.819 MB / 416.1 MB, free: 56.28 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001465/0.9338, allocations: 47.62 kB / 416.2 MB, free: 56.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006845/0.9345, allocations: 126.3 kB / 416.3 MB, free: 56.13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001497/0.936, allocations: 0.6995 MB / 417 MB, free: 55.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01564/0.9516, allocations: 5.838 MB / 422.8 MB, free: 49.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04178/0.9935, allocations: 32.27 MB / 455.1 MB, free: 16.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01066/1.004, allocations: 2.52 MB / 457.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002044/1.006, allocations: 0.9929 MB / 458.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007838/1.014, allocations: 3.549 MB / 462.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/1.014, allocations: 39 kB / 462.2 MB, free: 8.777 MB / 314.7 MB Notification: Performance of pre-optimization done (n=105): time 4.729e-06/1.014, allocations: 0 / 462.2 MB, free: 8.777 MB / 314.7 MB Notification: Performance of matching and sorting (n=118): time 0.03554/1.05, allocations: 8.693 MB / 470.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001744/1.052, allocations: 1.584 MB / 472.5 MB, free: 14.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006008/1.058, allocations: 2.387 MB / 474.8 MB, free: 11.78 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003522/1.058, allocations: 41.7 kB / 474.9 MB, free: 11.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002263/1.06, allocations: 2.063 MB / 477 MB, free: 9.641 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009478/1.061, allocations: 485.9 kB / 477.4 MB, free: 9.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004798/1.062, allocations: 91.98 kB / 477.5 MB, free: 9.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003842/1.062, allocations: 499.8 kB / 478 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004144/1.066, allocations: 1.551 MB / 479.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006737/1.073, allocations: 4.295 MB / 483.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00635/1.079, allocations: 2.564 MB / 486.4 MB, free: 14.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.516e-05/1.08, allocations: 28 kB / 486.4 MB, free: 14.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.02303/1.103, allocations: 6.757 MB / 493.2 MB, free: 7.965 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.887e-05/1.103, allocations: 48 kB / 493.2 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01029/1.113, allocations: 2.417 MB / 495.7 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008794/1.122, allocations: 1.418 MB / 497.1 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006596/1.129, allocations: 1.014 MB / 498.1 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2501/1.379, allocations: 6.879 MB / 0.4931 GB, free: 90.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005709/1.384, allocations: 361.4 kB / 0.4935 GB, free: 90.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009791/1.385, allocations: 279.1 kB / 0.4937 GB, free: 90.1 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.001055/1.386, allocations: 450 kB / 0.4942 GB, free: 89.99 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005941/1.387, allocations: 225.5 kB / 0.4944 GB, free: 89.99 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01097/1.398, allocations: 2.789 MB / 0.4971 GB, free: 89.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009927/1.408, allocations: 2.45 MB / 0.4995 GB, free: 89.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/1.408, allocations: 3.938 kB / 0.4995 GB, free: 89.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.228e-05/1.408, allocations: 11.2 kB / 0.4995 GB, free: 89.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02051/1.429, allocations: 6.714 MB / 0.5061 GB, free: 88.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.411e-05/1.429, allocations: 0 / 0.5061 GB, free: 88.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001721/1.43, allocations: 162.2 kB / 0.5062 GB, free: 88.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008803/1.439, allocations: 1.432 MB / 0.5076 GB, free: 88.45 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002938/1.44, allocations: 34.61 kB / 0.5077 GB, free: 88.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01527/1.455, allocations: 7.44 MB / 0.5149 GB, free: 84.4 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001113/1.456, allocations: 1.458 MB / 0.5164 GB, free: 82.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01408/1.47, allocations: 4.785 MB / 0.521 GB, free: 81.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008083/1.471, allocations: 300.9 kB / 0.5213 GB, free: 81.17 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006171/1.472, allocations: 32.08 kB / 0.5213 GB, free: 81.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002307/1.474, allocations: 124.9 kB / 0.5215 GB, free: 81.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003567/1.474, allocations: 75.66 kB / 0.5215 GB, free: 81.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/1.475, allocations: 36.05 kB / 0.5216 GB, free: 81.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003758/1.478, allocations: 1.646 MB / 0.5232 GB, free: 80.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.074e-06/1.478, allocations: 0 / 0.5232 GB, free: 80.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005066/1.483, allocations: 0.7567 MB / 0.5239 GB, free: 80.43 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.014/1.497, allocations: 5.612 MB / 0.5294 GB, free: 77.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01003/1.508, allocations: 4.062 MB / 0.5334 GB, free: 73.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/1.508, allocations: 0 / 0.5334 GB, free: 73.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005197/1.513, allocations: 1.676 MB / 0.535 GB, free: 72.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/1.515, allocations: 235.8 kB / 0.5352 GB, free: 72.22 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01871/1.534, allocations: 6.303 MB / 0.5414 GB, free: 66.97 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003071/1.537, allocations: 2.312 MB / 0.5436 GB, free: 65.14 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.005661/1.542, allocations: 1.386 MB / 0.545 GB, free: 64.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002276/1.545, allocations: 1.096 MB / 0.5461 GB, free: 63.19 MB / 346.7 MB Notification: Performance of SimCode: time 9.62e-07/1.545, allocations: 0 / 0.5461 GB, free: 63.19 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1381/1.683, allocations: 53.69 MB / 0.5985 GB, free: 9.707 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002177/1.683, allocations: 193.1 kB / 0.5987 GB, free: 9.488 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.21/5.893, allocations: 0 / 0.5987 GB, free: 9.488 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat