Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.182/2.182, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.555e-05/4.573e-05, allocations: 0 / 273.1 MB, free: 172 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.115, allocations: 48.72 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4396/0.5547, allocations: 89.19 MB / 411.1 MB, free: 320 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.555, allocations: 71.95 kB / 411.1 MB, free: 248 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4236/0.9786, allocations: 86.38 MB / 497.5 MB, free: 9.172 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.9787, allocations: 0 / 497.5 MB, free: 9.172 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002203/0.9789, allocations: 72 kB / 497.6 MB, free: 9.102 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.01608/0.995, allocations: 3.697 MB / 0.4895 GB, free: 5.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.225e-05/0.9951, allocations: 12.02 kB / 0.4895 GB, free: 5.328 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004562/0.9997, allocations: 0.7753 MB / 0.4903 GB, free: 4.543 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02928/1.029, allocations: 3.648 MB / 0.4939 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3259/1.355, allocations: 4.906 MB / 0.4986 GB, free: 100.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005684/1.356, allocations: 298.9 kB / 0.4989 GB, free: 100.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002837/1.358, allocations: 387.8 kB / 0.4993 GB, free: 100.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03541/1.394, allocations: 10.26 MB / 0.5093 GB, free: 99.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002382/1.394, allocations: 32.14 kB / 0.5094 GB, free: 99.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002109/1.396, allocations: 178.5 kB / 0.5095 GB, free: 99.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003114/1.399, allocations: 1.188 MB / 0.5107 GB, free: 99.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02877/1.428, allocations: 10.01 MB / 0.5205 GB, free: 99.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07245/1.501, allocations: 36.46 MB / 0.5561 GB, free: 77.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01355/1.514, allocations: 4.366 MB / 0.5603 GB, free: 75.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007977/1.522, allocations: 2.163 MB / 0.5624 GB, free: 74.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002523/1.525, allocations: 1.317 MB / 0.5637 GB, free: 73.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.883e-05/1.525, allocations: 63.72 kB / 0.5638 GB, free: 73.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=245): time 9.167e-06/1.525, allocations: 3.938 kB / 0.5638 GB, free: 73.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=261): time 0.06704/1.592, allocations: 14.3 MB / 0.5778 GB, free: 67.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00145/1.594, allocations: 1.528 MB / 0.5792 GB, free: 66.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005597/1.599, allocations: 2.441 MB / 0.5816 GB, free: 63.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006101/1.6, allocations: 62.88 kB / 0.5817 GB, free: 63.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002152/1.602, allocations: 2.73 MB / 0.5844 GB, free: 61.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001576/1.604, allocations: 0.9545 MB / 0.5853 GB, free: 60.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007133/1.605, allocations: 113.1 kB / 0.5854 GB, free: 60.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000477/1.605, allocations: 0.5472 MB / 0.5859 GB, free: 60.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005796/1.611, allocations: 2.361 MB / 0.5882 GB, free: 57.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008084/1.619, allocations: 5.384 MB / 0.5935 GB, free: 51.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008099/1.627, allocations: 3.611 MB / 0.597 GB, free: 48.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001088/1.627, allocations: 28 kB / 0.597 GB, free: 48.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.02619/1.654, allocations: 8.687 MB / 0.6055 GB, free: 41.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.996e-05/1.654, allocations: 48 kB / 0.6056 GB, free: 41.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01318/1.667, allocations: 3.857 MB / 0.6093 GB, free: 37.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00782/1.675, allocations: 1.247 MB / 0.6106 GB, free: 37.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008078/1.683, allocations: 1.287 MB / 0.6118 GB, free: 35.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006082/1.689, allocations: 4.119 MB / 0.6158 GB, free: 31.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006521/1.696, allocations: 394.4 kB / 0.6162 GB, free: 31.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002164/1.698, allocations: 323.7 kB / 0.6165 GB, free: 31.36 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.002107/1.7, allocations: 0.5116 MB / 0.617 GB, free: 30.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007391/1.701, allocations: 284.3 kB / 0.6173 GB, free: 30.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0172/1.718, allocations: 5.334 MB / 0.6225 GB, free: 26.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01576/1.734, allocations: 4.591 MB / 0.627 GB, free: 22.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/1.734, allocations: 3.938 kB / 0.627 GB, free: 22.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-05/1.734, allocations: 11.95 kB / 0.627 GB, free: 22.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04257/1.777, allocations: 14.6 MB / 0.6413 GB, free: 7.219 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.72e-05/1.777, allocations: 12.03 kB / 0.6413 GB, free: 7.207 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003954/1.781, allocations: 423.3 kB / 0.6417 GB, free: 6.793 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008452/1.789, allocations: 1.193 MB / 0.6428 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006761/1.79, allocations: 63.97 kB / 0.6429 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006779/1.797, allocations: 4.437 MB / 0.6472 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001336/1.798, allocations: 1.471 MB / 0.6487 GB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02508/1.823, allocations: 8.77 MB / 0.6572 GB, free: 6.023 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/1.824, allocations: 337.5 kB / 0.6576 GB, free: 5.672 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001108/1.826, allocations: 59.94 kB / 0.6576 GB, free: 5.613 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003533/1.829, allocations: 199.6 kB / 0.6578 GB, free: 5.418 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008377/1.83, allocations: 173.6 kB / 0.658 GB, free: 5.246 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003022/1.83, allocations: 73.11 kB / 0.658 GB, free: 5.176 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00442/1.835, allocations: 1.665 MB / 0.6597 GB, free: 3.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.835, allocations: 0 / 0.6597 GB, free: 3.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006952/1.842, allocations: 1.056 MB / 0.6607 GB, free: 2.453 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.3775/2.219, allocations: 11.91 MB / 0.6723 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01835/2.238, allocations: 6.358 MB / 0.6785 GB, free: 102.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-05/2.238, allocations: 2.688 kB / 0.6785 GB, free: 102.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009314/2.247, allocations: 2.859 MB / 0.6813 GB, free: 102.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003008/2.25, allocations: 350.3 kB / 0.6817 GB, free: 102.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03158/2.282, allocations: 10.56 MB / 0.692 GB, free: 100.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006543/2.288, allocations: 3.38 MB / 0.6953 GB, free: 99.59 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.008503/2.297, allocations: 2.116 MB / 0.6973 GB, free: 99.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004255/2.301, allocations: 1.803 MB / 0.6991 GB, free: 99.47 MB / 442.7 MB Notification: Performance of SimCode: time 1.603e-06/2.301, allocations: 0 / 0.6991 GB, free: 99.47 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1734/2.475, allocations: 70.66 MB / 0.7681 GB, free: 60.61 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/2.475, allocations: 180 kB / 0.7683 GB, free: 60.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.838/7.313, allocations: 4.062 kB / 0.7683 GB, free: 60.38 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat