Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 171.3 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.507e-05/2.516e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2571, allocations: 38.76 MB / 258.3 MB, free: 12.09 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1393/0.3964, allocations: 80.63 MB / 339 MB, free: 13.2 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.3968, allocations: 87.94 kB / 339 MB, free: 13.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5034/0.9002, allocations: 69.86 MB / 408.9 MB, free: 66.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.9002, allocations: 4 kB / 408.9 MB, free: 66.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001833/0.9004, allocations: 72 kB / 409 MB, free: 66.05 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: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.01949/0.9199, allocations: 3.782 MB / 412.8 MB, free: 62.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.92, allocations: 8.031 kB / 412.8 MB, free: 62.21 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01602/0.936, allocations: 2.133 MB / 414.9 MB, free: 60.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01582/0.9519, allocations: 4.419 MB / 419.3 MB, free: 55.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.9521, allocations: 116 kB / 419.4 MB, free: 55.51 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001503/0.9536, allocations: 212 kB / 419.6 MB, free: 55.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01158/0.9652, allocations: 5.179 MB / 424.8 MB, free: 50.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01653/0.9818, allocations: 8.109 MB / 432.9 MB, free: 41.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001986/0.982, allocations: 59.47 kB / 433 MB, free: 41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009186/0.9829, allocations: 28 kB / 433 MB, free: 40.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001706/0.9847, allocations: 0.8801 MB / 433.9 MB, free: 40.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0534/1.038, allocations: 42.16 MB / 476.1 MB, free: 12.63 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00457/1.043, allocations: 2.295 MB / 478.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002625/1.045, allocations: 1.274 MB / 479.6 MB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001268/1.046, allocations: 20.25 kB / 479.6 MB, free: 8.887 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.025e-05/1.046, allocations: 47.12 kB / 479.7 MB, free: 8.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=124): time 4.438e-06/1.046, allocations: 0 / 479.7 MB, free: 8.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.03081/1.076, allocations: 8.523 MB / 488.2 MB, free: 196 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.285e-05/1.077, allocations: 149.1 kB / 488.4 MB, free: 16 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006421/1.083, allocations: 2.77 MB / 491.1 MB, free: 13.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003691/1.083, allocations: 29.7 kB / 491.2 MB, free: 13.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003008/1.086, allocations: 2.789 MB / 493.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001036/1.087, allocations: 0.5324 MB / 494.5 MB, free: 9.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000527/1.088, allocations: 0 / 494.5 MB, free: 9.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005072/1.089, allocations: 0.5423 MB / 495 MB, free: 9.289 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00478/1.093, allocations: 1.768 MB / 496.8 MB, free: 7.516 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008126/1.102, allocations: 5.293 MB / 0.4903 GB, free: 436 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2398/1.341, allocations: 3.03 MB / 0.4933 GB, free: 86.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001081/1.341, allocations: 39.22 kB / 0.4933 GB, free: 86.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01908/1.361, allocations: 6.966 MB / 0.5001 GB, free: 86.49 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.36e-05/1.361, allocations: 62.69 kB / 0.5002 GB, free: 86.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006662/1.367, allocations: 2.335 MB / 0.5025 GB, free: 86.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004981/1.372, allocations: 1.117 MB / 0.5035 GB, free: 86.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006952/1.379, allocations: 1.278 MB / 0.5048 GB, free: 86.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006708/1.386, allocations: 4.532 MB / 0.5092 GB, free: 83.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005923/1.392, allocations: 269.5 kB / 0.5095 GB, free: 83.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007066/1.393, allocations: 358.3 kB / 0.5098 GB, free: 83.83 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (687): * Single equations (assignments): 678 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009018/1.394, allocations: 419.6 kB / 0.5102 GB, free: 83.61 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008415/1.402, allocations: 2.965 MB / 0.5131 GB, free: 83.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000568/1.403, allocations: 282.2 kB / 0.5134 GB, free: 83.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007786/1.41, allocations: 2.581 MB / 0.5159 GB, free: 82.73 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006555/1.417, allocations: 2.209 MB / 0.5181 GB, free: 82.03 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/1.417, allocations: 0 / 0.5181 GB, free: 82.03 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-05/1.417, allocations: 9.5 kB / 0.5181 GB, free: 82.03 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/1.429, allocations: 5.059 MB / 0.523 GB, free: 80.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/1.429, allocations: 6.141 kB / 0.523 GB, free: 80.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/1.431, allocations: 215.2 kB / 0.5232 GB, free: 80.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005079/1.436, allocations: 1.025 MB / 0.5242 GB, free: 79.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001644/1.436, allocations: 18.7 kB / 0.5242 GB, free: 79.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007631/1.444, allocations: 4.899 MB / 0.529 GB, free: 76.63 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009815/1.445, allocations: 1.413 MB / 0.5304 GB, free: 75.26 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/1.456, allocations: 4.848 MB / 0.5351 GB, free: 72.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008161/1.457, allocations: 345.4 kB / 0.5355 GB, free: 72.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005891/1.457, allocations: 8 kB / 0.5355 GB, free: 72.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/1.459, allocations: 105.5 kB / 0.5356 GB, free: 72.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003336/1.46, allocations: 82.3 kB / 0.5357 GB, free: 72.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/1.46, allocations: 42.23 kB / 0.5357 GB, free: 72.26 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003285/1.463, allocations: 1.822 MB / 0.5375 GB, free: 70.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.463, allocations: 0 / 0.5375 GB, free: 70.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006042/1.469, allocations: 0.8461 MB / 0.5383 GB, free: 69.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET5655708040.x[3],$STATESET5655708040.x[2],$STATESET5655708040.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0108/1.48, allocations: 5.653 MB / 0.5438 GB, free: 64.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01123/1.491, allocations: 4.849 MB / 0.5486 GB, free: 60.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/1.491, allocations: 0 / 0.5486 GB, free: 60.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005632/1.497, allocations: 1.974 MB / 0.5505 GB, free: 58.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00238/1.5, allocations: 302.3 kB / 0.5508 GB, free: 58.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02191/1.521, allocations: 8.273 MB / 0.5589 GB, free: 51.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003775/1.525, allocations: 2.935 MB / 0.5617 GB, free: 49.13 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002957/1.528, allocations: 1.604 MB / 0.5633 GB, free: 47.65 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/1.528, allocations: 1.094 kB / 0.5633 GB, free: 47.65 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.266/5.795, allocations: 128.6 MB / 0.6889 GB, free: 58.88 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.FreeBody_res.mat does not exist to compare? outputFormat=mat