Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.384/2.384, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.081e-05/4.099e-05, allocations: 4.938 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.405/0.4051, allocations: 54.86 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2096/0.6148, allocations: 102.9 MB / 462.7 MB, free: 9.992 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003538/0.6152, allocations: 71.97 kB / 462.8 MB, free: 9.922 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.901/1.516, allocations: 138.4 MB / 0.5871 GB, free: 96.16 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.904e-06/1.516, allocations: 0 / 0.5871 GB, free: 96.16 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004319/1.517, allocations: 138.9 kB / 0.5872 GB, free: 96.15 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02869/1.545, allocations: 6.794 MB / 0.5939 GB, free: 91.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/1.545, allocations: 10.56 kB / 0.5939 GB, free: 91.71 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005945/1.551, allocations: 1.238 MB / 0.5951 GB, free: 90.87 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05313/1.605, allocations: 7.187 MB / 0.6021 GB, free: 87.21 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02763/1.632, allocations: 7.534 MB / 0.6095 GB, free: 79.65 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006829/1.633, allocations: 0.5174 MB / 0.61 GB, free: 79.13 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004209/1.637, allocations: 0.6949 MB / 0.6107 GB, free: 78.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05397/1.691, allocations: 17.02 MB / 0.6273 GB, free: 60.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004687/1.692, allocations: 91.12 kB / 0.6274 GB, free: 59.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003236/1.695, allocations: 331.8 kB / 0.6277 GB, free: 59.63 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003524/1.699, allocations: 1.625 MB / 0.6293 GB, free: 58 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04578/1.744, allocations: 13.88 MB / 0.6428 GB, free: 44.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5417/2.286, allocations: 72.27 MB / 0.7134 GB, free: 56.37 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03144/2.318, allocations: 7.089 MB / 0.7203 GB, free: 55.68 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008582/2.326, allocations: 3.918 MB / 0.7241 GB, free: 55.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02493/2.351, allocations: 9.482 MB / 0.7334 GB, free: 54.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.934e-05/2.351, allocations: 67.84 kB / 0.7335 GB, free: 54.42 MB / 474.7 MB Notification: Performance of pre-optimization done (n=297): time 6.332e-06/2.351, allocations: 3.375 kB / 0.7335 GB, free: 54.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.1225/2.474, allocations: 27.68 MB / 0.7605 GB, free: 48.42 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/2.474, allocations: 242.4 kB / 0.7607 GB, free: 48.16 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01483/2.489, allocations: 5.888 MB / 0.7665 GB, free: 46.05 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000985/2.49, allocations: 71.8 kB / 0.7666 GB, free: 45.98 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004085/2.494, allocations: 4.569 MB / 0.771 GB, free: 42.34 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002149/2.496, allocations: 1.271 MB / 0.7723 GB, free: 41.41 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001315/2.498, allocations: 178.1 kB / 0.7724 GB, free: 41.27 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006272/2.498, allocations: 0.6837 MB / 0.7731 GB, free: 40.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01014/2.508, allocations: 3.653 MB / 0.7767 GB, free: 39.53 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01348/2.522, allocations: 8.622 MB / 0.7851 GB, free: 31.57 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/2.535, allocations: 5.567 MB / 0.7905 GB, free: 29.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002333/2.535, allocations: 56.34 kB / 0.7906 GB, free: 29.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=1161) (initialization): time 0.03754/2.573, allocations: 12.92 MB / 0.8032 GB, free: 22.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001313/2.573, allocations: 80 kB / 0.8033 GB, free: 22.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002556/2.573, allocations: 176 kB / 0.8034 GB, free: 22.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007162/2.58, allocations: 1.703 MB / 0.8051 GB, free: 21.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01477/2.595, allocations: 2.111 MB / 0.8072 GB, free: 19.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02112/2.616, allocations: 11.38 MB / 0.8183 GB, free: 9.129 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01189/2.628, allocations: 0.5228 MB / 0.8188 GB, free: 8.691 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002557/2.631, allocations: 0.5207 MB / 0.8193 GB, free: 8.191 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 806 * Number of states: 0 () * Number of discrete variables: 54 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.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],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 (1089): * Single equations (assignments): 1084 * 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.003465/2.634, allocations: 0.7773 MB / 0.8201 GB, free: 7.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001886/2.636, allocations: 0.59 MB / 0.8206 GB, free: 6.816 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02152/2.658, allocations: 7.432 MB / 0.8279 GB, free: 0.7852 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.914e-05/2.658, allocations: 42.31 kB / 0.8279 GB, free: 0.7461 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.864e-05/2.658, allocations: 12 kB / 0.8279 GB, free: 0.7344 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.839e-05/2.658, allocations: 15.89 kB / 0.828 GB, free: 0.7344 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05385/2.712, allocations: 16 MB / 0.8436 GB, free: 2.855 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.009e-05/2.712, allocations: 4 kB / 0.8436 GB, free: 2.852 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007148/2.719, allocations: 0.6284 MB / 0.8442 GB, free: 2.223 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007188/2.726, allocations: 1.421 MB / 0.8456 GB, free: 0.8008 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001039/2.728, allocations: 63.98 kB / 0.8457 GB, free: 0.7383 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02506/2.753, allocations: 10.6 MB / 0.856 GB, free: 5.883 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/2.753, allocations: 7.938 kB / 0.856 GB, free: 5.875 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03424/2.787, allocations: 12.58 MB / 0.8683 GB, free: 9.062 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00535/2.792, allocations: 1.196 MB / 0.8695 GB, free: 7.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001933/2.794, allocations: 59.98 kB / 0.8695 GB, free: 7.781 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005787/2.8, allocations: 233.4 kB / 0.8697 GB, free: 7.555 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009498/2.801, allocations: 205.1 kB / 0.8699 GB, free: 7.359 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000428/2.802, allocations: 91.98 kB / 0.87 GB, free: 7.27 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01142/2.813, allocations: 4.218 MB / 0.8741 GB, free: 3.062 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.036e-06/2.813, allocations: 0.8438 kB / 0.8741 GB, free: 3.062 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01206/2.825, allocations: 1.703 MB / 0.8758 GB, free: 1.367 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (279): * Single equations (assignments): 274 * 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.03402/2.859, allocations: 13.97 MB / 0.8895 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02361/2.883, allocations: 8.753 MB / 0.898 GB, free: 10.44 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/2.883, allocations: 4.062 kB / 0.898 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01142/2.894, allocations: 3.619 MB / 0.9015 GB, free: 6.793 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007036/2.902, allocations: 0.7068 MB / 0.9022 GB, free: 6.109 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4321/3.334, allocations: 16.75 MB / 0.9186 GB, free: 170.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01596/3.35, allocations: 5.178 MB / 0.9236 GB, free: 169.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009485/3.359, allocations: 3.346 MB / 0.9269 GB, free: 169.8 MB / 0.5417 GB Notification: Performance of SimCode: time 1.422e-06/3.359, allocations: 0 / 0.9269 GB, free: 169.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.889/9.248, allocations: 193.6 MB / 1.116 GB, free: 156.9 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques_res.mat does not exist to compare? outputFormat=mat