Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.167e-05/4.174e-05, allocations: 4 kB / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1167, allocations: 50.42 MB / 342.7 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5171/0.6338, allocations: 101.4 MB / 444.1 MB, free: 8.699 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.6342, allocations: 87.39 kB / 444.2 MB, free: 8.656 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3554/0.9896, allocations: 76.56 MB / 0.5085 GB, free: 64 kB / 426.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.9897, allocations: 0 / 0.5085 GB, free: 64 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002666/0.99, allocations: 68.05 kB / 0.5086 GB, free: 15.99 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01473/1.005, allocations: 3.484 MB / 0.512 GB, free: 12.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/1.005, allocations: 8.031 kB / 0.512 GB, free: 12.45 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003214/1.008, allocations: 0.6841 MB / 0.5127 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01841/1.026, allocations: 2.273 MB / 0.5149 GB, free: 9.469 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01669/1.043, allocations: 3.79 MB / 0.5186 GB, free: 5.629 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004932/1.044, allocations: 291.3 kB / 0.5189 GB, free: 5.344 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002341/1.046, allocations: 363.9 kB / 0.5192 GB, free: 4.988 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3428/1.389, allocations: 10.34 MB / 0.5293 GB, free: 100.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003159/1.389, allocations: 55.48 kB / 0.5294 GB, free: 100.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001874/1.391, allocations: 182.9 kB / 0.5295 GB, free: 100.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00299/1.394, allocations: 0.9958 MB / 0.5305 GB, free: 100.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0319/1.426, allocations: 8.42 MB / 0.5387 GB, free: 100.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06579/1.492, allocations: 44.72 MB / 0.5824 GB, free: 71.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01613/1.508, allocations: 3.833 MB / 0.5861 GB, free: 69.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003672/1.512, allocations: 1.763 MB / 0.5879 GB, free: 69.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01643/1.528, allocations: 7.626 MB / 0.5953 GB, free: 65.01 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/1.529, allocations: 48.66 kB / 0.5954 GB, free: 64.96 MB / 442.7 MB Notification: Performance of pre-optimization done (n=150): time 7.745e-06/1.529, allocations: 3.531 kB / 0.5954 GB, free: 64.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=166): time 0.07358/1.602, allocations: 14.65 MB / 0.6097 GB, free: 60.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/1.602, allocations: 148.9 kB / 0.6098 GB, free: 60.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006098/1.608, allocations: 3.046 MB / 0.6128 GB, free: 59.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004241/1.609, allocations: 50.83 kB / 0.6128 GB, free: 59.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002105/1.611, allocations: 2.736 MB / 0.6155 GB, free: 57.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008926/1.612, allocations: 0.6493 MB / 0.6161 GB, free: 56.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004238/1.612, allocations: 110.8 kB / 0.6162 GB, free: 56.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003088/1.613, allocations: 0.537 MB / 0.6168 GB, free: 56.08 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00398/1.617, allocations: 1.867 MB / 0.6186 GB, free: 55.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00558/1.622, allocations: 5.228 MB / 0.6237 GB, free: 50.19 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006556/1.629, allocations: 3.09 MB / 0.6267 GB, free: 48.68 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.811e-05/1.629, allocations: 36 kB / 0.6267 GB, free: 48.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.02305/1.652, allocations: 7.646 MB / 0.6342 GB, free: 42.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.118e-05/1.652, allocations: 56 kB / 0.6343 GB, free: 42.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/1.652, allocations: 120 kB / 0.6344 GB, free: 42.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009666/1.662, allocations: 1.311 MB / 0.6357 GB, free: 41.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009395/1.671, allocations: 1.273 MB / 0.6369 GB, free: 40.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01874/1.69, allocations: 6.119 MB / 0.6429 GB, free: 34.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006652/1.697, allocations: 334.2 kB / 0.6432 GB, free: 34.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/1.698, allocations: 337 kB / 0.6435 GB, free: 34.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * Number of states: 0 () * Number of discrete variables: 36 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (679): * Single equations (assignments): 675 * 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.001423/1.7, allocations: 0.5368 MB / 0.644 GB, free: 33.55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000762/1.7, allocations: 304.6 kB / 0.6443 GB, free: 33.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/1.712, allocations: 3.322 MB / 0.6476 GB, free: 30.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.912e-05/1.712, allocations: 21.41 kB / 0.6476 GB, free: 30.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/1.712, allocations: 4 kB / 0.6476 GB, free: 30.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.307e-05/1.712, allocations: 7.031 kB / 0.6476 GB, free: 30.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0244/1.737, allocations: 7.572 MB / 0.655 GB, free: 24.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.797e-05/1.737, allocations: 0 / 0.655 GB, free: 24.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002422/1.739, allocations: 240.5 kB / 0.6552 GB, free: 24.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006796/1.746, allocations: 1.11 MB / 0.6563 GB, free: 23.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003916/1.746, allocations: 28.03 kB / 0.6563 GB, free: 23.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/1.76, allocations: 5.768 MB / 0.662 GB, free: 17.83 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.76, allocations: 0 / 0.662 GB, free: 17.83 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01546/1.775, allocations: 5.689 MB / 0.6675 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/1.776, allocations: 361 kB / 0.6679 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001231/1.778, allocations: 26.25 kB / 0.6679 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003238/1.781, allocations: 104.6 kB / 0.668 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005684/1.781, allocations: 84.88 kB / 0.6681 GB, free: 11.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002543/1.782, allocations: 44.94 kB / 0.6681 GB, free: 11.47 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006559/1.788, allocations: 2.102 MB / 0.6702 GB, free: 9.375 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.788, allocations: 0 / 0.6702 GB, free: 9.375 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009584/1.798, allocations: 0.9172 MB / 0.6711 GB, free: 8.465 MB / 442.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 (129): * Single equations (assignments): 125 * 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.0224/1.82, allocations: 6.529 MB / 0.6774 GB, free: 1.898 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01567/1.836, allocations: 4.468 MB / 0.6818 GB, free: 13.45 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.836, allocations: 4 kB / 0.6818 GB, free: 13.45 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005316/1.842, allocations: 1.489 MB / 0.6833 GB, free: 11.95 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003368/1.845, allocations: 326.5 kB / 0.6836 GB, free: 11.64 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03273/1.878, allocations: 7.749 MB / 0.6911 GB, free: 3.848 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004672/1.882, allocations: 2.929 MB / 0.694 GB, free: 0.8945 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.3073/2.19, allocations: 1.701 MB / 0.6957 GB, free: 107.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00397/2.194, allocations: 1.586 MB / 0.6972 GB, free: 107.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.522e-06/2.194, allocations: 0 / 0.6972 GB, free: 107.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1595/2.353, allocations: 67.4 MB / 0.763 GB, free: 93.25 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/2.354, allocations: 196 kB / 0.7632 GB, free: 93.03 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.853/7.207, allocations: 4 kB / 0.7632 GB, free: 93.02 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat