Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.564/2.564, allocations: 270 MB / 282.6 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.829e-05/3.84e-05, allocations: 4 kB / 347.1 MB, free: 3.133 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4182/0.4182, allocations: 61.86 MB / 408.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2213/0.6396, allocations: 106.9 MB / 0.5037 GB, free: 15.65 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.64, allocations: 71.97 kB / 0.5038 GB, free: 15.58 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9294/1.569, allocations: 156.2 MB / 0.6563 GB, free: 14.41 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.569, allocations: 0 / 0.6563 GB, free: 14.41 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0006739/1.57, allocations: 156 kB / 0.6565 GB, free: 14.26 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.04018/1.61, allocations: 7.632 MB / 0.6639 GB, free: 6.547 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/1.61, allocations: 12.03 kB / 0.6639 GB, free: 6.535 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008479/1.619, allocations: 1.31 MB / 0.6652 GB, free: 5.215 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09636/1.715, allocations: 11.94 MB / 0.6769 GB, free: 9.242 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04228/1.758, allocations: 9.961 MB / 0.6866 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001219/1.759, allocations: 0.5774 MB / 0.6872 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00563/1.765, allocations: 0.7691 MB / 0.6879 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08545/1.85, allocations: 17.89 MB / 0.7054 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001188/1.851, allocations: 107 kB / 0.7055 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004507/1.856, allocations: 367.8 kB / 0.7058 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004124/1.86, allocations: 1.563 MB / 0.7074 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4355/2.296, allocations: 14.1 MB / 0.7211 GB, free: 85.91 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1182/2.414, allocations: 75.47 MB / 0.7948 GB, free: 44.77 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03251/2.447, allocations: 7.244 MB / 0.8019 GB, free: 43.15 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006684/2.453, allocations: 3.444 MB / 0.8053 GB, free: 41.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009337/2.454, allocations: 0.6545 MB / 0.8059 GB, free: 41.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.36e-05/2.454, allocations: 60.44 kB / 0.806 GB, free: 40.99 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=231): time 6.753e-06/2.454, allocations: 0 / 0.806 GB, free: 40.99 MB / 0.5105 GB Notification: Performance of matching and sorting (n=255): time 0.1091/2.564, allocations: 22.73 MB / 0.8282 GB, free: 32.63 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/2.564, allocations: 289.8 kB / 0.8284 GB, free: 32.32 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0176/2.581, allocations: 6.459 MB / 0.8347 GB, free: 30.15 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000639/2.582, allocations: 63.64 kB / 0.8348 GB, free: 30.09 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004816/2.587, allocations: 5.054 MB / 0.8397 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001586/2.588, allocations: 0.9975 MB / 0.8407 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001257/2.59, allocations: 170.7 kB / 0.8409 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007949/2.591, allocations: 0.6714 MB / 0.8415 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006942/2.598, allocations: 2.799 MB / 0.8443 GB, free: 23.88 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01053/2.608, allocations: 7.992 MB / 0.8521 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/2.618, allocations: 4.716 MB / 0.8567 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002195/2.619, allocations: 52 kB / 0.8567 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1110) (initialization): time 0.029/2.648, allocations: 10.58 MB / 0.867 GB, free: 2.875 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000159/2.648, allocations: 84 kB / 0.8671 GB, free: 2.793 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002683/2.648, allocations: 191.8 kB / 0.8673 GB, free: 2.609 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004225/2.652, allocations: 1.033 MB / 0.8683 GB, free: 1.746 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01221/2.665, allocations: 1.95 MB / 0.8702 GB, free: 60 kB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02171/2.686, allocations: 11.23 MB / 0.8812 GB, free: 5.359 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01054/2.697, allocations: 458.5 kB / 0.8816 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002215/2.699, allocations: 0.5135 MB / 0.8821 GB, free: 4.449 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 847 * Number of states: 0 () * Number of discrete variables: 74 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,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.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],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 (1030): * Single equations (assignments): 1023 * 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.003248/2.703, allocations: 0.7908 MB / 0.8829 GB, free: 3.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001855/2.704, allocations: 0.6208 MB / 0.8835 GB, free: 3.031 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01692/2.721, allocations: 4.615 MB / 0.888 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.931e-05/2.722, allocations: 31.23 kB / 0.888 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-05/2.722, allocations: 12 kB / 0.8881 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.75e-05/2.722, allocations: 9.891 kB / 0.8881 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04077/2.762, allocations: 12.27 MB / 0.9 GB, free: 5.707 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.929e-05/2.763, allocations: 8 kB / 0.9001 GB, free: 5.699 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004361/2.767, allocations: 398.8 kB / 0.9004 GB, free: 5.387 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003744/2.771, allocations: 0.6997 MB / 0.9011 GB, free: 4.852 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000581/2.771, allocations: 46.5 kB / 0.9012 GB, free: 4.809 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01876/2.79, allocations: 10.14 MB / 0.9111 GB, free: 11.12 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/2.79, allocations: 0 / 0.9111 GB, free: 11.12 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01977/2.81, allocations: 7.751 MB / 0.9186 GB, free: 4.195 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002635/2.813, allocations: 0.6757 MB / 0.9193 GB, free: 3.523 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002198/2.815, allocations: 40 kB / 0.9193 GB, free: 3.484 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005288/2.82, allocations: 138.2 kB / 0.9195 GB, free: 3.391 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000837/2.821, allocations: 159.8 kB / 0.9196 GB, free: 3.293 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002986/2.821, allocations: 67.56 kB / 0.9197 GB, free: 3.23 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.4107/3.232, allocations: 4.59 MB / 0.9242 GB, free: 123.1 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.525e-06/3.232, allocations: 0 / 0.9242 GB, free: 123.1 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01283/3.245, allocations: 1.64 MB / 0.9258 GB, free: 123.1 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (195): * Single equations (assignments): 188 * 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.01984/3.265, allocations: 8.601 MB / 0.9342 GB, free: 121.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01618/3.281, allocations: 7.043 MB / 0.941 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/3.281, allocations: 0 / 0.941 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005453/3.287, allocations: 2.489 MB / 0.9435 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008018/3.295, allocations: 0.8993 MB / 0.9444 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05261/3.347, allocations: 16.4 MB / 0.9604 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01318/3.361, allocations: 5.569 MB / 0.9658 GB, free: 117 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008371/3.369, allocations: 3.69 MB / 0.9694 GB, free: 117 MB / 0.5573 GB Notification: Performance of SimCode: time 1.673e-06/3.369, allocations: 0 / 0.9694 GB, free: 117 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.677/10.05, allocations: 263.5 MB / 1.227 GB, free: 111.2 MB / 0.573 GB