Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.438/2.438, allocations: 270 MB / 282.6 MB, free: 1.902 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.05e-05/4.059e-05, allocations: 4 kB / 347.1 MB, free: 3.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4064, allocations: 61.87 MB / 408.9 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1927/0.5991, allocations: 107 MB / 0.5038 GB, free: 15.54 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00029/0.5995, allocations: 79.94 kB / 0.5039 GB, free: 15.46 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9032/1.503, allocations: 132.4 MB / 0.6332 GB, free: 6.176 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.973e-06/1.503, allocations: 0 / 0.6332 GB, free: 6.176 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004569/1.503, allocations: 132 kB / 0.6333 GB, free: 6.047 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: 2214 * Number of variables: 2214 Notification: Performance of Generate backend data structure: time 0.02521/1.528, allocations: 6.34 MB / 0.6395 GB, free: 15.63 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/1.529, allocations: 12.03 kB / 0.6395 GB, free: 15.62 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005353/1.534, allocations: 1.112 MB / 0.6406 GB, free: 14.49 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07294/1.607, allocations: 9.426 MB / 0.6498 GB, free: 5.039 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03133/1.638, allocations: 8.088 MB / 0.6577 GB, free: 12.87 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007117/1.639, allocations: 492.9 kB / 0.6582 GB, free: 12.38 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003454/1.643, allocations: 0.6481 MB / 0.6588 GB, free: 11.73 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04842/1.691, allocations: 15.02 MB / 0.6735 GB, free: 11.27 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005175/1.692, allocations: 99.11 kB / 0.6736 GB, free: 11.17 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002813/1.694, allocations: 307.9 kB / 0.6738 GB, free: 10.87 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003297/1.698, allocations: 1.342 MB / 0.6752 GB, free: 9.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04002/1.738, allocations: 11.56 MB / 0.6864 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5865/2.324, allocations: 67.58 MB / 0.7524 GB, free: 57 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02136/2.346, allocations: 5.223 MB / 0.7575 GB, free: 56.31 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005062/2.351, allocations: 2.612 MB / 0.7601 GB, free: 56.27 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001716/2.351, allocations: 32.08 kB / 0.7601 GB, free: 56.27 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/2.351, allocations: 64.36 kB / 0.7602 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=190): time 6.572e-06/2.351, allocations: 3.891 kB / 0.7602 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=208): time 0.07452/2.426, allocations: 16.78 MB / 0.7766 GB, free: 51.15 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/2.426, allocations: 259 kB / 0.7768 GB, free: 50.86 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01517/2.441, allocations: 5.924 MB / 0.7826 GB, free: 50.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005142/2.441, allocations: 56.69 kB / 0.7827 GB, free: 50.32 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004027/2.446, allocations: 4.421 MB / 0.787 GB, free: 48.18 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001261/2.447, allocations: 0.8256 MB / 0.7878 GB, free: 47.73 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009534/2.448, allocations: 156.8 kB / 0.7879 GB, free: 47.73 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005984/2.448, allocations: 0.6394 MB / 0.7886 GB, free: 47.41 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006972/2.455, allocations: 2.399 MB / 0.7909 GB, free: 47.39 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00964/2.465, allocations: 7.284 MB / 0.798 GB, free: 41.02 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009272/2.474, allocations: 4.165 MB / 0.8021 GB, free: 40.99 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001898/2.475, allocations: 53.44 kB / 0.8021 GB, free: 40.99 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1015) (initialization): time 0.02563/2.5, allocations: 9.281 MB / 0.8112 GB, free: 39.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001409/2.501, allocations: 80.34 kB / 0.8113 GB, free: 39.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002539/2.501, allocations: 173.7 kB / 0.8114 GB, free: 39.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003105/2.504, allocations: 0.7946 MB / 0.8122 GB, free: 39.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01065/2.515, allocations: 1.754 MB / 0.8139 GB, free: 39.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/2.527, allocations: 8.281 MB / 0.822 GB, free: 33.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009226/2.537, allocations: 411.7 kB / 0.8224 GB, free: 33.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001752/2.539, allocations: 494.3 kB / 0.8229 GB, free: 33.04 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 801 * Number of states: 0 () * Number of discrete variables: 63 (worldForce2.arrow.arrowLine.twoHeadedArrow,worldForce2.arrow.headAtOrigin,worldForce2.color[3],worldForce2.color[2],worldForce2.color[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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.arrow.arrowLine.twoHeadedArrow,worldForce1.arrow.headAtOrigin,worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.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],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 (952): * Single equations (assignments): 946 * 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 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002216/2.541, allocations: 0.72 MB / 0.8236 GB, free: 32.45 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001412/2.542, allocations: 0.5542 MB / 0.8241 GB, free: 32.14 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009447/2.552, allocations: 3.359 MB / 0.8274 GB, free: 30.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-05/2.552, allocations: 23.03 kB / 0.8274 GB, free: 30.89 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-05/2.552, allocations: 3.906 kB / 0.8274 GB, free: 30.89 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-05/2.552, allocations: 13.98 kB / 0.8274 GB, free: 30.89 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02837/2.58, allocations: 9.502 MB / 0.8367 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-05/2.58, allocations: 4 kB / 0.8367 GB, free: 26.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002904/2.583, allocations: 300.5 kB / 0.837 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002507/2.586, allocations: 0.4945 MB / 0.8375 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004491/2.586, allocations: 42.17 kB / 0.8375 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/2.597, allocations: 7.387 MB / 0.8448 GB, free: 18.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/2.597, allocations: 2.734 kB / 0.8448 GB, free: 18.31 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0137/2.611, allocations: 6.179 MB / 0.8508 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002265/2.613, allocations: 0.612 MB / 0.8514 GB, free: 12.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002007/2.615, allocations: 39.7 kB / 0.8514 GB, free: 12.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00451/2.62, allocations: 102.5 kB / 0.8515 GB, free: 12.06 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007168/2.621, allocations: 124.8 kB / 0.8516 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002088/2.621, allocations: 58.56 kB / 0.8517 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01071/2.632, allocations: 4.207 MB / 0.8558 GB, free: 8.227 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.82e-07/2.632, allocations: 0 / 0.8558 GB, free: 8.227 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0106/2.642, allocations: 1.382 MB / 0.8572 GB, free: 6.848 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.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 (160): * Single equations (assignments): 154 * 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 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01564/2.658, allocations: 7.011 MB / 0.864 GB, free: 496 kB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0192/2.677, allocations: 6.111 MB / 0.87 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/2.677, allocations: 0 / 0.87 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004926/2.682, allocations: 1.898 MB / 0.8718 GB, free: 9.871 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006943/2.689, allocations: 0.7493 MB / 0.8726 GB, free: 9.242 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05258/2.742, allocations: 13.73 MB / 0.886 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01316/2.755, allocations: 4.778 MB / 0.8906 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009046/2.764, allocations: 3.092 MB / 0.8936 GB, free: 6.98 MB / 0.5417 GB Notification: Performance of SimCode: time 3.116e-06/2.764, allocations: 0 / 0.8936 GB, free: 6.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.722/8.487, allocations: 198.4 MB / 1.087 GB, free: 26.46 MB / 0.5573 GB