Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.925/1.925, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.728e-05/2.727e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1033, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4191/0.5224, allocations: 92.31 MB / 408.6 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.5227, allocations: 74.45 kB / 408.7 MB, free: 492 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9071/1.43, allocations: 166.2 MB / 0.5614 GB, free: 68.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.43, allocations: 4 kB / 0.5614 GB, free: 68.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000562/1.431, allocations: 171.6 kB / 0.5616 GB, free: 68.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 0.03451/1.465, allocations: 8.25 MB / 0.5696 GB, free: 60.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/1.465, allocations: 8.031 kB / 0.5696 GB, free: 60.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08719/1.552, allocations: 12.09 MB / 0.5814 GB, free: 48.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03905/1.591, allocations: 10.93 MB / 0.5921 GB, free: 37.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006054/1.592, allocations: 276 kB / 0.5924 GB, free: 37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004679/1.597, allocations: 0.5114 MB / 0.5929 GB, free: 36.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02935/1.626, allocations: 11.43 MB / 0.604 GB, free: 25.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04586/1.672, allocations: 17.17 MB / 0.6208 GB, free: 6.355 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006193/1.673, allocations: 107.1 kB / 0.6209 GB, free: 6.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003853/1.677, allocations: 47.95 kB / 0.6209 GB, free: 6.203 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004001/1.681, allocations: 1.813 MB / 0.6227 GB, free: 4.395 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7815/2.462, allocations: 78.65 MB / 0.6995 GB, free: 30.91 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01489/2.477, allocations: 5.845 MB / 0.7052 GB, free: 30.22 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01095/2.488, allocations: 3.985 MB / 0.7091 GB, free: 30.18 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001541/2.49, allocations: 0.6687 MB / 0.7098 GB, free: 29.61 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.914e-05/2.49, allocations: 76.47 kB / 0.7098 GB, free: 29.57 MB / 426.8 MB Notification: Performance of pre-optimization done (n=311): time 1.145e-05/2.49, allocations: 0 / 0.7098 GB, free: 29.57 MB / 426.8 MB Notification: Performance of matching and sorting (n=338): time 0.1317/2.622, allocations: 33.7 MB / 0.7428 GB, free: 17.21 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.968e-05/2.622, allocations: 292.2 kB / 0.743 GB, free: 16.89 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01272/2.635, allocations: 5.523 MB / 0.7484 GB, free: 14.93 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008511/2.635, allocations: 27.52 kB / 0.7485 GB, free: 14.9 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004912/2.64, allocations: 5.759 MB / 0.7541 GB, free: 10.41 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002118/2.643, allocations: 1.24 MB / 0.7553 GB, free: 9.496 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001361/2.644, allocations: 0 / 0.7553 GB, free: 9.496 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0007644/2.645, allocations: 0.7391 MB / 0.756 GB, free: 9 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008002/2.653, allocations: 3.334 MB / 0.7593 GB, free: 7.801 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0127/2.666, allocations: 9.243 MB / 0.7683 GB, free: 13.83 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01341/2.679, allocations: 5.47 MB / 0.7736 GB, free: 9.488 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002604/2.679, allocations: 60 kB / 0.7737 GB, free: 9.43 MB / 442.8 MB Notification: Performance of matching and sorting (n=1310) (initialization): time 0.03677/2.716, allocations: 11.91 MB / 0.7853 GB, free: 15.14 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001895/2.716, allocations: 99.7 kB / 0.7854 GB, free: 15.05 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004021/2.717, allocations: 208 kB / 0.7856 GB, free: 14.84 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0044/2.721, allocations: 1.051 MB / 0.7866 GB, free: 13.96 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01574/2.737, allocations: 2.339 MB / 0.7889 GB, free: 11.94 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02022/2.757, allocations: 10.85 MB / 0.7995 GB, free: 1.664 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01208/2.769, allocations: 356.6 kB / 0.7999 GB, free: 1.375 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002737/2.772, allocations: 0.5956 MB / 0.8004 GB, free: 0.793 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],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],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 (1230): * Single equations (assignments): 1223 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003181/2.775, allocations: 0.6318 MB / 0.8011 GB, free: 160 kB / 458.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01786/2.793, allocations: 5.661 MB / 0.8066 GB, free: 11.37 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002481/2.796, allocations: 0.5978 MB / 0.8072 GB, free: 10.77 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01811/2.814, allocations: 5.692 MB / 0.8127 GB, free: 6.051 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.696e-05/2.814, allocations: 36 kB / 0.8128 GB, free: 6.016 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.474e-05/2.814, allocations: 12 kB / 0.8128 GB, free: 6.004 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-05/2.814, allocations: 15.75 kB / 0.8128 GB, free: 6.004 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3868/3.201, allocations: 13.48 MB / 0.826 GB, free: 110.9 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.182e-05/3.201, allocations: 1.688 kB / 0.826 GB, free: 110.9 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006119/3.207, allocations: 0.5676 MB / 0.8265 GB, free: 110.9 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003593/3.211, allocations: 0.6896 MB / 0.8272 GB, free: 110.9 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008497/3.212, allocations: 15.84 kB / 0.8272 GB, free: 110.9 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0157/3.227, allocations: 9.715 MB / 0.8367 GB, free: 105.8 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.874e-06/3.228, allocations: 2.281 kB / 0.8367 GB, free: 105.8 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02306/3.251, allocations: 9.759 MB / 0.8462 GB, free: 104.8 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004361/3.255, allocations: 1.084 MB / 0.8473 GB, free: 104.8 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002217/3.257, allocations: 7.453 kB / 0.8473 GB, free: 104.8 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005788/3.263, allocations: 141.1 kB / 0.8474 GB, free: 104.8 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/3.264, allocations: 198.6 kB / 0.8476 GB, free: 104.8 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003581/3.265, allocations: 84.27 kB / 0.8477 GB, free: 104.8 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.009482/3.274, allocations: 3.762 MB / 0.8514 GB, free: 104.5 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.382e-06/3.274, allocations: 3.969 kB / 0.8514 GB, free: 104.5 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01286/3.287, allocations: 1.619 MB / 0.853 GB, free: 104.5 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (279): * Single equations (assignments): 272 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(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.02228/3.309, allocations: 10.7 MB / 0.8634 GB, free: 102.8 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01847/3.328, allocations: 8.472 MB / 0.8717 GB, free: 100.7 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/3.328, allocations: 3.5 kB / 0.8717 GB, free: 100.7 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006777/3.335, allocations: 3.11 MB / 0.8747 GB, free: 99.27 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007073/3.342, allocations: 0.7402 MB / 0.8754 GB, free: 98.98 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0564/3.398, allocations: 18.24 MB / 0.8932 GB, free: 92.49 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01504/3.413, allocations: 6.127 MB / 0.8992 GB, free: 90.58 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009792/3.423, allocations: 4.121 MB / 0.9033 GB, free: 87.2 MB / 474.8 MB Notification: Performance of SimCode: time 1.683e-06/3.423, allocations: 0 / 0.9033 GB, free: 87.2 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.543/9.967, allocations: 290.2 MB / 1.187 GB, free: 120.7 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat