Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.092/2.092, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.651e-05/2.661e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4217, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.159/0.5808, allocations: 84.38 MB / 378.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.5812, allocations: 79.95 kB / 378.7 MB, free: 13.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5548/1.136, allocations: 55.61 MB / 434.3 MB, free: 90.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.136, allocations: 0 / 434.3 MB, free: 90.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001311/1.136, allocations: 46.31 kB / 434.3 MB, free: 90.65 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: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.01755/1.154, allocations: 2.908 MB / 437.2 MB, free: 89.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/1.154, allocations: 7.25 kB / 437.2 MB, free: 89.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01651/1.17, allocations: 2.048 MB / 439.3 MB, free: 89.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01407/1.185, allocations: 3.602 MB / 442.9 MB, free: 88.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/1.185, allocations: 76.91 kB / 443 MB, free: 88.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001409/1.186, allocations: 152.7 kB / 443.1 MB, free: 88.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00968/1.196, allocations: 3.999 MB / 447.1 MB, free: 88.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01494/1.211, allocations: 6.168 MB / 453.3 MB, free: 86.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001441/1.211, allocations: 42.38 kB / 453.3 MB, free: 86.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006771/1.212, allocations: 24.75 kB / 453.3 MB, free: 86.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001518/1.213, allocations: 0.6986 MB / 454 MB, free: 86.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04146/1.255, allocations: 31 MB / 485 MB, free: 60.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003453/1.258, allocations: 1.982 MB / 487 MB, free: 58.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001781/1.26, allocations: 0.9535 MB / 488 MB, free: 57.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001174/1.261, allocations: 0.6625 MB / 488.6 MB, free: 56.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.417e-05/1.261, allocations: 46.98 kB / 488.7 MB, free: 56.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=111): time 5.56e-06/1.261, allocations: 0 / 488.7 MB, free: 56.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.0287/1.29, allocations: 8.135 MB / 496.8 MB, free: 48.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/1.29, allocations: 137.3 kB / 497 MB, free: 48.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003901/1.294, allocations: 2.126 MB / 499.1 MB, free: 46.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003614/1.295, allocations: 29.64 kB / 499.1 MB, free: 46.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/1.296, allocations: 2.116 MB / 0.4895 GB, free: 44.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000731/1.297, allocations: 0.4937 MB / 0.49 GB, free: 43.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003644/1.297, allocations: 0 / 0.49 GB, free: 43.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000286/1.297, allocations: 0.5089 MB / 0.4905 GB, free: 43.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003191/1.301, allocations: 1.524 MB / 0.4919 GB, free: 41.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004558/1.305, allocations: 4.372 MB / 0.4962 GB, free: 35.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005282/1.311, allocations: 2.581 MB / 0.4987 GB, free: 33.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.923e-05/1.311, allocations: 32 kB / 0.4988 GB, free: 33.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=606) (initialization): time 0.02104/1.332, allocations: 6.391 MB / 0.505 GB, free: 26.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.87e-05/1.332, allocations: 48 kB / 0.505 GB, free: 26.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009738/1.342, allocations: 2.437 MB / 0.5074 GB, free: 24.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008744/1.35, allocations: 1.483 MB / 0.5089 GB, free: 22.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005911/1.356, allocations: 1.049 MB / 0.5099 GB, free: 21.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01369/1.37, allocations: 6.951 MB / 0.5167 GB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006896/1.377, allocations: 287.2 kB / 0.517 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001707/1.379, allocations: 292 kB / 0.5172 GB, free: 13.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (558): * Single equations (assignments): 550 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001881/1.381, allocations: 356 kB / 0.5176 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01623/1.397, allocations: 3.125 MB / 0.5206 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/1.398, allocations: 213.2 kB / 0.5208 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01535/1.414, allocations: 2.722 MB / 0.5235 GB, free: 7.473 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01371/1.427, allocations: 2.405 MB / 0.5258 GB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.853e-05/1.428, allocations: 8 kB / 0.5259 GB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.365e-05/1.428, allocations: 3.984 kB / 0.5259 GB, free: 5.035 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02905/1.457, allocations: 6.638 MB / 0.5323 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.319e-05/1.457, allocations: 0 / 0.5323 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002474/1.459, allocations: 171.7 kB / 0.5325 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0125/1.472, allocations: 1.41 MB / 0.5339 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004668/1.472, allocations: 19.97 kB / 0.5339 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02435/1.497, allocations: 7.167 MB / 0.5409 GB, free: 5.355 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001989/1.499, allocations: 1.391 MB / 0.5423 GB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02274/1.522, allocations: 4.809 MB / 0.547 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/1.523, allocations: 282.1 kB / 0.5472 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00122/1.524, allocations: 16.09 kB / 0.5472 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003696/1.528, allocations: 111.7 kB / 0.5473 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008094/1.529, allocations: 76.44 kB / 0.5474 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002752/1.529, allocations: 37.78 kB / 0.5475 GB, free: 14.44 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00558/1.534, allocations: 1.391 MB / 0.5488 GB, free: 13.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.322e-06/1.535, allocations: 4 kB / 0.5488 GB, free: 13.03 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009231/1.544, allocations: 0.6799 MB / 0.5495 GB, free: 12.35 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET8516878728.x[3],$STATESET8516878728.x[2],$STATESET8516878728.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02388/1.568, allocations: 5.625 MB / 0.555 GB, free: 6.676 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01692/1.585, allocations: 4.075 MB / 0.5589 GB, free: 2.574 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.807e-05/1.585, allocations: 4 kB / 0.559 GB, free: 2.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008383/1.593, allocations: 1.678 MB / 0.5606 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002963/1.596, allocations: 206.1 kB / 0.5608 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2965/1.893, allocations: 6.484 MB / 0.5671 GB, free: 109.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004333/1.897, allocations: 2.329 MB / 0.5694 GB, free: 108.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002697/1.9, allocations: 1.12 MB / 0.5705 GB, free: 108.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.312e-06/1.9, allocations: 0 / 0.5705 GB, free: 108.5 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.066/5.966, allocations: 85.05 MB / 0.6535 GB, free: 48.95 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat