Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.569/2.569, allocations: 270 MB / 282.6 MB, free: 1.949 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.1e-05/4.107e-05, allocations: 4 kB / 347.1 MB, free: 3.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4043/0.4043, allocations: 61.87 MB / 408.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2003/0.6047, allocations: 112.2 MB / 0.5089 GB, free: 10.32 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.6051, allocations: 79.95 kB / 0.509 GB, free: 10.24 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.748/2.353, allocations: 222.2 MB / 0.726 GB, free: 48.89 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.617e-06/2.353, allocations: 0 / 0.726 GB, free: 48.89 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0008762/2.354, allocations: 243.4 kB / 0.7262 GB, free: 48.88 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: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.05138/2.405, allocations: 11.54 MB / 0.7375 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/2.405, allocations: 7.688 kB / 0.7375 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01261/2.418, allocations: 1.988 MB / 0.7394 GB, free: 44.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09504/2.513, allocations: 12.62 MB / 0.7517 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04472/2.558, allocations: 12.21 MB / 0.7636 GB, free: 42.84 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001183/2.559, allocations: 0.8699 MB / 0.7645 GB, free: 42.81 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00633/2.565, allocations: 1.162 MB / 0.7656 GB, free: 42.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09074/2.656, allocations: 27.38 MB / 0.7924 GB, free: 36.95 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00107/2.657, allocations: 148 kB / 0.7925 GB, free: 36.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006247/2.664, allocations: 0.5424 MB / 0.793 GB, free: 36.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00561/2.669, allocations: 2.535 MB / 0.7955 GB, free: 36.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07435/2.744, allocations: 21.67 MB / 0.8167 GB, free: 36.54 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6494/3.393, allocations: 119.5 MB / 0.9334 GB, free: 95.68 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06013/3.453, allocations: 12.77 MB / 0.9459 GB, free: 94.95 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01386/3.467, allocations: 7.08 MB / 0.9528 GB, free: 94.89 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0443/3.512, allocations: 17.29 MB / 0.9697 GB, free: 92.13 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.299e-05/3.512, allocations: 94.39 kB / 0.9698 GB, free: 92.08 MB / 0.573 GB Notification: Performance of pre-optimization done (n=459): time 9.838e-06/3.512, allocations: 0 / 0.9698 GB, free: 92.08 MB / 0.573 GB Notification: Performance of matching and sorting (n=543): time 0.2497/3.761, allocations: 54.41 MB / 1.023 GB, free: 80.28 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001509/3.762, allocations: 370.1 kB / 1.023 GB, free: 79.9 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02596/3.788, allocations: 10.16 MB / 1.033 GB, free: 79.14 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001562/3.789, allocations: 109.7 kB / 1.033 GB, free: 79.11 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.006999/3.796, allocations: 7.362 MB / 1.04 GB, free: 75.23 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003399/3.8, allocations: 2.027 MB / 1.042 GB, free: 73.75 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002567/3.802, allocations: 281.2 kB / 1.043 GB, free: 73.53 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001338/3.804, allocations: 0.9077 MB / 1.044 GB, free: 72.96 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01455/3.818, allocations: 5.733 MB / 1.049 GB, free: 70.99 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01949/3.838, allocations: 13.54 MB / 1.062 GB, free: 58.53 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01912/3.857, allocations: 8.735 MB / 1.071 GB, free: 52.19 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003162/3.857, allocations: 80 kB / 1.071 GB, free: 52.11 MB / 0.573 GB Notification: Performance of matching and sorting (n=1818) (initialization): time 0.05948/3.917, allocations: 20.85 MB / 1.091 GB, free: 35.77 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001928/3.917, allocations: 124 kB / 1.092 GB, free: 35.65 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004139/3.918, allocations: 276 kB / 1.092 GB, free: 35.38 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01378/3.931, allocations: 3.275 MB / 1.095 GB, free: 32.97 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02271/3.954, allocations: 3.358 MB / 1.098 GB, free: 30.14 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04176/3.996, allocations: 22.55 MB / 1.12 GB, free: 9.91 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01978/4.016, allocations: 0.83 MB / 1.121 GB, free: 9.219 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003649/4.019, allocations: 0.8156 MB / 1.122 GB, free: 8.438 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1264 * Number of states: 0 () * Number of discrete variables: 138 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 (1698): * Single equations (assignments): 1691 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006198/4.026, allocations: 1.197 MB / 1.123 GB, free: 7.254 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003687/4.029, allocations: 1.003 MB / 1.124 GB, free: 6.238 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04199/4.071, allocations: 12.53 MB / 1.136 GB, free: 12.18 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001221/4.072, allocations: 59.84 kB / 1.136 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.57e-05/4.072, allocations: 20 kB / 1.136 GB, free: 12.11 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00015/4.072, allocations: 24.19 kB / 1.136 GB, free: 12.11 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5975/4.669, allocations: 28.63 MB / 1.164 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001208/4.67, allocations: 12.75 kB / 1.164 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01462/4.684, allocations: 1.066 MB / 1.165 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01998/4.704, allocations: 2.827 MB / 1.168 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002394/4.707, allocations: 105.1 kB / 1.168 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04686/4.754, allocations: 21.12 MB / 1.189 GB, free: 94.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-05/4.754, allocations: 13.56 kB / 1.189 GB, free: 94.84 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05128/4.805, allocations: 22.52 MB / 1.211 GB, free: 90.02 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004282/4.809, allocations: 1.091 MB / 1.212 GB, free: 89.93 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004527/4.814, allocations: 102.4 kB / 1.212 GB, free: 89.93 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01071/4.825, allocations: 371.2 kB / 1.212 GB, free: 89.93 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002122/4.827, allocations: 352.2 kB / 1.213 GB, free: 89.91 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009544/4.828, allocations: 145.2 kB / 1.213 GB, free: 89.91 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01972/4.848, allocations: 7.304 MB / 1.22 GB, free: 89.58 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.173e-06/4.848, allocations: 0 / 1.22 GB, free: 89.58 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02008/4.868, allocations: 2.798 MB / 1.223 GB, free: 89.58 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (451): * Single equations (assignments): 444 * 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 {(4,75.0%) 18,(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.05332/4.921, allocations: 23.7 MB / 1.246 GB, free: 78.86 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.03266/4.954, allocations: 14.04 MB / 1.26 GB, free: 74.31 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-05/4.954, allocations: 7.844 kB / 1.26 GB, free: 74.31 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01739/4.971, allocations: 6.088 MB / 1.266 GB, free: 71.98 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01196/4.983, allocations: 1.328 MB / 1.267 GB, free: 71.45 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09054/5.074, allocations: 28.15 MB / 1.294 GB, free: 50.32 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02099/5.095, allocations: 8.17 MB / 1.302 GB, free: 44.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01559/5.11, allocations: 5.883 MB / 1.308 GB, free: 39.02 MB / 0.5886 GB Notification: Performance of SimCode: time 1.623e-06/5.111, allocations: 0 / 1.308 GB, free: 39.02 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.622/13.73, allocations: 407.1 MB / 1.706 GB, free: 107.5 MB / 0.6355 GB