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.694/1.694, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.081e-05, allocations: 0 / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2525, allocations: 38.77 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.4078, allocations: 82.39 MB / 346.2 MB, free: 7.348 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.4082, allocations: 83.94 kB / 346.3 MB, free: 7.266 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5668/0.975, allocations: 83.59 MB / 429.9 MB, free: 43.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.9751, allocations: 0 / 429.9 MB, free: 43.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001784/0.9753, allocations: 76 kB / 430 MB, free: 43.52 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.01222/0.9875, allocations: 3.794 MB / 433.8 MB, free: 39.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.9876, allocations: 11.97 kB / 433.8 MB, free: 39.65 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00222/0.9898, allocations: 0.7335 MB / 434.5 MB, free: 38.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01887/1.009, allocations: 2.436 MB / 436.9 MB, free: 36.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01658/1.025, allocations: 5.032 MB / 442 MB, free: 31.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002601/1.026, allocations: 312 kB / 442.3 MB, free: 31.06 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001306/1.027, allocations: 407.8 kB / 442.7 MB, free: 30.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02237/1.049, allocations: 9.805 MB / 452.5 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001917/1.05, allocations: 63.41 kB / 452.5 MB, free: 19.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007924/1.05, allocations: 199.9 kB / 452.7 MB, free: 19.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002004/1.052, allocations: 0.9862 MB / 453.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02039/1.073, allocations: 7.539 MB / 461.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3359/1.409, allocations: 45.37 MB / 0.4948 GB, free: 47.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009685/1.418, allocations: 2.699 MB / 0.4974 GB, free: 46.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001934/1.42, allocations: 0.8246 MB / 0.4982 GB, free: 46.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008076/1.429, allocations: 3.456 MB / 0.5016 GB, free: 45.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/1.429, allocations: 49.25 kB / 0.5016 GB, free: 45.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 4.458e-06/1.429, allocations: 0 / 0.5016 GB, free: 45.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.03082/1.46, allocations: 8.199 MB / 0.5096 GB, free: 42.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/1.46, allocations: 144.4 kB / 0.5098 GB, free: 42.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006612/1.466, allocations: 3.424 MB / 0.5131 GB, free: 42.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002733/1.467, allocations: 47.53 kB / 0.5132 GB, free: 42.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002181/1.469, allocations: 3.003 MB / 0.5161 GB, free: 40.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007409/1.47, allocations: 0.5899 MB / 0.5167 GB, free: 39.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004073/1.47, allocations: 114.8 kB / 0.5168 GB, free: 39.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000327/1.47, allocations: 0.5567 MB / 0.5173 GB, free: 39.58 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003141/1.473, allocations: 1.465 MB / 0.5188 GB, free: 39.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005172/1.479, allocations: 5.177 MB / 0.5238 GB, free: 34.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006803/1.486, allocations: 2.757 MB / 0.5265 GB, free: 34.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001482/1.486, allocations: 38.78 kB / 0.5265 GB, free: 34.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01584/1.502, allocations: 6.289 MB / 0.5327 GB, free: 34.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/1.502, allocations: 60.62 kB / 0.5327 GB, free: 34.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001901/1.502, allocations: 134.1 kB / 0.5329 GB, free: 34.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/1.502, allocations: 192.7 kB / 0.5331 GB, free: 34.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008079/1.51, allocations: 1.385 MB / 0.5344 GB, free: 34.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002605/1.511, allocations: 258.8 kB / 0.5346 GB, free: 34.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006787/1.517, allocations: 364.6 kB / 0.535 GB, free: 34.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/1.519, allocations: 367.7 kB / 0.5353 GB, free: 34.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * 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 (726): * Single equations (assignments): 723 * 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.001093/1.52, allocations: 0.5545 MB / 0.5359 GB, free: 33.95 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000788/1.521, allocations: 331.4 kB / 0.5362 GB, free: 33.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002946/1.523, allocations: 1.179 MB / 0.5374 GB, free: 33.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.81e-05/1.524, allocations: 19.62 kB / 0.5374 GB, free: 33.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/1.524, allocations: 2.438 kB / 0.5374 GB, free: 33.3 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.77e-05/1.524, allocations: 7.828 kB / 0.5374 GB, free: 33.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/1.538, allocations: 5.619 MB / 0.5429 GB, free: 30.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.663e-05/1.538, allocations: 20.44 kB / 0.5429 GB, free: 30.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/1.54, allocations: 269.8 kB / 0.5431 GB, free: 30.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.354e-05/1.54, allocations: 24.03 kB / 0.5432 GB, free: 30.69 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/1.54, allocations: 46.84 kB / 0.5432 GB, free: 30.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-05/1.54, allocations: 36.94 kB / 0.5433 GB, free: 30.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-05/1.54, allocations: 29.02 kB / 0.5433 GB, free: 30.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005261/1.545, allocations: 5.104 MB / 0.5483 GB, free: 26.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.547, allocations: 0.5211 MB / 0.5488 GB, free: 26.17 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006522/1.548, allocations: 54.44 kB / 0.5488 GB, free: 26.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002244/1.55, allocations: 85.61 kB / 0.5489 GB, free: 26.13 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/1.55, allocations: 148.3 kB / 0.549 GB, free: 26.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/1.55, allocations: 63.03 kB / 0.5491 GB, free: 26.02 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005315/1.556, allocations: 2.364 MB / 0.5514 GB, free: 23.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.242e-06/1.556, allocations: 0 / 0.5514 GB, free: 23.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.008271/1.564, allocations: 0.8615 MB / 0.5523 GB, free: 23.1 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * 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 (138): * Single equations (assignments): 135 * 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.009386/1.573, allocations: 10.06 MB / 0.5621 GB, free: 12.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01007/1.583, allocations: 3.465 MB / 0.5655 GB, free: 9.539 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.974e-05/1.583, allocations: 4 kB / 0.5655 GB, free: 9.535 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001981/1.585, allocations: 0.7083 MB / 0.5662 GB, free: 8.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004394/1.59, allocations: 413.3 kB / 0.5666 GB, free: 8.527 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0326/1.623, allocations: 8.636 MB / 0.575 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008493/1.631, allocations: 3.207 MB / 0.5781 GB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005189/1.636, allocations: 1.813 MB / 0.5799 GB, free: 12.77 MB / 362.7 MB Notification: Performance of SimCode: time 1.683e-06/1.636, allocations: 0 / 0.5799 GB, free: 12.77 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.18/5.817, allocations: 73.23 MB / 0.6514 GB, free: 125.8 MB / 410.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