Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.598/2.598, allocations: 249.5 MB / 261.6 MB, free: 2.156 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 5.425e-05/5.434e-05, allocations: 7.938 kB / 323.5 MB, free: 4.223 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4928/0.4929, allocations: 58.84 MB / 382.3 MB, free: 10.19 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2119/0.7048, allocations: 110.1 MB / 492.4 MB, free: 14.23 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/0.7052, allocations: 79.95 kB / 492.5 MB, free: 14.15 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.9444/1.65, allocations: 149.3 MB / 0.6268 GB, free: 47.61 MB / 458.8 MB Notification: Performance of FrontEnd: time 3.256e-06/1.65, allocations: 4 kB / 0.6268 GB, free: 47.61 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0004811/1.65, allocations: 148 kB / 0.6269 GB, free: 47.46 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2763 * Number of variables: 2763 Notification: Performance of Generate backend data structure: time 0.03079/1.681, allocations: 7.39 MB / 0.6341 GB, free: 40 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.209e-05/1.681, allocations: 12.02 kB / 0.6342 GB, free: 39.98 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006552/1.688, allocations: 1.372 MB / 0.6355 GB, free: 38.6 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05511/1.743, allocations: 7.318 MB / 0.6426 GB, free: 31.26 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02954/1.772, allocations: 7.908 MB / 0.6504 GB, free: 23.27 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008457/1.773, allocations: 0.5816 MB / 0.6509 GB, free: 22.69 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00489/1.778, allocations: 0.7808 MB / 0.6517 GB, free: 21.91 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05992/1.838, allocations: 18.77 MB / 0.67 GB, free: 1.625 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005256/1.839, allocations: 91.22 kB / 0.6701 GB, free: 1.535 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003866/1.843, allocations: 371.8 kB / 0.6705 GB, free: 1.172 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004628/1.847, allocations: 1.833 MB / 0.6723 GB, free: 15.33 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05687/1.904, allocations: 15.08 MB / 0.687 GB, free: 240 kB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5922/2.497, allocations: 81.84 MB / 0.7669 GB, free: 48.75 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03851/2.535, allocations: 8.615 MB / 0.7753 GB, free: 48.05 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01277/2.548, allocations: 4.616 MB / 0.7798 GB, free: 48 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04644/2.594, allocations: 11.7 MB / 0.7912 GB, free: 45.96 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.491e-05/2.595, allocations: 75.02 kB / 0.7913 GB, free: 45.91 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=347): time 1.179e-05/2.595, allocations: 0 / 0.7913 GB, free: 45.91 MB / 0.4949 GB Notification: Performance of matching and sorting (n=389): time 0.1473/2.742, allocations: 31.51 MB / 0.8221 GB, free: 38.21 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/2.742, allocations: 249.1 kB / 0.8223 GB, free: 37.95 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01687/2.759, allocations: 6.523 MB / 0.8287 GB, free: 35.69 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001141/2.76, allocations: 84.08 kB / 0.8288 GB, free: 35.62 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005325/2.766, allocations: 5.287 MB / 0.8339 GB, free: 31.55 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002501/2.768, allocations: 1.444 MB / 0.8353 GB, free: 30.49 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001531/2.77, allocations: 197.6 kB / 0.8355 GB, free: 30.34 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0007744/2.771, allocations: 0.7264 MB / 0.8362 GB, free: 29.86 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01021/2.781, allocations: 4.02 MB / 0.8402 GB, free: 28.46 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01428/2.795, allocations: 9.556 MB / 0.8495 GB, free: 19.64 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01425/2.809, allocations: 6.168 MB / 0.8555 GB, free: 15.24 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002267/2.81, allocations: 56 kB / 0.8556 GB, free: 15.18 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1300) (initialization): time 0.04149/2.851, allocations: 14.43 MB / 0.8697 GB, free: 3.297 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001635/2.851, allocations: 88 kB / 0.8698 GB, free: 3.211 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002992/2.852, allocations: 196 kB / 0.8699 GB, free: 3.02 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007782/2.86, allocations: 1.722 MB / 0.8716 GB, free: 1.719 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01734/2.877, allocations: 2.461 MB / 0.874 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0258/2.903, allocations: 11.41 MB / 0.8852 GB, free: 5.453 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01295/2.916, allocations: 0.5839 MB / 0.8857 GB, free: 4.965 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002855/2.919, allocations: 0.5701 MB / 0.8863 GB, free: 4.41 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * Number of states: 0 () * Number of discrete variables: 69 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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.groundColor[3],world.groundColor[2],world.groundColor[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 (1228): * 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: 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.004283/2.923, allocations: 0.8676 MB / 0.8872 GB, free: 3.547 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002352/2.925, allocations: 0.644 MB / 0.8878 GB, free: 2.895 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.031/2.956, allocations: 8.327 MB / 0.8959 GB, free: 12.74 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.962e-05/2.957, allocations: 43.62 kB / 0.896 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.094e-05/2.957, allocations: 8 kB / 0.896 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000101/2.957, allocations: 21.05 kB / 0.896 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07469/3.031, allocations: 18.2 MB / 0.9138 GB, free: 13.11 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.989e-05/3.032, allocations: 8 kB / 0.9138 GB, free: 13.1 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00852/3.04, allocations: 0.7653 MB / 0.9145 GB, free: 12.33 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007577/3.048, allocations: 1.421 MB / 0.9159 GB, free: 10.91 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00133/3.049, allocations: 75.98 kB / 0.916 GB, free: 10.83 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4378/3.487, allocations: 10.6 MB / 0.9263 GB, free: 135.4 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.81e-05/3.487, allocations: 11.25 kB / 0.9263 GB, free: 135.4 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03602/3.523, allocations: 14.37 MB / 0.9404 GB, free: 132.8 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005439/3.529, allocations: 1.322 MB / 0.9417 GB, free: 132.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00277/3.531, allocations: 74.27 kB / 0.9417 GB, free: 132.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007869/3.539, allocations: 254.8 kB / 0.942 GB, free: 132.7 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001568/3.541, allocations: 241 kB / 0.9422 GB, free: 132.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006065/3.542, allocations: 109 kB / 0.9423 GB, free: 132.7 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01261/3.554, allocations: 4.663 MB / 0.9469 GB, free: 132.4 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.973e-06/3.554, allocations: 0 / 0.9469 GB, free: 132.4 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.017/3.571, allocations: 1.874 MB / 0.9487 GB, free: 132.4 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * 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 (329): * Single equations (assignments): 324 * 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.05021/3.622, allocations: 16.11 MB / 0.9644 GB, free: 128.4 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.03304/3.655, allocations: 9.638 MB / 0.9738 GB, free: 127.9 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.454e-05/3.655, allocations: 0 / 0.9738 GB, free: 127.9 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01151/3.666, allocations: 3.926 MB / 0.9777 GB, free: 126.4 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008073/3.674, allocations: 0.7644 MB / 0.9784 GB, free: 126.1 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0642/3.739, allocations: 17.69 MB / 0.9957 GB, free: 119.8 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01929/3.758, allocations: 5.64 MB / 1.001 GB, free: 117.9 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.02294/3.781, allocations: 3.332 MB / 1.004 GB, free: 117.9 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0132/3.794, allocations: 3.69 MB / 1.008 GB, free: 114.9 MB / 0.5418 GB Notification: Performance of SimCode: time 1.893e-06/3.794, allocations: 7.938 kB / 1.008 GB, free: 114.9 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7371/4.531, allocations: 145.9 MB / 1.151 GB, free: 116.6 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002771/4.532, allocations: 177.4 kB / 1.151 GB, free: 116.4 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.359/13.89, allocations: 0 / 1.151 GB, free: 116.4 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat