Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.758e-05, allocations: 0 / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09975/0.09983, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4229/0.5228, allocations: 88.02 MB / 387.9 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.5231, allocations: 86.72 kB / 388 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4832/1.006, allocations: 83.58 MB / 471.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.006, allocations: 7.938 kB / 471.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003525/1.007, allocations: 76.19 kB / 471.7 MB, free: 11.09 MB / 362.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.02072/1.027, allocations: 3.805 MB / 475.5 MB, free: 7.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.824e-05/1.028, allocations: 8.031 kB / 475.5 MB, free: 7.242 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00438/1.032, allocations: 0.732 MB / 476.2 MB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02907/1.061, allocations: 2.44 MB / 478.7 MB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02747/1.089, allocations: 5.032 MB / 483.7 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006739/1.089, allocations: 309.8 kB / 484 MB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002912/1.092, allocations: 409.3 kB / 484.4 MB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04078/1.133, allocations: 9.8 MB / 494.2 MB, free: 3.613 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003524/1.133, allocations: 63.41 kB / 494.3 MB, free: 3.551 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002598/1.136, allocations: 204.6 kB / 494.5 MB, free: 3.379 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003862/1.14, allocations: 0.9857 MB / 495.5 MB, free: 2.391 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03514/1.175, allocations: 7.528 MB / 0.4912 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3697/1.545, allocations: 45.38 MB / 0.5355 GB, free: 60.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/1.556, allocations: 2.697 MB / 0.5381 GB, free: 59.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002127/1.558, allocations: 0.8211 MB / 0.539 GB, free: 59.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009389/1.567, allocations: 3.458 MB / 0.5423 GB, free: 58.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.348e-05/1.567, allocations: 53.42 kB / 0.5424 GB, free: 58.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 5.23e-06/1.567, allocations: 1.188 kB / 0.5424 GB, free: 58.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.03194/1.599, allocations: 8.192 MB / 0.5504 GB, free: 55.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.461e-05/1.599, allocations: 140 kB / 0.5505 GB, free: 55.13 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007339/1.607, allocations: 3.429 MB / 0.5539 GB, free: 54.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002798/1.607, allocations: 55.5 kB / 0.5539 GB, free: 54.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002365/1.609, allocations: 3.01 MB / 0.5569 GB, free: 53.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00077/1.61, allocations: 0.5783 MB / 0.5574 GB, free: 52.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004758/1.611, allocations: 112.5 kB / 0.5575 GB, free: 52.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003397/1.611, allocations: 0.5516 MB / 0.5581 GB, free: 52.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003358/1.614, allocations: 1.465 MB / 0.5595 GB, free: 52.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005803/1.62, allocations: 5.179 MB / 0.5646 GB, free: 47.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005978/1.626, allocations: 2.765 MB / 0.5673 GB, free: 47.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001279/1.627, allocations: 35.78 kB / 0.5673 GB, free: 47.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01615/1.643, allocations: 6.277 MB / 0.5734 GB, free: 47.24 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/1.643, allocations: 62.47 kB / 0.5735 GB, free: 47.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001754/1.643, allocations: 142.4 kB / 0.5736 GB, free: 47.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002219/1.643, allocations: 192.9 kB / 0.5738 GB, free: 47.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008259/1.652, allocations: 1.384 MB / 0.5751 GB, free: 47.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002745/1.652, allocations: 262 kB / 0.5754 GB, free: 47.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006664/1.659, allocations: 363.8 kB / 0.5757 GB, free: 47.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/1.66, allocations: 361.1 kB / 0.5761 GB, free: 47.04 MB / 410.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.001088/1.661, allocations: 0.5528 MB / 0.5766 GB, free: 46.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008433/1.662, allocations: 332.1 kB / 0.5769 GB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003076/1.665, allocations: 1.18 MB / 0.5781 GB, free: 46.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.918e-05/1.665, allocations: 17.86 kB / 0.5781 GB, free: 46.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/1.665, allocations: 2.562 kB / 0.5781 GB, free: 46.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.848e-05/1.665, allocations: 7.406 kB / 0.5781 GB, free: 46.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/1.679, allocations: 5.626 MB / 0.5836 GB, free: 45.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.358e-05/1.68, allocations: 14.88 kB / 0.5836 GB, free: 45.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001893/1.681, allocations: 267.6 kB / 0.5839 GB, free: 45.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.866e-05/1.681, allocations: 29.75 kB / 0.5839 GB, free: 45.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001417/1.682, allocations: 57.25 kB / 0.584 GB, free: 45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.84e-05/1.682, allocations: 36.31 kB / 0.584 GB, free: 44.99 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.855e-05/1.682, allocations: 26.34 kB / 0.584 GB, free: 44.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005483/1.687, allocations: 5.102 MB / 0.589 GB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/1.689, allocations: 0.5152 MB / 0.5895 GB, free: 40.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000779/1.69, allocations: 49.39 kB / 0.5896 GB, free: 40.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00246/1.692, allocations: 91.27 kB / 0.5897 GB, free: 40.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003144/1.693, allocations: 146 kB / 0.5898 GB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/1.693, allocations: 65.23 kB / 0.5899 GB, free: 40.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005848/1.699, allocations: 2.365 MB / 0.5922 GB, free: 39.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.142e-06/1.699, allocations: 3.906 kB / 0.5922 GB, free: 39.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006676/1.705, allocations: 0.8604 MB / 0.593 GB, free: 39.5 MB / 410.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.007147/1.713, allocations: 10.05 MB / 0.6028 GB, free: 30.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007761/1.72, allocations: 3.466 MB / 0.6062 GB, free: 29.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-05/1.72, allocations: 2.656 kB / 0.6062 GB, free: 29.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/1.722, allocations: 0.7018 MB / 0.6069 GB, free: 29.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00322/1.725, allocations: 420 kB / 0.6073 GB, free: 28.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02547/1.751, allocations: 8.63 MB / 0.6157 GB, free: 24.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005262/1.756, allocations: 3.159 MB / 0.6188 GB, free: 22.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003533/1.76, allocations: 1.814 MB / 0.6206 GB, free: 20.46 MB / 410.7 MB Notification: Performance of SimCode: time 1.683e-06/1.76, allocations: 0 / 0.6206 GB, free: 20.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.583/6.343, allocations: 73.23 MB / 0.6921 GB, free: 109.9 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.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat