Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.102/2.102, allocations: 209.4 MB / 216.9 MB, free: 6.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.31e-05/2.319e-05, allocations: 4 kB / 267.6 MB, free: 5.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 48.7 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4401/0.5496, allocations: 90.93 MB / 407.2 MB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.5499, allocations: 77.83 kB / 407.3 MB, free: 1.586 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6661/1.216, allocations: 92.9 MB / 0.4885 GB, free: 88.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.567e-06/1.216, allocations: 0 / 0.4885 GB, free: 88.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002471/1.216, allocations: 91.84 kB / 0.4886 GB, free: 88.59 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: 1784 * Number of variables: 1784 Notification: Performance of Generate backend data structure: time 0.02497/1.241, allocations: 4.493 MB / 0.493 GB, free: 86.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/1.241, allocations: 12.59 kB / 0.493 GB, free: 86.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02792/1.269, allocations: 3.588 MB / 0.4965 GB, free: 86.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01972/1.289, allocations: 4.811 MB / 0.5012 GB, free: 86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004222/1.29, allocations: 154.4 kB / 0.5013 GB, free: 86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003592/1.293, allocations: 274.7 kB / 0.5016 GB, free: 86 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02038/1.314, allocations: 8.051 MB / 0.5095 GB, free: 85.97 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0288/1.343, allocations: 10.56 MB / 0.5198 GB, free: 84.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002431/1.343, allocations: 30.28 kB / 0.5198 GB, free: 84.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002069/1.345, allocations: 13.62 kB / 0.5198 GB, free: 84.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002508/1.347, allocations: 1.243 MB / 0.521 GB, free: 84.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07292/1.42, allocations: 35.73 MB / 0.5559 GB, free: 64.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006249/1.427, allocations: 3.811 MB / 0.5596 GB, free: 62.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003991/1.431, allocations: 2.076 MB / 0.5617 GB, free: 61.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001508/1.432, allocations: 1.32 MB / 0.5629 GB, free: 60.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/1.432, allocations: 56.5 kB / 0.563 GB, free: 60.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=246): time 7.404e-06/1.432, allocations: 0 / 0.563 GB, free: 60.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=273): time 0.04029/1.473, allocations: 11.23 MB / 0.574 GB, free: 50.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/1.473, allocations: 77.41 kB / 0.574 GB, free: 50.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004497/1.477, allocations: 2.522 MB / 0.5765 GB, free: 48.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005826/1.478, allocations: 25.7 kB / 0.5765 GB, free: 48.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002281/1.48, allocations: 3.189 MB / 0.5796 GB, free: 45.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001522/1.482, allocations: 0.9862 MB / 0.5806 GB, free: 44.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005904/1.482, allocations: 0 / 0.5806 GB, free: 44.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000447/1.483, allocations: 0.5952 MB / 0.5812 GB, free: 44.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005208/1.488, allocations: 2.349 MB / 0.5835 GB, free: 41.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007534/1.496, allocations: 5.855 MB / 0.5892 GB, free: 34.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007909/1.504, allocations: 3.765 MB / 0.5929 GB, free: 31.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001023/1.504, allocations: 36 kB / 0.5929 GB, free: 31.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=846) (initialization): time 0.02463/1.528, allocations: 8.32 MB / 0.601 GB, free: 24.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.245e-05/1.529, allocations: 58.34 kB / 0.6011 GB, free: 24.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001438/1.529, allocations: 124 kB / 0.6012 GB, free: 24.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006745/1.535, allocations: 1.075 MB / 0.6023 GB, free: 23.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009365/1.545, allocations: 1.478 MB / 0.6037 GB, free: 21.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003575/1.549, allocations: 2.407 MB / 0.6061 GB, free: 19.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006562/1.555, allocations: 219.5 kB / 0.6063 GB, free: 18.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001474/1.557, allocations: 383.9 kB / 0.6066 GB, free: 18.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 566 * Number of states: 0 () * Number of discrete variables: 24 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[1],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],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.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 (793): * Single equations (assignments): 784 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.001262/1.558, allocations: 420.8 kB / 0.607 GB, free: 18.09 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01345/1.571, allocations: 4.525 MB / 0.6114 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001081/1.573, allocations: 296.2 kB / 0.6117 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01543/1.588, allocations: 5.133 MB / 0.6167 GB, free: 8.023 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001266/1.588, allocations: 47.98 kB / 0.6168 GB, free: 7.977 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/1.588, allocations: 4 kB / 0.6168 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.287e-05/1.588, allocations: 7.969 kB / 0.6168 GB, free: 7.965 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03281/1.621, allocations: 10.84 MB / 0.6274 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-05/1.621, allocations: 8 kB / 0.6274 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004323/1.626, allocations: 451.3 kB / 0.6278 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006528/1.632, allocations: 0.9074 MB / 0.6287 GB, free: 11.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006559/1.633, allocations: 43.95 kB / 0.6288 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003946/1.637, allocations: 2.194 MB / 0.6309 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.767e-05/1.637, allocations: 15.94 kB / 0.6309 GB, free: 9.293 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02242/1.659, allocations: 8.326 MB / 0.639 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/1.66, allocations: 337.1 kB / 0.6394 GB, free: 156 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001346/1.662, allocations: 19.98 kB / 0.6394 GB, free: 136 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003205/1.665, allocations: 103.8 kB / 0.6395 GB, free: 32 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.3026/1.968, allocations: 172 kB / 0.6396 GB, free: 91.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004057/1.968, allocations: 87.55 kB / 0.6397 GB, free: 91.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004309/1.972, allocations: 1.651 MB / 0.6413 GB, free: 91.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.973, allocations: 2.375 kB / 0.6413 GB, free: 91.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00754/1.98, allocations: 0.9223 MB / 0.6422 GB, free: 91.55 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (224): * Single equations (assignments): 215 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.02298/2.003, allocations: 10.98 MB / 0.653 GB, free: 87.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01686/2.02, allocations: 6.181 MB / 0.659 GB, free: 87.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/2.02, allocations: 0 / 0.659 GB, free: 87.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007259/2.027, allocations: 2.632 MB / 0.6616 GB, free: 86.99 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003598/2.031, allocations: 340.2 kB / 0.6619 GB, free: 86.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03371/2.065, allocations: 11.67 MB / 0.6733 GB, free: 84.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007807/2.073, allocations: 3.775 MB / 0.677 GB, free: 84.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005237/2.078, allocations: 2.153 MB / 0.6791 GB, free: 84.13 MB / 426.7 MB Notification: Performance of SimCode: time 1.903e-06/2.078, allocations: 0 / 0.6791 GB, free: 84.13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.876/6.954, allocations: 147.2 MB / 0.8228 GB, free: 105.4 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat