Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.618/2.618, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.847e-05/2.877e-05, allocations: 3.594 kB / 249.8 MB, free: 5.258 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.528/0.6371, allocations: 89.61 MB / 383.9 MB, free: 8.07 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003396/0.6376, allocations: 82.36 kB / 384 MB, free: 8.059 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5244/1.162, allocations: 89.77 MB / 473.8 MB, free: 15.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.175e-06/1.162, allocations: 0 / 473.8 MB, free: 15.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003328/1.162, allocations: 88 kB / 473.8 MB, free: 15.51 MB / 378.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.03038/1.193, allocations: 4.632 MB / 478.5 MB, free: 10.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.639e-05/1.193, allocations: 12.03 kB / 478.5 MB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02831/1.221, allocations: 2.681 MB / 481.2 MB, free: 8.113 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0287/1.25, allocations: 5.527 MB / 486.7 MB, free: 2.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000404/1.25, allocations: 156 kB / 486.9 MB, free: 2.367 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002624/1.253, allocations: 279.9 kB / 487.1 MB, free: 2.094 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02242/1.275, allocations: 6.722 MB / 493.8 MB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03252/1.308, allocations: 10.19 MB / 0.4922 GB, free: 16 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.3379/1.646, allocations: 60.73 kB / 0.4923 GB, free: 79.87 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002589/1.649, allocations: 38.16 kB / 0.4923 GB, free: 79.87 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004437/1.653, allocations: 1.17 MB / 0.4935 GB, free: 79.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09416/1.747, allocations: 51.93 MB / 0.5442 GB, free: 47.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007999/1.755, allocations: 2.64 MB / 0.5468 GB, free: 46.64 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005016/1.761, allocations: 1.453 MB / 0.5482 GB, free: 46.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001241/1.762, allocations: 0.5686 MB / 0.5487 GB, free: 46.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.699e-05/1.762, allocations: 52.69 kB / 0.5488 GB, free: 46.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=168): time 9.287e-06/1.762, allocations: 0 / 0.5488 GB, free: 46.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=185): time 0.07628/1.838, allocations: 12.2 MB / 0.5607 GB, free: 43.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/1.838, allocations: 149 kB / 0.5608 GB, free: 42.87 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008918/1.847, allocations: 3.201 MB / 0.564 GB, free: 41.75 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005768/1.848, allocations: 25.7 kB / 0.564 GB, free: 41.72 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00355/1.851, allocations: 3.419 MB / 0.5673 GB, free: 39.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001391/1.853, allocations: 0.7188 MB / 0.568 GB, free: 38.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009296/1.854, allocations: 0 / 0.568 GB, free: 38.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0006326/1.855, allocations: 0.5979 MB / 0.5686 GB, free: 38.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00617/1.861, allocations: 2.006 MB / 0.5706 GB, free: 37.55 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009308/1.87, allocations: 6.183 MB / 0.5766 GB, free: 31.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009385/1.88, allocations: 3.461 MB / 0.58 GB, free: 30.19 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001875/1.88, allocations: 43.91 kB / 0.58 GB, free: 30.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=887) (initialization): time 0.02845/1.908, allocations: 7.981 MB / 0.5878 GB, free: 27.64 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/1.908, allocations: 67.25 kB / 0.5879 GB, free: 27.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009889/1.918, allocations: 2.581 MB / 0.5904 GB, free: 26.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006984/1.925, allocations: 1.077 MB / 0.5915 GB, free: 26.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01177/1.937, allocations: 1.616 MB / 0.593 GB, free: 26.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007234/1.944, allocations: 4.231 MB / 0.5972 GB, free: 23.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01419/1.959, allocations: 393.6 kB / 0.5975 GB, free: 22.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002364/1.961, allocations: 422.7 kB / 0.5979 GB, free: 22.36 MB / 394.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 (849): * Single equations (assignments): 840 * 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.002766/1.964, allocations: 493.9 kB / 0.5984 GB, free: 21.88 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01151/1.975, allocations: 3.275 MB / 0.6016 GB, free: 19.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/1.977, allocations: 343.5 kB / 0.6019 GB, free: 18.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01122/1.988, allocations: 2.923 MB / 0.6048 GB, free: 16.53 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009092/1.997, allocations: 2.459 MB / 0.6072 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-05/1.997, allocations: 4 kB / 0.6072 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.372e-05/1.997, allocations: 10.89 kB / 0.6072 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03119/2.029, allocations: 9.085 MB / 0.6161 GB, free: 7.234 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.695e-05/2.029, allocations: 11.94 kB / 0.6161 GB, free: 7.223 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003451/2.032, allocations: 332.6 kB / 0.6164 GB, free: 6.953 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005978/2.038, allocations: 0.9681 MB / 0.6174 GB, free: 6.316 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004978/2.039, allocations: 31.17 kB / 0.6174 GB, free: 6.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007912/2.047, allocations: 4.479 MB / 0.6218 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001189/2.048, allocations: 1.4 MB / 0.6231 GB, free: 0.6836 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01788/2.066, allocations: 6.631 MB / 0.6296 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00291/2.069, allocations: 0.6181 MB / 0.6302 GB, free: 9.859 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001275/2.07, allocations: 23.94 kB / 0.6302 GB, free: 9.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004145/2.074, allocations: 149.7 kB / 0.6304 GB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007438/2.075, allocations: 147.4 kB / 0.6305 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/2.075, allocations: 67.8 kB / 0.6306 GB, free: 9.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006364/2.082, allocations: 2.096 MB / 0.6326 GB, free: 7.785 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.82e-07/2.082, allocations: 0 / 0.6326 GB, free: 7.785 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01019/2.092, allocations: 0.9826 MB / 0.6336 GB, free: 6.809 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 14 ($STATESET140352174555528.x[3],$STATESET140352174555528.x[2],$STATESET140352174555528.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.4089/2.501, allocations: 9.899 MB / 0.6433 GB, free: 87.31 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01896/2.52, allocations: 5.342 MB / 0.6485 GB, free: 86.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.921e-05/2.52, allocations: 1.625 kB / 0.6485 GB, free: 86.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008433/2.528, allocations: 2.048 MB / 0.6505 GB, free: 86.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004131/2.533, allocations: 344.6 kB / 0.6508 GB, free: 86.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03817/2.571, allocations: 9.857 MB / 0.6604 GB, free: 84.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008645/2.579, allocations: 3.477 MB / 0.6638 GB, free: 83.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.01195/2.591, allocations: 2.061 MB / 0.6658 GB, free: 83.35 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005529/2.597, allocations: 2.02 MB / 0.6678 GB, free: 83.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.624e-06/2.597, allocations: 0 / 0.6678 GB, free: 83.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2836/2.881, allocations: 74.64 MB / 0.7407 GB, free: 43.5 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003574/2.881, allocations: 171.7 kB / 0.7409 GB, free: 43.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.588/9.469, allocations: 0 / 0.7409 GB, free: 43.3 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat