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.135/2.135, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.686e-05/2.7e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1122, allocations: 48.7 MB / 316.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.5642, allocations: 88.08 MB / 404.4 MB, free: 4.473 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003413/0.5646, allocations: 74.03 kB / 404.5 MB, free: 4.438 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.36/0.9247, allocations: 81.23 MB / 485.7 MB, free: 6.484 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.9247, allocations: 4 kB / 485.7 MB, free: 6.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002504/0.925, allocations: 75.92 kB / 485.8 MB, free: 6.406 MB / 410.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.02389/0.9489, allocations: 3.844 MB / 489.6 MB, free: 2.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.527e-05/0.949, allocations: 12.03 kB / 489.6 MB, free: 2.488 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3531/1.302, allocations: 5.872 MB / 495.5 MB, free: 93.22 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02259/1.325, allocations: 5.275 MB / 0.489 GB, free: 92.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003147/1.325, allocations: 117.4 kB / 0.4891 GB, free: 92.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002747/1.328, allocations: 221.6 kB / 0.4894 GB, free: 92.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01835/1.346, allocations: 6.887 MB / 0.4961 GB, free: 92.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02562/1.372, allocations: 9.192 MB / 0.5051 GB, free: 91.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000199/1.372, allocations: 29.81 kB / 0.5051 GB, free: 91.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002208/1.374, allocations: 15.75 kB / 0.5051 GB, free: 91.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002563/1.377, allocations: 1.152 MB / 0.5062 GB, free: 91.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07076/1.448, allocations: 35.03 MB / 0.5404 GB, free: 72.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006882/1.455, allocations: 4.087 MB / 0.5444 GB, free: 69.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004506/1.459, allocations: 2.267 MB / 0.5466 GB, free: 68.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002291/1.462, allocations: 1.875 MB / 0.5485 GB, free: 67.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.709e-05/1.462, allocations: 48.5 kB / 0.5485 GB, free: 67.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=226): time 6.182e-06/1.462, allocations: 0 / 0.5485 GB, free: 67.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.04122/1.503, allocations: 11.82 MB / 0.5601 GB, free: 61.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/1.503, allocations: 72.38 kB / 0.5601 GB, free: 61.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005873/1.509, allocations: 2.383 MB / 0.5625 GB, free: 59.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008303/1.51, allocations: 29.7 kB / 0.5625 GB, free: 59.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002311/1.512, allocations: 2.76 MB / 0.5652 GB, free: 57.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001457/1.514, allocations: 0.8335 MB / 0.566 GB, free: 56.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000814/1.515, allocations: 0 / 0.566 GB, free: 56.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000506/1.515, allocations: 0.5652 MB / 0.5665 GB, free: 55.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005842/1.521, allocations: 2.527 MB / 0.569 GB, free: 53.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008034/1.529, allocations: 5.722 MB / 0.5746 GB, free: 46.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008406/1.538, allocations: 3.819 MB / 0.5783 GB, free: 43.47 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001028/1.538, allocations: 32 kB / 0.5784 GB, free: 43.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=765) (initialization): time 0.1167/1.654, allocations: 18.43 MB / 0.5964 GB, free: 27.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.331e-05/1.655, allocations: 54.34 kB / 0.5964 GB, free: 27.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08398/1.739, allocations: 11.9 MB / 0.608 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0931/1.832, allocations: 10.31 MB / 0.6181 GB, free: 5.453 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008403/1.84, allocations: 1.326 MB / 0.6194 GB, free: 4.125 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04616/1.886, allocations: 15.1 MB / 0.6341 GB, free: 4.805 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007327/1.894, allocations: 343.5 kB / 0.6345 GB, free: 4.469 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001908/1.896, allocations: 340 kB / 0.6348 GB, free: 4.137 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * 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 (693): * Single equations (assignments): 682 * 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.002224/1.898, allocations: 384.5 kB / 0.6351 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3079/2.206, allocations: 4.468 MB / 0.6395 GB, free: 97.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/2.207, allocations: 272.1 kB / 0.6398 GB, free: 97.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01672/2.224, allocations: 4.975 MB / 0.6446 GB, free: 97.72 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01376/2.238, allocations: 4.279 MB / 0.6488 GB, free: 97.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.719e-05/2.238, allocations: 2.219 kB / 0.6488 GB, free: 97.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.77e-05/2.238, allocations: 13.84 kB / 0.6488 GB, free: 97.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03355/2.272, allocations: 11.95 MB / 0.6605 GB, free: 96.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.561e-05/2.272, allocations: 6.406 kB / 0.6605 GB, free: 96.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003613/2.275, allocations: 411.3 kB / 0.6609 GB, free: 96.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005187/2.28, allocations: 0.9365 MB / 0.6618 GB, free: 96.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005876/2.281, allocations: 20.55 kB / 0.6618 GB, free: 96.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00919/2.29, allocations: 5.29 MB / 0.667 GB, free: 94.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001091/2.291, allocations: 1.404 MB / 0.6684 GB, free: 93.08 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01862/2.31, allocations: 8.259 MB / 0.6764 GB, free: 91.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/2.311, allocations: 334.9 kB / 0.6768 GB, free: 90.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001424/2.313, allocations: 16.59 kB / 0.6768 GB, free: 90.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003412/2.316, allocations: 169.4 kB / 0.6769 GB, free: 90.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007965/2.317, allocations: 148 kB / 0.6771 GB, free: 90.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002608/2.318, allocations: 68.72 kB / 0.6771 GB, free: 90.95 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003476/2.321, allocations: 1.567 MB / 0.6787 GB, free: 90.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.062e-06/2.321, allocations: 0 / 0.6787 GB, free: 90.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007375/2.328, allocations: 1.006 MB / 0.6796 GB, free: 90.36 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (172): * Single equations (assignments): 163 * 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.01949/2.348, allocations: 10.93 MB / 0.6903 GB, free: 84.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01596/2.364, allocations: 6.336 MB / 0.6965 GB, free: 82.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.541e-05/2.364, allocations: 3.938 kB / 0.6965 GB, free: 82.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006152/2.37, allocations: 2.449 MB / 0.6989 GB, free: 81.25 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/2.373, allocations: 243.5 kB / 0.6991 GB, free: 81.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03238/2.406, allocations: 10.12 MB / 0.709 GB, free: 77.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006694/2.412, allocations: 3.249 MB / 0.7122 GB, free: 75.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005092/2.418, allocations: 1.721 MB / 0.7139 GB, free: 74.17 MB / 426.7 MB Notification: Performance of SimCode: time 2.766e-06/2.418, allocations: 0 / 0.7139 GB, free: 74.17 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.505/6.923, allocations: 128.8 MB / 0.8397 GB, free: 105.1 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