Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.604/2.604, allocations: 270 MB / 282.6 MB, free: 1.996 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.382e-05/5.392e-05, allocations: 7.938 kB / 347.1 MB, free: 3.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4133/0.4134, allocations: 61.86 MB / 408.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.6124, allocations: 110.8 MB / 0.5075 GB, free: 11.82 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.6128, allocations: 75.97 kB / 0.5076 GB, free: 11.74 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8685/1.481, allocations: 138 MB / 0.6423 GB, free: 13.12 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.481, allocations: 0 / 0.6423 GB, free: 13.12 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000548/1.482, allocations: 140 kB / 0.6425 GB, free: 12.98 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: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.03039/1.512, allocations: 6.886 MB / 0.6492 GB, free: 6.02 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/1.512, allocations: 16.03 kB / 0.6492 GB, free: 6.004 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006073/1.518, allocations: 1.24 MB / 0.6504 GB, free: 4.754 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05579/1.574, allocations: 7.194 MB / 0.6575 GB, free: 13.54 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02914/1.604, allocations: 7.298 MB / 0.6646 GB, free: 6.156 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008194/1.604, allocations: 0.5257 MB / 0.6651 GB, free: 5.629 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004141/1.609, allocations: 0.7029 MB / 0.6658 GB, free: 4.926 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05923/1.668, allocations: 17.27 MB / 0.6826 GB, free: 2.199 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004976/1.668, allocations: 99.06 kB / 0.6827 GB, free: 2.102 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003234/1.672, allocations: 343.8 kB / 0.6831 GB, free: 1.766 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004111/1.676, allocations: 1.628 MB / 0.6847 GB, free: 136 kB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04879/1.725, allocations: 13.69 MB / 0.698 GB, free: 2.414 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8572/2.582, allocations: 76.67 MB / 0.7729 GB, free: 46.25 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03522/2.617, allocations: 7.861 MB / 0.7806 GB, free: 45.55 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007711/2.625, allocations: 4.048 MB / 0.7845 GB, free: 45.51 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02431/2.649, allocations: 10.11 MB / 0.7944 GB, free: 43.48 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.516e-05/2.649, allocations: 68.38 kB / 0.7945 GB, free: 43.44 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=277): time 7.805e-06/2.649, allocations: 0 / 0.7945 GB, free: 43.44 MB / 0.5105 GB Notification: Performance of matching and sorting (n=319): time 0.1316/2.781, allocations: 28.62 MB / 0.8224 GB, free: 36.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/2.781, allocations: 242.3 kB / 0.8226 GB, free: 36.05 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01558/2.797, allocations: 6.257 MB / 0.8288 GB, free: 33.94 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008703/2.798, allocations: 72.88 kB / 0.8288 GB, free: 33.87 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004321/2.802, allocations: 4.637 MB / 0.8334 GB, free: 30.33 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001982/2.804, allocations: 1.2 MB / 0.8345 GB, free: 29.45 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001294/2.805, allocations: 185.3 kB / 0.8347 GB, free: 29.31 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006812/2.806, allocations: 0.6901 MB / 0.8354 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008704/2.815, allocations: 3.445 MB / 0.8387 GB, free: 27.67 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01227/2.827, allocations: 8.657 MB / 0.8472 GB, free: 19.47 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01223/2.839, allocations: 5.438 MB / 0.8525 GB, free: 16.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001854/2.84, allocations: 54.03 kB / 0.8526 GB, free: 16.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.04429/2.884, allocations: 12.64 MB / 0.8649 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002017/2.884, allocations: 84 kB / 0.865 GB, free: 6.609 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003594/2.885, allocations: 184 kB / 0.8652 GB, free: 6.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009626/2.894, allocations: 1.711 MB / 0.8668 GB, free: 5.145 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01866/2.913, allocations: 2.177 MB / 0.869 GB, free: 3.301 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03102/2.944, allocations: 11.41 MB / 0.8801 GB, free: 9.18 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01131/2.955, allocations: 0.5079 MB / 0.8806 GB, free: 8.75 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002376/2.958, allocations: 0.5342 MB / 0.8811 GB, free: 8.234 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 847 * Number of states: 0 () * Number of discrete variables: 83 (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.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque2.torqueArrow.headAtOrigin,forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque2.forceArrow.headAtOrigin,forceAndTorque2.forceArrow.color[3],forceAndTorque2.forceArrow.color[2],forceAndTorque2.forceArrow.color[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[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.forceArrow.color[3],forceAndTorque1.forceArrow.color[2],forceAndTorque1.forceArrow.color[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 (1102): * Single equations (assignments): 1097 * 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.003773/2.962, allocations: 0.8138 MB / 0.8819 GB, free: 7.418 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001897/2.964, allocations: 0.6016 MB / 0.8825 GB, free: 6.809 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02231/2.986, allocations: 6.682 MB / 0.889 GB, free: 1.395 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-05/2.986, allocations: 32 kB / 0.8891 GB, free: 1.363 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.159e-05/2.986, allocations: 8 kB / 0.8891 GB, free: 1.355 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-05/2.986, allocations: 18.67 kB / 0.8891 GB, free: 1.352 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05262/3.039, allocations: 15.71 MB / 0.9044 GB, free: 4.715 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.318e-05/3.039, allocations: 4 kB / 0.9044 GB, free: 4.711 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006542/3.045, allocations: 0.6262 MB / 0.905 GB, free: 4.234 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007097/3.053, allocations: 1.415 MB / 0.9064 GB, free: 3.242 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009144/3.054, allocations: 56 kB / 0.9065 GB, free: 3.188 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02474/3.078, allocations: 10.62 MB / 0.9168 GB, free: 9.633 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-05/3.078, allocations: 7.938 kB / 0.9169 GB, free: 9.625 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4603/3.539, allocations: 12.07 MB / 0.9286 GB, free: 130.9 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003285/3.542, allocations: 0.6786 MB / 0.9293 GB, free: 130.8 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003204/3.545, allocations: 61.36 kB / 0.9294 GB, free: 130.8 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008336/3.554, allocations: 205.5 kB / 0.9296 GB, free: 130.8 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001621/3.555, allocations: 201 kB / 0.9297 GB, free: 130.8 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005574/3.556, allocations: 85.58 kB / 0.9298 GB, free: 130.8 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01619/3.572, allocations: 4.464 MB / 0.9342 GB, free: 130.5 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.212e-06/3.572, allocations: 3.781 kB / 0.9342 GB, free: 130.5 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01542/3.588, allocations: 1.678 MB / 0.9358 GB, free: 130.5 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (261): * Single equations (assignments): 256 * 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.02869/3.616, allocations: 13.62 MB / 0.9491 GB, free: 127.2 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.02381/3.64, allocations: 8.315 MB / 0.9573 GB, free: 126.9 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/3.64, allocations: 0 / 0.9573 GB, free: 126.9 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.009101/3.649, allocations: 3.325 MB / 0.9605 GB, free: 126.6 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007238/3.657, allocations: 0.7701 MB / 0.9613 GB, free: 126.6 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05333/3.71, allocations: 16.6 MB / 0.9775 GB, free: 123.8 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01186/3.722, allocations: 5.203 MB / 0.9825 GB, free: 122.8 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008446/3.731, allocations: 3.383 MB / 0.9858 GB, free: 120.1 MB / 0.5574 GB Notification: Performance of SimCode: time 2.355e-06/3.731, allocations: 0 / 0.9858 GB, free: 120.1 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.083/9.814, allocations: 192.7 MB / 1.174 GB, free: 128.7 MB / 0.5574 GB