Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.97e-05/3.974e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4764/0.5878, allocations: 92.03 MB / 434.7 MB, free: 2.297 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/0.5882, allocations: 87.25 kB / 434.8 MB, free: 2.254 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2711/0.8593, allocations: 58.35 MB / 493.1 MB, free: 12.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.8593, allocations: 3.938 kB / 493.1 MB, free: 12.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001548/0.8595, allocations: 44 kB / 493.2 MB, free: 12.11 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01032/0.8698, allocations: 2.525 MB / 495.7 MB, free: 9.527 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.984e-05/0.8699, allocations: 19.97 kB / 495.7 MB, free: 9.508 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002204/0.8721, allocations: 485.8 kB / 496.2 MB, free: 9.023 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0162/0.8884, allocations: 1.974 MB / 498.1 MB, free: 7.043 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01415/0.9026, allocations: 3.138 MB / 0.4895 GB, free: 3.855 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003668/0.903, allocations: 176.6 kB / 0.4897 GB, free: 3.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001804/0.9048, allocations: 231.9 kB / 0.4899 GB, free: 3.453 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02631/0.9312, allocations: 6.711 MB / 0.4965 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002651/0.9315, allocations: 47.53 kB / 0.4965 GB, free: 11.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001759/0.9333, allocations: 127.9 kB / 0.4966 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002728/0.9361, allocations: 0.7188 MB / 0.4973 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0219/0.958, allocations: 5.559 MB / 0.5028 GB, free: 5.484 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4065/1.365, allocations: 33.37 MB / 0.5354 GB, free: 94.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007538/1.372, allocations: 2.271 MB / 0.5376 GB, free: 93.49 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002391/1.375, allocations: 1.016 MB / 0.5386 GB, free: 93.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/1.375, allocations: 16.91 kB / 0.5386 GB, free: 93.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/1.375, allocations: 44.38 kB / 0.5386 GB, free: 93.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=98): time 4.619e-06/1.375, allocations: 0 / 0.5386 GB, free: 93.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=106): time 0.02923/1.404, allocations: 6.972 MB / 0.5454 GB, free: 91.57 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/1.404, allocations: 143.8 kB / 0.5456 GB, free: 91.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005851/1.41, allocations: 2.481 MB / 0.548 GB, free: 91.13 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003098/1.41, allocations: 38.48 kB / 0.548 GB, free: 91.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001633/1.412, allocations: 2.065 MB / 0.5501 GB, free: 90.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000726/1.413, allocations: 440.3 kB / 0.5505 GB, free: 89.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003223/1.413, allocations: 88.03 kB / 0.5506 GB, free: 89.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003155/1.413, allocations: 0.4963 MB / 0.551 GB, free: 89.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003763/1.417, allocations: 1.356 MB / 0.5524 GB, free: 89.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005598/1.423, allocations: 4.134 MB / 0.5564 GB, free: 85.83 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005465/1.428, allocations: 2.363 MB / 0.5587 GB, free: 85.81 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/1.429, allocations: 32.38 kB / 0.5587 GB, free: 85.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.01649/1.445, allocations: 5.62 MB / 0.5642 GB, free: 85.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.822e-05/1.445, allocations: 48.34 kB / 0.5643 GB, free: 85.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000143/1.445, allocations: 100.8 kB / 0.5644 GB, free: 85.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003941/1.449, allocations: 0.8068 MB / 0.5652 GB, free: 85.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005907/1.455, allocations: 0.9969 MB / 0.5661 GB, free: 85.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008179/1.464, allocations: 4.1 MB / 0.5701 GB, free: 83.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005384/1.469, allocations: 288.2 kB / 0.5704 GB, free: 83.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001/1.47, allocations: 277.1 kB / 0.5707 GB, free: 83.29 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 457 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (531): * Single equations (assignments): 527 * 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,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001214/1.471, allocations: 443.5 kB / 0.5711 GB, free: 82.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000712/1.472, allocations: 230.9 kB / 0.5713 GB, free: 82.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006361/1.478, allocations: 1.841 MB / 0.5731 GB, free: 82.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.047e-05/1.478, allocations: 14.75 kB / 0.5731 GB, free: 82.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.851e-05/1.478, allocations: 3.781 kB / 0.5731 GB, free: 82.25 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-05/1.478, allocations: 6.938 kB / 0.5731 GB, free: 82.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01975/1.498, allocations: 4.794 MB / 0.5778 GB, free: 80.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.342e-05/1.498, allocations: 5.125 kB / 0.5778 GB, free: 80.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/1.5, allocations: 135.3 kB / 0.578 GB, free: 80.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0048/1.505, allocations: 0.6442 MB / 0.5786 GB, free: 80.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00021/1.505, allocations: 15.75 kB / 0.5786 GB, free: 80.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01024/1.515, allocations: 3.622 MB / 0.5821 GB, free: 78.44 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.515, allocations: 3.25 kB / 0.5821 GB, free: 78.44 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/1.528, allocations: 3.757 MB / 0.5858 GB, free: 76.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/1.529, allocations: 301.1 kB / 0.5861 GB, free: 76.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006116/1.53, allocations: 28.88 kB / 0.5861 GB, free: 76.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002514/1.533, allocations: 70.66 kB / 0.5862 GB, free: 76.63 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003108/1.533, allocations: 50.72 kB / 0.5862 GB, free: 76.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/1.533, allocations: 27.62 kB / 0.5863 GB, free: 76.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004753/1.538, allocations: 1.72 MB / 0.5879 GB, free: 75.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.71e-07/1.538, allocations: 0 / 0.5879 GB, free: 75.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007527/1.545, allocations: 0.6505 MB / 0.5886 GB, free: 75.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01261/1.558, allocations: 4.699 MB / 0.5932 GB, free: 73.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009928/1.568, allocations: 3.186 MB / 0.5963 GB, free: 72.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/1.568, allocations: 192 / 0.5963 GB, free: 72.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002758/1.571, allocations: 0.9122 MB / 0.5972 GB, free: 71.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/1.574, allocations: 239.1 kB / 0.5974 GB, free: 71.71 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02198/1.596, allocations: 5.534 MB / 0.6028 GB, free: 66.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004525/1.601, allocations: 2.235 MB / 0.605 GB, free: 65.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003063/1.604, allocations: 1.086 MB / 0.606 GB, free: 64.11 MB / 442.7 MB Notification: Performance of SimCode: time 1.944e-06/1.604, allocations: 0 / 0.606 GB, free: 64.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.666/5.27, allocations: 60.33 MB / 0.665 GB, free: 7.922 MB / 442.7 MB