Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.491/2.491, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.336e-05/4.348e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4323/0.4324, allocations: 54.87 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1852/0.6176, allocations: 95.93 MB / 455.8 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/0.618, allocations: 77.42 kB / 455.9 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7751/1.393, allocations: 86.56 MB / 0.5297 GB, free: 88.39 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.393, allocations: 3.281 kB / 0.5297 GB, free: 88.39 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002213/1.393, allocations: 73.14 kB / 0.5298 GB, free: 88.39 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: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.01672/1.41, allocations: 3.704 MB / 0.5334 GB, free: 86.82 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/1.41, allocations: 9.188 kB / 0.5334 GB, free: 86.82 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004152/1.414, allocations: 0.7764 MB / 0.5342 GB, free: 86.75 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02913/1.444, allocations: 3.651 MB / 0.5377 GB, free: 86.47 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01913/1.463, allocations: 4.93 MB / 0.5426 GB, free: 85.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005042/1.463, allocations: 291 kB / 0.5428 GB, free: 85.96 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00296/1.466, allocations: 395.2 kB / 0.5432 GB, free: 85.95 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03156/1.498, allocations: 10.21 MB / 0.5532 GB, free: 84.58 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003085/1.498, allocations: 30.81 kB / 0.5532 GB, free: 84.57 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002589/1.501, allocations: 171.8 kB / 0.5534 GB, free: 84.57 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002747/1.504, allocations: 1.2 MB / 0.5545 GB, free: 84.57 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02788/1.531, allocations: 9.881 MB / 0.5642 GB, free: 84.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0737/1.605, allocations: 36.47 MB / 0.5998 GB, free: 66.18 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/1.617, allocations: 4.346 MB / 0.6041 GB, free: 63.07 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004479/1.622, allocations: 2.165 MB / 0.6062 GB, free: 61.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001529/1.623, allocations: 1.32 MB / 0.6075 GB, free: 60.5 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.001e-05/1.623, allocations: 52.81 kB / 0.6075 GB, free: 60.45 MB / 458.7 MB Notification: Performance of pre-optimization done (n=245): time 7.103e-06/1.623, allocations: 0 / 0.6075 GB, free: 60.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=261): time 0.05719/1.681, allocations: 14.3 MB / 0.6215 GB, free: 48.34 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001348/1.682, allocations: 1.525 MB / 0.623 GB, free: 46.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005046/1.687, allocations: 2.437 MB / 0.6253 GB, free: 44.55 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006527/1.688, allocations: 58.48 kB / 0.6254 GB, free: 44.48 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002109/1.69, allocations: 2.726 MB / 0.6281 GB, free: 41.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001411/1.691, allocations: 0.9589 MB / 0.629 GB, free: 40.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006828/1.692, allocations: 109.2 kB / 0.6291 GB, free: 40.85 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004132/1.693, allocations: 0.5583 MB / 0.6297 GB, free: 40.28 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005866/1.698, allocations: 2.373 MB / 0.632 GB, free: 37.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007926/1.706, allocations: 5.36 MB / 0.6372 GB, free: 31.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007944/1.714, allocations: 3.629 MB / 0.6407 GB, free: 27.44 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.687e-05/1.715, allocations: 28 kB / 0.6408 GB, free: 27.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.03483/1.749, allocations: 9.015 MB / 0.6496 GB, free: 18.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.965e-05/1.75, allocations: 48 kB / 0.6496 GB, free: 18.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02207/1.772, allocations: 4.538 MB / 0.6541 GB, free: 13.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01925/1.791, allocations: 2.059 MB / 0.6561 GB, free: 11.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008039/1.799, allocations: 1.287 MB / 0.6573 GB, free: 10.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/1.809, allocations: 4.953 MB / 0.6622 GB, free: 5.199 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006619/1.816, allocations: 396.3 kB / 0.6625 GB, free: 4.812 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.817, allocations: 322.9 kB / 0.6628 GB, free: 4.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * 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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.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 (688): * Single equations (assignments): 676 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.001198/1.819, allocations: 0.5125 MB / 0.6633 GB, free: 3.984 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006638/1.819, allocations: 276.4 kB / 0.6636 GB, free: 3.711 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01714/1.836, allocations: 5.343 MB / 0.6688 GB, free: 14.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01696/1.853, allocations: 4.589 MB / 0.6733 GB, free: 9.66 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.654e-05/1.854, allocations: 4 kB / 0.6733 GB, free: 9.656 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.417e-05/1.854, allocations: 11.95 kB / 0.6733 GB, free: 9.645 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0469/1.901, allocations: 14.58 MB / 0.6876 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.492e-05/1.901, allocations: 16.2 kB / 0.6876 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003937/1.905, allocations: 419.3 kB / 0.688 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00818/1.913, allocations: 1.193 MB / 0.6891 GB, free: 9.23 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006049/1.913, allocations: 55.97 kB / 0.6892 GB, free: 9.176 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007966/1.921, allocations: 4.451 MB / 0.6935 GB, free: 4.465 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001459/1.923, allocations: 1.459 MB / 0.695 GB, free: 2.859 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02325/1.946, allocations: 8.777 MB / 0.7035 GB, free: 9.652 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/1.947, allocations: 337.4 kB / 0.7039 GB, free: 9.301 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007283/1.948, allocations: 55.98 kB / 0.7039 GB, free: 9.246 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002891/1.951, allocations: 195.7 kB / 0.7041 GB, free: 9.055 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005441/1.952, allocations: 168.8 kB / 0.7043 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002883/1.952, allocations: 79.98 kB / 0.7043 GB, free: 8.816 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003936/1.956, allocations: 1.661 MB / 0.706 GB, free: 7.145 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.22e-07/1.956, allocations: 0 / 0.706 GB, free: 7.145 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006846/1.963, allocations: 1.066 MB / 0.707 GB, free: 6.078 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.3509/2.314, allocations: 11.91 MB / 0.7186 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01747/2.331, allocations: 6.221 MB / 0.7247 GB, free: 137.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/2.331, allocations: 1.156 kB / 0.7247 GB, free: 137.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009369/2.341, allocations: 2.835 MB / 0.7275 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/2.344, allocations: 351.9 kB / 0.7278 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03199/2.376, allocations: 11.01 MB / 0.7386 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00587/2.382, allocations: 3.395 MB / 0.7419 GB, free: 134 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004473/2.386, allocations: 1.859 MB / 0.7437 GB, free: 134 MB / 0.4948 GB Notification: Performance of SimCode: time 2.906e-06/2.386, allocations: 0 / 0.7437 GB, free: 134 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.538/6.924, allocations: 149.2 MB / 0.8894 GB, free: 20.39 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat