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.633/1.633, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.137e-05/3.158e-05, allocations: 7.984 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2515, allocations: 38.76 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1865/0.4381, allocations: 84.66 MB / 348.5 MB, free: 5.086 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.4384, allocations: 83.95 kB / 348.6 MB, free: 5.004 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5646/1.003, allocations: 91.6 MB / 440.2 MB, free: 33.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/1.003, allocations: 0 / 440.2 MB, free: 33.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002281/1.003, allocations: 91.94 kB / 440.3 MB, free: 33.32 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.02307/1.026, allocations: 4.617 MB / 444.9 MB, free: 28.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/1.027, allocations: 12.03 kB / 444.9 MB, free: 28.62 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003265/1.03, allocations: 0.836 MB / 445.7 MB, free: 27.78 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0208/1.051, allocations: 2.666 MB / 448.4 MB, free: 25.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01966/1.07, allocations: 5.547 MB / 454 MB, free: 19.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004263/1.071, allocations: 353.2 kB / 454.3 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002453/1.073, allocations: 467.8 kB / 454.8 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03736/1.111, allocations: 12.22 MB / 467 MB, free: 5.305 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002975/1.111, allocations: 67.34 kB / 467.1 MB, free: 5.238 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002143/1.113, allocations: 227.9 kB / 467.3 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002918/1.116, allocations: 1.175 MB / 468.4 MB, free: 3.836 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03467/1.151, allocations: 9.717 MB / 478.2 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3393/1.49, allocations: 52.31 MB / 0.518 GB, free: 36.13 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01774/1.508, allocations: 4.031 MB / 0.522 GB, free: 35.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003536/1.512, allocations: 1.592 MB / 0.5235 GB, free: 35.42 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0177/1.529, allocations: 7.405 MB / 0.5308 GB, free: 33.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/1.529, allocations: 52.56 kB / 0.5308 GB, free: 33.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 5.57e-06/1.529, allocations: 0 / 0.5308 GB, free: 33.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=188): time 0.06264/1.592, allocations: 13.82 MB / 0.5443 GB, free: 30.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001284/1.593, allocations: 1.595 MB / 0.5459 GB, free: 28.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008369/1.602, allocations: 3.669 MB / 0.5495 GB, free: 28.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004731/1.602, allocations: 50.73 kB / 0.5495 GB, free: 28.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002713/1.605, allocations: 3.309 MB / 0.5527 GB, free: 25.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001169/1.606, allocations: 0.7485 MB / 0.5535 GB, free: 25.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000788/1.607, allocations: 129 kB / 0.5536 GB, free: 25.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004241/1.607, allocations: 0.5926 MB / 0.5542 GB, free: 24.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00962/1.617, allocations: 2.094 MB / 0.5562 GB, free: 24.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01354/1.631, allocations: 6.109 MB / 0.5622 GB, free: 17.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01179/1.643, allocations: 3.534 MB / 0.5656 GB, free: 17.03 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001501/1.643, allocations: 43.31 kB / 0.5657 GB, free: 17.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.02308/1.666, allocations: 8.139 MB / 0.5736 GB, free: 13.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.666, allocations: 64 kB / 0.5737 GB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008149/1.674, allocations: 2.613 MB / 0.5762 GB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004811/1.679, allocations: 1.008 MB / 0.5772 GB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009748/1.689, allocations: 1.587 MB / 0.5788 GB, free: 9.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004896/1.694, allocations: 4.004 MB / 0.5827 GB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008748/1.703, allocations: 0.4968 MB / 0.5832 GB, free: 5.039 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001494/1.704, allocations: 404.5 kB / 0.5835 GB, free: 4.652 MB / 346.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 (828): * Single equations (assignments): 819 * 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.00154/1.706, allocations: 0.6154 MB / 0.5841 GB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008969/1.707, allocations: 378.5 kB / 0.5845 GB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009884/1.716, allocations: 3.138 MB / 0.5876 GB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01157/1.728, allocations: 2.754 MB / 0.5903 GB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-05/1.728, allocations: 7.5 kB / 0.5903 GB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.556e-05/1.728, allocations: 7.453 kB / 0.5903 GB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03123/1.759, allocations: 9.929 MB / 0.6 GB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.085e-05/1.76, allocations: 12 kB / 0.6 GB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003125/1.763, allocations: 344.9 kB / 0.6003 GB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005452/1.768, allocations: 0.9765 MB / 0.6013 GB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004689/1.769, allocations: 59.5 kB / 0.6013 GB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008169/1.777, allocations: 4.578 MB / 0.6058 GB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001493/1.778, allocations: 1.47 MB / 0.6072 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01628/1.795, allocations: 7.143 MB / 0.6142 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002554/1.797, allocations: 0.6561 MB / 0.6148 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009327/1.798, allocations: 55.97 kB / 0.6149 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003572/1.802, allocations: 171.8 kB / 0.6151 GB, free: 8.348 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004888/1.802, allocations: 160.3 kB / 0.6152 GB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002398/1.803, allocations: 74.12 kB / 0.6153 GB, free: 8.121 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007422/1.81, allocations: 2.513 MB / 0.6177 GB, free: 5.594 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.81, allocations: 0 / 0.6177 GB, free: 5.594 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008302/1.818, allocations: 1.116 MB / 0.6188 GB, free: 4.484 MB / 378.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.01818/1.837, allocations: 10.76 MB / 0.6293 GB, free: 9.305 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0158/1.852, allocations: 5.287 MB / 0.6345 GB, free: 4.004 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/1.852, allocations: 0 / 0.6345 GB, free: 4.004 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006931/1.859, allocations: 2.087 MB / 0.6365 GB, free: 1.855 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003858/1.863, allocations: 440.9 kB / 0.637 GB, free: 1.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3227/2.186, allocations: 10.63 MB / 0.6473 GB, free: 112.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007034/2.193, allocations: 3.5 MB / 0.6508 GB, free: 111.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004428/2.198, allocations: 2.094 MB / 0.6528 GB, free: 111.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.583e-06/2.198, allocations: 4.875 kB / 0.6528 GB, free: 111.7 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.864/7.062, allocations: 156.3 MB / 0.8055 GB, free: 111.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