Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.723/2.723, allocations: 235.1 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.002e-05/3.014e-05, allocations: 4 kB / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4128/0.4128, allocations: 54.86 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1996/0.6125, allocations: 95.26 MB / 449.7 MB, free: 15.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003443/0.6129, allocations: 79.95 kB / 449.8 MB, free: 15.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7878/1.401, allocations: 85.1 MB / 0.5223 GB, free: 42.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.401, allocations: 0 / 0.5223 GB, free: 42.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002783/1.401, allocations: 68 kB / 0.5224 GB, free: 42.17 MB / 394.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.01753/1.419, allocations: 3.698 MB / 0.526 GB, free: 38.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/1.419, allocations: 8.031 kB / 0.526 GB, free: 38.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03928/1.458, allocations: 3.648 MB / 0.5296 GB, free: 34.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02327/1.481, allocations: 4.922 MB / 0.5344 GB, free: 29.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002997/1.482, allocations: 124 kB / 0.5345 GB, free: 29.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002792/1.485, allocations: 227.9 kB / 0.5347 GB, free: 29.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02135/1.506, allocations: 7.278 MB / 0.5418 GB, free: 22.14 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02831/1.534, allocations: 9.575 MB / 0.5512 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000254/1.535, allocations: 31.81 kB / 0.5512 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002411/1.537, allocations: 12 kB / 0.5512 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003017/1.54, allocations: 1.195 MB / 0.5524 GB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08897/1.629, allocations: 33.98 MB / 0.5856 GB, free: 8.199 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00975/1.639, allocations: 4.063 MB / 0.5895 GB, free: 3.918 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005851/1.645, allocations: 2.127 MB / 0.5916 GB, free: 1.789 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002388/1.647, allocations: 1.323 MB / 0.5929 GB, free: 252 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.038e-05/1.647, allocations: 52.56 kB / 0.593 GB, free: 188 kB / 426.7 MB Notification: Performance of pre-optimization done (n=247): time 7.363e-06/1.647, allocations: 0 / 0.593 GB, free: 188 kB / 426.7 MB Notification: Performance of matching and sorting (n=264): time 0.06502/1.712, allocations: 14.84 MB / 0.6075 GB, free: 1.234 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.341e-05/1.713, allocations: 77.34 kB / 0.6075 GB, free: 1.145 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006226/1.719, allocations: 2.359 MB / 0.6098 GB, free: 14.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006399/1.719, allocations: 29.7 kB / 0.6099 GB, free: 14.74 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003742/1.723, allocations: 2.821 MB / 0.6126 GB, free: 11.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002019/1.725, allocations: 0.944 MB / 0.6135 GB, free: 10.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007242/1.726, allocations: 0 / 0.6135 GB, free: 10.92 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006847/1.727, allocations: 0.5623 MB / 0.6141 GB, free: 10.35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007183/1.734, allocations: 2.358 MB / 0.6164 GB, free: 7.984 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01133/1.745, allocations: 5.605 MB / 0.6219 GB, free: 0.7539 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4567/2.202, allocations: 3.675 MB / 0.6255 GB, free: 111.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002218/2.202, allocations: 36.22 kB / 0.6255 GB, free: 111.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=798) (initialization): time 0.04949/2.252, allocations: 9.018 MB / 0.6343 GB, free: 110.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/2.252, allocations: 55.69 kB / 0.6344 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02604/2.278, allocations: 4.482 MB / 0.6387 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02191/2.3, allocations: 2.054 MB / 0.6407 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009765/2.31, allocations: 1.376 MB / 0.6421 GB, free: 110.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01341/2.323, allocations: 4.794 MB / 0.6468 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/2.335, allocations: 296.3 kB / 0.647 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002255/2.338, allocations: 354.3 kB / 0.6474 GB, free: 108.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 524 * 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 (736): * Single equations (assignments): 724 * 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.003199/2.341, allocations: 389.6 kB / 0.6478 GB, free: 107.9 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0191/2.36, allocations: 4.719 MB / 0.6524 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/2.361, allocations: 284.5 kB / 0.6526 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01991/2.381, allocations: 5.242 MB / 0.6578 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01718/2.398, allocations: 4.522 MB / 0.6622 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-05/2.398, allocations: 3.938 kB / 0.6622 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.932e-05/2.399, allocations: 12.8 kB / 0.6622 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04833/2.447, allocations: 13.55 MB / 0.6754 GB, free: 98.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.293e-05/2.447, allocations: 12 kB / 0.6754 GB, free: 98.58 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005858/2.453, allocations: 424.3 kB / 0.6758 GB, free: 98.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01263/2.466, allocations: 1.177 MB / 0.677 GB, free: 97.53 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007867/2.466, allocations: 35.92 kB / 0.677 GB, free: 97.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/2.478, allocations: 4.345 MB / 0.6813 GB, free: 93.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001715/2.479, allocations: 1.404 MB / 0.6826 GB, free: 92.03 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0323/2.512, allocations: 8.757 MB / 0.6912 GB, free: 84.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/2.513, allocations: 342.3 kB / 0.6915 GB, free: 83.67 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001241/2.514, allocations: 21.77 kB / 0.6915 GB, free: 83.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004045/2.518, allocations: 159.2 kB / 0.6917 GB, free: 83.57 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009359/2.519, allocations: 173.2 kB / 0.6919 GB, free: 83.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003402/2.519, allocations: 79.97 kB / 0.6919 GB, free: 83.39 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003679/2.523, allocations: 1.556 MB / 0.6934 GB, free: 82.04 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.81e-07/2.523, allocations: 1.469 kB / 0.6934 GB, free: 82.04 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007881/2.531, allocations: 0.9635 MB / 0.6944 GB, free: 81.09 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * 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 (205): * Single equations (assignments): 195 * 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.02697/2.558, allocations: 12 MB / 0.7061 GB, free: 69.93 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01724/2.575, allocations: 6.257 MB / 0.7122 GB, free: 64.33 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/2.575, allocations: 0 / 0.7122 GB, free: 64.33 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008774/2.584, allocations: 2.825 MB / 0.715 GB, free: 61.67 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/2.587, allocations: 242.8 kB / 0.7152 GB, free: 61.44 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03286/2.62, allocations: 10.38 MB / 0.7253 GB, free: 50.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007634/2.628, allocations: 3.392 MB / 0.7287 GB, free: 47.57 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01058/2.638, allocations: 2.22 MB / 0.7308 GB, free: 45.36 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004811/2.643, allocations: 1.811 MB / 0.7326 GB, free: 43.54 MB / 458.7 MB Notification: Performance of SimCode: time 1.673e-06/2.643, allocations: 0 / 0.7326 GB, free: 43.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.227/2.87, allocations: 69.45 MB / 0.8004 GB, free: 6.383 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000473/2.871, allocations: 138.5 kB / 0.8005 GB, free: 6.188 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.542/8.412, allocations: 0 / 0.8005 GB, free: 6.188 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat