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 2.047/2.047, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.206e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.09257, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4182/0.5108, allocations: 88.02 MB / 388 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/0.5111, allocations: 85.52 kB / 388.1 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3468/0.8579, allocations: 83.58 MB / 471.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.108e-06/0.858, allocations: 0 / 471.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002577/0.8583, allocations: 83.94 kB / 471.7 MB, free: 11.12 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.01435/0.8726, allocations: 3.797 MB / 475.5 MB, free: 7.281 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.8727, allocations: 12.03 kB / 475.5 MB, free: 7.27 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003065/0.8758, allocations: 0.7312 MB / 476.3 MB, free: 6.559 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02025/0.8961, allocations: 2.436 MB / 478.7 MB, free: 4.113 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02054/0.9167, allocations: 5.041 MB / 483.7 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005522/0.9173, allocations: 305.8 kB / 484 MB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002458/0.9198, allocations: 409.3 kB / 484.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0311/0.9509, allocations: 9.757 MB / 494.2 MB, free: 3.695 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002886/0.9513, allocations: 63.39 kB / 494.3 MB, free: 3.633 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002045/0.9533, allocations: 206.2 kB / 494.5 MB, free: 3.457 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002904/0.9563, allocations: 0.9858 MB / 495.4 MB, free: 2.469 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02478/0.9811, allocations: 7.353 MB / 0.491 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3486/1.33, allocations: 45.37 MB / 0.5353 GB, free: 61.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/1.34, allocations: 2.681 MB / 0.5379 GB, free: 60.96 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/1.343, allocations: 0.817 MB / 0.5387 GB, free: 60.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009435/1.352, allocations: 3.455 MB / 0.5421 GB, free: 59.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/1.352, allocations: 48.19 kB / 0.5422 GB, free: 59.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 4.93e-06/1.352, allocations: 0 / 0.5422 GB, free: 59.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.03148/1.384, allocations: 8.191 MB / 0.5502 GB, free: 56.87 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/1.384, allocations: 153 kB / 0.5503 GB, free: 56.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006784/1.39, allocations: 3.423 MB / 0.5536 GB, free: 56.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002637/1.391, allocations: 46.33 kB / 0.5537 GB, free: 56.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002271/1.393, allocations: 3.011 MB / 0.5566 GB, free: 54.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007395/1.394, allocations: 0.5851 MB / 0.5572 GB, free: 54.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004874/1.394, allocations: 121.8 kB / 0.5573 GB, free: 54.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003272/1.395, allocations: 0.5443 MB / 0.5579 GB, free: 54.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003357/1.398, allocations: 1.473 MB / 0.5593 GB, free: 54.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006794/1.405, allocations: 5.139 MB / 0.5643 GB, free: 49.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00596/1.411, allocations: 2.766 MB / 0.567 GB, free: 49.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/1.411, allocations: 39.72 kB / 0.567 GB, free: 49.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01581/1.427, allocations: 5.899 MB / 0.5728 GB, free: 48.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/1.427, allocations: 64.62 kB / 0.5729 GB, free: 48.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001925/1.427, allocations: 131.2 kB / 0.573 GB, free: 48.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002296/1.428, allocations: 197 kB / 0.5732 GB, free: 48.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008066/1.436, allocations: 1.38 MB / 0.5745 GB, free: 48.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002868/1.436, allocations: 263.6 kB / 0.5748 GB, free: 48.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006799/1.443, allocations: 370.1 kB / 0.5751 GB, free: 48.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001243/1.444, allocations: 367.7 kB / 0.5755 GB, free: 48.77 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.001377/1.445, allocations: 0.5438 MB / 0.576 GB, free: 48.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007883/1.446, allocations: 337.8 kB / 0.5763 GB, free: 48.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003266/1.45, allocations: 1.171 MB / 0.5775 GB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.924e-05/1.45, allocations: 22 kB / 0.5775 GB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/1.45, allocations: 0 / 0.5775 GB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.546e-05/1.45, allocations: 3.938 kB / 0.5775 GB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01929/1.469, allocations: 5.582 MB / 0.583 GB, free: 46.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.102e-05/1.469, allocations: 22.06 kB / 0.583 GB, free: 46.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002477/1.472, allocations: 272.9 kB / 0.5832 GB, free: 46.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-05/1.472, allocations: 27.23 kB / 0.5833 GB, free: 46.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001784/1.472, allocations: 49.19 kB / 0.5833 GB, free: 46.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.672e-05/1.472, allocations: 42.47 kB / 0.5834 GB, free: 46.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.613e-05/1.472, allocations: 27.44 kB / 0.5834 GB, free: 46.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007532/1.48, allocations: 5.107 MB / 0.5884 GB, free: 42.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002085/1.482, allocations: 0.5152 MB / 0.5889 GB, free: 42.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007724/1.482, allocations: 48.64 kB / 0.5889 GB, free: 42.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003252/1.486, allocations: 84.81 kB / 0.589 GB, free: 42.06 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003113/1.486, allocations: 144 kB / 0.5891 GB, free: 42.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001777/1.486, allocations: 64.28 kB / 0.5892 GB, free: 42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007849/1.494, allocations: 2.375 MB / 0.5915 GB, free: 41.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.494, allocations: 0 / 0.5915 GB, free: 41.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009371/1.504, allocations: 0.8613 MB / 0.5924 GB, free: 41.08 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.008919/1.513, allocations: 10.05 MB / 0.6022 GB, free: 32.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01005/1.523, allocations: 3.274 MB / 0.6054 GB, free: 30.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-05/1.523, allocations: 4.25 kB / 0.6054 GB, free: 30.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001933/1.525, allocations: 0.6761 MB / 0.606 GB, free: 30.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004448/1.529, allocations: 419.9 kB / 0.6064 GB, free: 30.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02726/1.556, allocations: 8.617 MB / 0.6148 GB, free: 26.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005807/1.562, allocations: 3.16 MB / 0.6179 GB, free: 24.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00335/1.566, allocations: 1.814 MB / 0.6197 GB, free: 22.37 MB / 410.7 MB Notification: Performance of SimCode: time 1.643e-06/1.566, allocations: 8 kB / 0.6197 GB, free: 22.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.248/5.813, allocations: 72.31 MB / 0.6903 GB, free: 108.4 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