Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForceAndTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.697/2.697, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.701e-05/4.711e-05, allocations: 5.688 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.15, allocations: 61.88 MB / 410.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5801/0.7302, allocations: 108.2 MB / 0.5064 GB, free: 11.86 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.7305, allocations: 75.97 kB / 0.5064 GB, free: 11.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.11/1.841, allocations: 161.9 MB / 0.6645 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.087e-06/1.841, allocations: 0 / 0.6645 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0006084/1.841, allocations: 171.1 kB / 0.6647 GB, free: 105.8 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2857 * Number of variables: 2857 Notification: Performance of Generate backend data structure: time 0.03755/1.879, allocations: 8.031 MB / 0.6725 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/1.879, allocations: 14.88 kB / 0.6725 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008131/1.887, allocations: 1.43 MB / 0.6739 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08957/1.977, allocations: 9.686 MB / 0.6834 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04124/2.018, allocations: 8.942 MB / 0.6921 GB, free: 98.98 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008758/2.019, allocations: 0.607 MB / 0.6927 GB, free: 98.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005015/2.024, allocations: 0.8263 MB / 0.6935 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06692/2.091, allocations: 19.78 MB / 0.7128 GB, free: 86.05 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007593/2.092, allocations: 107 kB / 0.7129 GB, free: 85.95 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004848/2.097, allocations: 387.2 kB / 0.7133 GB, free: 85.62 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005497/2.102, allocations: 1.783 MB / 0.715 GB, free: 83.84 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05862/2.161, allocations: 16.01 MB / 0.7307 GB, free: 67.82 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5574/2.718, allocations: 83.36 MB / 0.8121 GB, free: 97.27 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04974/2.768, allocations: 8.08 MB / 0.82 GB, free: 96.58 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0134/2.782, allocations: 4.719 MB / 0.8246 GB, free: 96.54 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004428/2.782, allocations: 64.91 kB / 0.8246 GB, free: 96.54 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.186e-05/2.782, allocations: 71.75 kB / 0.8247 GB, free: 96.49 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=301): time 1.053e-05/2.782, allocations: 0.8125 kB / 0.8247 GB, free: 96.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=364): time 0.1749/2.957, allocations: 34.02 MB / 0.8579 GB, free: 90.85 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/2.957, allocations: 269.6 kB / 0.8582 GB, free: 90.57 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01853/2.976, allocations: 6.925 MB / 0.8649 GB, free: 90.03 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001111/2.977, allocations: 78.23 kB / 0.865 GB, free: 90 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005681/2.983, allocations: 5.55 MB / 0.8704 GB, free: 86.05 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002372/2.985, allocations: 1.365 MB / 0.8718 GB, free: 85.05 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00161/2.987, allocations: 200 kB / 0.872 GB, free: 84.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007973/2.988, allocations: 0.7137 MB / 0.8727 GB, free: 84.42 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0105/2.998, allocations: 4.051 MB / 0.8766 GB, free: 83.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01424/3.012, allocations: 9.512 MB / 0.8859 GB, free: 74.33 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01439/3.027, allocations: 6.171 MB / 0.8919 GB, free: 72.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002117/3.027, allocations: 56.62 kB / 0.892 GB, free: 72.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1263) (initialization): time 0.04411/3.071, allocations: 15.15 MB / 0.9068 GB, free: 68.24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001614/3.072, allocations: 91.45 kB / 0.9069 GB, free: 68.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003463/3.072, allocations: 193.9 kB / 0.907 GB, free: 68.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01069/3.083, allocations: 2.437 MB / 0.9094 GB, free: 67.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01901/3.102, allocations: 2.28 MB / 0.9117 GB, free: 67.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0334/3.135, allocations: 16.88 MB / 0.9281 GB, free: 55.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01303/3.148, allocations: 0.5665 MB / 0.9287 GB, free: 55.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002558/3.151, allocations: 0.58 MB / 0.9293 GB, free: 54.59 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 885 * Number of states: 0 () * Number of discrete variables: 87 (forceAndTorque2.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque2.torqueArrow.headAtOrigin,forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque2.forceArrow.headAtOrigin,forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],forceAndTorque1.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque1.torqueArrow.headAtOrigin,forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque1.forceArrow.headAtOrigin,forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.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 (1167): * Single equations (assignments): 1161 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004298/3.155, allocations: 0.8507 MB / 0.9301 GB, free: 53.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002227/3.157, allocations: 0.6826 MB / 0.9308 GB, free: 53.04 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02833/3.186, allocations: 8.715 MB / 0.9393 GB, free: 46.07 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.482e-05/3.186, allocations: 36.94 kB / 0.9393 GB, free: 46.03 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.46e-05/3.186, allocations: 15.89 kB / 0.9393 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001008/3.186, allocations: 21.39 kB / 0.9393 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05971/3.246, allocations: 19 MB / 0.9579 GB, free: 30.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.381e-05/3.246, allocations: 3.953 kB / 0.9579 GB, free: 30.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00663/3.253, allocations: 0.6437 MB / 0.9585 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00976/3.262, allocations: 2.114 MB / 0.9606 GB, free: 28.82 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001042/3.263, allocations: 63.56 kB / 0.9607 GB, free: 28.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03079/3.294, allocations: 15.68 MB / 0.976 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/3.294, allocations: 4 kB / 0.976 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03352/3.328, allocations: 13.81 MB / 0.9895 GB, free: 0.5078 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002913/3.331, allocations: 0.75 MB / 0.9902 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00302/3.334, allocations: 60 kB / 0.9902 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007524/3.341, allocations: 275.6 kB / 0.9905 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001631/3.343, allocations: 214.7 kB / 0.9907 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006327/3.344, allocations: 88 kB / 0.9908 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01482/3.359, allocations: 4.92 MB / 0.9956 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.31e-07/3.359, allocations: 2.906 kB / 0.9956 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01453/3.373, allocations: 1.97 MB / 0.9975 GB, free: 8.266 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,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 (289): * Single equations (assignments): 283 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(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.04226/3.416, allocations: 14.67 MB / 1.012 GB, free: 9.504 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.4246/3.84, allocations: 9.922 MB / 1.022 GB, free: 135.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/3.84, allocations: 4.656 kB / 1.022 GB, free: 135.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01352/3.854, allocations: 4.248 MB / 1.026 GB, free: 134.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008986/3.863, allocations: 0.9183 MB / 1.027 GB, free: 134.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06488/3.928, allocations: 18.56 MB / 1.045 GB, free: 131.8 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01449/3.942, allocations: 5.927 MB / 1.05 GB, free: 130.9 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01566/3.958, allocations: 3.264 MB / 1.054 GB, free: 130.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009747/3.968, allocations: 3.939 MB / 1.058 GB, free: 130.2 MB / 0.5573 GB Notification: Performance of SimCode: time 1.282e-06/3.968, allocations: 0 / 1.058 GB, free: 130.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4437/4.412, allocations: 157.8 MB / 1.212 GB, free: 14.33 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/4.412, allocations: 169.8 kB / 1.212 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/14.65, allocations: 0 / 1.212 GB, free: 14.11 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque_res.mat does not exist to compare? outputFormat=mat