Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.631e-05/3.636e-05, allocations: 5.406 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5555/0.6671, allocations: 101.5 MB / 444.1 MB, free: 8.957 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/0.6674, allocations: 90.83 kB / 444.2 MB, free: 8.914 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.36/1.027, allocations: 76.56 MB / 0.5085 GB, free: 476 kB / 426.7 MB Notification: Performance of FrontEnd: time 2.926e-06/1.028, allocations: 0 / 0.5085 GB, free: 476 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003315/1.028, 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.03404/1.062, allocations: 3.488 MB / 0.512 GB, free: 12.85 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/1.062, allocations: 12.03 kB / 0.512 GB, free: 12.84 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01604/1.078, allocations: 0.6802 MB / 0.5127 GB, free: 12.15 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02786/1.106, allocations: 2.265 MB / 0.5149 GB, free: 9.875 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01602/1.122, allocations: 3.792 MB / 0.5186 GB, free: 6.031 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004452/1.123, allocations: 283.3 kB / 0.5189 GB, free: 5.754 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002159/1.125, allocations: 371.8 kB / 0.5192 GB, free: 5.391 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3441/1.469, allocations: 10.33 MB / 0.5293 GB, free: 101.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003044/1.469, allocations: 58.58 kB / 0.5294 GB, free: 101.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001646/1.471, allocations: 180.2 kB / 0.5295 GB, free: 101.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003731/1.475, allocations: 0.9966 MB / 0.5305 GB, free: 101.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04253/1.517, allocations: 8.418 MB / 0.5387 GB, free: 101.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06221/1.58, allocations: 44.72 MB / 0.5824 GB, free: 72.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01596/1.596, allocations: 3.831 MB / 0.5862 GB, free: 70.85 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003697/1.599, allocations: 1.757 MB / 0.5879 GB, free: 70.12 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0171/1.617, allocations: 7.628 MB / 0.5953 GB, free: 66.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/1.617, allocations: 54.97 kB / 0.5954 GB, free: 65.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=150): time 5.59e-06/1.617, allocations: 0 / 0.5954 GB, free: 65.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=166): time 0.07408/1.691, allocations: 14.65 MB / 0.6097 GB, free: 61.44 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/1.691, allocations: 154.1 kB / 0.6098 GB, free: 61.28 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005856/1.697, allocations: 3.042 MB / 0.6128 GB, free: 60.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000414/1.697, allocations: 50.55 kB / 0.6128 GB, free: 60.15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001967/1.699, allocations: 2.694 MB / 0.6155 GB, free: 58.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009675/1.7, allocations: 0.6524 MB / 0.6161 GB, free: 57.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005488/1.701, allocations: 105.6 kB / 0.6162 GB, free: 57.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003476/1.701, allocations: 0.5385 MB / 0.6167 GB, free: 57.07 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00434/1.705, allocations: 1.874 MB / 0.6186 GB, free: 56.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006502/1.712, allocations: 5.223 MB / 0.6237 GB, free: 51.17 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00677/1.719, allocations: 3.088 MB / 0.6267 GB, free: 49.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001016/1.719, allocations: 36 kB / 0.6267 GB, free: 49.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.02311/1.742, allocations: 7.557 MB / 0.6341 GB, free: 43.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.074e-05/1.742, allocations: 60 kB / 0.6342 GB, free: 43.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001429/1.742, allocations: 121.4 kB / 0.6343 GB, free: 43.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007146/1.75, allocations: 1.304 MB / 0.6356 GB, free: 42.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007741/1.757, allocations: 1.27 MB / 0.6368 GB, free: 41.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01369/1.771, allocations: 6.122 MB / 0.6428 GB, free: 35.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006909/1.778, allocations: 340.3 kB / 0.6431 GB, free: 35.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001357/1.779, allocations: 338.8 kB / 0.6434 GB, free: 35.28 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (679): * Single equations (assignments): 675 * 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 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001353/1.781, allocations: 0.5364 MB / 0.6439 GB, free: 34.74 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008089/1.782, allocations: 308 kB / 0.6442 GB, free: 34.43 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01157/1.793, allocations: 3.317 MB / 0.6475 GB, free: 31.89 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.994e-05/1.793, allocations: 16.86 kB / 0.6475 GB, free: 31.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/1.793, allocations: 4 kB / 0.6475 GB, free: 31.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.337e-05/1.793, allocations: 11.73 kB / 0.6475 GB, free: 31.86 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02437/1.818, allocations: 7.561 MB / 0.6549 GB, free: 25.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-05/1.818, allocations: 4 kB / 0.6549 GB, free: 25.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002447/1.82, allocations: 240.5 kB / 0.6551 GB, free: 25.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007129/1.828, allocations: 1.121 MB / 0.6562 GB, free: 24.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004661/1.828, allocations: 24.62 kB / 0.6562 GB, free: 24.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01954/1.848, allocations: 5.767 MB / 0.6619 GB, free: 19.28 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/1.848, allocations: 4.031 kB / 0.6619 GB, free: 19.28 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02293/1.871, allocations: 5.684 MB / 0.6674 GB, free: 13.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/1.872, allocations: 361 kB / 0.6678 GB, free: 13.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001492/1.874, allocations: 20 kB / 0.6678 GB, free: 13.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004537/1.878, allocations: 116.6 kB / 0.6679 GB, free: 13.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007669/1.879, allocations: 84.88 kB / 0.668 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002784/1.879, allocations: 45.56 kB / 0.668 GB, free: 12.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006978/1.886, allocations: 2.09 MB / 0.6701 GB, free: 10.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.493e-06/1.886, allocations: 0 / 0.6701 GB, free: 10.83 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009802/1.896, allocations: 0.9216 MB / 0.671 GB, free: 9.914 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01929/1.916, allocations: 6.526 MB / 0.6773 GB, free: 3.355 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01142/1.927, allocations: 4.472 MB / 0.6817 GB, free: 14.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.927, allocations: 0 / 0.6817 GB, free: 14.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004753/1.932, allocations: 1.486 MB / 0.6832 GB, free: 13.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003197/1.935, allocations: 334.7 kB / 0.6835 GB, free: 13.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03157/1.967, allocations: 8.147 MB / 0.6914 GB, free: 4.898 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006742/1.974, allocations: 2.929 MB / 0.6943 GB, free: 1.945 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004376/1.978, allocations: 1.632 MB / 0.6959 GB, free: 320 kB / 458.7 MB Notification: Performance of SimCode: time 1.492e-06/1.978, allocations: 0 / 0.6959 GB, free: 320 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.479/6.457, allocations: 83.92 MB / 0.7778 GB, free: 79.4 MB / 458.7 MB