Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.529/2.529, allocations: 235 MB / 247.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.603e-05/4.618e-05, allocations: 8 kB / 305 MB, free: 5.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.4107, allocations: 54.86 MB / 359.9 MB, free: 3.176 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1816/0.5924, allocations: 95.93 MB / 455.8 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003256/0.5928, allocations: 75.95 kB / 455.9 MB, free: 0.8906 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7046/1.297, allocations: 86.55 MB / 0.5297 GB, free: 107.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.298, allocations: 0 / 0.5297 GB, free: 107.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000223/1.298, allocations: 73.5 kB / 0.5298 GB, free: 107.3 MB / 458.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.01617/1.314, allocations: 3.703 MB / 0.5334 GB, free: 105.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/1.314, allocations: 9.125 kB / 0.5334 GB, free: 105.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004106/1.318, allocations: 0.7794 MB / 0.5342 GB, free: 105.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0291/1.347, allocations: 3.648 MB / 0.5377 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0189/1.366, allocations: 4.934 MB / 0.5425 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004484/1.367, allocations: 295.6 kB / 0.5428 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002609/1.369, allocations: 392.2 kB / 0.5432 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02947/1.399, allocations: 10.26 MB / 0.5532 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002891/1.399, allocations: 27.84 kB / 0.5532 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002587/1.402, allocations: 174.8 kB / 0.5534 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002637/1.404, allocations: 1.197 MB / 0.5546 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02738/1.432, allocations: 10 MB / 0.5643 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07485/1.507, allocations: 36.47 MB / 0.6 GB, free: 79.66 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01814/1.525, allocations: 4.374 MB / 0.6042 GB, free: 76.97 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004455/1.53, allocations: 2.166 MB / 0.6064 GB, free: 74.99 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001547/1.531, allocations: 1.312 MB / 0.6076 GB, free: 73.56 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.698e-05/1.531, allocations: 64.44 kB / 0.6077 GB, free: 73.49 MB / 458.7 MB Notification: Performance of pre-optimization done (n=245): time 6.783e-06/1.531, allocations: 0 / 0.6077 GB, free: 73.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=261): time 0.0559/1.587, allocations: 14.3 MB / 0.6217 GB, free: 61.36 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001411/1.589, allocations: 1.526 MB / 0.6231 GB, free: 59.74 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00511/1.594, allocations: 2.437 MB / 0.6255 GB, free: 57.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005849/1.594, allocations: 61.61 kB / 0.6256 GB, free: 57.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002121/1.597, allocations: 2.731 MB / 0.6283 GB, free: 55.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001419/1.598, allocations: 0.9538 MB / 0.6292 GB, free: 54.22 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006334/1.599, allocations: 108 kB / 0.6293 GB, free: 54.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000421/1.599, allocations: 0.5562 MB / 0.6298 GB, free: 53.62 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005751/1.605, allocations: 2.376 MB / 0.6322 GB, free: 51.49 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007789/1.613, allocations: 5.386 MB / 0.6374 GB, free: 44.96 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00791/1.621, allocations: 3.63 MB / 0.641 GB, free: 41.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.905e-05/1.621, allocations: 32 kB / 0.641 GB, free: 41.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.03533/1.656, allocations: 9.371 MB / 0.6501 GB, free: 32.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.907e-05/1.656, allocations: 52 kB / 0.6502 GB, free: 32.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02261/1.679, allocations: 4.539 MB / 0.6546 GB, free: 28.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01941/1.698, allocations: 2.055 MB / 0.6566 GB, free: 26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00791/1.706, allocations: 1.294 MB / 0.6579 GB, free: 24.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/1.717, allocations: 4.951 MB / 0.6627 GB, free: 19.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006491/1.723, allocations: 391.5 kB / 0.6631 GB, free: 19.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001258/1.724, allocations: 324 kB / 0.6634 GB, free: 18.8 MB / 458.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): 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.001316/1.726, allocations: 0.5041 MB / 0.6639 GB, free: 18.29 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006873/1.727, allocations: 280.3 kB / 0.6642 GB, free: 18.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/1.743, allocations: 5.346 MB / 0.6694 GB, free: 12.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01531/1.759, allocations: 4.594 MB / 0.6739 GB, free: 7.953 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-05/1.759, allocations: 4 kB / 0.6739 GB, free: 7.949 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.996e-05/1.759, allocations: 11.95 kB / 0.6739 GB, free: 7.938 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0443/1.803, allocations: 14.59 MB / 0.6881 GB, free: 9.129 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.78e-05/1.803, allocations: 11.95 kB / 0.6882 GB, free: 9.117 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003856/1.807, allocations: 434.8 kB / 0.6886 GB, free: 8.699 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008301/1.815, allocations: 1.185 MB / 0.6897 GB, free: 7.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006322/1.816, allocations: 67.88 kB / 0.6898 GB, free: 7.438 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008037/1.824, allocations: 4.453 MB / 0.6941 GB, free: 2.723 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001417/1.826, allocations: 1.467 MB / 0.6956 GB, free: 1.117 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.353/2.179, allocations: 8.762 MB / 0.7041 GB, free: 109.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/2.18, allocations: 340.2 kB / 0.7045 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/2.181, allocations: 60.59 kB / 0.7045 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003724/2.185, allocations: 198.6 kB / 0.7047 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001037/2.186, allocations: 168.6 kB / 0.7049 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003411/2.186, allocations: 77.84 kB / 0.7049 GB, free: 109.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005127/2.191, allocations: 1.66 MB / 0.7066 GB, free: 109 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.032e-06/2.191, allocations: 1.188 kB / 0.7066 GB, free: 109 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007789/2.199, allocations: 1.067 MB / 0.7076 GB, free: 109 MB / 474.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.03238/2.232, allocations: 11.92 MB / 0.7192 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01591/2.248, allocations: 6.385 MB / 0.7255 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/2.248, allocations: 0 / 0.7255 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008114/2.256, allocations: 2.864 MB / 0.7283 GB, free: 103.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/2.259, allocations: 351 kB / 0.7286 GB, free: 103.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03136/2.29, allocations: 10.56 MB / 0.7389 GB, free: 99.75 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007031/2.297, allocations: 3.388 MB / 0.7422 GB, free: 98.48 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008783/2.306, allocations: 2.102 MB / 0.7443 GB, free: 98.45 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004529/2.311, allocations: 1.814 MB / 0.7461 GB, free: 96.96 MB / 474.7 MB Notification: Performance of SimCode: time 1.373e-06/2.311, allocations: 0 / 0.7461 GB, free: 96.96 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.164/2.475, allocations: 72.32 MB / 0.8167 GB, free: 45.95 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003035/2.475, allocations: 189.5 kB / 0.8169 GB, free: 45.71 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.786/7.261, allocations: 3.938 kB / 0.8169 GB, free: 45.71 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat