Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.238e-05/3.24e-05, allocations: 8 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2571, allocations: 38.77 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1565/0.4136, allocations: 87.04 MB / 350.9 MB, free: 2.676 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.414, allocations: 87.94 kB / 351 MB, free: 2.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5955/1.009, allocations: 73.93 MB / 424.9 MB, free: 48.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.01, allocations: 0 / 424.9 MB, free: 48.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001557/1.01, allocations: 71.94 kB / 425 MB, free: 48.89 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: 1322 * Number of variables: 1322 Notification: Performance of Generate backend data structure: time 0.0112/1.021, allocations: 3.429 MB / 428.4 MB, free: 45.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/1.021, allocations: 12.03 kB / 428.4 MB, free: 45.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002073/1.023, allocations: 0.6639 MB / 429.1 MB, free: 44.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01651/1.04, allocations: 2.265 MB / 431.3 MB, free: 42.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01392/1.054, allocations: 3.893 MB / 435.2 MB, free: 38.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/1.054, allocations: 275.1 kB / 435.5 MB, free: 38.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001293/1.055, allocations: 363.8 kB / 435.9 MB, free: 37.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02817/1.083, allocations: 10.26 MB / 446.1 MB, free: 26.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001647/1.084, allocations: 55.48 kB / 446.2 MB, free: 26.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008182/1.084, allocations: 179.9 kB / 446.3 MB, free: 26.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002049/1.086, allocations: 0.9779 MB / 447.3 MB, free: 25.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02646/1.113, allocations: 8.473 MB / 455.8 MB, free: 16.95 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06373/1.177, allocations: 44.01 MB / 499.8 MB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2525/1.429, allocations: 3.535 MB / 0.4915 GB, free: 83.94 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004141/1.433, allocations: 1.734 MB / 0.4932 GB, free: 83.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01485/1.448, allocations: 7.143 MB / 0.5002 GB, free: 82.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/1.448, allocations: 43.44 kB / 0.5002 GB, free: 82.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 5.901e-06/1.448, allocations: 3.719 kB / 0.5003 GB, free: 82.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.07103/1.519, allocations: 14.37 MB / 0.5143 GB, free: 79.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/1.52, allocations: 139.8 kB / 0.5144 GB, free: 79.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005624/1.525, allocations: 3.039 MB / 0.5174 GB, free: 79.37 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004262/1.526, allocations: 48.83 kB / 0.5174 GB, free: 79.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/1.528, allocations: 2.669 MB / 0.52 GB, free: 77.64 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008493/1.528, allocations: 0.6139 MB / 0.5206 GB, free: 77.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004267/1.529, allocations: 102.6 kB / 0.5207 GB, free: 77.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003152/1.529, allocations: 0.5327 MB / 0.5213 GB, free: 76.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004102/1.533, allocations: 1.841 MB / 0.5231 GB, free: 76.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005929/1.539, allocations: 5.199 MB / 0.5281 GB, free: 70.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006576/1.546, allocations: 3.044 MB / 0.5311 GB, free: 70.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.595e-05/1.546, allocations: 34.5 kB / 0.5311 GB, free: 70.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02297/1.569, allocations: 7.808 MB / 0.5388 GB, free: 67.85 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.262e-05/1.569, allocations: 57.88 kB / 0.5388 GB, free: 67.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001389/1.569, allocations: 118.9 kB / 0.5389 GB, free: 67.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007053/1.576, allocations: 1.305 MB / 0.5402 GB, free: 66.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00758/1.584, allocations: 1.261 MB / 0.5414 GB, free: 65.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01342/1.597, allocations: 6.109 MB / 0.5474 GB, free: 60.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00662/1.604, allocations: 343.9 kB / 0.5477 GB, free: 60.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001237/1.605, allocations: 334.3 kB / 0.5481 GB, free: 59.87 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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],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 (665): * Single equations (assignments): 661 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001173/1.607, allocations: 0.5257 MB / 0.5486 GB, free: 59.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007966/1.607, allocations: 304.1 kB / 0.5489 GB, free: 59.04 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01142/1.619, allocations: 3.242 MB / 0.552 GB, free: 56.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.542e-05/1.619, allocations: 19.36 kB / 0.552 GB, free: 56.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/1.619, allocations: 4 kB / 0.552 GB, free: 56.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.924e-05/1.619, allocations: 6.047 kB / 0.552 GB, free: 56.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02249/1.641, allocations: 7.31 MB / 0.5592 GB, free: 50.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.731e-05/1.642, allocations: 4 kB / 0.5592 GB, free: 50.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002363/1.644, allocations: 234.9 kB / 0.5594 GB, free: 50.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006699/1.651, allocations: 1.118 MB / 0.5605 GB, free: 49.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003427/1.651, allocations: 31.83 kB / 0.5605 GB, free: 49.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01308/1.664, allocations: 5.743 MB / 0.5661 GB, free: 44.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.664, allocations: 4.031 kB / 0.5661 GB, free: 44.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/1.68, allocations: 5.538 MB / 0.5716 GB, free: 40.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002203/1.682, allocations: 0.5799 MB / 0.5721 GB, free: 39.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009381/1.683, allocations: 24 kB / 0.5721 GB, free: 39.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003137/1.686, allocations: 105.9 kB / 0.5722 GB, free: 39.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005965/1.687, allocations: 81.88 kB / 0.5723 GB, free: 39.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001893/1.687, allocations: 37.97 kB / 0.5724 GB, free: 39.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005138/1.692, allocations: 2.093 MB / 0.5744 GB, free: 37.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.692, allocations: 0 / 0.5744 GB, free: 37.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006167/1.698, allocations: 0.8928 MB / 0.5753 GB, free: 36.68 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01619/1.714, allocations: 6.366 MB / 0.5815 GB, free: 30.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01064/1.725, allocations: 4.573 MB / 0.586 GB, free: 25.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.725, allocations: 0 / 0.586 GB, free: 25.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003461/1.729, allocations: 1.463 MB / 0.5874 GB, free: 24.33 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/1.731, allocations: 312.7 kB / 0.5877 GB, free: 24.03 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02692/1.758, allocations: 8.118 MB / 0.5956 GB, free: 15.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005358/1.764, allocations: 2.898 MB / 0.5984 GB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003763/1.767, allocations: 1.593 MB / 0.6 GB, free: 11.39 MB / 346.7 MB Notification: Performance of SimCode: time 1.312e-06/1.768, allocations: 0 / 0.6 GB, free: 11.39 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.534/6.302, allocations: 83.23 MB / 0.6813 GB, free: 58.78 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat