Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.343/2.343, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.296e-05/5.318e-05, allocations: 4 kB / 273.2 MB, free: 148 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5019/0.6228, allocations: 88.49 MB / 410.4 MB, free: 1.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.6232, allocations: 71.97 kB / 410.4 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4169/1.04, allocations: 82.64 MB / 493.1 MB, free: 13.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.04, allocations: 0 / 493.1 MB, free: 13.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002149/1.04, allocations: 68 kB / 493.2 MB, free: 13.57 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.02231/1.063, allocations: 3.848 MB / 497 MB, free: 9.664 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/1.063, allocations: 8.031 kB / 497 MB, free: 9.656 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004406/1.067, allocations: 0.7538 MB / 497.8 MB, free: 8.891 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04319/1.11, allocations: 5.883 MB / 0.4918 GB, free: 2.992 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3187/1.429, allocations: 5.283 MB / 0.497 GB, free: 102 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007671/1.43, allocations: 279.6 kB / 0.4973 GB, free: 102 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003686/1.434, allocations: 366.8 kB / 0.4976 GB, free: 102 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07327/1.507, allocations: 10.3 MB / 0.5077 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001992/1.507, allocations: 28.23 kB / 0.5077 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001232/1.509, allocations: 170 kB / 0.5079 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004581/1.513, allocations: 1.156 MB / 0.509 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03519/1.548, allocations: 9.845 MB / 0.5186 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07108/1.62, allocations: 37.33 MB / 0.5551 GB, free: 78.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01795/1.638, allocations: 5.557 MB / 0.5605 GB, free: 76.22 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004745/1.642, allocations: 2.311 MB / 0.5628 GB, free: 75.33 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002182/1.645, allocations: 1.874 MB / 0.5646 GB, free: 73.58 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/1.645, allocations: 48.09 kB / 0.5646 GB, free: 73.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 5.4e-06/1.645, allocations: 0 / 0.5646 GB, free: 73.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.04844/1.693, allocations: 12.4 MB / 0.5767 GB, free: 69.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00124/1.695, allocations: 1.514 MB / 0.5782 GB, free: 67.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004776/1.699, allocations: 2.465 MB / 0.5806 GB, free: 65.47 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006689/1.7, allocations: 55.42 kB / 0.5807 GB, free: 65.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002191/1.702, allocations: 2.674 MB / 0.5833 GB, free: 63.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001416/1.704, allocations: 0.8472 MB / 0.5841 GB, free: 62.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005876/1.704, allocations: 104.9 kB / 0.5842 GB, free: 62.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003683/1.705, allocations: 0.5401 MB / 0.5847 GB, free: 61.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005779/1.71, allocations: 2.551 MB / 0.5872 GB, free: 59.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007542/1.718, allocations: 5.498 MB / 0.5926 GB, free: 52.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007755/1.726, allocations: 3.779 MB / 0.5963 GB, free: 49.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.729e-05/1.726, allocations: 32 kB / 0.5963 GB, free: 49.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1136/1.84, allocations: 18.57 MB / 0.6145 GB, free: 35.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.969e-05/1.84, allocations: 48 kB / 0.6145 GB, free: 35.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0865/1.926, allocations: 11.97 MB / 0.6262 GB, free: 23.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0916/2.018, allocations: 10.3 MB / 0.6363 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007863/2.026, allocations: 1.244 MB / 0.6375 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04544/2.071, allocations: 15.87 MB / 0.653 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007058/2.078, allocations: 432.5 kB / 0.6534 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00154/2.08, allocations: 324.9 kB / 0.6537 GB, free: 11.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 474 * 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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (649): * Single equations (assignments): 638 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001587/2.082, allocations: 499.3 kB / 0.6542 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008067/2.082, allocations: 276.4 kB / 0.6544 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01651/2.099, allocations: 5.064 MB / 0.6594 GB, free: 5.203 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01491/2.114, allocations: 4.366 MB / 0.6636 GB, free: 0.8281 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.169e-05/2.114, allocations: 4 kB / 0.6636 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.72e-05/2.114, allocations: 7.969 kB / 0.6637 GB, free: 0.8164 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3478/2.462, allocations: 12.92 MB / 0.6763 GB, free: 107.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-05/2.462, allocations: 6.5 kB / 0.6763 GB, free: 107.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003815/2.466, allocations: 403.6 kB / 0.6767 GB, free: 107.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005473/2.471, allocations: 0.9382 MB / 0.6776 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005947/2.472, allocations: 56.09 kB / 0.6776 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009915/2.482, allocations: 5.421 MB / 0.6829 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00117/2.483, allocations: 1.467 MB / 0.6844 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0195/2.503, allocations: 8.283 MB / 0.6924 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/2.504, allocations: 338.3 kB / 0.6928 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001061/2.505, allocations: 38.88 kB / 0.6928 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003355/2.508, allocations: 200.8 kB / 0.693 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007849/2.509, allocations: 143.1 kB / 0.6931 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002676/2.509, allocations: 65.31 kB / 0.6932 GB, free: 102.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003939/2.513, allocations: 1.676 MB / 0.6948 GB, free: 102.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.61e-07/2.513, allocations: 0 / 0.6948 GB, free: 102.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006939/2.52, allocations: 1.106 MB / 0.6959 GB, free: 102.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01939/2.54, allocations: 10.87 MB / 0.7065 GB, free: 97.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01619/2.556, allocations: 6.312 MB / 0.7127 GB, free: 95.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/2.556, allocations: 0 / 0.7127 GB, free: 95.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006378/2.563, allocations: 2.472 MB / 0.7151 GB, free: 94.38 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002994/2.566, allocations: 329.6 kB / 0.7154 GB, free: 94.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03349/2.599, allocations: 9.816 MB / 0.725 GB, free: 90.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006954/2.606, allocations: 3.247 MB / 0.7282 GB, free: 89.56 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.008739/2.615, allocations: 2.057 MB / 0.7302 GB, free: 89.53 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004393/2.619, allocations: 1.66 MB / 0.7318 GB, free: 88.18 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/2.619, allocations: 0 / 0.7318 GB, free: 88.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1731/2.793, allocations: 79.31 MB / 0.8093 GB, free: 21.3 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002296/2.793, allocations: 186.5 kB / 0.8094 GB, free: 21.07 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.574/7.367, allocations: 0 / 0.8094 GB, free: 21.07 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat