Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.002/2.002, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.665e-05/3.675e-05, allocations: 7.094 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 44.51 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4442/0.5472, allocations: 84.71 MB / 384.6 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.5475, allocations: 85.34 kB / 384.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2414/0.7889, allocations: 56.75 MB / 441.5 MB, free: 5.848 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.789, allocations: 4 kB / 441.5 MB, free: 5.844 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001454/0.7891, allocations: 44 kB / 441.5 MB, free: 5.801 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 931 * Number of variables: 931 Notification: Performance of Generate backend data structure: time 0.01041/0.7996, allocations: 2.532 MB / 444.1 MB, free: 3.418 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/0.7996, allocations: 8.031 kB / 444.1 MB, free: 3.41 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002063/0.8017, allocations: 486.7 kB / 444.5 MB, free: 3.117 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01608/0.8178, allocations: 1.97 MB / 446.5 MB, free: 1.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01376/0.8316, allocations: 3.259 MB / 449.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002954/0.832, allocations: 188.9 kB / 450 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001577/0.8336, allocations: 232.2 kB / 450.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01999/0.8536, allocations: 6.718 MB / 456.9 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002196/0.8539, allocations: 51.53 kB / 456.9 MB, free: 7.223 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001287/0.8552, allocations: 117.4 kB / 457.1 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001938/0.8572, allocations: 0.7185 MB / 457.8 MB, free: 6.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.8748, allocations: 5.693 MB / 463.5 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06599/0.9409, allocations: 33.3 MB / 496.8 MB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01072/0.9517, allocations: 2.278 MB / 499 MB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00337/0.9551, allocations: 1.004 MB / 0.4883 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001474/0.9553, allocations: 23.03 kB / 0.4884 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/0.9554, allocations: 38.56 kB / 0.4884 GB, free: 10.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=98): time 6.192e-06/0.9554, allocations: 0 / 0.4884 GB, free: 10.88 MB / 394.7 MB Notification: Performance of matching and sorting (n=106): time 0.03569/0.9911, allocations: 7.014 MB / 0.4952 GB, free: 3.742 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.9913, allocations: 148.4 kB / 0.4954 GB, free: 3.566 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006475/0.9978, allocations: 2.485 MB / 0.4978 GB, free: 1.062 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003016/0.9981, allocations: 33.7 kB / 0.4978 GB, free: 1.023 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002491/1.001, allocations: 2.062 MB / 0.4999 GB, free: 14.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008283/1.002, allocations: 441.8 kB / 0.5003 GB, free: 14.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000529/1.002, allocations: 84 kB / 0.5004 GB, free: 14.46 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004609/1.003, allocations: 0.4925 MB / 0.5008 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004203/1.007, allocations: 1.352 MB / 0.5022 GB, free: 12.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007367/1.014, allocations: 4.139 MB / 0.5062 GB, free: 7.043 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006289/1.021, allocations: 2.354 MB / 0.5085 GB, free: 4.688 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.795e-05/1.021, allocations: 32 kB / 0.5085 GB, free: 4.656 MB / 410.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.3139/1.335, allocations: 5.864 MB / 0.5143 GB, free: 107.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001141/1.335, allocations: 49.38 kB / 0.5143 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001885/1.335, allocations: 98.81 kB / 0.5144 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004313/1.339, allocations: 0.8036 MB / 0.5152 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006175/1.346, allocations: 0.9958 MB / 0.5162 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009077/1.355, allocations: 4.092 MB / 0.5201 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005489/1.36, allocations: 284.9 kB / 0.5204 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001206/1.361, allocations: 272.4 kB / 0.5207 GB, free: 106.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 15 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (528): * Single equations (assignments): 524 * 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.001393/1.363, allocations: 442.1 kB / 0.5211 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006556/1.364, allocations: 230.8 kB / 0.5213 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007172/1.371, allocations: 1.838 MB / 0.5231 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.082e-05/1.371, allocations: 14.78 kB / 0.5231 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/1.371, allocations: 11.84 kB / 0.5231 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.061e-05/1.371, allocations: 7.688 kB / 0.5231 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01588/1.387, allocations: 4.784 MB / 0.5278 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/1.387, allocations: 0 / 0.5278 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/1.388, allocations: 144.7 kB / 0.528 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003627/1.392, allocations: 0.6405 MB / 0.5286 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002624/1.392, allocations: 19.22 kB / 0.5286 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007334/1.4, allocations: 3.625 MB / 0.5321 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.4, allocations: 0 / 0.5321 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00945/1.409, allocations: 3.746 MB / 0.5358 GB, free: 103.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/1.411, allocations: 445.7 kB / 0.5362 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006077/1.411, allocations: 18.47 kB / 0.5362 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001952/1.413, allocations: 74.56 kB / 0.5363 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003041/1.414, allocations: 54.78 kB / 0.5364 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/1.414, allocations: 33.78 kB / 0.5364 GB, free: 103.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004002/1.418, allocations: 1.709 MB / 0.5381 GB, free: 103.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.92e-07/1.418, allocations: 1.812 kB / 0.5381 GB, free: 103.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004939/1.423, allocations: 0.6447 MB / 0.5387 GB, free: 103.4 MB / 410.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.009715/1.432, allocations: 4.688 MB / 0.5433 GB, free: 101.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007617/1.44, allocations: 3.323 MB / 0.5465 GB, free: 101.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.44, allocations: 0 / 0.5465 GB, free: 101.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001996/1.442, allocations: 0.9266 MB / 0.5474 GB, free: 101.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/1.444, allocations: 242.5 kB / 0.5477 GB, free: 101 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/1.462, allocations: 5.523 MB / 0.5531 GB, free: 98.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003676/1.466, allocations: 2.236 MB / 0.5552 GB, free: 97.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002497/1.468, allocations: 1.077 MB / 0.5563 GB, free: 97.13 MB / 410.7 MB Notification: Performance of SimCode: time 1.453e-06/1.468, allocations: 0 / 0.5563 GB, free: 97.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.751/5.219, allocations: 60.67 MB / 0.6155 GB, free: 52.96 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat