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 1.965/1.965, allocations: 194.9 MB / 208 MB, free: 3.188 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.689e-05/2.713e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09234/0.09239, allocations: 44.5 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5085/0.601, allocations: 92.8 MB / 392.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.6013, allocations: 88.45 kB / 392.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2959/0.8973, allocations: 73.99 MB / 466.8 MB, free: 340 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.8973, allocations: 0 / 466.8 MB, free: 340 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002/0.8975, allocations: 71.67 kB / 466.9 MB, free: 272 kB / 346.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.01304/0.9106, allocations: 3.432 MB / 470.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.9107, allocations: 12.03 kB / 470.3 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002719/0.9134, allocations: 0.6685 MB / 471 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01777/0.9312, allocations: 2.261 MB / 473.3 MB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01584/0.9471, allocations: 3.9 MB / 477.2 MB, free: 5.961 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000333/0.9475, allocations: 277.4 kB / 477.4 MB, free: 5.715 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/0.9493, allocations: 350.7 kB / 477.8 MB, free: 5.395 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03293/0.9823, allocations: 10.26 MB / 488 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001983/0.9825, allocations: 63.41 kB / 488.1 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001016/0.9836, allocations: 175.2 kB / 488.3 MB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002788/0.9864, allocations: 0.9818 MB / 489.3 MB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03043/1.017, allocations: 8.473 MB / 497.7 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3608/1.378, allocations: 44.34 MB / 0.5294 GB, free: 67.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01668/1.394, allocations: 3.538 MB / 0.5328 GB, free: 66.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004044/1.399, allocations: 1.731 MB / 0.5345 GB, free: 66.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01747/1.416, allocations: 7.145 MB / 0.5415 GB, free: 65.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.719e-05/1.416, allocations: 53.58 kB / 0.5415 GB, free: 65.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 5.39e-06/1.416, allocations: 0 / 0.5415 GB, free: 65.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.07668/1.493, allocations: 14.36 MB / 0.5556 GB, free: 62.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.409e-05/1.493, allocations: 152.5 kB / 0.5557 GB, free: 62.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006866/1.5, allocations: 3.03 MB / 0.5587 GB, free: 62.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004253/1.5, allocations: 47.78 kB / 0.5587 GB, free: 62.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002373/1.503, allocations: 2.713 MB / 0.5614 GB, free: 60.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001172/1.504, allocations: 0.6039 MB / 0.562 GB, free: 60.31 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000931/1.505, allocations: 106.8 kB / 0.5621 GB, free: 60.31 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000408/1.505, allocations: 0.5328 MB / 0.5626 GB, free: 60 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006282/1.512, allocations: 1.838 MB / 0.5644 GB, free: 59.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01115/1.523, allocations: 5.204 MB / 0.5695 GB, free: 55.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007036/1.53, allocations: 3.054 MB / 0.5724 GB, free: 55.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/1.53, allocations: 37.69 kB / 0.5725 GB, free: 55.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02465/1.555, allocations: 7.896 MB / 0.5802 GB, free: 53.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001189/1.555, allocations: 54.53 kB / 0.5802 GB, free: 53.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002032/1.555, allocations: 123 kB / 0.5804 GB, free: 53.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007357/1.563, allocations: 1.308 MB / 0.5816 GB, free: 53.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007991/1.571, allocations: 1.255 MB / 0.5829 GB, free: 53.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01438/1.585, allocations: 6.102 MB / 0.5888 GB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006975/1.592, allocations: 351.6 kB / 0.5892 GB, free: 50.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001444/1.594, allocations: 333 kB / 0.5895 GB, free: 50.45 MB / 410.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.002192/1.596, allocations: 0.5218 MB / 0.59 GB, free: 50.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009087/1.597, allocations: 300.6 kB / 0.5903 GB, free: 49.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/1.609, allocations: 3.248 MB / 0.5934 GB, free: 48.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-05/1.609, allocations: 20.72 kB / 0.5935 GB, free: 48.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.752e-05/1.609, allocations: 3.438 kB / 0.5935 GB, free: 48.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.825e-05/1.609, allocations: 6.703 kB / 0.5935 GB, free: 48.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02585/1.635, allocations: 7.314 MB / 0.6006 GB, free: 45.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.282e-05/1.635, allocations: 2.516 kB / 0.6006 GB, free: 45.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/1.637, allocations: 232.8 kB / 0.6008 GB, free: 45.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006707/1.644, allocations: 1.119 MB / 0.6019 GB, free: 44.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004293/1.645, allocations: 30.77 kB / 0.602 GB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/1.658, allocations: 5.734 MB / 0.6076 GB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/1.658, allocations: 3.938 kB / 0.6076 GB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01503/1.673, allocations: 5.543 MB / 0.613 GB, free: 35.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002209/1.675, allocations: 0.5719 MB / 0.6135 GB, free: 34.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006291/1.676, allocations: 28.86 kB / 0.6136 GB, free: 34.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002557/1.678, allocations: 110.3 kB / 0.6137 GB, free: 34.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003571/1.679, allocations: 84.98 kB / 0.6137 GB, free: 34.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/1.679, allocations: 40 kB / 0.6138 GB, free: 34.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004953/1.684, allocations: 2.09 MB / 0.6158 GB, free: 32.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.684, allocations: 0 / 0.6158 GB, free: 32.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006062/1.69, allocations: 0.9014 MB / 0.6167 GB, free: 31.82 MB / 410.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.01579/1.706, allocations: 6.371 MB / 0.6229 GB, free: 26.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01091/1.717, allocations: 4.567 MB / 0.6274 GB, free: 22.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.717, allocations: 0 / 0.6274 GB, free: 22.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003508/1.72, allocations: 1.463 MB / 0.6288 GB, free: 20.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002684/1.723, allocations: 302.3 kB / 0.6291 GB, free: 20.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02685/1.75, allocations: 7.733 MB / 0.6367 GB, free: 13.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005952/1.756, allocations: 2.895 MB / 0.6395 GB, free: 11.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.007806/1.764, allocations: 1.687 MB / 0.6411 GB, free: 10.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003697/1.768, allocations: 1.556 MB / 0.6427 GB, free: 9.207 MB / 410.7 MB Notification: Performance of SimCode: time 1.913e-06/1.768, allocations: 0 / 0.6427 GB, free: 9.207 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.46/2.228, allocations: 66.49 MB / 0.7076 GB, free: 111.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002377/2.228, allocations: 197.3 kB / 0.7078 GB, free: 111.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.781/7.009, allocations: 0 / 0.7078 GB, free: 111.4 MB / 442.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