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.926/1.926, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.279e-05/3.289e-05, allocations: 4 kB / 255.5 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09559/0.09566, allocations: 44.5 MB / 300 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4266/0.5224, allocations: 90.28 MB / 390.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/0.5227, allocations: 89.97 kB / 390.3 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3743/0.897, allocations: 91.78 MB / 482.1 MB, free: 1.598 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.897, allocations: 0 / 482.1 MB, free: 1.598 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002743/0.8973, allocations: 88 kB / 482.2 MB, free: 1.512 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.02511/0.9224, allocations: 4.633 MB / 486.8 MB, free: 12.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.9225, allocations: 12.03 kB / 486.8 MB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003867/0.9264, allocations: 0.8333 MB / 487.7 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0225/0.9489, allocations: 2.681 MB / 490.4 MB, free: 9.324 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02181/0.9708, allocations: 5.54 MB / 495.9 MB, free: 3.793 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005424/0.9714, allocations: 355 kB / 496.2 MB, free: 3.477 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002641/0.974, allocations: 466.4 kB / 496.7 MB, free: 3.051 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0428/1.017, allocations: 12.22 MB / 0.497 GB, free: 5.766 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002783/1.017, allocations: 59.41 kB / 0.497 GB, free: 5.707 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00193/1.019, allocations: 228.2 kB / 0.4973 GB, free: 5.512 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003392/1.023, allocations: 1.18 MB / 0.4984 GB, free: 4.332 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03615/1.059, allocations: 9.717 MB / 0.5079 GB, free: 10.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.363/1.422, allocations: 52.32 MB / 0.559 GB, free: 48.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01782/1.44, allocations: 4.022 MB / 0.5629 GB, free: 47.65 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003555/1.443, allocations: 1.592 MB / 0.5645 GB, free: 47.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01804/1.461, allocations: 7.413 MB / 0.5717 GB, free: 45.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/1.461, allocations: 49.72 kB / 0.5718 GB, free: 45.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=165): time 4.859e-06/1.461, allocations: 0.9375 kB / 0.5718 GB, free: 45.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=188): time 0.06425/1.526, allocations: 13.82 MB / 0.5853 GB, free: 42.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001331/1.527, allocations: 1.593 MB / 0.5868 GB, free: 40.87 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008701/1.536, allocations: 3.668 MB / 0.5904 GB, free: 40.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005013/1.536, allocations: 51.84 kB / 0.5905 GB, free: 40.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00287/1.539, allocations: 3.304 MB / 0.5937 GB, free: 38.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001237/1.541, allocations: 0.7534 MB / 0.5944 GB, free: 38.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008077/1.541, allocations: 129.3 kB / 0.5945 GB, free: 38.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004267/1.542, allocations: 0.5904 MB / 0.5951 GB, free: 37.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005345/1.547, allocations: 2.101 MB / 0.5972 GB, free: 37.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008277/1.555, allocations: 6.114 MB / 0.6031 GB, free: 31.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008028/1.564, allocations: 3.537 MB / 0.6066 GB, free: 30.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001472/1.564, allocations: 41.84 kB / 0.6066 GB, free: 30.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.02461/1.588, allocations: 8.239 MB / 0.6147 GB, free: 28.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/1.588, allocations: 67.38 kB / 0.6147 GB, free: 28.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008893/1.597, allocations: 2.692 MB / 0.6174 GB, free: 27.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005723/1.603, allocations: 1.082 MB / 0.6184 GB, free: 27.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009634/1.613, allocations: 1.575 MB / 0.62 GB, free: 27.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006189/1.619, allocations: 4.373 MB / 0.6242 GB, free: 24.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008928/1.628, allocations: 0.5076 MB / 0.6247 GB, free: 24.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001652/1.63, allocations: 408.3 kB / 0.6251 GB, free: 24.14 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.001502/1.631, allocations: 0.6103 MB / 0.6257 GB, free: 23.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/1.632, allocations: 366.7 kB / 0.6261 GB, free: 23.44 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009929/1.642, allocations: 3.139 MB / 0.6291 GB, free: 22.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00834/1.651, allocations: 2.596 MB / 0.6317 GB, free: 21.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-05/1.651, allocations: 3.562 kB / 0.6317 GB, free: 21.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.971e-05/1.651, allocations: 6.281 kB / 0.6317 GB, free: 21.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02909/1.68, allocations: 9.947 MB / 0.6414 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.872e-05/1.68, allocations: 12 kB / 0.6414 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003019/1.683, allocations: 345.7 kB / 0.6417 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005217/1.688, allocations: 0.9776 MB / 0.6427 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004833/1.689, allocations: 55.27 kB / 0.6427 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00694/1.696, allocations: 4.595 MB / 0.6472 GB, free: 9.195 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001081/1.697, allocations: 1.461 MB / 0.6487 GB, free: 7.648 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01406/1.711, allocations: 7.13 MB / 0.6556 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002325/1.713, allocations: 0.6542 MB / 0.6563 GB, free: 104 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001076/1.714, allocations: 53.62 kB / 0.6563 GB, free: 60 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004231/1.719, allocations: 196.9 kB / 0.6565 GB, free: 0 / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007776/1.719, allocations: 163.7 kB / 0.6567 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002452/1.72, allocations: 77.48 kB / 0.6567 GB, free: 15.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007125/1.727, allocations: 2.52 MB / 0.6592 GB, free: 13.58 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.727, allocations: 0 / 0.6592 GB, free: 13.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008739/1.736, allocations: 1.118 MB / 0.6603 GB, free: 12.47 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.01877/1.754, allocations: 10.77 MB / 0.6708 GB, free: 2.066 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2978/2.052, allocations: 5.417 MB / 0.6761 GB, free: 98.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.97e-05/2.052, allocations: 2.75 kB / 0.6761 GB, free: 98.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009055/2.061, allocations: 2.078 MB / 0.6781 GB, free: 98.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005091/2.067, allocations: 439.9 kB / 0.6785 GB, free: 98.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04526/2.112, allocations: 10.64 MB / 0.6889 GB, free: 95.99 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007987/2.12, allocations: 3.495 MB / 0.6923 GB, free: 95.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005459/2.125, allocations: 2.095 MB / 0.6944 GB, free: 95.19 MB / 426.7 MB Notification: Performance of SimCode: time 1.974e-06/2.125, allocations: 3.938 kB / 0.6944 GB, free: 95.19 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.934/7.059, allocations: 156.6 MB / 0.8473 GB, free: 96.04 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