Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.061e-05/4.069e-05, allocations: 4 kB / 305 MB, free: 5.578 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3934, allocations: 54.87 MB / 359.9 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1878/0.5813, allocations: 101.3 MB / 461.1 MB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/0.5817, allocations: 71.97 kB / 461.2 MB, free: 11.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8586/1.44, allocations: 133 MB / 0.5802 GB, free: 98.02 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.335e-06/1.44, allocations: 0 / 0.5802 GB, free: 98.02 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003852/1.441, allocations: 125.8 kB / 0.5804 GB, free: 98.02 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: 2410 * Number of variables: 2410 Notification: Performance of Generate backend data structure: time 0.0267/1.467, allocations: 6.436 MB / 0.5867 GB, free: 94.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/1.467, allocations: 7.531 kB / 0.5867 GB, free: 94.9 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005776/1.473, allocations: 1.202 MB / 0.5878 GB, free: 94.33 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05207/1.525, allocations: 7.128 MB / 0.5948 GB, free: 91.29 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02583/1.551, allocations: 7.225 MB / 0.6019 GB, free: 87.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006374/1.552, allocations: 0.5136 MB / 0.6024 GB, free: 86.78 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003967/1.556, allocations: 0.6686 MB / 0.603 GB, free: 86.16 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05216/1.608, allocations: 16.53 MB / 0.6191 GB, free: 68.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000473/1.609, allocations: 87.19 kB / 0.6192 GB, free: 68.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003618/1.612, allocations: 323.8 kB / 0.6195 GB, free: 67.97 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00346/1.616, allocations: 1.558 MB / 0.6211 GB, free: 66.41 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04386/1.66, allocations: 13.52 MB / 0.6343 GB, free: 52.88 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4731/2.133, allocations: 70.14 MB / 0.7028 GB, free: 92.69 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05102/2.184, allocations: 7.808 MB / 0.7104 GB, free: 92.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01181/2.196, allocations: 3.875 MB / 0.7142 GB, free: 91.98 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003845/2.196, allocations: 57.89 kB / 0.7142 GB, free: 91.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.391e-05/2.196, allocations: 67.97 kB / 0.7143 GB, free: 91.94 MB / 474.7 MB Notification: Performance of pre-optimization done (n=290): time 8.365e-06/2.196, allocations: 2.516 kB / 0.7143 GB, free: 91.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=332): time 0.1337/2.33, allocations: 28.24 MB / 0.7419 GB, free: 88.18 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/2.33, allocations: 215.8 kB / 0.7421 GB, free: 87.96 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01496/2.345, allocations: 5.567 MB / 0.7475 GB, free: 87.45 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001048/2.346, allocations: 75.33 kB / 0.7476 GB, free: 87.41 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004249/2.351, allocations: 4.381 MB / 0.7519 GB, free: 84.48 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002276/2.353, allocations: 1.239 MB / 0.7531 GB, free: 83.57 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001382/2.355, allocations: 173.9 kB / 0.7532 GB, free: 83.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007821/2.355, allocations: 0.6753 MB / 0.7539 GB, free: 82.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009789/2.365, allocations: 3.707 MB / 0.7575 GB, free: 81.67 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01308/2.378, allocations: 8.468 MB / 0.7658 GB, free: 73.99 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01292/2.391, allocations: 5.563 MB / 0.7712 GB, free: 72.31 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000192/2.391, allocations: 46.06 kB / 0.7713 GB, free: 72.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.03826/2.43, allocations: 12.86 MB / 0.7838 GB, free: 68.32 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001342/2.43, allocations: 78.5 kB / 0.7839 GB, free: 68.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002685/2.43, allocations: 169.4 kB / 0.7841 GB, free: 68.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007129/2.437, allocations: 1.685 MB / 0.7857 GB, free: 66.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0147/2.452, allocations: 2.095 MB / 0.7878 GB, free: 65.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02144/2.474, allocations: 11.36 MB / 0.7988 GB, free: 54.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01169/2.485, allocations: 0.5267 MB / 0.7994 GB, free: 54.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002388/2.488, allocations: 0.5018 MB / 0.7999 GB, free: 53.93 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * Number of states: 0 () * Number of discrete variables: 51 (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],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 (1047): * Single equations (assignments): 1042 * 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.003483/2.491, allocations: 0.7513 MB / 0.8006 GB, free: 53.18 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001731/2.493, allocations: 0.5515 MB / 0.8011 GB, free: 52.62 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02284/2.516, allocations: 7.425 MB / 0.8084 GB, free: 46.55 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.755e-05/2.516, allocations: 36 kB / 0.8084 GB, free: 46.51 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.441e-05/2.516, allocations: 8 kB / 0.8084 GB, free: 46.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.994e-05/2.516, allocations: 21.22 kB / 0.8084 GB, free: 46.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04736/2.564, allocations: 16.26 MB / 0.8243 GB, free: 32.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-05/2.564, allocations: 5.312 kB / 0.8243 GB, free: 32.91 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006902/2.571, allocations: 0.6513 MB / 0.825 GB, free: 32.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006336/2.577, allocations: 1.415 MB / 0.8263 GB, free: 30.84 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000946/2.578, allocations: 67.92 kB / 0.8264 GB, free: 30.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02048/2.598, allocations: 10.59 MB / 0.8367 GB, free: 19.93 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/2.599, allocations: 7.938 kB / 0.8368 GB, free: 19.92 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03014/2.629, allocations: 12.69 MB / 0.8491 GB, free: 6.953 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004922/2.634, allocations: 1.208 MB / 0.8503 GB, free: 5.719 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002162/2.636, allocations: 59.75 kB / 0.8504 GB, free: 5.664 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006707/2.643, allocations: 271.6 kB / 0.8506 GB, free: 5.398 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001394/2.644, allocations: 198.7 kB / 0.8508 GB, free: 5.203 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004267/2.645, allocations: 97.73 kB / 0.8509 GB, free: 5.109 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01033/2.655, allocations: 3.94 MB / 0.8548 GB, free: 1.168 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.414e-06/2.655, allocations: 0 / 0.8548 GB, free: 1.168 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01255/2.668, allocations: 1.676 MB / 0.8564 GB, free: 15.49 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (278): * Single equations (assignments): 273 * 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.03737/2.705, allocations: 14.06 MB / 0.8701 GB, free: 1.242 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02454/2.73, allocations: 8.906 MB / 0.8788 GB, free: 8.332 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/2.73, allocations: 0 / 0.8788 GB, free: 8.332 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.3658/3.095, allocations: 3.756 MB / 0.8825 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006854/3.102, allocations: 0.6673 MB / 0.8832 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06187/3.164, allocations: 16.33 MB / 0.8991 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01403/3.178, allocations: 4.992 MB / 0.904 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009817/3.188, allocations: 3.226 MB / 0.9071 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of SimCode: time 3.346e-06/3.188, allocations: 0 / 0.9071 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.696/8.885, allocations: 187 MB / 1.09 GB, free: 118.4 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat does not exist to compare? outputFormat=mat