Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.092/2.092, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.915e-05/2.908e-05, allocations: 4 kB / 267.6 MB, free: 5.332 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1155, allocations: 48.71 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4569/0.5725, allocations: 88.77 MB / 405.1 MB, free: 3.977 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.5728, allocations: 74.95 kB / 405.1 MB, free: 3.941 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3536/0.9265, allocations: 84.91 MB / 490.1 MB, free: 2.152 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.9265, allocations: 0 / 490.1 MB, free: 2.152 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002246/0.9268, allocations: 75.94 kB / 490.1 MB, free: 2.078 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: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.3969/1.324, allocations: 3.684 MB / 493.8 MB, free: 91.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.607e-05/1.324, allocations: 10.91 kB / 493.8 MB, free: 91.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04554/1.369, allocations: 3.639 MB / 497.5 MB, free: 91.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02755/1.397, allocations: 4.918 MB / 0.4906 GB, free: 91.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005402/1.398, allocations: 125.1 kB / 0.4907 GB, free: 91.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003657/1.401, allocations: 224.3 kB / 0.4909 GB, free: 91.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02641/1.428, allocations: 7.273 MB / 0.498 GB, free: 91.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03614/1.464, allocations: 9.576 MB / 0.5074 GB, free: 89.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003319/1.464, allocations: 30.5 kB / 0.5074 GB, free: 89.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002936/1.467, allocations: 17.09 kB / 0.5074 GB, free: 89.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003902/1.471, allocations: 1.194 MB / 0.5086 GB, free: 89.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0707/1.542, allocations: 33.99 MB / 0.5418 GB, free: 71.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00694/1.549, allocations: 4.051 MB / 0.5458 GB, free: 68.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004281/1.553, allocations: 2.12 MB / 0.5478 GB, free: 67.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001643/1.555, allocations: 1.322 MB / 0.5491 GB, free: 66.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.864e-05/1.555, allocations: 50.97 kB / 0.5492 GB, free: 66.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=247): time 5.831e-06/1.555, allocations: 3.188 kB / 0.5492 GB, free: 66.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=264): time 0.04996/1.605, allocations: 14.84 MB / 0.5637 GB, free: 57.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/1.605, allocations: 77.22 kB / 0.5637 GB, free: 57.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005365/1.611, allocations: 2.358 MB / 0.566 GB, free: 55.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006533/1.611, allocations: 29.7 kB / 0.5661 GB, free: 55.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00243/1.614, allocations: 2.822 MB / 0.5688 GB, free: 52.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001538/1.615, allocations: 0.9442 MB / 0.5697 GB, free: 52.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007205/1.616, allocations: 0 / 0.5697 GB, free: 52.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005487/1.617, allocations: 0.5777 MB / 0.5703 GB, free: 51.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005392/1.622, allocations: 2.353 MB / 0.5726 GB, free: 49.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007672/1.63, allocations: 5.588 MB / 0.5781 GB, free: 42.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007831/1.638, allocations: 3.671 MB / 0.5816 GB, free: 39.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/1.638, allocations: 32 kB / 0.5817 GB, free: 39.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=798) (initialization): time 0.02569/1.664, allocations: 8.275 MB / 0.5898 GB, free: 32.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.076e-05/1.664, allocations: 54.34 kB / 0.5898 GB, free: 32.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01238/1.676, allocations: 3.81 MB / 0.5935 GB, free: 29.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007655/1.684, allocations: 1.237 MB / 0.5947 GB, free: 28.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008602/1.692, allocations: 1.376 MB / 0.5961 GB, free: 27.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005539/1.698, allocations: 3.959 MB / 0.5999 GB, free: 23.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006735/1.705, allocations: 287.6 kB / 0.6002 GB, free: 22.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001532/1.706, allocations: 352 kB / 0.6006 GB, free: 22.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 524 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (736): * Single equations (assignments): 724 * Array equations: 8 * 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.00189/1.708, allocations: 396.2 kB / 0.6009 GB, free: 22.06 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01548/1.724, allocations: 4.704 MB / 0.6055 GB, free: 17.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/1.725, allocations: 284.3 kB / 0.6058 GB, free: 17.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01675/1.742, allocations: 5.244 MB / 0.6109 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01476/1.757, allocations: 4.518 MB / 0.6153 GB, free: 7.137 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.679e-05/1.757, allocations: 0 / 0.6153 GB, free: 7.137 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.721e-05/1.757, allocations: 15.91 kB / 0.6153 GB, free: 7.121 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03998/1.797, allocations: 13.55 MB / 0.6286 GB, free: 9.367 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-05/1.797, allocations: 10.94 kB / 0.6286 GB, free: 9.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00401/1.801, allocations: 431.3 kB / 0.629 GB, free: 8.938 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008035/1.809, allocations: 1.174 MB / 0.6302 GB, free: 7.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000635/1.81, allocations: 31.97 kB / 0.6302 GB, free: 7.719 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007901/1.818, allocations: 4.341 MB / 0.6344 GB, free: 3.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001474/1.819, allocations: 1.408 MB / 0.6358 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3131/2.132, allocations: 8.75 MB / 0.6443 GB, free: 95.45 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009895/2.133, allocations: 338.4 kB / 0.6447 GB, free: 95.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001213/2.134, allocations: 21.08 kB / 0.6447 GB, free: 95.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003465/2.138, allocations: 169.3 kB / 0.6448 GB, free: 95.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008462/2.139, allocations: 170.2 kB / 0.645 GB, free: 95.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000307/2.139, allocations: 79.23 kB / 0.6451 GB, free: 95.35 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004059/2.143, allocations: 1.556 MB / 0.6466 GB, free: 95.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.192e-06/2.143, allocations: 2.625 kB / 0.6466 GB, free: 95.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007424/2.151, allocations: 0.9504 MB / 0.6475 GB, free: 95.21 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 (205): * Single equations (assignments): 195 * Array equations: 6 * 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.02357/2.174, allocations: 11.99 MB / 0.6592 GB, free: 90.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01475/2.189, allocations: 6.229 MB / 0.6653 GB, free: 89.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.435e-05/2.189, allocations: 3.938 kB / 0.6653 GB, free: 89.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007733/2.197, allocations: 2.83 MB / 0.6681 GB, free: 89.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002732/2.2, allocations: 242.1 kB / 0.6683 GB, free: 89.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03175/2.232, allocations: 10.86 MB / 0.6789 GB, free: 87.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00698/2.239, allocations: 3.396 MB / 0.6822 GB, free: 86.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004902/2.244, allocations: 1.86 MB / 0.6841 GB, free: 84.67 MB / 426.7 MB Notification: Performance of SimCode: time 2.795e-06/2.244, allocations: 0 / 0.6841 GB, free: 84.67 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.78/7.024, allocations: 148.7 MB / 0.8292 GB, free: 108.9 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat