Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.359/2.359, allocations: 235 MB / 247.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.335e-05/4.339e-05, allocations: 4 kB / 305 MB, free: 5.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4312/0.4313, allocations: 54.85 MB / 359.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1788/0.6102, allocations: 98.05 MB / 457.9 MB, free: 14.73 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.6105, allocations: 80.73 kB / 458 MB, free: 14.65 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7157/1.326, allocations: 94.63 MB / 0.5397 GB, free: 106 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.857e-06/1.326, allocations: 1.094 kB / 0.5397 GB, free: 106 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002437/1.327, allocations: 91.86 kB / 0.5398 GB, free: 106 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.02431/1.351, allocations: 4.489 MB / 0.5441 GB, free: 104.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/1.351, allocations: 12.59 kB / 0.5442 GB, free: 104.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004746/1.356, allocations: 0.9021 MB / 0.545 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03263/1.388, allocations: 3.587 MB / 0.5485 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02395/1.412, allocations: 4.822 MB / 0.5533 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004754/1.413, allocations: 359.9 kB / 0.5536 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003077/1.416, allocations: 466.2 kB / 0.554 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03424/1.45, allocations: 11.39 MB / 0.5652 GB, free: 101.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002753/1.451, allocations: 29.84 kB / 0.5652 GB, free: 101.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002847/1.454, allocations: 209.8 kB / 0.5654 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002702/1.456, allocations: 1.246 MB / 0.5666 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02998/1.486, allocations: 10.81 MB / 0.5772 GB, free: 97.95 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0916/1.578, allocations: 38.45 MB / 0.6147 GB, free: 69.76 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01185/1.59, allocations: 4.348 MB / 0.619 GB, free: 65.67 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004276/1.594, allocations: 2.139 MB / 0.621 GB, free: 63.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001411/1.596, allocations: 1.317 MB / 0.6223 GB, free: 62.28 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/1.596, allocations: 60.5 kB / 0.6224 GB, free: 62.21 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 5.33e-06/1.596, allocations: 0 / 0.6224 GB, free: 62.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=265): time 0.05471/1.65, allocations: 10.77 MB / 0.6329 GB, free: 52.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/1.651, allocations: 73.41 kB / 0.633 GB, free: 52.36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005638/1.656, allocations: 2.615 MB / 0.6355 GB, free: 49.72 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000547/1.657, allocations: 64.83 kB / 0.6356 GB, free: 49.66 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002272/1.659, allocations: 3.097 MB / 0.6386 GB, free: 46.55 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001339/1.66, allocations: 0.9731 MB / 0.6396 GB, free: 45.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000699/1.661, allocations: 116 kB / 0.6397 GB, free: 45.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004564/1.662, allocations: 0.5661 MB / 0.6402 GB, free: 44.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005653/1.667, allocations: 2.319 MB / 0.6425 GB, free: 42.58 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007755/1.675, allocations: 5.582 MB / 0.6479 GB, free: 35.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007962/1.683, allocations: 3.644 MB / 0.6515 GB, free: 31.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.619e-05/1.683, allocations: 35.98 kB / 0.6515 GB, free: 31.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=793) (initialization): time 0.02473/1.708, allocations: 8.621 MB / 0.66 GB, free: 23.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.081e-05/1.708, allocations: 52 kB / 0.66 GB, free: 23.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001427/1.708, allocations: 119.9 kB / 0.6601 GB, free: 22.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007545/1.716, allocations: 1.056 MB / 0.6611 GB, free: 21.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008608/1.725, allocations: 1.372 MB / 0.6625 GB, free: 20.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003805/1.728, allocations: 2.478 MB / 0.6649 GB, free: 17.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006146/1.735, allocations: 322.4 kB / 0.6652 GB, free: 17.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/1.736, allocations: 348 kB / 0.6655 GB, free: 17.2 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.001217/1.737, allocations: 0.5301 MB / 0.6661 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000663/1.738, allocations: 304 kB / 0.6664 GB, free: 16.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01439/1.752, allocations: 5.028 MB / 0.6713 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.722e-05/1.752, allocations: 55.88 kB / 0.6713 GB, free: 11.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.752, allocations: 8 kB / 0.6713 GB, free: 11.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-05/1.752, allocations: 11.95 kB / 0.6713 GB, free: 11.19 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03278/1.785, allocations: 11.76 MB / 0.6828 GB, free: 15.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.45e-05/1.785, allocations: 8 kB / 0.6828 GB, free: 15.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003983/1.789, allocations: 430.4 kB / 0.6832 GB, free: 14.89 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006433/1.796, allocations: 0.9118 MB / 0.6841 GB, free: 13.97 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006094/1.796, allocations: 58.56 kB / 0.6842 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004351/1.801, allocations: 2.268 MB / 0.6864 GB, free: 11.52 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.608e-05/1.801, allocations: 15.94 kB / 0.6864 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02288/1.824, allocations: 8.132 MB / 0.6944 GB, free: 2.934 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/1.825, allocations: 341.2 kB / 0.6947 GB, free: 2.578 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008939/1.826, allocations: 51.95 kB / 0.6947 GB, free: 2.527 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002501/1.828, allocations: 135.8 kB / 0.6949 GB, free: 2.395 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005477/1.829, allocations: 161.6 kB / 0.695 GB, free: 2.238 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002907/1.829, allocations: 79.41 kB / 0.6951 GB, free: 2.164 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004776/1.834, allocations: 1.777 MB / 0.6968 GB, free: 392 kB / 474.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.834, allocations: 3.938 kB / 0.6968 GB, free: 388 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.3393/2.173, allocations: 1.038 MB / 0.6978 GB, free: 109 MB / 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.0244/2.198, allocations: 10.69 MB / 0.7083 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01817/2.216, allocations: 6.144 MB / 0.7143 GB, free: 104.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/2.216, allocations: 1.531 kB / 0.7143 GB, free: 104.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008335/2.224, allocations: 2.572 MB / 0.7168 GB, free: 104.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00407/2.229, allocations: 453.3 kB / 0.7172 GB, free: 104.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04785/2.276, allocations: 11.2 MB / 0.7282 GB, free: 102.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01268/2.289, allocations: 3.755 MB / 0.7318 GB, free: 101.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01443/2.304, allocations: 2.148 MB / 0.7339 GB, free: 101.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007934/2.312, allocations: 2.073 MB / 0.736 GB, free: 100.2 MB / 474.7 MB Notification: Performance of SimCode: time 2.705e-06/2.312, allocations: 0 / 0.736 GB, free: 100.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1739/2.486, allocations: 75.18 MB / 0.8094 GB, free: 53.38 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002602/2.486, allocations: 184.8 kB / 0.8096 GB, free: 53.15 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.101/7.587, allocations: 0 / 0.8096 GB, free: 53.15 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat