Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.BodyShape,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_BodyShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.939/1.939, allocations: 209.4 MB / 216.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.72e-05/1.731e-05, allocations: 0 / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 48.7 MB / 316.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4299/0.5393, allocations: 92.31 MB / 408.6 MB, free: 228 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.5396, allocations: 79.86 kB / 408.7 MB, free: 188 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3425/0.8821, allocations: 80.07 MB / 488.8 MB, free: 3.512 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.8821, allocations: 0 / 488.8 MB, free: 3.512 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002724/0.8824, allocations: 87.98 kB / 488.8 MB, free: 3.426 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1491 * Number of variables: 1491 Notification: Performance of Generate backend data structure: time 0.299/1.181, allocations: 3.911 MB / 492.8 MB, free: 86.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/1.181, allocations: 9.859 kB / 492.8 MB, free: 86.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01935/1.201, allocations: 2.323 MB / 495.1 MB, free: 85.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01984/1.221, allocations: 5.171 MB / 0.4885 GB, free: 85.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003199/1.221, allocations: 134.9 kB / 0.4887 GB, free: 85.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002397/1.224, allocations: 246.4 kB / 0.4889 GB, free: 85.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01699/1.241, allocations: 6.004 MB / 0.4948 GB, free: 85.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02457/1.265, allocations: 9.29 MB / 0.5038 GB, free: 82.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002867/1.266, allocations: 62.41 kB / 0.5039 GB, free: 82.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00201/1.268, allocations: 31.38 kB / 0.5039 GB, free: 82.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002388/1.27, allocations: 1 MB / 0.5049 GB, free: 82.63 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07275/1.343, allocations: 47.49 MB / 0.5513 GB, free: 49.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006932/1.35, allocations: 2.498 MB / 0.5537 GB, free: 47.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004147/1.354, allocations: 1.438 MB / 0.5551 GB, free: 47.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007728/1.355, allocations: 351.3 kB / 0.5555 GB, free: 46.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.432e-05/1.355, allocations: 50.94 kB / 0.5555 GB, free: 46.69 MB / 410.7 MB Notification: Performance of pre-optimization done (n=145): time 6.863e-06/1.355, allocations: 0 / 0.5555 GB, free: 46.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.05295/1.408, allocations: 12.97 MB / 0.5682 GB, free: 41.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/1.408, allocations: 141.1 kB / 0.5683 GB, free: 41.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006871/1.415, allocations: 3.066 MB / 0.5713 GB, free: 39.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004727/1.415, allocations: 25.7 kB / 0.5713 GB, free: 39.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002706/1.418, allocations: 3.156 MB / 0.5744 GB, free: 37.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001172/1.419, allocations: 0.6445 MB / 0.575 GB, free: 36.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007251/1.42, allocations: 0 / 0.575 GB, free: 36.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000446/1.421, allocations: 0.5827 MB / 0.5756 GB, free: 36.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005398/1.426, allocations: 1.92 MB / 0.5775 GB, free: 35.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01006/1.436, allocations: 5.842 MB / 0.5832 GB, free: 29.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/1.446, allocations: 3.33 MB / 0.5864 GB, free: 26.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001897/1.446, allocations: 40 kB / 0.5865 GB, free: 26.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.02917/1.476, allocations: 7.483 MB / 0.5938 GB, free: 20.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000157/1.476, allocations: 64 kB / 0.5938 GB, free: 20.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01001/1.486, allocations: 2.427 MB / 0.5962 GB, free: 18.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006749/1.493, allocations: 1.045 MB / 0.5972 GB, free: 17.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009512/1.502, allocations: 1.459 MB / 0.5987 GB, free: 16.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005589/1.508, allocations: 4.148 MB / 0.6027 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00733/1.515, allocations: 275.9 kB / 0.603 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001593/1.517, allocations: 391.2 kB / 0.6033 GB, free: 11.76 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 643 * Number of states: 0 () * Number of discrete variables: 36 (freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],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 (785): * Single equations (assignments): 776 * Array equations: 5 * 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 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * 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 prepare postOptimizeDAE: time 0.001887/1.519, allocations: 465.7 kB / 0.6038 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009878/1.529, allocations: 3.223 MB / 0.6069 GB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001138/1.53, allocations: 323.2 kB / 0.6072 GB, free: 8.305 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009156/1.539, allocations: 2.876 MB / 0.6101 GB, free: 6.039 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007507/1.547, allocations: 2.43 MB / 0.6124 GB, free: 4.098 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.06e-05/1.547, allocations: 4 kB / 0.6124 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-05/1.547, allocations: 8.062 kB / 0.6124 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02818/1.575, allocations: 8.809 MB / 0.621 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.176e-05/1.575, allocations: 4 kB / 0.621 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002581/1.578, allocations: 263.6 kB / 0.6213 GB, free: 12.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005652/1.583, allocations: 0.9982 MB / 0.6223 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004267/1.584, allocations: 23.17 kB / 0.6223 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009375/1.593, allocations: 4.716 MB / 0.6269 GB, free: 6.695 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001564/1.595, allocations: 1.395 MB / 0.6283 GB, free: 5.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01517/1.61, allocations: 5.609 MB / 0.6337 GB, free: 15.42 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/1.612, allocations: 376.8 kB / 0.6341 GB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001172/1.613, allocations: 12 kB / 0.6341 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00303/1.616, allocations: 107.8 kB / 0.6342 GB, free: 14.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006134/1.616, allocations: 108.5 kB / 0.6343 GB, free: 14.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002135/1.617, allocations: 54.09 kB / 0.6344 GB, free: 14.76 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005703/1.622, allocations: 2.026 MB / 0.6363 GB, free: 12.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.622, allocations: 0 / 0.6363 GB, free: 12.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007937/1.63, allocations: 0.8905 MB / 0.6372 GB, free: 11.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 12 ($STATESET0.x[3],$STATESET0.x[2],$STATESET0.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 125 * 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 {(4,100.0%),(3,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.01627/1.647, allocations: 7.087 MB / 0.6441 GB, free: 4.637 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3002/1.947, allocations: 5.094 MB / 0.6491 GB, free: 107.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/1.947, allocations: 2.812 kB / 0.6491 GB, free: 107.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007538/1.955, allocations: 2.106 MB / 0.6512 GB, free: 106.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003612/1.958, allocations: 351.8 kB / 0.6515 GB, free: 106.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03485/1.993, allocations: 9.469 MB / 0.6608 GB, free: 104.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009518/2.003, allocations: 3.303 MB / 0.664 GB, free: 104.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0075/2.01, allocations: 1.895 MB / 0.6658 GB, free: 104.1 MB / 442.7 MB Notification: Performance of SimCode: time 2.865e-06/2.01, allocations: 1.375 kB / 0.6658 GB, free: 104.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.933/6.944, allocations: 146 MB / 0.8085 GB, free: 89.27 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.BodyShape_res.mat does not exist to compare? outputFormat=mat