Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.926e-05/3.943e-05, allocations: 3.094 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09514/0.09522, allocations: 44.53 MB / 299.9 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/0.5348, allocations: 90.27 MB / 390.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003563/0.5352, allocations: 85.64 kB / 390.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5281/1.063, allocations: 91.79 MB / 482.1 MB, free: 1.477 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.063, allocations: 0 / 482.1 MB, free: 1.477 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002889/1.064, allocations: 88 kB / 482.2 MB, free: 1.391 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: 1644 * Number of variables: 1644 Notification: Performance of Generate backend data structure: time 0.02527/1.089, allocations: 4.631 MB / 486.8 MB, free: 12.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/1.089, allocations: 11.97 kB / 486.8 MB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003959/1.093, allocations: 0.8394 MB / 487.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02267/1.116, allocations: 2.673 MB / 490.3 MB, free: 9.207 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02256/1.138, allocations: 5.546 MB / 495.9 MB, free: 3.672 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005478/1.139, allocations: 355.5 kB / 496.2 MB, free: 3.352 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002663/1.142, allocations: 466.9 kB / 496.7 MB, free: 2.926 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04335/1.185, allocations: 12.27 MB / 0.497 GB, free: 5.586 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003225/1.185, allocations: 67.34 kB / 0.4971 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002392/1.188, allocations: 227.2 kB / 0.4973 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003443/1.191, allocations: 1.174 MB / 0.4984 GB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03679/1.228, allocations: 9.919 MB / 0.5081 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3716/1.6, allocations: 52.33 MB / 0.5592 GB, free: 47.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02414/1.624, allocations: 4.05 MB / 0.5632 GB, free: 46.81 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004933/1.629, allocations: 1.592 MB / 0.5647 GB, free: 46.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02333/1.652, allocations: 7.402 MB / 0.572 GB, free: 44.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/1.652, allocations: 52.78 kB / 0.572 GB, free: 44.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=165): time 6.252e-06/1.652, allocations: 0 / 0.572 GB, free: 44.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=188): time 0.06455/1.717, allocations: 13.81 MB / 0.5855 GB, free: 41.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001356/1.718, allocations: 1.6 MB / 0.5871 GB, free: 40.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008459/1.727, allocations: 3.667 MB / 0.5906 GB, free: 39.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004868/1.728, allocations: 51.95 kB / 0.5907 GB, free: 39.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002822/1.73, allocations: 3.301 MB / 0.5939 GB, free: 37.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001151/1.732, allocations: 0.7473 MB / 0.5947 GB, free: 37.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008071/1.732, allocations: 130.7 kB / 0.5948 GB, free: 37.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004617/1.733, allocations: 0.5858 MB / 0.5953 GB, free: 37.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005464/1.738, allocations: 2.097 MB / 0.5974 GB, free: 37 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008306/1.747, allocations: 6.159 MB / 0.6034 GB, free: 31.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008101/1.755, allocations: 3.545 MB / 0.6069 GB, free: 30.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001557/1.755, allocations: 42.47 kB / 0.6069 GB, free: 30.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.02536/1.78, allocations: 8.634 MB / 0.6153 GB, free: 27.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/1.781, allocations: 66.25 kB / 0.6154 GB, free: 27.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00901/1.79, allocations: 2.699 MB / 0.618 GB, free: 26.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005833/1.796, allocations: 1.085 MB / 0.6191 GB, free: 26.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009791/1.805, allocations: 1.569 MB / 0.6206 GB, free: 26.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006292/1.812, allocations: 4.378 MB / 0.6249 GB, free: 23.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009087/1.821, allocations: 0.5033 MB / 0.6254 GB, free: 23.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00167/1.823, allocations: 407.6 kB / 0.6258 GB, free: 23.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * 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 (825): * Single equations (assignments): 816 * 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 {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 prepare postOptimizeDAE: time 0.002162/1.825, allocations: 0.6153 MB / 0.6264 GB, free: 22.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009958/1.826, allocations: 371.9 kB / 0.6267 GB, free: 22.67 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/1.836, allocations: 3.136 MB / 0.6298 GB, free: 21.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008607/1.845, allocations: 2.599 MB / 0.6323 GB, free: 20.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.222e-05/1.845, allocations: 0 / 0.6323 GB, free: 20.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.449e-05/1.845, allocations: 10.83 kB / 0.6324 GB, free: 20.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02977/1.875, allocations: 9.968 MB / 0.6421 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.015e-05/1.875, allocations: 16.25 kB / 0.6421 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003047/1.878, allocations: 348.2 kB / 0.6424 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005319/1.883, allocations: 0.9686 MB / 0.6434 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005304/1.884, allocations: 65.09 kB / 0.6434 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00706/1.891, allocations: 4.592 MB / 0.6479 GB, free: 8.086 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001118/1.892, allocations: 1.466 MB / 0.6494 GB, free: 6.523 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01675/1.909, allocations: 7.268 MB / 0.6565 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002759/1.912, allocations: 0.6512 MB / 0.6571 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001138/1.913, allocations: 58.44 kB / 0.6572 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004066/1.917, allocations: 177 kB / 0.6573 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007146/1.918, allocations: 159.3 kB / 0.6575 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002646/1.918, allocations: 71.34 kB / 0.6575 GB, free: 14.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007316/1.925, allocations: 2.52 MB / 0.66 GB, free: 12.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.302e-06/1.925, allocations: 0 / 0.66 GB, free: 12.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008582/1.934, allocations: 1.116 MB / 0.6611 GB, free: 11.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 (164): * Single equations (assignments): 157 * 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.01886/1.953, allocations: 10.76 MB / 0.6716 GB, free: 1.227 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2909/2.244, allocations: 5.638 MB / 0.6771 GB, free: 98.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-05/2.244, allocations: 2.469 kB / 0.6771 GB, free: 98.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007098/2.251, allocations: 2.111 MB / 0.6792 GB, free: 98.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00406/2.255, allocations: 444.8 kB / 0.6796 GB, free: 98.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03622/2.291, allocations: 10.67 MB / 0.69 GB, free: 96.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007833/2.299, allocations: 3.5 MB / 0.6934 GB, free: 95.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004739/2.304, allocations: 2.094 MB / 0.6955 GB, free: 95.37 MB / 426.7 MB Notification: Performance of SimCode: time 2.454e-06/2.304, allocations: 0 / 0.6955 GB, free: 95.37 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.315/7.62, allocations: 157.6 MB / 0.8493 GB, free: 95.87 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat