Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.762/2.762, allocations: 270 MB / 282.6 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.333e-05/3.342e-05, allocations: 4 kB / 347.1 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4026, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1971/0.5998, allocations: 108.1 MB / 0.5049 GB, free: 14.51 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.6002, allocations: 79.95 kB / 0.505 GB, free: 14.43 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7821/1.382, allocations: 108.2 MB / 0.6106 GB, free: 29.67 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.953e-06/1.382, allocations: 0 / 0.6106 GB, free: 29.67 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003711/1.383, allocations: 108 kB / 0.6107 GB, free: 29.57 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.01969/1.402, allocations: 5.152 MB / 0.6158 GB, free: 24.35 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/1.403, allocations: 12.02 kB / 0.6158 GB, free: 24.34 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003745/1.406, allocations: 0.9022 MB / 0.6167 GB, free: 23.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05034/1.457, allocations: 6.873 MB / 0.6234 GB, free: 16.54 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02339/1.48, allocations: 6.395 MB / 0.6296 GB, free: 10.08 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004479/1.481, allocations: 382.1 kB / 0.63 GB, free: 9.707 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002736/1.483, allocations: 0.5075 MB / 0.6305 GB, free: 9.199 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0372/1.521, allocations: 12.28 MB / 0.6425 GB, free: 11.68 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003665/1.521, allocations: 75.34 kB / 0.6425 GB, free: 11.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002363/1.523, allocations: 243.9 kB / 0.6428 GB, free: 11.37 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002997/1.526, allocations: 1.129 MB / 0.6439 GB, free: 10.24 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03356/1.56, allocations: 9.458 MB / 0.6531 GB, free: 0.7695 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09527/1.655, allocations: 56.38 MB / 0.7082 GB, free: 6.605 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02309/1.679, allocations: 4.238 MB / 0.7123 GB, free: 2.211 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006356/1.685, allocations: 1.913 MB / 0.7142 GB, free: 296 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3992/2.084, allocations: 5.64 MB / 0.7197 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/2.084, allocations: 51.27 kB / 0.7197 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=150): time 5.691e-06/2.084, allocations: 0 / 0.7197 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162): time 0.05781/2.142, allocations: 12.92 MB / 0.7324 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.398e-05/2.142, allocations: 234.8 kB / 0.7326 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01208/2.154, allocations: 4.963 MB / 0.7374 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003845/2.155, allocations: 51.55 kB / 0.7375 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003491/2.158, allocations: 3.675 MB / 0.7411 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001045/2.159, allocations: 0.655 MB / 0.7417 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008226/2.16, allocations: 128.6 kB / 0.7418 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004331/2.161, allocations: 0.5901 MB / 0.7424 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004884/2.166, allocations: 1.93 MB / 0.7443 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008062/2.174, allocations: 6.167 MB / 0.7503 GB, free: 108 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007668/2.182, allocations: 3.464 MB / 0.7537 GB, free: 108 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00018/2.182, allocations: 44.06 kB / 0.7537 GB, free: 108 MB / 0.5105 GB Notification: Performance of matching and sorting (n=861) (initialization): time 0.02088/2.203, allocations: 7.627 MB / 0.7612 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/2.203, allocations: 73.69 kB / 0.7613 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002518/2.203, allocations: 149.7 kB / 0.7614 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002197/2.205, allocations: 0.6037 MB / 0.762 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008785/2.214, allocations: 1.493 MB / 0.7635 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009084/2.223, allocations: 5.714 MB / 0.769 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007584/2.231, allocations: 349.5 kB / 0.7694 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001633/2.233, allocations: 415.3 kB / 0.7698 GB, free: 103.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 697 * Number of states: 0 () * Number of discrete variables: 49 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.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.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 (809): * Single equations (assignments): 804 * 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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001728/2.234, allocations: 0.6327 MB / 0.7704 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/2.236, allocations: 462.7 kB / 0.7708 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006782/2.242, allocations: 2.412 MB / 0.7732 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.703e-05/2.242, allocations: 22.14 kB / 0.7732 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/2.242, allocations: 7.062 kB / 0.7732 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.654e-05/2.243, allocations: 7.359 kB / 0.7732 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0207/2.263, allocations: 7.232 MB / 0.7803 GB, free: 98.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-05/2.263, allocations: 3.562 kB / 0.7803 GB, free: 98.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002484/2.266, allocations: 253.8 kB / 0.7805 GB, free: 98.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001751/2.268, allocations: 356.6 kB / 0.7809 GB, free: 98.77 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002664/2.268, allocations: 30.22 kB / 0.7809 GB, free: 98.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007623/2.275, allocations: 5.061 MB / 0.7858 GB, free: 95.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/2.276, allocations: 3.875 kB / 0.7858 GB, free: 95.05 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01/2.286, allocations: 5.08 MB / 0.7908 GB, free: 92.33 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/2.287, allocations: 0.5195 MB / 0.7913 GB, free: 91.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001635/2.289, allocations: 35.5 kB / 0.7913 GB, free: 91.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003534/2.293, allocations: 67.92 kB / 0.7914 GB, free: 91.73 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005026/2.293, allocations: 100.2 kB / 0.7915 GB, free: 91.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/2.293, allocations: 42.95 kB / 0.7915 GB, free: 91.62 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00929/2.303, allocations: 3.539 MB / 0.795 GB, free: 88.52 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.052e-06/2.303, allocations: 0 / 0.795 GB, free: 88.52 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008394/2.311, allocations: 1.115 MB / 0.7961 GB, free: 87.42 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (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 (120): * Single equations (assignments): 115 * 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 {(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.01048/2.322, allocations: 6.289 MB / 0.8022 GB, free: 81.55 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01047/2.332, allocations: 4.673 MB / 0.8068 GB, free: 77.32 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/2.332, allocations: 0 / 0.8068 GB, free: 77.32 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002776/2.335, allocations: 1.374 MB / 0.8081 GB, free: 76.06 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004891/2.34, allocations: 0.5914 MB / 0.8087 GB, free: 75.57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0351/2.375, allocations: 10.96 MB / 0.8194 GB, free: 66.08 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008935/2.384, allocations: 3.976 MB / 0.8233 GB, free: 63.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005531/2.39, allocations: 2.426 MB / 0.8257 GB, free: 60.86 MB / 0.5105 GB Notification: Performance of SimCode: time 1.553e-06/2.39, allocations: 0 / 0.8257 GB, free: 60.86 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.293/7.683, allocations: 139.4 MB / 0.9618 GB, free: 136.8 MB / 0.5417 GB