Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.507/2.507, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.768e-05/3.775e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.3995, allocations: 54.86 MB / 359.9 MB, free: 2.293 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1938/0.5933, allocations: 103.8 MB / 463.7 MB, free: 9.035 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.5936, allocations: 75.97 kB / 463.7 MB, free: 8.961 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7033/1.297, allocations: 91.08 MB / 0.5418 GB, free: 103 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.395e-06/1.297, allocations: 3.969 kB / 0.5418 GB, free: 103 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002896/1.297, allocations: 89.64 kB / 0.5419 GB, free: 103 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: 1642 * Number of variables: 1642 Notification: Performance of Generate backend data structure: time 0.01796/1.315, allocations: 4.146 MB / 0.5459 GB, free: 101.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/1.315, allocations: 9.281 kB / 0.546 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004052/1.319, allocations: 0.8245 MB / 0.5468 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03367/1.353, allocations: 4.433 MB / 0.5511 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0179/1.371, allocations: 4.729 MB / 0.5557 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004266/1.372, allocations: 356.4 kB / 0.556 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002594/1.374, allocations: 461.9 kB / 0.5565 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02912/1.403, allocations: 10.51 MB / 0.5667 GB, free: 96.87 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003133/1.404, allocations: 57.56 kB / 0.5668 GB, free: 96.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002227/1.406, allocations: 225.2 kB / 0.567 GB, free: 96.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002172/1.408, allocations: 1.003 MB / 0.568 GB, free: 96.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02298/1.431, allocations: 8.255 MB / 0.5761 GB, free: 93.88 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06882/1.5, allocations: 46.88 MB / 0.6218 GB, free: 58.18 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00881/1.509, allocations: 2.905 MB / 0.6247 GB, free: 56.12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003226/1.512, allocations: 1.585 MB / 0.6262 GB, free: 54.67 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005324/1.513, allocations: 332.9 kB / 0.6265 GB, free: 54.32 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/1.513, allocations: 59.5 kB / 0.6266 GB, free: 54.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=176): time 6.112e-06/1.513, allocations: 0 / 0.6266 GB, free: 54.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=194): time 0.03973/1.553, allocations: 11.27 MB / 0.6376 GB, free: 44.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.547e-05/1.553, allocations: 197.2 kB / 0.6378 GB, free: 43.96 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007614/1.56, allocations: 3.343 MB / 0.641 GB, free: 41.01 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004783/1.561, allocations: 57.53 kB / 0.6411 GB, free: 40.95 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002497/1.563, allocations: 3.158 MB / 0.6442 GB, free: 38.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001137/1.565, allocations: 0.7333 MB / 0.6449 GB, free: 37.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007253/1.565, allocations: 116 kB / 0.645 GB, free: 37.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004212/1.566, allocations: 0.5627 MB / 0.6456 GB, free: 36.84 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005222/1.571, allocations: 1.997 MB / 0.6475 GB, free: 35.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007676/1.579, allocations: 5.611 MB / 0.653 GB, free: 27.72 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007513/1.586, allocations: 3.336 MB / 0.6563 GB, free: 24.39 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001165/1.587, allocations: 36 kB / 0.6563 GB, free: 24.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01912/1.606, allocations: 7.144 MB / 0.6633 GB, free: 17.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.436e-05/1.606, allocations: 62.34 kB / 0.6633 GB, free: 17.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001606/1.606, allocations: 128 kB / 0.6634 GB, free: 17.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/1.607, allocations: 381.9 kB / 0.6638 GB, free: 16.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008889/1.616, allocations: 1.435 MB / 0.6652 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004751/1.621, allocations: 3.001 MB / 0.6681 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006717/1.628, allocations: 343.6 kB / 0.6685 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001375/1.629, allocations: 368 kB / 0.6688 GB, free: 11.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 590 * Number of states: 0 () * Number of discrete variables: 27 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (744): * Single equations (assignments): 740 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00159/1.631, allocations: 0.5594 MB / 0.6694 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008177/1.632, allocations: 335.6 kB / 0.6697 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006862/1.638, allocations: 2.632 MB / 0.6723 GB, free: 7.844 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.908e-05/1.639, allocations: 20 kB / 0.6723 GB, free: 7.824 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/1.639, allocations: 4 kB / 0.6723 GB, free: 7.82 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.101e-05/1.639, allocations: 11.95 kB / 0.6723 GB, free: 7.809 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02215/1.661, allocations: 7.447 MB / 0.6796 GB, free: 344 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.917e-05/1.661, allocations: 0 / 0.6796 GB, free: 344 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003429/1.664, allocations: 351.5 kB / 0.6799 GB, free: 15.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009859/1.665, allocations: 180.6 kB / 0.6801 GB, free: 15.81 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004042/1.666, allocations: 39.98 kB / 0.6801 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004642/1.67, allocations: 2.557 MB / 0.6826 GB, free: 13.09 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.67, allocations: 4.031 kB / 0.6826 GB, free: 13.08 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01302/1.683, allocations: 5.146 MB / 0.6876 GB, free: 7.906 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002589/1.686, allocations: 0.6254 MB / 0.6882 GB, free: 7.258 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/1.687, allocations: 35.95 kB / 0.6883 GB, free: 7.223 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003278/1.691, allocations: 115.9 kB / 0.6884 GB, free: 7.109 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007224/1.691, allocations: 129.1 kB / 0.6885 GB, free: 6.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002386/1.692, allocations: 51.98 kB / 0.6886 GB, free: 6.93 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006608/1.698, allocations: 2.326 MB / 0.6908 GB, free: 4.621 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.262e-06/1.698, allocations: 0 / 0.6908 GB, free: 4.621 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007571/1.706, allocations: 0.9921 MB / 0.6918 GB, free: 3.629 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 160 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01368/1.72, allocations: 5.971 MB / 0.6976 GB, free: 13.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01264/1.732, allocations: 4.685 MB / 0.7022 GB, free: 8.949 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.732, allocations: 0 / 0.7022 GB, free: 8.949 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004047/1.736, allocations: 1.517 MB / 0.7037 GB, free: 7.426 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003401/1.74, allocations: 395.9 kB / 0.7041 GB, free: 7.051 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3712/2.111, allocations: 9.631 MB / 0.7135 GB, free: 120.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009392/2.12, allocations: 3.54 MB / 0.7169 GB, free: 119.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005589/2.126, allocations: 2.049 MB / 0.7189 GB, free: 119.6 MB / 490.7 MB Notification: Performance of SimCode: time 2.044e-06/2.126, allocations: 0 / 0.7189 GB, free: 119.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.212/6.338, allocations: 102.1 MB / 0.8187 GB, free: 68.58 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat does not exist to compare? outputFormat=mat