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.304/2.304, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.67e-05/4.681e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1237, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4616/0.5854, allocations: 88.49 MB / 410.4 MB, free: 1.293 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.5858, allocations: 75.95 kB / 410.4 MB, free: 1.219 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3599/0.9457, allocations: 82.65 MB / 493.1 MB, free: 13.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.9458, allocations: 0 / 493.1 MB, free: 13.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002965/0.9461, allocations: 64 kB / 493.1 MB, free: 13.84 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.03007/0.9762, allocations: 3.86 MB / 497 MB, free: 9.922 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.158e-05/0.9763, allocations: 8.031 kB / 497 MB, free: 9.914 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004869/0.9811, allocations: 0.7499 MB / 497.8 MB, free: 9.152 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05328/1.034, allocations: 5.879 MB / 0.4918 GB, free: 3.258 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.327/1.362, allocations: 5.277 MB / 0.497 GB, free: 102 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000613/1.362, allocations: 280.5 kB / 0.4972 GB, free: 102 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003203/1.365, allocations: 369 kB / 0.4976 GB, free: 102 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0385/1.404, allocations: 10.3 MB / 0.5077 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002309/1.404, allocations: 27.16 kB / 0.5077 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00215/1.406, allocations: 169.4 kB / 0.5078 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003126/1.41, allocations: 1.15 MB / 0.509 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03315/1.443, allocations: 9.853 MB / 0.5186 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0772/1.52, allocations: 37.33 MB / 0.555 GB, free: 78.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0186/1.539, allocations: 5.558 MB / 0.5605 GB, free: 76.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004982/1.544, allocations: 2.307 MB / 0.5627 GB, free: 75.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002276/1.546, allocations: 1.876 MB / 0.5646 GB, free: 73.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.896e-05/1.546, allocations: 51.34 kB / 0.5646 GB, free: 73.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 8.015e-06/1.546, allocations: 0 / 0.5646 GB, free: 73.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.05187/1.598, allocations: 12.4 MB / 0.5767 GB, free: 69.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001411/1.6, allocations: 1.523 MB / 0.5782 GB, free: 67.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005458/1.605, allocations: 2.463 MB / 0.5806 GB, free: 65.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007204/1.606, allocations: 55.34 kB / 0.5807 GB, free: 65.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002318/1.608, allocations: 2.666 MB / 0.5833 GB, free: 63.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001546/1.61, allocations: 0.856 MB / 0.5841 GB, free: 62.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008355/1.611, allocations: 101.1 kB / 0.5842 GB, free: 62.47 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004785/1.611, allocations: 0.5482 MB / 0.5847 GB, free: 61.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00654/1.618, allocations: 2.552 MB / 0.5872 GB, free: 59.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00848/1.626, allocations: 5.495 MB / 0.5926 GB, free: 53.17 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008504/1.635, allocations: 3.773 MB / 0.5963 GB, free: 50.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001363/1.635, allocations: 28 kB / 0.5963 GB, free: 50 MB / 426.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.115/1.75, allocations: 18.51 MB / 0.6144 GB, free: 35.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.796e-05/1.75, allocations: 52 kB / 0.6144 GB, free: 35.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08238/1.833, allocations: 11.96 MB / 0.6261 GB, free: 23.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08995/1.923, allocations: 10.3 MB / 0.6362 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008016/1.931, allocations: 1.248 MB / 0.6374 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04506/1.976, allocations: 15.86 MB / 0.6529 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007398/1.983, allocations: 440.4 kB / 0.6533 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001698/1.985, allocations: 325.4 kB / 0.6536 GB, free: 11.34 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.001638/1.987, allocations: 0.4911 MB / 0.6541 GB, free: 10.85 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000864/1.988, allocations: 272.4 kB / 0.6543 GB, free: 10.58 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01673/2.004, allocations: 5.072 MB / 0.6593 GB, free: 5.477 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01489/2.019, allocations: 4.354 MB / 0.6636 GB, free: 1.109 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.98e-05/2.019, allocations: 0 / 0.6636 GB, free: 1.109 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.971e-05/2.02, allocations: 7.969 kB / 0.6636 GB, free: 1.102 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3732/2.393, allocations: 12.92 MB / 0.6762 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.755e-05/2.393, allocations: 10.55 kB / 0.6762 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005165/2.398, allocations: 405.1 kB / 0.6766 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007733/2.406, allocations: 0.9393 MB / 0.6775 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007223/2.407, allocations: 51.58 kB / 0.6775 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/2.417, allocations: 5.419 MB / 0.6828 GB, free: 105.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001307/2.419, allocations: 1.458 MB / 0.6843 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02076/2.44, allocations: 8.296 MB / 0.6924 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/2.441, allocations: 328.1 kB / 0.6927 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008399/2.442, allocations: 51.22 kB / 0.6927 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00293/2.444, allocations: 197.2 kB / 0.6929 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005409/2.445, allocations: 143.2 kB / 0.693 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002502/2.445, allocations: 64.06 kB / 0.6931 GB, free: 102.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003525/2.449, allocations: 1.68 MB / 0.6947 GB, free: 102.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.72e-07/2.449, allocations: 0 / 0.6947 GB, free: 102.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006942/2.456, allocations: 1.099 MB / 0.6958 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.01944/2.475, allocations: 10.88 MB / 0.7064 GB, free: 97.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01622/2.492, allocations: 6.3 MB / 0.7126 GB, free: 95.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/2.492, allocations: 0 / 0.7126 GB, free: 95.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006168/2.498, allocations: 2.474 MB / 0.715 GB, free: 94.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/2.501, allocations: 337.3 kB / 0.7153 GB, free: 94.18 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0306/2.531, allocations: 10.28 MB / 0.7254 GB, free: 90.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00579/2.537, allocations: 3.243 MB / 0.7285 GB, free: 89.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004177/2.541, allocations: 1.712 MB / 0.7302 GB, free: 87.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.853e-06/2.542, allocations: 1.859 kB / 0.7302 GB, free: 87.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.804/7.346, allocations: 128.9 MB / 0.8561 GB, free: 105.9 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