Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.019/2.019, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.703e-05/4.717e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.124, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4854/0.6094, allocations: 88.48 MB / 410.3 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.6098, allocations: 79.89 kB / 410.4 MB, free: 1.363 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3639/0.9737, allocations: 82.64 MB / 493 MB, free: 14.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.9738, allocations: 0 / 493 MB, free: 14.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002074/0.974, allocations: 75.94 kB / 493.1 MB, free: 13.98 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.02241/0.9964, allocations: 3.852 MB / 497 MB, free: 10.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.9965, allocations: 8.031 kB / 497 MB, free: 10.06 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003688/1, allocations: 0.7499 MB / 497.7 MB, free: 9.297 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04236/1.043, allocations: 5.879 MB / 0.4918 GB, free: 3.402 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3105/1.353, allocations: 5.281 MB / 0.4969 GB, free: 101.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004151/1.354, allocations: 280.6 kB / 0.4972 GB, free: 101.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002732/1.356, allocations: 366 kB / 0.4976 GB, free: 101.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03527/1.392, allocations: 10.34 MB / 0.5077 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000241/1.392, allocations: 32.66 kB / 0.5077 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002219/1.394, allocations: 173 kB / 0.5079 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003055/1.397, allocations: 1.147 MB / 0.509 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03141/1.429, allocations: 9.975 MB / 0.5187 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08785/1.517, allocations: 37.33 MB / 0.5552 GB, free: 77.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01866/1.535, allocations: 5.573 MB / 0.5606 GB, free: 75.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004782/1.54, allocations: 2.304 MB / 0.5629 GB, free: 74.78 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002249/1.543, allocations: 1.876 MB / 0.5647 GB, free: 73.03 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.758e-05/1.543, allocations: 52.47 kB / 0.5647 GB, free: 72.97 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 7.224e-06/1.543, allocations: 3.094 kB / 0.5647 GB, free: 72.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.05091/1.594, allocations: 12.4 MB / 0.5769 GB, free: 68.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001284/1.595, allocations: 1.523 MB / 0.5783 GB, free: 67.08 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004797/1.6, allocations: 2.456 MB / 0.5807 GB, free: 64.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006471/1.6, allocations: 55.03 kB / 0.5808 GB, free: 64.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002047/1.603, allocations: 2.67 MB / 0.5834 GB, free: 62.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001367/1.604, allocations: 0.8444 MB / 0.5842 GB, free: 61.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007223/1.605, allocations: 108.8 kB / 0.5843 GB, free: 61.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003952/1.605, allocations: 0.55 MB / 0.5849 GB, free: 61.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006254/1.611, allocations: 2.552 MB / 0.5874 GB, free: 58.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009987/1.621, allocations: 5.522 MB / 0.5928 GB, free: 52.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/1.633, allocations: 3.776 MB / 0.5964 GB, free: 49.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001219/1.633, allocations: 35.7 kB / 0.5965 GB, free: 49.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1247/1.758, allocations: 18.79 MB / 0.6148 GB, free: 34.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.963e-05/1.758, allocations: 55.98 kB / 0.6149 GB, free: 34.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08197/1.84, allocations: 11.96 MB / 0.6266 GB, free: 22.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0908/1.931, allocations: 10.3 MB / 0.6366 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007828/1.939, allocations: 1.244 MB / 0.6378 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04554/1.984, allocations: 15.87 MB / 0.6533 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007013/1.991, allocations: 436.5 kB / 0.6538 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00154/1.993, allocations: 317.5 kB / 0.6541 GB, free: 10.31 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.002305/1.995, allocations: 0.5026 MB / 0.6546 GB, free: 9.801 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008631/1.996, allocations: 264.5 kB / 0.6548 GB, free: 9.539 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01761/2.014, allocations: 5.066 MB / 0.6598 GB, free: 4.438 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01455/2.029, allocations: 4.353 MB / 0.664 GB, free: 72 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.878e-05/2.029, allocations: 8 kB / 0.664 GB, free: 64 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.039e-05/2.029, allocations: 11.95 kB / 0.664 GB, free: 52 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3715/2.4, allocations: 12.94 MB / 0.6767 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.704e-05/2.4, allocations: 8.906 kB / 0.6767 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005865/2.406, allocations: 408.1 kB / 0.6771 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009249/2.415, allocations: 0.9333 MB / 0.678 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008164/2.416, allocations: 54.77 kB / 0.678 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/2.429, allocations: 5.428 MB / 0.6833 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00122/2.43, allocations: 1.458 MB / 0.6847 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02019/2.451, allocations: 8.283 MB / 0.6928 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/2.452, allocations: 343 kB / 0.6932 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/2.453, allocations: 36.69 kB / 0.6932 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003333/2.456, allocations: 200.5 kB / 0.6934 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007026/2.457, allocations: 144.2 kB / 0.6935 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002641/2.457, allocations: 67.33 kB / 0.6936 GB, free: 102.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003951/2.461, allocations: 1.68 MB / 0.6952 GB, free: 102.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.12e-07/2.461, allocations: 1.875 kB / 0.6952 GB, free: 102.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006709/2.468, allocations: 1.097 MB / 0.6963 GB, free: 102.2 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.01993/2.488, allocations: 10.88 MB / 0.7069 GB, free: 96.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01683/2.505, allocations: 6.48 MB / 0.7133 GB, free: 94.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/2.505, allocations: 0 / 0.7133 GB, free: 94.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006239/2.511, allocations: 2.502 MB / 0.7157 GB, free: 93.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002835/2.514, allocations: 332.2 kB / 0.716 GB, free: 93.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03104/2.545, allocations: 10.29 MB / 0.7261 GB, free: 89.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006483/2.552, allocations: 3.253 MB / 0.7292 GB, free: 88.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004656/2.556, allocations: 1.706 MB / 0.7309 GB, free: 87.04 MB / 442.7 MB Notification: Performance of SimCode: time 3.647e-06/2.557, allocations: 0 / 0.7309 GB, free: 87.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.918/7.474, allocations: 129.8 MB / 0.8576 GB, free: 105.5 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat