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.754/1.754, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.063e-05/2.068e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2513, allocations: 38.76 MB / 258.3 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.3983, allocations: 83.98 MB / 342.3 MB, free: 9.902 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.3986, allocations: 83.95 kB / 342.4 MB, free: 9.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5474/0.946, allocations: 89.58 MB / 432 MB, free: 43.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.9461, allocations: 0 / 432 MB, free: 43.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002003/0.9463, allocations: 95.92 kB / 432.1 MB, free: 43.57 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.02139/0.9677, allocations: 4.61 MB / 436.7 MB, free: 38.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.9678, allocations: 12.03 kB / 436.7 MB, free: 38.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02003/0.9878, allocations: 2.67 MB / 439.4 MB, free: 36.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02401/1.012, allocations: 5.532 MB / 444.9 MB, free: 30.6 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002964/1.012, allocations: 152 kB / 445 MB, free: 30.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001906/1.014, allocations: 271.9 kB / 445.3 MB, free: 30.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02103/1.035, allocations: 6.73 MB / 452 MB, free: 23.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02912/1.064, allocations: 10.19 MB / 462.2 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002525/1.065, allocations: 71.33 kB / 462.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001089/1.066, allocations: 36 kB / 462.3 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003201/1.069, allocations: 1.171 MB / 463.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4001/1.469, allocations: 51.91 MB / 0.5033 GB, free: 47.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004836/1.474, allocations: 2.657 MB / 0.5059 GB, free: 47.17 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002505/1.477, allocations: 1.45 MB / 0.5073 GB, free: 47.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008263/1.477, allocations: 0.5602 MB / 0.5079 GB, free: 46.67 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/1.477, allocations: 62.58 kB / 0.5079 GB, free: 46.63 MB / 346.7 MB Notification: Performance of pre-optimization done (n=168): time 4.699e-06/1.477, allocations: 0 / 0.5079 GB, free: 46.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=185): time 0.04256/1.52, allocations: 12.18 MB / 0.5198 GB, free: 43.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/1.52, allocations: 157.8 kB / 0.52 GB, free: 43.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005676/1.526, allocations: 3.191 MB / 0.5231 GB, free: 43.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004302/1.526, allocations: 29.59 kB / 0.5231 GB, free: 43.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002316/1.529, allocations: 3.388 MB / 0.5264 GB, free: 41.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009888/1.53, allocations: 0.7265 MB / 0.5271 GB, free: 40.76 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004286/1.53, allocations: 0 / 0.5271 GB, free: 40.76 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003803/1.53, allocations: 0.5995 MB / 0.5277 GB, free: 40.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003948/1.534, allocations: 2.004 MB / 0.5297 GB, free: 40.42 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006297/1.541, allocations: 6.181 MB / 0.5357 GB, free: 34.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007034/1.548, allocations: 3.464 MB / 0.5391 GB, free: 34.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001112/1.548, allocations: 44.47 kB / 0.5392 GB, free: 34.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=887) (initialization): time 0.02066/1.569, allocations: 7.794 MB / 0.5468 GB, free: 32.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/1.569, allocations: 68.84 kB / 0.5468 GB, free: 32.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007006/1.576, allocations: 2.497 MB / 0.5493 GB, free: 31.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004426/1.58, allocations: 0.9994 MB / 0.5502 GB, free: 31.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009536/1.59, allocations: 1.633 MB / 0.5518 GB, free: 31.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004547/1.594, allocations: 3.892 MB / 0.5556 GB, free: 27.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008304/1.603, allocations: 387.2 kB / 0.556 GB, free: 27.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/1.604, allocations: 422.6 kB / 0.5564 GB, free: 26.87 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 685 * 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 (852): * Single equations (assignments): 843 * 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.00118/1.605, allocations: 486.2 kB / 0.5569 GB, free: 26.39 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009085/1.614, allocations: 3.285 MB / 0.5601 GB, free: 23.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000681/1.615, allocations: 341.1 kB / 0.5604 GB, free: 23.35 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008658/1.624, allocations: 2.926 MB / 0.5633 GB, free: 21.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007099/1.631, allocations: 2.449 MB / 0.5657 GB, free: 19.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/1.631, allocations: 11.89 kB / 0.5657 GB, free: 19.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.759e-05/1.631, allocations: 10.73 kB / 0.5657 GB, free: 19.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02359/1.654, allocations: 9.083 MB / 0.5745 GB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/1.654, allocations: 16.03 kB / 0.5746 GB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002821/1.657, allocations: 336.7 kB / 0.5749 GB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004871/1.662, allocations: 0.963 MB / 0.5758 GB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001973/1.662, allocations: 30.94 kB / 0.5759 GB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006425/1.669, allocations: 4.469 MB / 0.5802 GB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009657/1.67, allocations: 1.404 MB / 0.5816 GB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01846/1.688, allocations: 7 MB / 0.5884 GB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002159/1.69, allocations: 0.6111 MB / 0.589 GB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007624/1.691, allocations: 27.75 kB / 0.589 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003011/1.694, allocations: 141.6 kB / 0.5892 GB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004481/1.695, allocations: 159.8 kB / 0.5893 GB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002174/1.695, allocations: 73.52 kB / 0.5894 GB, free: 15.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004496/1.699, allocations: 2.095 MB / 0.5915 GB, free: 13.26 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.987e-06/1.699, allocations: 4 kB / 0.5915 GB, free: 13.26 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007663/1.707, allocations: 0.9775 MB / 0.5924 GB, free: 12.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 14 ($STATESET139688008692104.x[3],$STATESET139688008692104.x[2],$STATESET139688008692104.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 (161): * Single equations (assignments): 154 * 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.01553/1.723, allocations: 9.813 MB / 0.602 GB, free: 2.902 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01422/1.737, allocations: 5.228 MB / 0.6071 GB, free: 13.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.545e-05/1.737, allocations: 4 kB / 0.6071 GB, free: 13.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006352/1.743, allocations: 2.051 MB / 0.6091 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003034/1.746, allocations: 358.8 kB / 0.6094 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03135/1.778, allocations: 10.33 MB / 0.6195 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006236/1.784, allocations: 3.484 MB / 0.6229 GB, free: 13.28 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004637/1.789, allocations: 2.065 MB / 0.625 GB, free: 11.21 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/1.789, allocations: 0 / 0.625 GB, free: 11.21 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.943/6.732, allocations: 154.4 MB / 0.7757 GB, free: 100.4 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