Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.442/2.442, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.112e-05/4.122e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3939, allocations: 54.87 MB / 359.9 MB, free: 2.699 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1879/0.5818, allocations: 100.8 MB / 460.7 MB, free: 12.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.5822, allocations: 81.14 kB / 460.8 MB, free: 12.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8354/1.418, allocations: 131 MB / 0.5779 GB, free: 98.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.418, allocations: 0 / 0.5779 GB, free: 98.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003954/1.418, allocations: 127.5 kB / 0.578 GB, free: 98.43 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: 2374 * Number of variables: 2374 Notification: Performance of Generate backend data structure: time 0.02682/1.445, allocations: 6.369 MB / 0.5842 GB, free: 95.35 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/1.445, allocations: 10.25 kB / 0.5843 GB, free: 95.35 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005674/1.451, allocations: 1.178 MB / 0.5854 GB, free: 94.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05168/1.502, allocations: 7.103 MB / 0.5923 GB, free: 92.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02604/1.528, allocations: 7.238 MB / 0.5994 GB, free: 88.67 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006626/1.529, allocations: 0.5012 MB / 0.5999 GB, free: 88.47 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004102/1.533, allocations: 0.6566 MB / 0.6005 GB, free: 88.28 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0519/1.585, allocations: 16.35 MB / 0.6165 GB, free: 70.92 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004397/1.586, allocations: 71.39 kB / 0.6166 GB, free: 70.85 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003317/1.589, allocations: 312.4 kB / 0.6169 GB, free: 70.59 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003476/1.593, allocations: 1.575 MB / 0.6184 GB, free: 69.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.044/1.637, allocations: 13.66 MB / 0.6318 GB, free: 55.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1078/1.745, allocations: 66.22 MB / 0.6964 GB, free: 3.457 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4256/2.17, allocations: 6.943 MB / 0.7032 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009797/2.18, allocations: 4.171 MB / 0.7073 GB, free: 105.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04242/2.223, allocations: 15.05 MB / 0.722 GB, free: 104 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.062e-05/2.223, allocations: 70.53 kB / 0.722 GB, free: 104 MB / 474.7 MB Notification: Performance of pre-optimization done (n=306): time 7.124e-06/2.223, allocations: 0 / 0.722 GB, free: 104 MB / 474.7 MB Notification: Performance of matching and sorting (n=348): time 0.1162/2.339, allocations: 26.03 MB / 0.7475 GB, free: 95.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/2.339, allocations: 220.3 kB / 0.7477 GB, free: 95.28 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01117/2.35, allocations: 4.658 MB / 0.7522 GB, free: 93.58 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00103/2.351, allocations: 83.2 kB / 0.7523 GB, free: 93.51 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003827/2.355, allocations: 4.235 MB / 0.7564 GB, free: 90.16 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002162/2.357, allocations: 1.277 MB / 0.7577 GB, free: 89.22 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001153/2.359, allocations: 160.1 kB / 0.7578 GB, free: 89.09 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006022/2.359, allocations: 0.6559 MB / 0.7585 GB, free: 88.63 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008989/2.368, allocations: 3.531 MB / 0.7619 GB, free: 87.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01185/2.38, allocations: 7.949 MB / 0.7697 GB, free: 80.24 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01194/2.392, allocations: 5.255 MB / 0.7748 GB, free: 78.61 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001717/2.392, allocations: 45.06 kB / 0.7749 GB, free: 78.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.03517/2.428, allocations: 12.28 MB / 0.7869 GB, free: 70.36 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/2.428, allocations: 72.94 kB / 0.7869 GB, free: 70.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002128/2.428, allocations: 156 kB / 0.7871 GB, free: 70.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006824/2.435, allocations: 1.662 MB / 0.7887 GB, free: 68.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01315/2.448, allocations: 1.922 MB / 0.7906 GB, free: 67.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02058/2.469, allocations: 11.35 MB / 0.8017 GB, free: 57.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01044/2.479, allocations: 0.4907 MB / 0.8021 GB, free: 56.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002106/2.481, allocations: 485.2 kB / 0.8026 GB, free: 56.18 MB / 474.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.002392/2.484, allocations: 0.7094 MB / 0.8033 GB, free: 55.47 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001431/2.485, allocations: 0.4975 MB / 0.8038 GB, free: 54.96 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02085/2.506, allocations: 7.362 MB / 0.811 GB, free: 48.93 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.95e-05/2.506, allocations: 41.52 kB / 0.811 GB, free: 48.89 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.642e-05/2.506, allocations: 8.812 kB / 0.811 GB, free: 48.88 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.901e-05/2.506, allocations: 17.11 kB / 0.811 GB, free: 48.88 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04774/2.554, allocations: 16.01 MB / 0.8267 GB, free: 35.85 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.745e-05/2.554, allocations: 4 kB / 0.8267 GB, free: 35.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006351/2.561, allocations: 0.5968 MB / 0.8273 GB, free: 35.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006308/2.567, allocations: 1.416 MB / 0.8286 GB, free: 33.83 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009912/2.568, allocations: 61.23 kB / 0.8287 GB, free: 33.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02001/2.588, allocations: 10.53 MB / 0.839 GB, free: 22.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/2.588, allocations: 9.219 kB / 0.839 GB, free: 22.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02819/2.616, allocations: 11.89 MB / 0.8506 GB, free: 11.01 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004224/2.62, allocations: 1.096 MB / 0.8517 GB, free: 9.887 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001699/2.622, allocations: 52 kB / 0.8517 GB, free: 9.836 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005719/2.628, allocations: 264.7 kB / 0.852 GB, free: 9.578 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001134/2.629, allocations: 198.1 kB / 0.8522 GB, free: 9.383 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004276/2.63, allocations: 87.98 kB / 0.8522 GB, free: 9.297 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007441/2.637, allocations: 3.266 MB / 0.8554 GB, free: 6.051 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.42e-07/2.637, allocations: 0 / 0.8554 GB, free: 6.051 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0105/2.648, allocations: 1.611 MB / 0.857 GB, free: 4.445 MB / 474.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.03294/2.681, allocations: 12.74 MB / 0.8695 GB, free: 7.617 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02373/2.704, allocations: 8.566 MB / 0.8778 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/2.704, allocations: 4 kB / 0.8778 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.3567/3.061, allocations: 3.677 MB / 0.8814 GB, free: 130.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006591/3.068, allocations: 0.6208 MB / 0.882 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06095/3.129, allocations: 15.83 MB / 0.8975 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01323/3.142, allocations: 4.932 MB / 0.9023 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008961/3.151, allocations: 3.106 MB / 0.9053 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.813e-06/3.151, allocations: 0 / 0.9053 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.757/8.908, allocations: 180.7 MB / 1.082 GB, free: 115.5 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat