Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.942/1.942, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.029e-05/4.033e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/0.5451, allocations: 93.95 MB / 415.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.5455, allocations: 71.97 kB / 415.9 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7734/1.319, allocations: 114.4 MB / 0.5178 GB, free: 89.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.319, allocations: 2.719 kB / 0.5178 GB, free: 89.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004299/1.319, allocations: 108.8 kB / 0.518 GB, free: 89.95 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: 1954 * Number of variables: 1954 Notification: Performance of Generate backend data structure: time 0.02391/1.343, allocations: 5.455 MB / 0.5233 GB, free: 87.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/1.343, allocations: 7.875 kB / 0.5233 GB, free: 87.73 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004655/1.348, allocations: 0.9808 MB / 0.5242 GB, free: 87.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06549/1.414, allocations: 6.962 MB / 0.531 GB, free: 87.26 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03678/1.45, allocations: 6.859 MB / 0.5377 GB, free: 86.51 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009855/1.451, allocations: 416.7 kB / 0.5381 GB, free: 86.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004923/1.456, allocations: 0.5405 MB / 0.5387 GB, free: 86.49 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0566/1.513, allocations: 13.19 MB / 0.5515 GB, free: 82.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005278/1.514, allocations: 77.86 kB / 0.5516 GB, free: 82.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003427/1.517, allocations: 268.6 kB / 0.5519 GB, free: 82.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004185/1.521, allocations: 1.25 MB / 0.5531 GB, free: 81.81 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04707/1.569, allocations: 10.28 MB / 0.5631 GB, free: 78.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1205/1.689, allocations: 59.64 MB / 0.6214 GB, free: 28.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01783/1.707, allocations: 4.587 MB / 0.6259 GB, free: 24.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004434/1.711, allocations: 2.209 MB / 0.628 GB, free: 22.03 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01693/1.728, allocations: 6.502 MB / 0.6344 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.211e-05/1.729, allocations: 59.72 kB / 0.6344 GB, free: 15.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=183): time 7.083e-06/1.729, allocations: 0 / 0.6344 GB, free: 15.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=195): time 0.06085/1.789, allocations: 14.54 MB / 0.6486 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/1.79, allocations: 227 kB / 0.6488 GB, free: 428 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01721/1.807, allocations: 5.152 MB / 0.6539 GB, free: 11.29 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005481/1.807, allocations: 53.7 kB / 0.6539 GB, free: 11.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005034/1.812, allocations: 3.932 MB / 0.6578 GB, free: 7.309 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00164/1.814, allocations: 0.7678 MB / 0.6585 GB, free: 6.547 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009417/1.815, allocations: 151.3 kB / 0.6586 GB, free: 6.402 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006074/1.816, allocations: 0.6086 MB / 0.6592 GB, free: 5.785 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006038/1.822, allocations: 2.248 MB / 0.6614 GB, free: 3.531 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3896/2.211, allocations: 6.685 MB / 0.668 GB, free: 91.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/2.222, allocations: 3.858 MB / 0.6717 GB, free: 91.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003138/2.222, allocations: 47.78 kB / 0.6718 GB, free: 91.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=934) (initialization): time 0.02716/2.249, allocations: 8.48 MB / 0.6801 GB, free: 91.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002263/2.25, allocations: 77.67 kB / 0.6801 GB, free: 91.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003635/2.25, allocations: 159.9 kB / 0.6803 GB, free: 91.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002747/2.253, allocations: 0.609 MB / 0.6809 GB, free: 91.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01097/2.264, allocations: 1.638 MB / 0.6825 GB, free: 91.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009085/2.273, allocations: 5.721 MB / 0.6881 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008989/2.282, allocations: 390 kB / 0.6884 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001799/2.284, allocations: 444.5 kB / 0.6889 GB, free: 88.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 42 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[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 (882): * Single equations (assignments): 877 * 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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002219/2.286, allocations: 0.6553 MB / 0.6895 GB, free: 88.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001209/2.287, allocations: 495.2 kB / 0.69 GB, free: 88.35 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00938/2.297, allocations: 3.026 MB / 0.6929 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/2.297, allocations: 21.84 kB / 0.693 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-05/2.297, allocations: 8.219 kB / 0.693 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.357e-05/2.297, allocations: 9.422 kB / 0.693 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02523/2.322, allocations: 8.434 MB / 0.7012 GB, free: 87.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-05/2.322, allocations: 6.625 kB / 0.7012 GB, free: 87.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003115/2.325, allocations: 323.3 kB / 0.7015 GB, free: 87.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001711/2.327, allocations: 367.7 kB / 0.7019 GB, free: 87.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003504/2.328, allocations: 36.14 kB / 0.7019 GB, free: 87.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00736/2.335, allocations: 5.074 MB / 0.7069 GB, free: 83.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/2.335, allocations: 11.02 kB / 0.7069 GB, free: 83.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01177/2.347, allocations: 6.085 MB / 0.7128 GB, free: 81.05 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003047/2.35, allocations: 0.8059 MB / 0.7136 GB, free: 80.56 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001599/2.352, allocations: 34.94 kB / 0.7136 GB, free: 80.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004109/2.356, allocations: 94.73 kB / 0.7137 GB, free: 80.52 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006469/2.356, allocations: 117.4 kB / 0.7138 GB, free: 80.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/2.357, allocations: 52.72 kB / 0.7139 GB, free: 80.48 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00945/2.366, allocations: 3.678 MB / 0.7175 GB, free: 79.23 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.51e-07/2.366, allocations: 0 / 0.7175 GB, free: 79.23 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009647/2.376, allocations: 1.221 MB / 0.7187 GB, free: 79.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 149 * 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 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01319/2.389, allocations: 7.29 MB / 0.7258 GB, free: 74.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01253/2.402, allocations: 5.382 MB / 0.731 GB, free: 73.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/2.402, allocations: 3.938 kB / 0.731 GB, free: 73.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003408/2.405, allocations: 1.653 MB / 0.7327 GB, free: 72.29 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005045/2.41, allocations: 0.6025 MB / 0.7333 GB, free: 72.03 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04354/2.454, allocations: 12.04 MB / 0.745 GB, free: 67.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01345/2.467, allocations: 4.239 MB / 0.7491 GB, free: 65.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007958/2.475, allocations: 2.621 MB / 0.7517 GB, free: 63.86 MB / 442.7 MB Notification: Performance of SimCode: time 2.815e-06/2.475, allocations: 0 / 0.7517 GB, free: 63.86 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.149/7.624, allocations: 151.1 MB / 0.8993 GB, free: 86.5 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat