Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.025/2.025, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.895e-05/2.897e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3374, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1937/0.5312, allocations: 92.13 MB / 386.4 MB, free: 5.695 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.5315, allocations: 91.88 kB / 386.4 MB, free: 5.605 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5712/1.103, allocations: 72.39 MB / 458.8 MB, free: 88.19 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.265e-06/1.103, allocations: 4 kB / 458.8 MB, free: 88.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001964/1.103, allocations: 68.28 kB / 458.9 MB, free: 88.19 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: 1323 * Number of variables: 1323 Notification: Performance of Generate backend data structure: time 0.01341/1.116, allocations: 3.42 MB / 462.3 MB, free: 85.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/1.116, allocations: 11.38 kB / 462.3 MB, free: 85.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01715/1.134, allocations: 2.26 MB / 464.6 MB, free: 83.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01468/1.148, allocations: 3.897 MB / 468.5 MB, free: 79.94 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003065/1.149, allocations: 120 kB / 468.6 MB, free: 79.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002376/1.151, allocations: 208 kB / 468.8 MB, free: 79.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01354/1.165, allocations: 5.495 MB / 474.3 MB, free: 74.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02113/1.186, allocations: 8.451 MB / 482.8 MB, free: 64.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002608/1.186, allocations: 63.39 kB / 482.8 MB, free: 64.65 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002093/1.188, allocations: 32 kB / 482.9 MB, free: 64.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002546/1.191, allocations: 0.974 MB / 483.8 MB, free: 63.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06303/1.254, allocations: 43.42 MB / 0.5149 GB, free: 19.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004982/1.259, allocations: 2.686 MB / 0.5175 GB, free: 16.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003013/1.262, allocations: 1.62 MB / 0.5191 GB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007549/1.263, allocations: 0.5447 MB / 0.5196 GB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/1.263, allocations: 47.34 kB / 0.5197 GB, free: 13.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=145): time 6.091e-06/1.263, allocations: 0 / 0.5197 GB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=162): time 0.06146/1.324, allocations: 16.17 MB / 0.5355 GB, free: 13.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.402e-05/1.325, allocations: 149.8 kB / 0.5356 GB, free: 13.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005804/1.33, allocations: 2.594 MB / 0.5381 GB, free: 10.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004564/1.331, allocations: 25.7 kB / 0.5382 GB, free: 10.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002955/1.334, allocations: 2.756 MB / 0.5409 GB, free: 8.004 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001181/1.335, allocations: 0.617 MB / 0.5415 GB, free: 7.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005529/1.336, allocations: 0 / 0.5415 GB, free: 7.379 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000479/1.336, allocations: 0.5378 MB / 0.542 GB, free: 6.832 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004666/1.341, allocations: 1.811 MB / 0.5438 GB, free: 5.012 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008479/1.349, allocations: 5.268 MB / 0.5489 GB, free: 13.97 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007862/1.357, allocations: 3.042 MB / 0.5519 GB, free: 10.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001282/1.358, allocations: 40 kB / 0.5519 GB, free: 10.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=739) (initialization): time 0.02588/1.383, allocations: 7.349 MB / 0.5591 GB, free: 3.531 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/1.384, allocations: 56 kB / 0.5591 GB, free: 3.477 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002071/1.384, allocations: 128 kB / 0.5593 GB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007554/1.391, allocations: 1.295 MB / 0.5605 GB, free: 2.055 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008688/1.4, allocations: 1.314 MB / 0.5618 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2997/1.7, allocations: 5.811 MB / 0.5675 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007034/1.707, allocations: 247.7 kB / 0.5677 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00162/1.709, allocations: 346.1 kB / 0.568 GB, free: 101.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * 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 (696): * Single equations (assignments): 692 * 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.001882/1.711, allocations: 422.1 kB / 0.5684 GB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01209/1.723, allocations: 3.478 MB / 0.5718 GB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00093/1.724, allocations: 273.3 kB / 0.5721 GB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.735, allocations: 3.142 MB / 0.5752 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.369e-05/1.735, allocations: 18.89 kB / 0.5752 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/1.735, allocations: 7.609 kB / 0.5752 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.668e-05/1.735, allocations: 9.547 kB / 0.5752 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02105/1.756, allocations: 6.908 MB / 0.582 GB, free: 100.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-05/1.756, allocations: 0 / 0.582 GB, free: 100.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002424/1.758, allocations: 241.1 kB / 0.5822 GB, free: 100.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006369/1.765, allocations: 1.101 MB / 0.5833 GB, free: 100.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003506/1.765, allocations: 7.406 kB / 0.5833 GB, free: 100.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01222/1.777, allocations: 5.453 MB / 0.5886 GB, free: 97.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/1.778, allocations: 0 / 0.5886 GB, free: 97.95 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0148/1.792, allocations: 5.547 MB / 0.594 GB, free: 95.94 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/1.794, allocations: 0.5415 MB / 0.5945 GB, free: 95.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006149/1.795, allocations: 3.906 kB / 0.5945 GB, free: 95.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002345/1.797, allocations: 85.52 kB / 0.5946 GB, free: 95.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003903/1.798, allocations: 83.75 kB / 0.5947 GB, free: 95.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001823/1.798, allocations: 49.97 kB / 0.5947 GB, free: 95.59 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003307/1.801, allocations: 1.701 MB / 0.5964 GB, free: 94.96 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.801, allocations: 0 / 0.5964 GB, free: 94.96 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006525/1.808, allocations: 0.7744 MB / 0.5972 GB, free: 94.96 MB / 394.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 (126): * Single equations (assignments): 122 * 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.01513/1.823, allocations: 6.357 MB / 0.6034 GB, free: 92.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009765/1.833, allocations: 4.415 MB / 0.6077 GB, free: 90.87 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/1.833, allocations: 0 / 0.6077 GB, free: 90.87 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003285/1.836, allocations: 1.467 MB / 0.6091 GB, free: 89.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/1.838, allocations: 245.3 kB / 0.6094 GB, free: 89.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02457/1.863, allocations: 7.663 MB / 0.6168 GB, free: 82.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003923/1.867, allocations: 2.896 MB / 0.6197 GB, free: 80.77 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.007267/1.874, allocations: 1.763 MB / 0.6214 GB, free: 79.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003251/1.878, allocations: 1.555 MB / 0.6229 GB, free: 78.32 MB / 394.7 MB Notification: Performance of SimCode: time 1.492e-06/1.878, allocations: 0 / 0.6229 GB, free: 78.32 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1554/2.033, allocations: 61.63 MB / 0.6831 GB, free: 18.35 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002706/2.033, allocations: 182.1 kB / 0.6833 GB, free: 18.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.481/6.515, allocations: 0 / 0.6833 GB, free: 18.14 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat