Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.72/1.72, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.307e-05/2.305e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2455, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1399/0.3854, allocations: 81.72 MB / 340.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/0.3858, allocations: 83.95 kB / 340.1 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5216/0.9074, allocations: 81.88 MB / 422 MB, free: 53.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.9075, allocations: 0 / 422 MB, free: 53.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001841/0.9077, allocations: 76 kB / 422.1 MB, free: 53.29 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: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.01268/0.9203, allocations: 3.797 MB / 425.9 MB, free: 49.45 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.622e-05/0.9204, allocations: 8.031 kB / 425.9 MB, free: 49.44 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02679/0.9472, allocations: 2.432 MB / 428.3 MB, free: 47 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02245/0.9697, allocations: 5.026 MB / 433.4 MB, free: 41.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000319/0.9701, allocations: 132.3 kB / 433.5 MB, free: 41.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00218/0.9723, allocations: 243.9 kB / 433.7 MB, free: 41.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01781/0.9901, allocations: 5.739 MB / 439.5 MB, free: 35.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02461/1.015, allocations: 8.895 MB / 448.4 MB, free: 25.89 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002276/1.015, allocations: 63.48 kB / 448.4 MB, free: 25.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001228/1.016, allocations: 32 kB / 448.4 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002133/1.018, allocations: 0.9863 MB / 449.4 MB, free: 24.8 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05928/1.078, allocations: 44.58 MB / 494 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003517/1.081, allocations: 1.836 MB / 495.8 MB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/1.083, allocations: 0.7396 MB / 496.6 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006514/1.084, allocations: 464.7 kB / 497 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/1.084, allocations: 43.12 kB / 497.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of pre-optimization done (n=130): time 3.877e-06/1.084, allocations: 0 / 497.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of matching and sorting (n=142): time 0.02215/1.106, allocations: 6.864 MB / 0.4921 GB, free: 380 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/1.106, allocations: 141.3 kB / 0.4923 GB, free: 204 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2267/1.333, allocations: 2.972 MB / 0.4952 GB, free: 86.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002479/1.333, allocations: 25.7 kB / 0.4952 GB, free: 86.49 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00237/1.335, allocations: 3.117 MB / 0.4982 GB, free: 85.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000711/1.336, allocations: 0.5572 MB / 0.4988 GB, free: 84.94 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003359/1.336, allocations: 0 / 0.4988 GB, free: 84.94 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003669/1.337, allocations: 0.5583 MB / 0.4993 GB, free: 84.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002875/1.34, allocations: 1.395 MB / 0.5007 GB, free: 84.6 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004683/1.344, allocations: 5.23 MB / 0.5058 GB, free: 79.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005215/1.35, allocations: 2.705 MB / 0.5084 GB, free: 79.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.995e-05/1.35, allocations: 37.88 kB / 0.5085 GB, free: 79.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=774) (initialization): time 0.01285/1.363, allocations: 5.634 MB / 0.514 GB, free: 79.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.95e-05/1.363, allocations: 64.89 kB / 0.514 GB, free: 79.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001382/1.363, allocations: 138.1 kB / 0.5142 GB, free: 79.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002335/1.363, allocations: 201.4 kB / 0.5144 GB, free: 79.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007629/1.371, allocations: 1.429 MB / 0.5158 GB, free: 78.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001838/1.371, allocations: 272.5 kB / 0.516 GB, free: 78.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005972/1.377, allocations: 260.2 kB / 0.5163 GB, free: 78.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006988/1.378, allocations: 380.9 kB / 0.5166 GB, free: 78.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 633 * Number of states: 0 () * Number of discrete variables: 33 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (750): * Single equations (assignments): 747 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008056/1.378, allocations: 440.6 kB / 0.5171 GB, free: 78.5 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00302/1.382, allocations: 1.467 MB / 0.5185 GB, free: 78.28 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004574/1.382, allocations: 311.8 kB / 0.5188 GB, free: 78.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/1.384, allocations: 0.996 MB / 0.5198 GB, free: 78.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.89e-05/1.384, allocations: 26.61 kB / 0.5198 GB, free: 78.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/1.384, allocations: 0 / 0.5198 GB, free: 78.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/1.384, allocations: 7.797 kB / 0.5198 GB, free: 78.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/1.394, allocations: 4.724 MB / 0.5244 GB, free: 76.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.332e-05/1.394, allocations: 15.38 kB / 0.5244 GB, free: 76.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001756/1.396, allocations: 260.3 kB / 0.5247 GB, free: 76.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-05/1.396, allocations: 28.09 kB / 0.5247 GB, free: 76.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/1.396, allocations: 27.89 kB / 0.5247 GB, free: 76.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.508e-05/1.396, allocations: 35.22 kB / 0.5248 GB, free: 76.01 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.909e-05/1.396, allocations: 22.97 kB / 0.5248 GB, free: 76 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004682/1.401, allocations: 4.609 MB / 0.5293 GB, free: 72.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/1.402, allocations: 491.6 kB / 0.5297 GB, free: 71.85 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005574/1.403, allocations: 23.56 kB / 0.5298 GB, free: 71.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001942/1.405, allocations: 69.95 kB / 0.5298 GB, free: 71.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/1.405, allocations: 133.7 kB / 0.53 GB, free: 71.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/1.405, allocations: 62 kB / 0.53 GB, free: 71.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003733/1.409, allocations: 1.968 MB / 0.5319 GB, free: 71.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.409, allocations: 0 / 0.5319 GB, free: 71.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006522/1.416, allocations: 0.7311 MB / 0.5327 GB, free: 71.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 70 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 132 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005882/1.422, allocations: 9.163 MB / 0.5416 GB, free: 62.92 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006768/1.428, allocations: 3.22 MB / 0.5447 GB, free: 61.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-05/1.428, allocations: 6.5 kB / 0.5448 GB, free: 61.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/1.43, allocations: 0.6583 MB / 0.5454 GB, free: 61.64 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/1.432, allocations: 346.2 kB / 0.5457 GB, free: 61.49 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02321/1.456, allocations: 8.338 MB / 0.5539 GB, free: 54.55 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00516/1.461, allocations: 3.151 MB / 0.5569 GB, free: 52.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00335/1.464, allocations: 1.813 MB / 0.5587 GB, free: 50.48 MB / 346.7 MB Notification: Performance of SimCode: time 1.322e-06/1.464, allocations: 0 / 0.5587 GB, free: 50.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.824/5.289, allocations: 70.73 MB / 0.6278 GB, free: 84.83 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat