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 1.98/1.98, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.016e-05/4.031e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1225, allocations: 44.51 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4549/0.5775, allocations: 92.79 MB / 392.7 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.5779, allocations: 89.38 kB / 392.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3087/0.8866, allocations: 73.98 MB / 466.8 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.8866, allocations: 0 / 466.8 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002249/0.8869, allocations: 72 kB / 466.9 MB, free: 0.6562 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.0143/0.9012, allocations: 3.434 MB / 470.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.9013, allocations: 8.031 kB / 470.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00303/0.9043, allocations: 0.6668 MB / 471 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01815/0.9225, allocations: 2.261 MB / 473.2 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01625/0.9388, allocations: 3.892 MB / 477.1 MB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004481/0.9393, allocations: 272.8 kB / 477.4 MB, free: 6.125 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002232/0.9415, allocations: 374.8 kB / 477.8 MB, free: 5.785 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03609/0.9776, allocations: 10.25 MB / 488 MB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000236/0.9779, allocations: 59.42 kB / 488.1 MB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001165/0.9791, allocations: 175.4 kB / 488.2 MB, free: 10.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002491/0.9816, allocations: 0.9818 MB / 489.2 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03074/1.012, allocations: 8.473 MB / 497.7 MB, free: 0.9805 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3735/1.386, allocations: 44.34 MB / 0.5293 GB, free: 67.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01689/1.403, allocations: 3.552 MB / 0.5328 GB, free: 66.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004144/1.407, allocations: 1.73 MB / 0.5345 GB, free: 66.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01812/1.425, allocations: 7.149 MB / 0.5415 GB, free: 64.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.047e-05/1.425, allocations: 50.97 kB / 0.5415 GB, free: 64.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 5.14e-06/1.425, allocations: 0 / 0.5415 GB, free: 64.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.07554/1.501, allocations: 14.35 MB / 0.5555 GB, free: 62.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.692e-05/1.501, allocations: 150 kB / 0.5557 GB, free: 62.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006917/1.508, allocations: 3.037 MB / 0.5586 GB, free: 61.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004426/1.508, allocations: 50.03 kB / 0.5587 GB, free: 61.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002151/1.511, allocations: 2.669 MB / 0.5613 GB, free: 60.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000985/1.512, allocations: 0.6078 MB / 0.5619 GB, free: 59.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005908/1.512, allocations: 106.6 kB / 0.562 GB, free: 59.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003412/1.513, allocations: 0.5334 MB / 0.5625 GB, free: 59.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004424/1.517, allocations: 1.836 MB / 0.5643 GB, free: 59.51 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006757/1.524, allocations: 5.21 MB / 0.5694 GB, free: 55.13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006594/1.53, allocations: 3.05 MB / 0.5724 GB, free: 55.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/1.531, allocations: 37.97 kB / 0.5724 GB, free: 55.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.0232/1.554, allocations: 7.796 MB / 0.58 GB, free: 53.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/1.554, allocations: 60.42 kB / 0.5801 GB, free: 53.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001544/1.554, allocations: 118.6 kB / 0.5802 GB, free: 53.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007048/1.561, allocations: 1.31 MB / 0.5815 GB, free: 53.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007723/1.569, allocations: 1.252 MB / 0.5827 GB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01383/1.583, allocations: 6.105 MB / 0.5887 GB, free: 50.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006654/1.59, allocations: 360.8 kB / 0.589 GB, free: 50.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001321/1.591, allocations: 331.8 kB / 0.5893 GB, free: 50.12 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.00126/1.592, allocations: 0.5214 MB / 0.5898 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000784/1.593, allocations: 298.1 kB / 0.5901 GB, free: 49.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01139/1.604, allocations: 3.239 MB / 0.5933 GB, free: 48.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.448e-05/1.605, allocations: 25.22 kB / 0.5933 GB, free: 48.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/1.605, allocations: 3.75 kB / 0.5933 GB, free: 48.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.106e-05/1.605, allocations: 7.078 kB / 0.5933 GB, free: 48.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02478/1.629, allocations: 7.314 MB / 0.6004 GB, free: 45.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.629e-05/1.629, allocations: 4 kB / 0.6005 GB, free: 45.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002448/1.632, allocations: 230 kB / 0.6007 GB, free: 45.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006733/1.639, allocations: 1.126 MB / 0.6018 GB, free: 44.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004303/1.639, allocations: 28 kB / 0.6018 GB, free: 44.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/1.652, allocations: 5.731 MB / 0.6074 GB, free: 39.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.652, allocations: 4.031 kB / 0.6074 GB, free: 39.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01582/1.668, allocations: 5.546 MB / 0.6128 GB, free: 35.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002254/1.671, allocations: 0.5719 MB / 0.6134 GB, free: 34.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009104/1.672, allocations: 24.69 kB / 0.6134 GB, free: 34.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003046/1.675, allocations: 113.4 kB / 0.6135 GB, free: 34.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005379/1.675, allocations: 87.08 kB / 0.6136 GB, free: 34.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001833/1.675, allocations: 43.94 kB / 0.6136 GB, free: 34.42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0055/1.681, allocations: 2.091 MB / 0.6157 GB, free: 32.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.082e-06/1.681, allocations: 0 / 0.6157 GB, free: 32.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006819/1.688, allocations: 0.8926 MB / 0.6165 GB, free: 31.69 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.01676/1.705, allocations: 6.377 MB / 0.6228 GB, free: 26.17 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01123/1.716, allocations: 4.568 MB / 0.6272 GB, free: 22.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/1.716, allocations: 0 / 0.6272 GB, free: 22.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003686/1.72, allocations: 1.455 MB / 0.6287 GB, free: 20.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/1.723, allocations: 318.5 kB / 0.629 GB, free: 20.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02821/1.751, allocations: 8.114 MB / 0.6369 GB, free: 13.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005563/1.756, allocations: 2.891 MB / 0.6397 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003796/1.76, allocations: 1.599 MB / 0.6413 GB, free: 9.77 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/1.76, allocations: 3.938 kB / 0.6413 GB, free: 9.766 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.314/6.074, allocations: 83.25 MB / 0.7226 GB, free: 104.3 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