Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.036/2.036, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.361e-05/4.371e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4633/0.5716, allocations: 93.92 MB / 436.6 MB, free: 476 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.5719, allocations: 85.52 kB / 436.6 MB, free: 432 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3972/0.9691, allocations: 84.1 MB / 0.5085 GB, free: 476 kB / 426.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.9692, allocations: 0 / 0.5085 GB, free: 476 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003008/0.9695, allocations: 68 kB / 0.5086 GB, free: 408 kB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01736/0.9869, allocations: 3.964 MB / 0.5125 GB, free: 12.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.9869, allocations: 8.031 kB / 0.5125 GB, free: 12.36 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003125/0.9901, allocations: 0.6634 MB / 0.5131 GB, free: 11.69 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05166/1.042, allocations: 6.621 MB / 0.5196 GB, free: 5.055 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3197/1.362, allocations: 5.508 MB / 0.525 GB, free: 102.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004954/1.362, allocations: 266.3 kB / 0.5252 GB, free: 102.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002305/1.364, allocations: 369.3 kB / 0.5256 GB, free: 102.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02824/1.393, allocations: 8.999 MB / 0.5344 GB, free: 99.72 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003426/1.393, allocations: 65.06 kB / 0.5344 GB, free: 99.72 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001685/1.395, allocations: 173.3 kB / 0.5346 GB, free: 99.72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002402/1.397, allocations: 0.8905 MB / 0.5355 GB, free: 99.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02489/1.422, allocations: 7.329 MB / 0.5426 GB, free: 99.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05927/1.481, allocations: 42.24 MB / 0.5839 GB, free: 71.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01357/1.495, allocations: 3.718 MB / 0.5875 GB, free: 69.92 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003597/1.499, allocations: 1.937 MB / 0.5894 GB, free: 69.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005246/1.499, allocations: 337.8 kB / 0.5897 GB, free: 68.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/1.499, allocations: 50.88 kB / 0.5898 GB, free: 68.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 5.18e-06/1.499, allocations: 0 / 0.5898 GB, free: 68.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.07757/1.577, allocations: 17.1 MB / 0.6065 GB, free: 63.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/1.577, allocations: 254.3 kB / 0.6067 GB, free: 62.74 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007699/1.585, allocations: 3.412 MB / 0.61 GB, free: 61.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005323/1.585, allocations: 52.89 kB / 0.6101 GB, free: 61.47 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002502/1.588, allocations: 2.73 MB / 0.6127 GB, free: 59.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001244/1.589, allocations: 0.724 MB / 0.6135 GB, free: 58.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006672/1.59, allocations: 108.4 kB / 0.6136 GB, free: 58.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003711/1.59, allocations: 0.5387 MB / 0.6141 GB, free: 58.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004973/1.595, allocations: 2.042 MB / 0.6161 GB, free: 57.78 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00726/1.603, allocations: 5.248 MB / 0.6212 GB, free: 52.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00724/1.61, allocations: 3.274 MB / 0.6244 GB, free: 50.38 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001075/1.61, allocations: 32 kB / 0.6244 GB, free: 50.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.0233/1.633, allocations: 7.874 MB / 0.6321 GB, free: 43.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.015e-05/1.634, allocations: 58.48 kB / 0.6322 GB, free: 43.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001503/1.634, allocations: 112 kB / 0.6323 GB, free: 43.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006883/1.641, allocations: 1.38 MB / 0.6336 GB, free: 42.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007486/1.648, allocations: 1.227 MB / 0.6348 GB, free: 41.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01751/1.666, allocations: 8.403 MB / 0.643 GB, free: 34.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006445/1.672, allocations: 324.2 kB / 0.6433 GB, free: 33.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001316/1.674, allocations: 332.1 kB / 0.6437 GB, free: 33.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.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 (653): * Single equations (assignments): 649 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001186/1.675, allocations: 0.5205 MB / 0.6442 GB, free: 32.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009184/1.676, allocations: 355.4 kB / 0.6445 GB, free: 32.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/1.688, allocations: 3.888 MB / 0.6483 GB, free: 29.47 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.782e-05/1.688, allocations: 20.86 kB / 0.6483 GB, free: 29.45 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/1.688, allocations: 8 kB / 0.6483 GB, free: 29.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-05/1.688, allocations: 9.75 kB / 0.6483 GB, free: 29.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02477/1.713, allocations: 8.877 MB / 0.657 GB, free: 22.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.038e-05/1.713, allocations: 4 kB / 0.657 GB, free: 22.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002564/1.715, allocations: 261.3 kB / 0.6573 GB, free: 22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006304/1.722, allocations: 1.213 MB / 0.6584 GB, free: 21.14 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004523/1.722, allocations: 35.42 kB / 0.6585 GB, free: 21.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01619/1.738, allocations: 7.547 MB / 0.6659 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/1.738, allocations: 8.438 kB / 0.6659 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01686/1.755, allocations: 6.771 MB / 0.6725 GB, free: 7.895 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/1.757, allocations: 404.4 kB / 0.6729 GB, free: 7.477 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009596/1.758, allocations: 28 kB / 0.6729 GB, free: 7.449 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002857/1.76, allocations: 118.3 kB / 0.673 GB, free: 7.336 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005505/1.761, allocations: 117 kB / 0.6731 GB, free: 7.223 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002003/1.761, allocations: 47.94 kB / 0.6732 GB, free: 7.176 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005709/1.767, allocations: 2.412 MB / 0.6755 GB, free: 4.742 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.767, allocations: 0 / 0.6755 GB, free: 4.742 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007114/1.774, allocations: 1.003 MB / 0.6765 GB, free: 3.746 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (135): * Single equations (assignments): 131 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01883/1.793, allocations: 7.698 MB / 0.684 GB, free: 11.99 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01331/1.806, allocations: 4.938 MB / 0.6888 GB, free: 7.066 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/1.806, allocations: 0 / 0.6888 GB, free: 7.066 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005905/1.812, allocations: 1.924 MB / 0.6907 GB, free: 5.137 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004283/1.817, allocations: 447.2 kB / 0.6911 GB, free: 4.707 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3351/2.152, allocations: 9.232 MB / 0.7002 GB, free: 107 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008215/2.16, allocations: 3.166 MB / 0.7032 GB, free: 106.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00469/2.165, allocations: 1.802 MB / 0.705 GB, free: 106.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.663e-06/2.165, allocations: 4.656 kB / 0.705 GB, free: 106.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.255/6.42, allocations: 93.72 MB / 0.7965 GB, free: 63.06 MB / 458.7 MB