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.06/2.06, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.616e-05/3.627e-05, allocations: 4 kB / 273.1 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1017, allocations: 48.7 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4335/0.5353, allocations: 91.33 MB / 413.2 MB, free: 14.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/0.5357, allocations: 79.94 kB / 413.2 MB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6792/1.215, allocations: 94.62 MB / 0.496 GB, free: 95.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.325e-06/1.215, allocations: 1.156 kB / 0.496 GB, free: 95.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000267/1.215, allocations: 85.34 kB / 0.496 GB, free: 95.59 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: 1784 * Number of variables: 1784 Notification: Performance of Generate backend data structure: time 0.02633/1.242, allocations: 4.494 MB / 0.5004 GB, free: 94.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.518e-05/1.242, allocations: 9.625 kB / 0.5004 GB, free: 94.9 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005732/1.247, allocations: 0.9025 MB / 0.5013 GB, free: 94.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0394/1.287, allocations: 3.592 MB / 0.5048 GB, free: 94.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02663/1.314, allocations: 4.823 MB / 0.5095 GB, free: 94.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007688/1.314, allocations: 354.9 kB / 0.5099 GB, free: 94.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003629/1.318, allocations: 472.9 kB / 0.5103 GB, free: 94.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03629/1.354, allocations: 11.37 MB / 0.5214 GB, free: 92.76 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003193/1.355, allocations: 30.22 kB / 0.5215 GB, free: 92.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002657/1.357, allocations: 208.8 kB / 0.5217 GB, free: 92.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00269/1.36, allocations: 1.245 MB / 0.5229 GB, free: 92.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02987/1.39, allocations: 10.8 MB / 0.5334 GB, free: 92.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07786/1.468, allocations: 38.46 MB / 0.571 GB, free: 69.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.012/1.48, allocations: 4.359 MB / 0.5752 GB, free: 67.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004473/1.485, allocations: 2.131 MB / 0.5773 GB, free: 66.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001533/1.486, allocations: 1.322 MB / 0.5786 GB, free: 65.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/1.486, allocations: 58.19 kB / 0.5787 GB, free: 65.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 7.394e-06/1.486, allocations: 0 / 0.5787 GB, free: 65.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=265): time 0.05135/1.538, allocations: 10.76 MB / 0.5892 GB, free: 57.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/1.538, allocations: 80.56 kB / 0.5893 GB, free: 57.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005378/1.543, allocations: 2.616 MB / 0.5918 GB, free: 55.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005533/1.544, allocations: 61.61 kB / 0.5919 GB, free: 55.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002219/1.546, allocations: 3.085 MB / 0.5949 GB, free: 52.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001382/1.547, allocations: 0.9801 MB / 0.5958 GB, free: 51.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006663/1.548, allocations: 116 kB / 0.5959 GB, free: 51.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004382/1.549, allocations: 0.5741 MB / 0.5965 GB, free: 50.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005681/1.554, allocations: 2.322 MB / 0.5988 GB, free: 48.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00788/1.562, allocations: 5.577 MB / 0.6042 GB, free: 41.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007975/1.57, allocations: 3.649 MB / 0.6078 GB, free: 38.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001006/1.57, allocations: 36 kB / 0.6078 GB, free: 38.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=793) (initialization): time 0.02701/1.597, allocations: 8.552 MB / 0.6162 GB, free: 31.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.906e-05/1.598, allocations: 52 kB / 0.6162 GB, free: 31.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/1.598, allocations: 119.7 kB / 0.6163 GB, free: 31.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006399/1.604, allocations: 1.052 MB / 0.6174 GB, free: 30.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008487/1.613, allocations: 1.37 MB / 0.6187 GB, free: 29.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00377/1.616, allocations: 2.467 MB / 0.6211 GB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005961/1.622, allocations: 323.4 kB / 0.6214 GB, free: 26.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/1.624, allocations: 342.8 kB / 0.6217 GB, free: 26.53 MB / 426.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.001215/1.625, allocations: 0.5354 MB / 0.6223 GB, free: 25.99 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006773/1.626, allocations: 296.2 kB / 0.6226 GB, free: 25.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01437/1.64, allocations: 5.04 MB / 0.6275 GB, free: 20.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.496e-05/1.64, allocations: 51.98 kB / 0.6275 GB, free: 20.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/1.64, allocations: 0 / 0.6275 GB, free: 20.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.146e-05/1.64, allocations: 7.969 kB / 0.6275 GB, free: 20.85 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0318/1.672, allocations: 11.76 MB / 0.639 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-05/1.672, allocations: 9 kB / 0.639 GB, free: 8.977 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003807/1.676, allocations: 427.3 kB / 0.6394 GB, free: 8.559 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00649/1.682, allocations: 0.9035 MB / 0.6403 GB, free: 7.645 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000677/1.683, allocations: 59.97 kB / 0.6404 GB, free: 7.586 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003587/1.687, allocations: 2.279 MB / 0.6426 GB, free: 5.176 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/1.687, allocations: 10.34 kB / 0.6426 GB, free: 5.168 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02002/1.707, allocations: 8.128 MB / 0.6505 GB, free: 12.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/1.708, allocations: 345.1 kB / 0.6509 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009435/1.709, allocations: 55.78 kB / 0.6509 GB, free: 12.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002826/1.712, allocations: 139.6 kB / 0.6511 GB, free: 12.06 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006571/1.712, allocations: 157.6 kB / 0.6512 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002973/1.713, allocations: 83.66 kB / 0.6513 GB, free: 11.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004494/1.717, allocations: 1.769 MB / 0.653 GB, free: 10.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.717, allocations: 0 / 0.653 GB, free: 10.05 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007059/1.724, allocations: 1.052 MB / 0.654 GB, free: 9.008 MB / 442.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.3178/2.042, allocations: 10.7 MB / 0.6645 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01664/2.059, allocations: 6.142 MB / 0.6705 GB, free: 100.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/2.059, allocations: 4.781 kB / 0.6705 GB, free: 100.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008428/2.068, allocations: 2.57 MB / 0.673 GB, free: 100.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003956/2.072, allocations: 450.2 kB / 0.6734 GB, free: 100.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03558/2.107, allocations: 11.75 MB / 0.6849 GB, free: 98.51 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008332/2.116, allocations: 3.765 MB / 0.6886 GB, free: 97.69 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005197/2.121, allocations: 2.12 MB / 0.6907 GB, free: 97.68 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/2.121, allocations: 0 / 0.6907 GB, free: 97.68 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.789/6.91, allocations: 147.1 MB / 0.8343 GB, free: 91.21 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