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 1.987/1.987, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.217e-05/4.231e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.427/0.5367, allocations: 89.19 MB / 411 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.537, allocations: 79.89 kB / 411.1 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3864/0.9235, allocations: 86.37 MB / 497.5 MB, free: 9.594 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.9235, allocations: 0 / 497.5 MB, free: 9.594 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002133/0.9237, allocations: 79.88 kB / 497.6 MB, free: 9.516 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.01533/0.9391, allocations: 3.694 MB / 0.4895 GB, free: 5.758 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.131e-05/0.9392, allocations: 12.02 kB / 0.4895 GB, free: 5.746 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004171/0.9434, allocations: 0.7753 MB / 0.4903 GB, free: 4.961 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04586/0.9893, allocations: 3.644 MB / 0.4938 GB, free: 1.305 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3396/1.329, allocations: 4.907 MB / 0.4986 GB, free: 100.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004689/1.33, allocations: 291.3 kB / 0.4989 GB, free: 100.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002884/1.332, allocations: 395 kB / 0.4993 GB, free: 100.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03353/1.366, allocations: 10.26 MB / 0.5093 GB, free: 99.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002858/1.366, allocations: 27.38 kB / 0.5093 GB, free: 99.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002405/1.369, allocations: 181.2 kB / 0.5095 GB, free: 99.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003076/1.372, allocations: 1.194 MB / 0.5107 GB, free: 99.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02913/1.401, allocations: 10.01 MB / 0.5204 GB, free: 99.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07479/1.476, allocations: 36.46 MB / 0.556 GB, free: 77.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01503/1.491, allocations: 4.36 MB / 0.5603 GB, free: 75.76 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005238/1.496, allocations: 2.172 MB / 0.5624 GB, free: 74.94 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001717/1.498, allocations: 1.313 MB / 0.5637 GB, free: 73.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/1.498, allocations: 59.19 kB / 0.5638 GB, free: 73.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=245): time 5.871e-06/1.498, allocations: 3.938 kB / 0.5638 GB, free: 73.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=261): time 0.05115/1.549, allocations: 14.3 MB / 0.5777 GB, free: 68.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00123/1.551, allocations: 1.531 MB / 0.5792 GB, free: 66.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004345/1.555, allocations: 2.444 MB / 0.5816 GB, free: 64.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005725/1.555, allocations: 59.58 kB / 0.5817 GB, free: 64.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001651/1.557, allocations: 2.725 MB / 0.5843 GB, free: 61.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001233/1.558, allocations: 0.9588 MB / 0.5853 GB, free: 60.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004166/1.559, allocations: 106 kB / 0.5854 GB, free: 60.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003364/1.559, allocations: 0.5592 MB / 0.5859 GB, free: 60.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005014/1.564, allocations: 2.365 MB / 0.5882 GB, free: 58.15 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006694/1.571, allocations: 5.374 MB / 0.5935 GB, free: 51.72 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007419/1.578, allocations: 3.606 MB / 0.597 GB, free: 48.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.801e-05/1.579, allocations: 32 kB / 0.597 GB, free: 48.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.0605/1.639, allocations: 8.623 MB / 0.6054 GB, free: 41.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001116/1.639, allocations: 48 kB / 0.6055 GB, free: 41.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02927/1.669, allocations: 3.863 MB / 0.6093 GB, free: 38.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007802/1.676, allocations: 1.241 MB / 0.6105 GB, free: 37.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008099/1.685, allocations: 1.289 MB / 0.6117 GB, free: 36.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005868/1.69, allocations: 4.126 MB / 0.6158 GB, free: 32.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006285/1.697, allocations: 383.8 kB / 0.6161 GB, free: 31.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/1.698, allocations: 329 kB / 0.6164 GB, free: 31.67 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.001258/1.699, allocations: 0.4983 MB / 0.6169 GB, free: 31.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006631/1.7, allocations: 284.3 kB / 0.6172 GB, free: 30.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/1.716, allocations: 5.342 MB / 0.6224 GB, free: 26.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01475/1.731, allocations: 4.589 MB / 0.6269 GB, free: 22.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/1.731, allocations: 0 / 0.6269 GB, free: 22.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.598e-05/1.731, allocations: 19.81 kB / 0.6269 GB, free: 22.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03892/1.77, allocations: 14.6 MB / 0.6412 GB, free: 7.723 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.299e-05/1.77, allocations: 15.98 kB / 0.6412 GB, free: 7.707 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003729/1.774, allocations: 419.3 kB / 0.6416 GB, free: 7.297 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007623/1.781, allocations: 1.19 MB / 0.6427 GB, free: 6.094 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005916/1.782, allocations: 63.97 kB / 0.6428 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006509/1.788, allocations: 4.436 MB / 0.6471 GB, free: 1.332 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001162/1.79, allocations: 1.471 MB / 0.6486 GB, free: 15.73 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02406/1.814, allocations: 8.778 MB / 0.6571 GB, free: 6.523 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/1.815, allocations: 337.4 kB / 0.6575 GB, free: 6.172 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007436/1.816, allocations: 59.94 kB / 0.6575 GB, free: 6.113 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002794/1.818, allocations: 191.7 kB / 0.6577 GB, free: 5.926 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005561/1.819, allocations: 169.6 kB / 0.6579 GB, free: 5.758 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002898/1.819, allocations: 87.88 kB / 0.658 GB, free: 5.676 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003803/1.823, allocations: 1.657 MB / 0.6596 GB, free: 4.004 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.823, allocations: 0 / 0.6596 GB, free: 4.004 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006269/1.829, allocations: 1.05 MB / 0.6606 GB, free: 2.957 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.3461/2.176, allocations: 11.91 MB / 0.6722 GB, free: 104 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03205/2.208, allocations: 6.357 MB / 0.6784 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.458e-05/2.208, allocations: 1.438 kB / 0.6784 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01397/2.222, allocations: 2.869 MB / 0.6812 GB, free: 103.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004914/2.227, allocations: 355.7 kB / 0.6816 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05235/2.279, allocations: 11.03 MB / 0.6924 GB, free: 101 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01115/2.29, allocations: 3.403 MB / 0.6957 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007457/2.298, allocations: 1.848 MB / 0.6975 GB, free: 99.77 MB / 442.7 MB Notification: Performance of SimCode: time 2.325e-06/2.298, allocations: 0 / 0.6975 GB, free: 99.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.87/7.168, allocations: 149.5 MB / 0.8435 GB, free: 104.5 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