Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.644/2.644, allocations: 270 MB / 283.6 MB, free: 3.133 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.747e-05/4.762e-05, allocations: 7.234 kB / 348.5 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1592, allocations: 61.89 MB / 410.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6664/0.8257, allocations: 103.4 MB / 0.5017 GB, free: 0.668 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003477/0.8261, allocations: 80.73 kB / 0.5018 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3941/1.22, allocations: 86.43 MB / 0.5862 GB, free: 9.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.184e-06/1.22, allocations: 3.938 kB / 0.5862 GB, free: 9.496 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002155/1.22, allocations: 72 kB / 0.5863 GB, free: 9.426 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.015/1.235, allocations: 3.615 MB / 0.5898 GB, free: 5.75 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.379e-05/1.236, allocations: 12.03 kB / 0.5898 GB, free: 5.738 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00387/1.239, allocations: 0.7585 MB / 0.5906 GB, free: 4.969 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03063/1.27, allocations: 3.625 MB / 0.5941 GB, free: 1.332 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01924/1.289, allocations: 4.756 MB / 0.5987 GB, free: 12.53 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004522/1.29, allocations: 283.4 kB / 0.599 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002697/1.293, allocations: 379.8 kB / 0.5994 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03235/1.325, allocations: 9.959 MB / 0.6091 GB, free: 1.445 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002229/1.325, allocations: 27.75 kB / 0.6091 GB, free: 1.418 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002177/1.327, allocations: 175.9 kB / 0.6093 GB, free: 1.246 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002977/1.33, allocations: 1.156 MB / 0.6104 GB, free: 92 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3868/1.717, allocations: 9.634 MB / 0.6198 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07716/1.795, allocations: 35.69 MB / 0.6547 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/1.807, allocations: 4.243 MB / 0.6588 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004578/1.811, allocations: 2.128 MB / 0.6609 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001616/1.813, allocations: 1.317 MB / 0.6622 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.796e-05/1.813, allocations: 54.69 kB / 0.6622 GB, free: 106 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=236): time 6.552e-06/1.813, allocations: 0 / 0.6622 GB, free: 106 MB / 0.5105 GB Notification: Performance of matching and sorting (n=252): time 0.05622/1.869, allocations: 14.03 MB / 0.6759 GB, free: 102 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001318/1.871, allocations: 1.526 MB / 0.6774 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004675/1.876, allocations: 2.396 MB / 0.6798 GB, free: 99.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006146/1.876, allocations: 56.95 kB / 0.6798 GB, free: 99.54 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002024/1.878, allocations: 2.666 MB / 0.6824 GB, free: 97.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001368/1.88, allocations: 0.9227 MB / 0.6833 GB, free: 97 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006415/1.88, allocations: 108.2 kB / 0.6834 GB, free: 96.91 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003918/1.881, allocations: 0.5465 MB / 0.684 GB, free: 96.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005581/1.886, allocations: 2.333 MB / 0.6862 GB, free: 95.77 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007905/1.894, allocations: 5.242 MB / 0.6914 GB, free: 91.14 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007907/1.902, allocations: 3.547 MB / 0.6948 GB, free: 90.11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001238/1.902, allocations: 31.56 kB / 0.6949 GB, free: 90.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=731) (initialization): time 0.03537/1.938, allocations: 8.916 MB / 0.7036 GB, free: 85.65 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.031e-05/1.938, allocations: 52.25 kB / 0.7036 GB, free: 85.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02268/1.961, allocations: 4.463 MB / 0.708 GB, free: 82.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01943/1.98, allocations: 2.063 MB / 0.71 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007823/1.988, allocations: 1.24 MB / 0.7112 GB, free: 79.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/1.999, allocations: 4.936 MB / 0.716 GB, free: 75.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006563/2.006, allocations: 389.9 kB / 0.7164 GB, free: 75.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00138/2.007, allocations: 315.7 kB / 0.7167 GB, free: 74.77 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 469 * Number of states: 0 () * Number of discrete variables: 26 (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.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (669): * Single equations (assignments): 657 * Array equations: 8 * 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 prepare postOptimizeDAE: time 0.001479/2.008, allocations: 0.4963 MB / 0.7172 GB, free: 74.27 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007135/2.009, allocations: 276.4 kB / 0.7174 GB, free: 74 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/2.026, allocations: 5.233 MB / 0.7225 GB, free: 69.79 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01535/2.042, allocations: 4.5 MB / 0.7269 GB, free: 66.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/2.042, allocations: 6.625 kB / 0.727 GB, free: 66.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-05/2.042, allocations: 11.39 kB / 0.727 GB, free: 66.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04201/2.084, allocations: 14.3 MB / 0.7409 GB, free: 53.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-05/2.084, allocations: 12.25 kB / 0.7409 GB, free: 53.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003605/2.088, allocations: 403.4 kB / 0.7413 GB, free: 53.47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007888/2.096, allocations: 1.185 MB / 0.7425 GB, free: 52.27 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006784/2.096, allocations: 57.61 kB / 0.7425 GB, free: 52.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006794/2.103, allocations: 4.435 MB / 0.7469 GB, free: 47.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001215/2.105, allocations: 1.467 MB / 0.7483 GB, free: 45.91 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02125/2.126, allocations: 8.616 MB / 0.7567 GB, free: 36.89 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009808/2.127, allocations: 340.8 kB / 0.757 GB, free: 36.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001226/2.128, allocations: 58.59 kB / 0.7571 GB, free: 36.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003453/2.132, allocations: 191.7 kB / 0.7573 GB, free: 36.29 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000823/2.133, allocations: 164.6 kB / 0.7574 GB, free: 36.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002673/2.133, allocations: 82.08 kB / 0.7575 GB, free: 36.06 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003416/2.136, allocations: 1.624 MB / 0.7591 GB, free: 34.42 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.02e-07/2.136, allocations: 0 / 0.7591 GB, free: 34.42 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006362/2.143, allocations: 1.04 MB / 0.7601 GB, free: 33.39 MB / 0.5105 GB 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 (192): * Single equations (assignments): 182 * 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.02174/2.164, allocations: 11.78 MB / 0.7716 GB, free: 21.29 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01513/2.18, allocations: 6.097 MB / 0.7776 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/2.18, allocations: 0 / 0.7776 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007831/2.188, allocations: 2.79 MB / 0.7803 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003311/2.191, allocations: 349.9 kB / 0.7806 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03002/2.221, allocations: 10.26 MB / 0.7907 GB, free: 1.574 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007626/2.229, allocations: 3.324 MB / 0.7939 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009765/2.238, allocations: 2.059 MB / 0.7959 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005056/2.244, allocations: 1.741 MB / 0.7976 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of SimCode: time 1.793e-06/2.244, allocations: 0 / 0.7976 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.601/2.845, allocations: 70.43 MB / 0.8664 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/2.845, allocations: 180.2 kB / 0.8666 GB, free: 122.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.704/7.549, allocations: 3.594 kB / 0.8666 GB, free: 122.4 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat