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.181/2.181, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.732e-05/3.747e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1192, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.447/0.5662, allocations: 89.2 MB / 411 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.5665, allocations: 82.66 kB / 411.1 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4012/0.9678, allocations: 86.37 MB / 497.5 MB, free: 9.457 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.476e-06/0.9678, allocations: 0 / 497.5 MB, free: 9.457 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002317/0.9681, allocations: 75.98 kB / 497.6 MB, free: 9.383 MB / 426.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.01603/0.9841, allocations: 3.697 MB / 0.4895 GB, free: 5.621 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.308e-05/0.9842, allocations: 12.02 kB / 0.4895 GB, free: 5.609 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004197/0.9884, allocations: 0.7792 MB / 0.4903 GB, free: 4.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02956/1.018, allocations: 3.644 MB / 0.4939 GB, free: 1.164 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3253/1.343, allocations: 4.907 MB / 0.4986 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005519/1.344, allocations: 293.9 kB / 0.4989 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003193/1.347, allocations: 390.7 kB / 0.4993 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03336/1.381, allocations: 10.22 MB / 0.5093 GB, free: 99.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002964/1.381, allocations: 34.48 kB / 0.5093 GB, free: 99.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0025/1.384, allocations: 175.8 kB / 0.5095 GB, free: 99.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003429/1.387, allocations: 1.19 MB / 0.5106 GB, free: 99.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02981/1.417, allocations: 9.89 MB / 0.5203 GB, free: 99.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.077/1.494, allocations: 36.46 MB / 0.5559 GB, free: 77.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01251/1.507, allocations: 4.339 MB / 0.5601 GB, free: 75.72 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004952/1.512, allocations: 2.169 MB / 0.5623 GB, free: 74.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001681/1.513, allocations: 1.32 MB / 0.5635 GB, free: 73.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.424e-05/1.513, allocations: 63.44 kB / 0.5636 GB, free: 73.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=245): time 8.596e-06/1.513, allocations: 112 / 0.5636 GB, free: 73.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=261): time 0.0598/1.573, allocations: 14.3 MB / 0.5776 GB, free: 68.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001392/1.575, allocations: 1.53 MB / 0.5791 GB, free: 66.44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007565/1.582, allocations: 2.44 MB / 0.5815 GB, free: 64.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008183/1.583, allocations: 59.66 kB / 0.5815 GB, free: 64.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003146/1.586, allocations: 2.718 MB / 0.5842 GB, free: 61.76 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002177/1.589, allocations: 0.9587 MB / 0.5851 GB, free: 60.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009846/1.59, allocations: 116.5 kB / 0.5852 GB, free: 60.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006847/1.59, allocations: 0.553 MB / 0.5857 GB, free: 60.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008633/1.599, allocations: 2.366 MB / 0.5881 GB, free: 58.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01158/1.611, allocations: 5.342 MB / 0.5933 GB, free: 51.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01172/1.623, allocations: 3.609 MB / 0.5968 GB, free: 48.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001512/1.623, allocations: 28 kB / 0.5968 GB, free: 48.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.02721/1.65, allocations: 8.331 MB / 0.605 GB, free: 41.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.953e-05/1.65, allocations: 52 kB / 0.605 GB, free: 41.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01333/1.663, allocations: 3.858 MB / 0.6088 GB, free: 38.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00791/1.671, allocations: 1.239 MB / 0.61 GB, free: 37.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008323/1.68, allocations: 1.291 MB / 0.6113 GB, free: 36.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006016/1.686, allocations: 4.115 MB / 0.6153 GB, free: 32.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006749/1.693, allocations: 391.7 kB / 0.6156 GB, free: 32.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001483/1.694, allocations: 328.2 kB / 0.616 GB, free: 32.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * 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 (688): * Single equations (assignments): 676 * 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.00141/1.696, allocations: 0.5036 MB / 0.6164 GB, free: 31.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007801/1.697, allocations: 287.9 kB / 0.6167 GB, free: 31.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01721/1.714, allocations: 5.334 MB / 0.6219 GB, free: 26.92 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01572/1.73, allocations: 4.594 MB / 0.6264 GB, free: 22.81 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.221e-05/1.73, allocations: 0 / 0.6264 GB, free: 22.81 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.197e-05/1.73, allocations: 11.97 kB / 0.6264 GB, free: 22.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04146/1.771, allocations: 14.57 MB / 0.6407 GB, free: 8.023 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.454e-05/1.771, allocations: 8 kB / 0.6407 GB, free: 8.016 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003852/1.775, allocations: 423.3 kB / 0.6411 GB, free: 7.602 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007758/1.783, allocations: 1.189 MB / 0.6422 GB, free: 6.398 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006641/1.784, allocations: 71.75 kB / 0.6423 GB, free: 6.332 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006718/1.79, allocations: 4.443 MB / 0.6466 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001092/1.792, allocations: 1.457 MB / 0.6481 GB, free: 36 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0246/1.816, allocations: 8.77 MB / 0.6566 GB, free: 6.828 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/1.817, allocations: 337.4 kB / 0.657 GB, free: 6.477 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009828/1.818, allocations: 67.2 kB / 0.657 GB, free: 6.418 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003243/1.822, allocations: 199.7 kB / 0.6572 GB, free: 6.223 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006465/1.822, allocations: 165.6 kB / 0.6574 GB, free: 6.062 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003042/1.823, allocations: 79.97 kB / 0.6574 GB, free: 5.984 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004716/1.827, allocations: 1.661 MB / 0.6591 GB, free: 4.309 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.21e-07/1.827, allocations: 0 / 0.6591 GB, free: 4.309 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007656/1.835, allocations: 1.054 MB / 0.6601 GB, free: 3.262 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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 (202): * Single equations (assignments): 192 * 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.3586/2.194, allocations: 11.91 MB / 0.6717 GB, free: 103.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01828/2.212, allocations: 6.192 MB / 0.6778 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.857e-05/2.212, allocations: 1.125 kB / 0.6778 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009548/2.222, allocations: 2.831 MB / 0.6805 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00336/2.225, allocations: 355.9 kB / 0.6809 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04713/2.272, allocations: 11.01 MB / 0.6916 GB, free: 101 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00987/2.282, allocations: 3.398 MB / 0.6949 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006775/2.289, allocations: 1.86 MB / 0.6968 GB, free: 99.98 MB / 442.7 MB Notification: Performance of SimCode: time 3.597e-06/2.289, allocations: 0 / 0.6968 GB, free: 99.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.958/7.247, allocations: 148.6 MB / 0.8419 GB, free: 106.1 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