Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.705/1.705, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.497e-05/4.528e-05, allocations: 4 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.261, allocations: 38.77 MB / 263.8 MB, free: 9.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.4081, allocations: 84.64 MB / 348.5 MB, free: 5.086 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00032/0.4084, allocations: 83.94 kB / 348.6 MB, free: 5.004 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6685/1.077, allocations: 91.62 MB / 440.2 MB, free: 33.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.367e-06/1.077, allocations: 0 / 440.2 MB, free: 33.4 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002384/1.077, allocations: 91.94 kB / 440.3 MB, free: 33.31 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: 1644 * Number of variables: 1644 Notification: Performance of Generate backend data structure: time 0.02545/1.103, allocations: 4.617 MB / 444.9 MB, free: 28.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.445e-05/1.103, allocations: 8.031 kB / 444.9 MB, free: 28.62 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005309/1.108, allocations: 0.8399 MB / 445.7 MB, free: 27.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02548/1.134, allocations: 2.67 MB / 448.4 MB, free: 25.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02074/1.154, allocations: 5.54 MB / 453.9 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004742/1.155, allocations: 353.2 kB / 454.3 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002596/1.158, allocations: 471.8 kB / 454.7 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0386/1.196, allocations: 12.27 MB / 467 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003203/1.197, allocations: 71.34 kB / 467.1 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002348/1.199, allocations: 227.9 kB / 467.3 MB, free: 4.949 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003114/1.202, allocations: 1.178 MB / 468.5 MB, free: 3.766 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03606/1.238, allocations: 9.915 MB / 478.4 MB, free: 9.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3449/1.583, allocations: 52.32 MB / 0.5183 GB, free: 36.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01794/1.601, allocations: 4.04 MB / 0.5222 GB, free: 35.91 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003771/1.605, allocations: 1.595 MB / 0.5238 GB, free: 35.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01935/1.624, allocations: 7.412 MB / 0.531 GB, free: 33.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.79e-05/1.624, allocations: 52.38 kB / 0.5311 GB, free: 33.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 5.19e-06/1.625, allocations: 3.5 kB / 0.5311 GB, free: 33.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=188): time 0.06605/1.691, allocations: 13.82 MB / 0.5446 GB, free: 30.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001425/1.692, allocations: 1.595 MB / 0.5461 GB, free: 29.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009211/1.701, allocations: 3.66 MB / 0.5497 GB, free: 28.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004988/1.702, allocations: 54.45 kB / 0.5497 GB, free: 28.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002883/1.705, allocations: 3.306 MB / 0.553 GB, free: 26.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/1.706, allocations: 0.7515 MB / 0.5537 GB, free: 26.04 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/1.707, allocations: 132.2 kB / 0.5538 GB, free: 25.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0006579/1.708, allocations: 0.5855 MB / 0.5544 GB, free: 25.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005681/1.713, allocations: 2.092 MB / 0.5565 GB, free: 24.83 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008382/1.722, allocations: 6.147 MB / 0.5625 GB, free: 18.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008306/1.73, allocations: 3.538 MB / 0.5659 GB, free: 17.74 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000179/1.73, allocations: 43.03 kB / 0.566 GB, free: 17.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.02458/1.755, allocations: 8.546 MB / 0.5743 GB, free: 14.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/1.755, allocations: 68 kB / 0.5744 GB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008625/1.764, allocations: 2.614 MB / 0.5769 GB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005027/1.769, allocations: 1.001 MB / 0.5779 GB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01025/1.779, allocations: 1.59 MB / 0.5794 GB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005245/1.784, allocations: 4.013 MB / 0.5834 GB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008874/1.793, allocations: 0.5021 MB / 0.5839 GB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001573/1.795, allocations: 406 kB / 0.5842 GB, free: 5.023 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 42 (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],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (828): * Single equations (assignments): 819 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002863/1.798, allocations: 0.6136 MB / 0.5848 GB, free: 4.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001345/1.799, allocations: 371.2 kB / 0.5852 GB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01603/1.815, allocations: 3.139 MB / 0.5883 GB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0135/1.829, allocations: 2.598 MB / 0.5908 GB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.559e-05/1.829, allocations: 4 kB / 0.5908 GB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-05/1.829, allocations: 9.797 kB / 0.5908 GB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04716/1.876, allocations: 9.948 MB / 0.6005 GB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.833e-05/1.876, allocations: 12.97 kB / 0.6005 GB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003383/1.88, allocations: 356.8 kB / 0.6009 GB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009029/1.889, allocations: 0.9764 MB / 0.6018 GB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008304/1.89, allocations: 51.52 kB / 0.6019 GB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/1.901, allocations: 4.587 MB / 0.6064 GB, free: 2.047 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001675/1.903, allocations: 1.47 MB / 0.6078 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01776/1.92, allocations: 7.144 MB / 0.6148 GB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002809/1.923, allocations: 0.6484 MB / 0.6154 GB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001406/1.925, allocations: 59.89 kB / 0.6155 GB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0042/1.929, allocations: 171.8 kB / 0.6156 GB, free: 8.613 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007754/1.93, allocations: 164.3 kB / 0.6158 GB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003117/1.93, allocations: 71.97 kB / 0.6159 GB, free: 8.383 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007897/1.938, allocations: 2.513 MB / 0.6183 GB, free: 5.855 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.442e-06/1.938, allocations: 0 / 0.6183 GB, free: 5.855 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008704/1.947, allocations: 1.108 MB / 0.6194 GB, free: 4.754 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 157 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02023/1.967, allocations: 10.77 MB / 0.6299 GB, free: 9.586 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01725/1.984, allocations: 5.507 MB / 0.6353 GB, free: 4.055 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.745e-05/1.984, allocations: 3.938 kB / 0.6353 GB, free: 4.051 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007639/1.992, allocations: 2.118 MB / 0.6374 GB, free: 1.871 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004238/1.996, allocations: 440.1 kB / 0.6378 GB, free: 1.441 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.287/2.283, allocations: 10.65 MB / 0.6482 GB, free: 114.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007914/2.291, allocations: 3.503 MB / 0.6516 GB, free: 113.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005107/2.297, allocations: 2.092 MB / 0.6536 GB, free: 113.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.994e-06/2.297, allocations: 0 / 0.6536 GB, free: 113.4 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.93/7.227, allocations: 157.3 MB / 0.8073 GB, free: 111.7 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat