Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.346e-05/3.354e-05, allocations: 0 / 292.2 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1471, allocations: 50.41 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4619/0.609, allocations: 81.14 MB / 423.8 MB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.6093, allocations: 71.09 kB / 423.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04556/0.6549, allocations: 10.42 MB / 434.3 MB, free: 4.262 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6549, allocations: 0 / 434.3 MB, free: 4.262 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.906e-05/0.655, allocations: 24 kB / 434.3 MB, free: 4.238 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.002478/0.6575, allocations: 0.8443 MB / 435.1 MB, free: 3.387 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.6576, allocations: 8.031 kB / 435.1 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002136/0.6578, allocations: 102.1 kB / 435.2 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002358/0.658, allocations: 79.06 kB / 435.3 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.6592, allocations: 0.5235 MB / 435.8 MB, free: 2.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.373e-05/0.6593, allocations: 50.81 kB / 435.9 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.6595, allocations: 65.77 kB / 436 MB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.661, allocations: 0.5982 MB / 436.6 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.732e-05/0.6611, allocations: 7.938 kB / 436.6 MB, free: 2.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-05/0.6612, allocations: 34.23 kB / 436.6 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.183e-05/0.6612, allocations: 12 kB / 436.6 MB, free: 2.246 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.6624, allocations: 419.4 kB / 437 MB, free: 1.996 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005088/0.6675, allocations: 1.978 MB / 439 MB, free: 496 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.6687, allocations: 413.4 kB / 439.4 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004561/0.6691, allocations: 177.5 kB / 439.6 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.907e-05/0.6692, allocations: 8.422 kB / 439.6 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008658/0.6701, allocations: 342 kB / 439.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 3.496e-06/0.6701, allocations: 0 / 439.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.001376/0.6715, allocations: 469.1 kB / 440.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.6716, allocations: 115.2 kB / 440.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007469/0.6724, allocations: 391.1 kB / 440.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.6725, allocations: 48.02 kB / 440.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003408/0.6729, allocations: 317.5 kB / 441.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002191/0.6731, allocations: 157.9 kB / 441.4 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.6732, allocations: 13.31 kB / 441.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.6734, allocations: 376.7 kB / 441.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004515/0.6738, allocations: 155.9 kB / 441.9 MB, free: 14.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006594/0.6745, allocations: 377.1 kB / 442.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005426/0.6751, allocations: 201.7 kB / 442.5 MB, free: 13.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.6751, allocations: 3.938 kB / 442.5 MB, free: 13.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001519/0.6766, allocations: 0.5777 MB / 443.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001009/0.6777, allocations: 2.523 MB / 445.6 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.6777, allocations: 8 kB / 445.6 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.366e-05/0.6777, allocations: 12 kB / 445.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.6789, allocations: 147.1 kB / 445.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-05/0.6789, allocations: 15.89 kB / 445.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008513/0.6798, allocations: 94.17 kB / 445.8 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.1e-05/0.6799, allocations: 31.56 kB / 445.9 MB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.6799, allocations: 7.75 kB / 445.9 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001276/0.6812, allocations: 0.4945 MB / 446.4 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.6812, allocations: 8 kB / 446.4 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.6812, allocations: 12 kB / 446.4 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009266/0.6822, allocations: 131.9 kB / 446.5 MB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-05/0.6822, allocations: 15.94 kB / 446.5 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007085/0.6829, allocations: 74.69 kB / 446.6 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.053e-05/0.683, allocations: 27.19 kB / 446.6 MB, free: 9.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002923/0.6833, allocations: 171.9 kB / 446.8 MB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.6835, allocations: 55.3 kB / 446.9 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/0.6849, allocations: 497.5 kB / 447.4 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.6849, allocations: 4 kB / 447.4 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.6849, allocations: 0 / 447.4 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.6849, allocations: 3.984 kB / 447.4 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.686, allocations: 0.642 MB / 448 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.686, allocations: 0 / 448 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008838/0.6869, allocations: 91.81 kB / 448.1 MB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-05/0.6869, allocations: 7.984 kB / 448.1 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.334e-05/0.687, allocations: 15.52 kB / 448.1 MB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.815e-06/0.687, allocations: 4 kB / 448.1 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.687, allocations: 7.984 kB / 448.1 MB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.689, allocations: 0.7403 MB / 448.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.6892, allocations: 128.4 kB / 449 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.6893, allocations: 16 kB / 449 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006706/0.69, allocations: 59.91 kB / 449.1 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.6902, allocations: 40.38 kB / 449.1 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-05/0.6902, allocations: 19.98 kB / 449.1 MB, free: 7.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005572/0.6908, allocations: 305.2 kB / 449.4 MB, free: 7.293 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6908, allocations: 0 / 449.4 MB, free: 7.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001214/0.6921, allocations: 247.1 kB / 449.7 MB, free: 7.051 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thd1.harmonic.mean1.x,thd1.harmonic.mean2.x,thd1.rootMeanSquare.mean.x,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean2.x,thdRMS.rootMeanSquare.mean.x) * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2) * Number of discrete states: 6 (thdRMS.rootMeanSquare.mean.x,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean1.x,thd1.rootMeanSquare.mean.x,thd1.harmonic.mean2.x,thd1.harmonic.mean1.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002355/0.6944, allocations: 1.324 MB / 451 MB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001969/0.6964, allocations: 0.7049 MB / 451.7 MB, free: 4.992 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.6965, allocations: 4 kB / 451.7 MB, free: 4.988 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005869/0.6971, allocations: 221.5 kB / 451.9 MB, free: 4.773 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006458/0.6977, allocations: 70 kB / 452 MB, free: 4.703 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003049/0.7008, allocations: 0.9738 MB / 453 MB, free: 3.688 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006103/0.7014, allocations: 0.9084 MB / 453.9 MB, free: 2.746 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008626/0.7023, allocations: 126.4 kB / 454 MB, free: 2.621 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005025/0.7028, allocations: 231.3 kB / 454.2 MB, free: 2.395 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.7028, allocations: 0 / 454.2 MB, free: 2.395 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04439/0.7472, allocations: 11.23 MB / 465.4 MB, free: 7.273 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002395/0.7475, allocations: 145.3 kB / 465.6 MB, free: 7.055 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.247/3.995, allocations: 4 kB / 465.6 MB, free: 7.051 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat does not exist to compare? outputFormat=mat