Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.04/2.04, allocations: 194.9 MB / 208.4 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.213e-05, allocations: 4 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09385, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4694/0.5633, allocations: 92.79 MB / 392.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00037/0.5637, allocations: 91.36 kB / 392.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3221/0.8859, allocations: 73.99 MB / 466.8 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.8859, allocations: 0 / 466.8 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003296/0.8863, allocations: 68 kB / 466.9 MB, free: 0.5391 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1323 * Number of variables: 1323 Notification: Performance of Generate backend data structure: time 0.01488/0.9012, allocations: 3.439 MB / 470.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/0.9013, allocations: 12.03 kB / 470.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003208/0.9045, allocations: 0.6671 MB / 471 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01853/0.9231, allocations: 2.257 MB / 473.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02116/0.9443, allocations: 3.905 MB / 477.2 MB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006156/0.945, allocations: 273.6 kB / 477.4 MB, free: 5.992 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002643/0.9476, allocations: 357.5 kB / 477.8 MB, free: 5.668 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0468/0.9945, allocations: 10.21 MB / 488 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002975/0.9949, allocations: 63.36 kB / 488.1 MB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001877/0.9968, allocations: 179 kB / 488.2 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003601/1, allocations: 0.9779 MB / 489.2 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03273/1.033, allocations: 8.309 MB / 497.5 MB, free: 1.066 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3703/1.404, allocations: 44.34 MB / 0.5292 GB, free: 68.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01722/1.421, allocations: 3.53 MB / 0.5326 GB, free: 67.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004151/1.425, allocations: 1.729 MB / 0.5343 GB, free: 67.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01731/1.442, allocations: 7.151 MB / 0.5413 GB, free: 65.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/1.442, allocations: 52.03 kB / 0.5413 GB, free: 65.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 5.971e-06/1.443, allocations: 3.625 kB / 0.5413 GB, free: 65.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.07678/1.519, allocations: 14.35 MB / 0.5554 GB, free: 63.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/1.519, allocations: 145.6 kB / 0.5555 GB, free: 62.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006707/1.526, allocations: 3.039 MB / 0.5585 GB, free: 62.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004542/1.527, allocations: 52.38 kB / 0.5585 GB, free: 62.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002299/1.529, allocations: 2.66 MB / 0.5611 GB, free: 61.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001015/1.53, allocations: 0.6122 MB / 0.5617 GB, free: 60.76 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000709/1.531, allocations: 104 kB / 0.5618 GB, free: 60.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003841/1.531, allocations: 0.5459 MB / 0.5623 GB, free: 60.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004739/1.536, allocations: 1.837 MB / 0.5641 GB, free: 60.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007037/1.543, allocations: 5.173 MB / 0.5692 GB, free: 56.06 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007068/1.55, allocations: 3.048 MB / 0.5722 GB, free: 56.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001553/1.55, allocations: 31.84 kB / 0.5722 GB, free: 56.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02393/1.574, allocations: 7.468 MB / 0.5795 GB, free: 54.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.973e-05/1.574, allocations: 59.72 kB / 0.5795 GB, free: 54.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/1.575, allocations: 121.7 kB / 0.5797 GB, free: 54.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00726/1.582, allocations: 1.31 MB / 0.5809 GB, free: 54.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008182/1.59, allocations: 1.253 MB / 0.5822 GB, free: 54.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0142/1.604, allocations: 6.105 MB / 0.5881 GB, free: 51.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007145/1.612, allocations: 354.8 kB / 0.5885 GB, free: 51.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001399/1.613, allocations: 337 kB / 0.5888 GB, free: 51.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * Number of states: 0 () * Number of discrete variables: 33 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (665): * Single equations (assignments): 661 * 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.001963/1.615, allocations: 0.5255 MB / 0.5893 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008495/1.616, allocations: 301 kB / 0.5896 GB, free: 50.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/1.628, allocations: 3.232 MB / 0.5927 GB, free: 49.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-05/1.628, allocations: 18.5 kB / 0.5928 GB, free: 49.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/1.628, allocations: 11.69 kB / 0.5928 GB, free: 49.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.325e-05/1.628, allocations: 7.562 kB / 0.5928 GB, free: 49.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02466/1.653, allocations: 7.311 MB / 0.5999 GB, free: 47.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.312e-05/1.653, allocations: 0 / 0.5999 GB, free: 47.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002442/1.655, allocations: 229.3 kB / 0.6001 GB, free: 46.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006781/1.662, allocations: 1.116 MB / 0.6012 GB, free: 46.17 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004254/1.663, allocations: 27.7 kB / 0.6013 GB, free: 46.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01337/1.676, allocations: 5.752 MB / 0.6069 GB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.676, allocations: 0 / 0.6069 GB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01579/1.692, allocations: 5.546 MB / 0.6123 GB, free: 36.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002446/1.694, allocations: 0.5751 MB / 0.6128 GB, free: 35.92 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00122/1.696, allocations: 24 kB / 0.6129 GB, free: 35.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003465/1.699, allocations: 107 kB / 0.613 GB, free: 35.83 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006056/1.7, allocations: 77.08 kB / 0.613 GB, free: 35.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/1.7, allocations: 56.47 kB / 0.6131 GB, free: 35.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005113/1.705, allocations: 2.086 MB / 0.6151 GB, free: 33.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.705, allocations: 0 / 0.6151 GB, free: 33.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006707/1.712, allocations: 0.9 MB / 0.616 GB, free: 33 MB / 410.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 (119): * Single equations (assignments): 115 * 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.01587/1.728, allocations: 6.366 MB / 0.6222 GB, free: 27.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01077/1.739, allocations: 4.389 MB / 0.6265 GB, free: 23.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/1.739, allocations: 4 kB / 0.6265 GB, free: 23.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003473/1.742, allocations: 1.451 MB / 0.6279 GB, free: 22.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002844/1.745, allocations: 314.8 kB / 0.6282 GB, free: 21.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02769/1.773, allocations: 8.102 MB / 0.6362 GB, free: 15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005388/1.778, allocations: 2.892 MB / 0.639 GB, free: 12.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003649/1.782, allocations: 1.595 MB / 0.6405 GB, free: 11.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.492e-06/1.782, allocations: 0 / 0.6405 GB, free: 11.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.486/6.268, allocations: 82.43 MB / 0.721 GB, free: 119 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat