Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.39/2.39, allocations: 235 MB / 247.6 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.228e-05/4.239e-05, allocations: 8 kB / 305 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.3932, allocations: 54.85 MB / 359.9 MB, free: 2.605 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1795/0.5728, allocations: 98.07 MB / 457.9 MB, free: 14.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.5731, allocations: 79.95 kB / 458 MB, free: 14.85 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7162/1.289, allocations: 94.63 MB / 0.5397 GB, free: 105.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.289, allocations: 0 / 0.5397 GB, free: 105.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002536/1.29, allocations: 90.5 kB / 0.5398 GB, free: 105.6 MB / 458.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.02529/1.315, allocations: 4.496 MB / 0.5442 GB, free: 103.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/1.315, allocations: 9.219 kB / 0.5442 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004864/1.32, allocations: 0.8978 MB / 0.545 GB, free: 103.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0282/1.348, allocations: 3.595 MB / 0.5486 GB, free: 103.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01894/1.367, allocations: 4.82 MB / 0.5533 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005201/1.368, allocations: 355 kB / 0.5536 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003007/1.371, allocations: 468.8 kB / 0.554 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0347/1.406, allocations: 11.32 MB / 0.5651 GB, free: 101.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003214/1.406, allocations: 32.83 kB / 0.5651 GB, free: 101.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002898/1.409, allocations: 220.9 kB / 0.5653 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002708/1.412, allocations: 1.236 MB / 0.5665 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02968/1.441, allocations: 10.68 MB / 0.577 GB, free: 97.71 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08322/1.525, allocations: 38.46 MB / 0.6145 GB, free: 70.15 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/1.537, allocations: 4.325 MB / 0.6188 GB, free: 66.08 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004494/1.541, allocations: 2.132 MB / 0.6208 GB, free: 64.13 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001516/1.543, allocations: 1.32 MB / 0.6221 GB, free: 62.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.157e-05/1.543, allocations: 53.59 kB / 0.6222 GB, free: 62.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 7.514e-06/1.543, allocations: 0 / 0.6222 GB, free: 62.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=265): time 0.05202/1.595, allocations: 10.77 MB / 0.6327 GB, free: 52.97 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/1.595, allocations: 73.41 kB / 0.6328 GB, free: 52.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006035/1.601, allocations: 2.627 MB / 0.6353 GB, free: 50.24 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005672/1.602, allocations: 57.64 kB / 0.6354 GB, free: 50.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002316/1.604, allocations: 3.09 MB / 0.6384 GB, free: 47.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001378/1.605, allocations: 0.9724 MB / 0.6394 GB, free: 46.12 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007099/1.606, allocations: 116 kB / 0.6395 GB, free: 46.01 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004669/1.607, allocations: 0.567 MB / 0.64 GB, free: 45.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005704/1.612, allocations: 2.323 MB / 0.6423 GB, free: 43.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007792/1.62, allocations: 5.54 MB / 0.6477 GB, free: 35.95 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007816/1.628, allocations: 3.652 MB / 0.6513 GB, free: 32.31 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001019/1.628, allocations: 32 kB / 0.6513 GB, free: 32.28 MB / 458.7 MB Notification: Performance of matching and sorting (n=793) (initialization): time 0.02438/1.653, allocations: 8.234 MB / 0.6593 GB, free: 24.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.01e-05/1.653, allocations: 56.25 kB / 0.6594 GB, free: 23.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/1.653, allocations: 116 kB / 0.6595 GB, free: 23.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006484/1.659, allocations: 1.052 MB / 0.6605 GB, free: 22.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008553/1.668, allocations: 1.372 MB / 0.6619 GB, free: 21.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003846/1.672, allocations: 2.474 MB / 0.6643 GB, free: 18.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006135/1.678, allocations: 323.2 kB / 0.6646 GB, free: 18.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/1.68, allocations: 348 kB / 0.6649 GB, free: 18.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 521 * 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 (740): * Single equations (assignments): 731 * 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.001948/1.682, allocations: 0.5341 MB / 0.6655 GB, free: 17.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000687/1.682, allocations: 300.1 kB / 0.6657 GB, free: 17.33 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01576/1.698, allocations: 5.032 MB / 0.6707 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/1.698, allocations: 51.98 kB / 0.6707 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/1.698, allocations: 3.953 kB / 0.6707 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.294e-05/1.698, allocations: 11.95 kB / 0.6707 GB, free: 12.17 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03506/1.733, allocations: 11.75 MB / 0.6822 GB, free: 308 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-05/1.734, allocations: 8 kB / 0.6822 GB, free: 300 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003982/1.738, allocations: 427.3 kB / 0.6826 GB, free: 15.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006515/1.744, allocations: 0.9108 MB / 0.6835 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006366/1.745, allocations: 59.98 kB / 0.6836 GB, free: 14.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004177/1.749, allocations: 2.26 MB / 0.6858 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.377e-05/1.749, allocations: 11.94 kB / 0.6858 GB, free: 12.49 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02412/1.773, allocations: 8.132 MB / 0.6937 GB, free: 3.926 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/1.775, allocations: 345.1 kB / 0.694 GB, free: 3.566 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001745/1.776, allocations: 52 kB / 0.6941 GB, free: 3.516 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004416/1.781, allocations: 143.4 kB / 0.6942 GB, free: 3.379 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001194/1.782, allocations: 157.6 kB / 0.6944 GB, free: 3.223 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007518/1.783, allocations: 79.97 kB / 0.6945 GB, free: 3.145 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00721/1.79, allocations: 1.777 MB / 0.6962 GB, free: 1.363 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.79, allocations: 0 / 0.6962 GB, free: 1.363 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01049/1.801, allocations: 1.042 MB / 0.6972 GB, free: 332 kB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (216): * Single equations (assignments): 207 * 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.4581/2.259, allocations: 10.69 MB / 0.7076 GB, free: 105 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01726/2.276, allocations: 5.964 MB / 0.7135 GB, free: 104.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/2.276, allocations: 2.031 kB / 0.7135 GB, free: 104.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008091/2.284, allocations: 2.553 MB / 0.716 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004081/2.288, allocations: 456.7 kB / 0.7164 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03554/2.324, allocations: 11.72 MB / 0.7279 GB, free: 102.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007874/2.332, allocations: 3.766 MB / 0.7315 GB, free: 101.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00518/2.337, allocations: 2.121 MB / 0.7336 GB, free: 100 MB / 474.7 MB Notification: Performance of SimCode: time 1.483e-06/2.337, allocations: 0 / 0.7336 GB, free: 100 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.931/7.268, allocations: 146.2 MB / 0.8764 GB, free: 103.5 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat