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.677/1.677, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.451e-05, allocations: 4 kB / 225.1 MB, free: 2.605 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2592, allocations: 38.78 MB / 263.9 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1599/0.4192, allocations: 81.31 MB / 345.2 MB, free: 8.426 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003282/0.4195, allocations: 83.95 kB / 345.3 MB, free: 8.344 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.633/1.053, allocations: 71.45 MB / 416.7 MB, free: 56.88 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.053, allocations: 0 / 416.7 MB, free: 56.88 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002221/1.053, allocations: 72 kB / 416.8 MB, free: 56.81 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.02038/1.073, allocations: 3.775 MB / 420.5 MB, free: 52.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/1.073, allocations: 12.03 kB / 420.6 MB, free: 52.96 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002929/1.076, allocations: 0.671 MB / 421.2 MB, free: 52.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01653/1.093, allocations: 2.125 MB / 423.4 MB, free: 50.15 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01689/1.11, allocations: 4.428 MB / 427.8 MB, free: 45.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003395/1.11, allocations: 279.1 kB / 428.1 MB, free: 45.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002075/1.112, allocations: 363.8 kB / 428.4 MB, free: 45.03 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0254/1.138, allocations: 8.969 MB / 437.4 MB, free: 35.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002378/1.138, allocations: 51.47 kB / 437.4 MB, free: 35.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001708/1.14, allocations: 187.8 kB / 437.6 MB, free: 34.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001993/1.142, allocations: 0.8802 MB / 438.5 MB, free: 33.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02118/1.163, allocations: 7.072 MB / 445.6 MB, free: 26.9 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06793/1.231, allocations: 43.17 MB / 488.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01463/1.246, allocations: 3.138 MB / 491.9 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003538/1.249, allocations: 1.367 MB / 493.2 MB, free: 9.625 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01681/1.266, allocations: 6.051 MB / 499.3 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.447e-05/1.266, allocations: 43.11 kB / 499.3 MB, free: 3.312 MB / 346.7 MB Notification: Performance of pre-optimization done (n=118): time 5.641e-06/1.266, allocations: 0 / 499.3 MB, free: 3.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.3189/1.585, allocations: 8.929 MB / 0.4963 GB, free: 86.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001411/1.587, allocations: 1.603 MB / 0.4979 GB, free: 85.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007454/1.594, allocations: 3.112 MB / 0.501 GB, free: 84.83 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003767/1.595, allocations: 40.91 kB / 0.501 GB, free: 84.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002389/1.597, allocations: 2.726 MB / 0.5037 GB, free: 83.19 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009196/1.598, allocations: 0.5225 MB / 0.5042 GB, free: 82.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007408/1.599, allocations: 114.4 kB / 0.5043 GB, free: 82.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004408/1.599, allocations: 0.5375 MB / 0.5048 GB, free: 82.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004663/1.604, allocations: 1.815 MB / 0.5066 GB, free: 82.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006824/1.611, allocations: 5.182 MB / 0.5116 GB, free: 78.15 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006765/1.618, allocations: 3.041 MB / 0.5146 GB, free: 78.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001462/1.618, allocations: 38.06 kB / 0.5146 GB, free: 78.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.0215/1.639, allocations: 7.151 MB / 0.5216 GB, free: 76.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/1.64, allocations: 60.44 kB / 0.5217 GB, free: 76.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007797/1.647, allocations: 2.375 MB / 0.524 GB, free: 75.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005609/1.653, allocations: 1.125 MB / 0.5251 GB, free: 75.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007306/1.66, allocations: 1.22 MB / 0.5263 GB, free: 74.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007612/1.668, allocations: 4.709 MB / 0.5309 GB, free: 71.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006694/1.675, allocations: 360.8 kB / 0.5312 GB, free: 71.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001312/1.676, allocations: 342.5 kB / 0.5316 GB, free: 71.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 556 * 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 (657): * Single equations (assignments): 648 * 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.001973/1.678, allocations: 0.5136 MB / 0.5321 GB, free: 71.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008073/1.679, allocations: 293.4 kB / 0.5323 GB, free: 70.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009384/1.688, allocations: 2.657 MB / 0.5349 GB, free: 70.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007595/1.696, allocations: 2.254 MB / 0.5371 GB, free: 68.93 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.221e-05/1.696, allocations: 0 / 0.5371 GB, free: 68.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.738e-05/1.696, allocations: 11.5 kB / 0.5371 GB, free: 68.92 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008968/1.705, allocations: 3.352 MB / 0.5404 GB, free: 66.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.386e-05/1.705, allocations: 0 / 0.5404 GB, free: 66.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002128/1.707, allocations: 206.7 kB / 0.5406 GB, free: 66.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005428/1.713, allocations: 1.04 MB / 0.5416 GB, free: 65.44 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003862/1.713, allocations: 37.81 kB / 0.5417 GB, free: 65.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008236/1.721, allocations: 4.983 MB / 0.5465 GB, free: 60.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001129/1.723, allocations: 1.477 MB / 0.548 GB, free: 59.21 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/1.735, allocations: 4.838 MB / 0.5527 GB, free: 55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/1.736, allocations: 371.8 kB / 0.5531 GB, free: 54.63 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00111/1.737, allocations: 24 kB / 0.5531 GB, free: 54.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003065/1.74, allocations: 124.6 kB / 0.5532 GB, free: 54.54 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005338/1.741, allocations: 77.45 kB / 0.5533 GB, free: 54.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001699/1.741, allocations: 39.61 kB / 0.5533 GB, free: 54.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005329/1.746, allocations: 2.143 MB / 0.5554 GB, free: 52.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.223e-06/1.746, allocations: 4 kB / 0.5554 GB, free: 52.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006892/1.753, allocations: 0.9167 MB / 0.5563 GB, free: 51.66 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.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 (93): * Single equations (assignments): 86 * 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.01295/1.766, allocations: 5.669 MB / 0.5618 GB, free: 46.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01302/1.779, allocations: 4.826 MB / 0.5665 GB, free: 42.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.779, allocations: 3.938 kB / 0.5666 GB, free: 42.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006585/1.786, allocations: 1.962 MB / 0.5685 GB, free: 40.56 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003275/1.789, allocations: 354.4 kB / 0.5688 GB, free: 40.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02665/1.816, allocations: 8.409 MB / 0.577 GB, free: 32.99 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00576/1.822, allocations: 2.94 MB / 0.5799 GB, free: 30.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003777/1.826, allocations: 1.601 MB / 0.5815 GB, free: 28.92 MB / 346.7 MB Notification: Performance of SimCode: time 1.383e-06/1.826, allocations: 0 / 0.5815 GB, free: 28.92 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.368/6.194, allocations: 129.3 MB / 0.7077 GB, free: 29.12 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