Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.685/1.685, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.206e-05/3.237e-05, allocations: 0 / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2805, allocations: 38.77 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.142/0.4226, allocations: 78.98 MB / 342.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.423, allocations: 79.95 kB / 342.9 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4934/0.9164, allocations: 56.74 MB / 399.6 MB, free: 73.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.9164, allocations: 3.938 kB / 399.6 MB, free: 73.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001257/0.9166, allocations: 48 kB / 399.7 MB, free: 73.51 MB / 314.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.008744/0.9253, allocations: 2.527 MB / 402.2 MB, free: 70.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.9254, allocations: 16.03 kB / 402.2 MB, free: 70.93 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00151/0.9269, allocations: 483.5 kB / 402.7 MB, free: 70.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01506/0.942, allocations: 1.966 MB / 404.7 MB, free: 68.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/0.9542, allocations: 3.259 MB / 407.9 MB, free: 65.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.9544, allocations: 187.9 kB / 408.1 MB, free: 65.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001356/0.9558, allocations: 240.8 kB / 408.3 MB, free: 64.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/0.9717, allocations: 6.728 MB / 415.1 MB, free: 57.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001557/0.9719, allocations: 35.69 kB / 415.1 MB, free: 57.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007258/0.9726, allocations: 130.4 kB / 415.2 MB, free: 57.24 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001501/0.9742, allocations: 0.7148 MB / 415.9 MB, free: 56.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0149/0.9891, allocations: 5.678 MB / 421.6 MB, free: 50.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04308/1.032, allocations: 33.29 MB / 454.9 MB, free: 16.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006929/1.039, allocations: 2.291 MB / 457.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/1.041, allocations: 1.003 MB / 458.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.144e-05/1.041, allocations: 16.61 kB / 458.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/1.041, allocations: 54.38 kB / 458.3 MB, free: 12.9 MB / 314.7 MB Notification: Performance of pre-optimization done (n=98): time 4.298e-06/1.041, allocations: 3.984 kB / 458.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.02593/1.067, allocations: 7.005 MB / 465.3 MB, free: 5.762 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/1.067, allocations: 136.5 kB / 465.4 MB, free: 5.598 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004831/1.072, allocations: 2.481 MB / 467.9 MB, free: 3.098 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003021/1.073, allocations: 41.7 kB / 467.9 MB, free: 3.051 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001447/1.074, allocations: 2.054 MB / 470 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006026/1.075, allocations: 446.6 kB / 470.4 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003621/1.075, allocations: 80 kB / 470.5 MB, free: 460 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003015/1.075, allocations: 0.4887 MB / 471 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003776/1.079, allocations: 1.352 MB / 472.3 MB, free: 14.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006711/1.086, allocations: 4.143 MB / 476.5 MB, free: 9.027 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005985/1.092, allocations: 2.352 MB / 478.8 MB, free: 6.676 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.996e-05/1.092, allocations: 28 kB / 478.9 MB, free: 6.648 MB / 330.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.01889/1.111, allocations: 5.872 MB / 484.7 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/1.111, allocations: 48 kB / 484.8 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001567/1.111, allocations: 100 kB / 484.9 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004383/1.116, allocations: 0.8091 MB / 485.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006287/1.122, allocations: 0.9942 MB / 486.7 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009653/1.132, allocations: 4.098 MB / 490.8 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005183/1.137, allocations: 279.6 kB / 491.1 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001016/1.138, allocations: 272 kB / 491.3 MB, free: 10.04 MB / 346.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.0009132/1.139, allocations: 446.4 kB / 491.8 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006567/1.14, allocations: 229 kB / 492 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006917/1.147, allocations: 1.849 MB / 493.8 MB, free: 7.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.469e-05/1.147, allocations: 12 kB / 493.8 MB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/1.147, allocations: 4 kB / 493.8 MB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-05/1.147, allocations: 7.984 kB / 493.9 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0161/1.163, allocations: 4.805 MB / 498.7 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/1.163, allocations: 4 kB / 498.7 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001346/1.164, allocations: 139.8 kB / 498.8 MB, free: 2.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00386/1.168, allocations: 0.637 MB / 499.4 MB, free: 1.816 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002572/1.168, allocations: 19.94 kB / 499.5 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2968/1.465, allocations: 3.625 MB / 0.4913 GB, free: 92.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.465, allocations: 0.6562 kB / 0.4913 GB, free: 92.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009152/1.475, allocations: 3.752 MB / 0.495 GB, free: 92.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/1.476, allocations: 443.5 kB / 0.4954 GB, free: 91.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004862/1.477, allocations: 18.69 kB / 0.4954 GB, free: 91.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001817/1.478, allocations: 66.08 kB / 0.4955 GB, free: 91.99 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/1.479, allocations: 57.5 kB / 0.4955 GB, free: 91.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/1.479, allocations: 34.06 kB / 0.4955 GB, free: 91.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003986/1.483, allocations: 1.713 MB / 0.4972 GB, free: 91.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.483, allocations: 0 / 0.4972 GB, free: 91.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004424/1.487, allocations: 0.6472 MB / 0.4979 GB, free: 91.83 MB / 346.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.009516/1.497, allocations: 4.69 MB / 0.5024 GB, free: 90.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007176/1.504, allocations: 3.324 MB / 0.5057 GB, free: 90.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.504, allocations: 0 / 0.5057 GB, free: 90.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001889/1.506, allocations: 0.9113 MB / 0.5066 GB, free: 89.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001935/1.508, allocations: 242.8 kB / 0.5068 GB, free: 89.85 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/1.524, allocations: 5.526 MB / 0.5122 GB, free: 87.83 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003387/1.528, allocations: 2.24 MB / 0.5144 GB, free: 86.81 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002404/1.53, allocations: 1.072 MB / 0.5154 GB, free: 86 MB / 346.7 MB Notification: Performance of SimCode: time 1.583e-06/1.53, allocations: 0 / 0.5154 GB, free: 86 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.75/5.28, allocations: 60.67 MB / 0.5747 GB, free: 35.23 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat