Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.859/1.859, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.733e-05/3.752e-05, allocations: 7.375 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1042, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4265/0.5307, allocations: 93.99 MB / 415.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.5311, allocations: 75.95 kB / 415.9 MB, free: 11.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.811/1.342, allocations: 130.8 MB / 0.5339 GB, free: 89.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.514e-06/1.342, allocations: 0 / 0.5339 GB, free: 89.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003699/1.343, allocations: 129 kB / 0.534 GB, free: 89.39 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: 2370 * Number of variables: 2370 Notification: Performance of Generate backend data structure: time 0.02569/1.368, allocations: 6.369 MB / 0.5402 GB, free: 86.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/1.368, allocations: 18.39 kB / 0.5403 GB, free: 86.86 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0052/1.374, allocations: 1.175 MB / 0.5414 GB, free: 86.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05082/1.424, allocations: 7.103 MB / 0.5483 GB, free: 86.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02574/1.45, allocations: 7.227 MB / 0.5554 GB, free: 85.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006745/1.451, allocations: 0.4892 MB / 0.5559 GB, free: 85.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003922/1.455, allocations: 0.6568 MB / 0.5565 GB, free: 84.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05116/1.506, allocations: 16.42 MB / 0.5725 GB, free: 77.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004181/1.507, allocations: 74.42 kB / 0.5726 GB, free: 77.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002954/1.51, allocations: 310 kB / 0.5729 GB, free: 76.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003268/1.513, allocations: 1.582 MB / 0.5745 GB, free: 76.67 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04482/1.558, allocations: 13.89 MB / 0.588 GB, free: 65.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1058/1.664, allocations: 66.17 MB / 0.6526 GB, free: 14.29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03073/1.694, allocations: 6.978 MB / 0.6595 GB, free: 7.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009578/1.704, allocations: 4.177 MB / 0.6635 GB, free: 2.988 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.344/2.048, allocations: 15.04 MB / 0.6782 GB, free: 96.08 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.077e-05/2.048, allocations: 71.44 kB / 0.6783 GB, free: 96.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=306): time 7.303e-06/2.048, allocations: 0 / 0.6783 GB, free: 96.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=348): time 0.1163/2.165, allocations: 26.02 MB / 0.7037 GB, free: 92.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.985e-05/2.165, allocations: 224.1 kB / 0.7039 GB, free: 91.81 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01108/2.176, allocations: 4.661 MB / 0.7085 GB, free: 90.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001018/2.177, allocations: 78.42 kB / 0.7085 GB, free: 90.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003619/2.18, allocations: 4.226 MB / 0.7127 GB, free: 86.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002235/2.183, allocations: 1.281 MB / 0.7139 GB, free: 86.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/2.184, allocations: 160.6 kB / 0.7141 GB, free: 85.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005215/2.184, allocations: 0.658 MB / 0.7147 GB, free: 85.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008594/2.193, allocations: 3.536 MB / 0.7182 GB, free: 84.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01244/2.205, allocations: 7.987 MB / 0.726 GB, free: 77.03 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01214/2.218, allocations: 5.265 MB / 0.7311 GB, free: 75.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001511/2.218, allocations: 47.53 kB / 0.7312 GB, free: 75.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.03572/2.254, allocations: 12.71 MB / 0.7436 GB, free: 71.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/2.254, allocations: 70.59 kB / 0.7436 GB, free: 71.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002476/2.254, allocations: 158.7 kB / 0.7438 GB, free: 71.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006969/2.261, allocations: 1.663 MB / 0.7454 GB, free: 71.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01333/2.274, allocations: 1.925 MB / 0.7473 GB, free: 70.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02087/2.295, allocations: 11.35 MB / 0.7584 GB, free: 61.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01016/2.306, allocations: 497.9 kB / 0.7588 GB, free: 61.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002069/2.308, allocations: 481.8 kB / 0.7593 GB, free: 60.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 710 * Number of states: 0 () * Number of discrete variables: 48 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (996): * Single equations (assignments): 991 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002069/2.31, allocations: 0.7148 MB / 0.76 GB, free: 59.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/2.311, allocations: 0.4975 MB / 0.7605 GB, free: 59.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02015/2.331, allocations: 7.365 MB / 0.7677 GB, free: 53.33 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.587e-05/2.331, allocations: 36 kB / 0.7677 GB, free: 53.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.972e-05/2.331, allocations: 8 kB / 0.7677 GB, free: 53.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-05/2.332, allocations: 20.78 kB / 0.7677 GB, free: 53.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04896/2.381, allocations: 16 MB / 0.7834 GB, free: 40.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.254e-05/2.381, allocations: 3.938 kB / 0.7834 GB, free: 40.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006545/2.387, allocations: 0.6044 MB / 0.784 GB, free: 39.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006426/2.394, allocations: 1.414 MB / 0.7853 GB, free: 38.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00104/2.395, allocations: 64.28 kB / 0.7854 GB, free: 38.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02039/2.415, allocations: 10.54 MB / 0.7957 GB, free: 29.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/2.415, allocations: 0 / 0.7957 GB, free: 29.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02946/2.445, allocations: 11.88 MB / 0.8073 GB, free: 18.94 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004464/2.449, allocations: 1.103 MB / 0.8084 GB, free: 17.91 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001793/2.451, allocations: 56 kB / 0.8084 GB, free: 17.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005844/2.457, allocations: 256.2 kB / 0.8087 GB, free: 17.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001312/2.458, allocations: 199.8 kB / 0.8089 GB, free: 17.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004148/2.459, allocations: 84 kB / 0.809 GB, free: 17.49 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00808/2.467, allocations: 3.273 MB / 0.8121 GB, free: 14.24 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.272e-06/2.467, allocations: 0 / 0.8121 GB, free: 14.24 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01013/2.477, allocations: 1.609 MB / 0.8137 GB, free: 12.64 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (294): * Single equations (assignments): 289 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03127/2.508, allocations: 12.75 MB / 0.8262 GB, free: 15.81 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.3295/2.838, allocations: 8.819 MB / 0.8348 GB, free: 107.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/2.838, allocations: 1.688 kB / 0.8348 GB, free: 107.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01144/2.849, allocations: 3.723 MB / 0.8384 GB, free: 107.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00572/2.855, allocations: 0.623 MB / 0.839 GB, free: 107.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05439/2.91, allocations: 15.84 MB / 0.8545 GB, free: 104.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01193/2.922, allocations: 4.933 MB / 0.8593 GB, free: 104 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008542/2.93, allocations: 3.104 MB / 0.8623 GB, free: 103.1 MB / 458.7 MB Notification: Performance of SimCode: time 1.483e-06/2.93, allocations: 0 / 0.8623 GB, free: 103.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.527/8.458, allocations: 181.8 MB / 1.04 GB, free: 102.8 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat