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.779/1.779, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.687e-05/3.693e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3313, allocations: 38.78 MB / 263.9 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1414/0.4728, allocations: 79.41 MB / 343.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/0.4732, allocations: 87.92 kB / 343.4 MB, free: 10.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4595/0.9327, allocations: 56.43 MB / 399.8 MB, free: 73.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.9328, allocations: 0 / 399.8 MB, free: 73.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.196e-05/0.9329, allocations: 48 kB / 399.8 MB, free: 73.29 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.0154/0.9483, allocations: 2.915 MB / 402.8 MB, free: 70.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.9484, allocations: 12.03 kB / 402.8 MB, free: 70.32 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001432/0.9498, allocations: 498.1 kB / 403.2 MB, free: 69.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01554/0.9654, allocations: 2.036 MB / 405.3 MB, free: 67.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01368/0.9791, allocations: 3.577 MB / 408.9 MB, free: 64.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.9794, allocations: 199.4 kB / 409.1 MB, free: 64.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001226/0.9806, allocations: 252.2 kB / 409.3 MB, free: 63.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01536/0.996, allocations: 6.791 MB / 416.1 MB, free: 56.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001269/0.9962, allocations: 39.62 kB / 416.1 MB, free: 56.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005379/0.9967, allocations: 124.1 kB / 416.3 MB, free: 56.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001431/0.9981, allocations: 0.7073 MB / 417 MB, free: 55.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01539/1.014, allocations: 5.704 MB / 422.7 MB, free: 49.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04149/1.055, allocations: 32.27 MB / 454.9 MB, free: 16.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01072/1.066, allocations: 2.502 MB / 457.4 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002072/1.068, allocations: 0.9852 MB / 458.4 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00763/1.076, allocations: 3.552 MB / 462 MB, free: 9.027 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.915e-05/1.076, allocations: 54.92 kB / 462 MB, free: 8.965 MB / 314.7 MB Notification: Performance of pre-optimization done (n=105): time 4.739e-06/1.076, allocations: 0 / 462 MB, free: 8.965 MB / 314.7 MB Notification: Performance of matching and sorting (n=118): time 0.03586/1.112, allocations: 8.673 MB / 470.7 MB, free: 164 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001709/1.113, allocations: 1.584 MB / 472.3 MB, free: 14.4 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005519/1.119, allocations: 2.399 MB / 474.7 MB, free: 11.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003444/1.119, allocations: 41.7 kB / 474.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002188/1.122, allocations: 2.046 MB / 476.8 MB, free: 9.859 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008908/1.122, allocations: 497.8 kB / 477.3 MB, free: 9.367 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004141/1.123, allocations: 88 kB / 477.3 MB, free: 9.281 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003943/1.123, allocations: 0.4928 MB / 477.8 MB, free: 8.777 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004093/1.127, allocations: 1.547 MB / 479.4 MB, free: 7.223 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00684/1.134, allocations: 4.271 MB / 483.7 MB, free: 1.566 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006536/1.141, allocations: 2.568 MB / 486.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.55e-05/1.141, allocations: 28 kB / 486.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.02255/1.164, allocations: 6.419 MB / 492.7 MB, free: 8.539 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.463e-05/1.164, allocations: 48 kB / 492.7 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01027/1.174, allocations: 2.406 MB / 495.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008759/1.183, allocations: 1.423 MB / 496.5 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006431/1.189, allocations: 1.021 MB / 497.6 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.248/1.437, allocations: 6.878 MB / 0.4926 GB, free: 90.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005807/1.443, allocations: 358 kB / 0.493 GB, free: 90.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/1.444, allocations: 276.1 kB / 0.4932 GB, free: 90.72 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.0009407/1.445, allocations: 452.3 kB / 0.4937 GB, free: 90.61 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005855/1.446, allocations: 227.6 kB / 0.4939 GB, free: 90.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01088/1.457, allocations: 2.784 MB / 0.4966 GB, free: 90.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009735/1.467, allocations: 2.456 MB / 0.499 GB, free: 90.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.291e-05/1.467, allocations: 7.625 kB / 0.499 GB, free: 90.45 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.494e-05/1.467, allocations: 3.797 kB / 0.499 GB, free: 90.45 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.021/1.488, allocations: 6.717 MB / 0.5056 GB, free: 89.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.738e-05/1.488, allocations: 3.375 kB / 0.5056 GB, free: 89.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001655/1.489, allocations: 162.7 kB / 0.5057 GB, free: 89.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008603/1.498, allocations: 1.429 MB / 0.5071 GB, free: 89.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003337/1.498, allocations: 29.44 kB / 0.5071 GB, free: 89.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01518/1.514, allocations: 7.433 MB / 0.5144 GB, free: 85.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001172/1.515, allocations: 1.458 MB / 0.5158 GB, free: 83.81 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01407/1.529, allocations: 4.793 MB / 0.5205 GB, free: 82.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008146/1.53, allocations: 300.8 kB / 0.5208 GB, free: 81.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007742/1.531, allocations: 26.84 kB / 0.5208 GB, free: 81.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002607/1.533, allocations: 119.1 kB / 0.5209 GB, free: 81.97 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004272/1.534, allocations: 76.86 kB / 0.521 GB, free: 81.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/1.534, allocations: 43.39 kB / 0.521 GB, free: 81.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003926/1.538, allocations: 1.647 MB / 0.5227 GB, free: 81.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.538, allocations: 1.531 kB / 0.5227 GB, free: 81.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005487/1.543, allocations: 0.7488 MB / 0.5234 GB, free: 81.25 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.01464/1.558, allocations: 5.616 MB / 0.5289 GB, free: 78.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01019/1.568, allocations: 3.937 MB / 0.5327 GB, free: 75.04 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/1.568, allocations: 4 kB / 0.5327 GB, free: 75.04 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005028/1.573, allocations: 1.65 MB / 0.5343 GB, free: 73.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/1.575, allocations: 241.3 kB / 0.5346 GB, free: 73.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/1.594, allocations: 6.596 MB / 0.541 GB, free: 67.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003207/1.597, allocations: 2.333 MB / 0.5433 GB, free: 66.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002363/1.599, allocations: 1.114 MB / 0.5444 GB, free: 65.02 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/1.599, allocations: 4 kB / 0.5444 GB, free: 65.02 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.15/5.749, allocations: 85.28 MB / 0.6277 GB, free: 104.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