Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007798/0.0007798, allocations: 86.55 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008965/0.0008965, allocations: 183.1 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 223.3 MB / 241.2 MB, free: 340 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002765/0.0002766, allocations: 4 kB / 300.9 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09808/0.09838, allocations: 50.42 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.003381/0.1018, allocations: 3.064 MB / 354.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.1038, allocations: 1.161 MB / 355.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.104, allocations: 11.94 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.1042, allocations: 51.42 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000305/0.1045, allocations: 103.2 kB / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005473/0.1051, allocations: 254.8 kB / 356 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006779/0.1058, allocations: 0.7518 MB / 356.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003926/0.1062, allocations: 268.7 kB / 357 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.1064, allocations: 234.8 kB / 357.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003039/0.1068, allocations: 258.6 kB / 357.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.868e-05/0.1068, allocations: 28 kB / 357.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.041e-05/0.1069, allocations: 24 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.107, allocations: 111.5 kB / 357.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.1071, allocations: 145.3 kB / 357.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000602/0.1078, allocations: 0.7289 MB / 358.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1078, allocations: 0 / 358.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1078, allocations: 0 / 358.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1078, allocations: 0 / 358.5 MB, free: 12.71 MB / 302.1 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.001592/0.1094, allocations: 0.8968 MB / 359.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1094, allocations: 12.03 kB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.1096, allocations: 106.4 kB / 359.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.1097, allocations: 83.06 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008931/0.1106, allocations: 0.5837 MB / 360.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.175e-05/0.1107, allocations: 49.31 kB / 360.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.633e-05/0.1108, allocations: 63.98 kB / 360.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.112, allocations: 0.6761 MB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.112, allocations: 3.906 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.844e-05/0.1121, allocations: 27.95 kB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.1121, allocations: 16 kB / 361 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.1131, allocations: 0.5283 MB / 361.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002892/0.116, allocations: 1.937 MB / 363.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009069/0.117, allocations: 0.5128 MB / 364 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004286/0.1174, allocations: 246 kB / 364.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.047e-05/0.1175, allocations: 4.438 kB / 364.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006941/0.1182, allocations: 413.1 kB / 364.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 2.474e-06/0.1182, allocations: 0 / 364.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.001562/0.1197, allocations: 0.7834 MB / 365.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.215e-05/0.1198, allocations: 115.2 kB / 365.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004847/0.1203, allocations: 441.7 kB / 366 MB, free: 4.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.069e-05/0.1204, allocations: 49.69 kB / 366 MB, free: 4.938 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/0.1206, allocations: 320.3 kB / 366.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.1207, allocations: 161.7 kB / 366.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.1207, allocations: 16 kB / 366.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1209, allocations: 366.8 kB / 366.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000433/0.1213, allocations: 217.2 kB / 367.1 MB, free: 3.863 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005502/0.1219, allocations: 433 kB / 367.5 MB, free: 3.344 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004804/0.1224, allocations: 266.5 kB / 367.8 MB, free: 3.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1224, allocations: 8 kB / 367.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001211/0.1236, allocations: 0.7103 MB / 368.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001581/0.1238, allocations: 281 kB / 368.7 MB, free: 1.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.1238, allocations: 8 kB / 368.8 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.1238, allocations: 12 kB / 368.8 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005117/0.1243, allocations: 143.8 kB / 368.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.858e-05/0.1244, allocations: 19.92 kB / 368.9 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003676/0.1247, allocations: 87.41 kB / 369 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.675e-05/0.1248, allocations: 35.98 kB / 369 MB, free: 1.695 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.967e-06/0.1248, allocations: 10.61 kB / 369.1 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009129/0.1257, allocations: 0.5647 MB / 369.6 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1257, allocations: 11.94 kB / 369.6 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.1258, allocations: 12 kB / 369.6 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004235/0.1262, allocations: 140 kB / 369.8 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1262, allocations: 15.94 kB / 369.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.1265, allocations: 75.5 kB / 369.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.1266, allocations: 24 kB / 369.9 MB, free: 0.8516 MB / 302.1 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.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid,$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.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid) * Number of discrete states: 0 () * Number of clocked 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.0003182/0.1269, allocations: 311.5 kB / 370.2 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.057e-05/0.127, allocations: 63.28 kB / 370.3 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1831/0.3101, allocations: 0.6112 MB / 370.9 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.831e-05/0.3102, allocations: 9.781 kB / 370.9 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.3102, allocations: 0.875 kB / 370.9 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.115e-05/0.3103, allocations: 3 kB / 370.9 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.3117, allocations: 0.6348 MB / 371.5 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3117, allocations: 0 / 371.5 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000512/0.3122, allocations: 99.67 kB / 371.6 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.582e-05/0.3122, allocations: 2.344 kB / 371.6 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.187e-05/0.3123, allocations: 20.25 kB / 371.6 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.177e-06/0.3123, allocations: 5.281 kB / 371.6 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3123, allocations: 1.578 kB / 371.6 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/0.3143, allocations: 0.9267 MB / 372.6 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.3144, allocations: 133.5 kB / 372.7 MB, free: 23.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.888e-05/0.3145, allocations: 21.38 kB / 372.7 MB, free: 23.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003037/0.3148, allocations: 54.06 kB / 372.8 MB, free: 23.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.3149, allocations: 46.52 kB / 372.8 MB, free: 23.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.134e-05/0.315, allocations: 20.64 kB / 372.8 MB, free: 23.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004128/0.3154, allocations: 297.4 kB / 373.1 MB, free: 23.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3154, allocations: 0 / 373.1 MB, free: 23.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001086/0.3165, allocations: 245.1 kB / 373.4 MB, free: 23.44 MB / 302.1 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: 20 ($cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 49 * 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.001937/0.3184, allocations: 1.505 MB / 374.9 MB, free: 22.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.32, allocations: 0.8701 MB / 375.7 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3201, allocations: 0 / 375.7 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000523/0.3206, allocations: 288.7 kB / 376 MB, free: 22.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.321, allocations: 80.41 kB / 376.1 MB, free: 22.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005165/0.3262, allocations: 3.616 MB / 379.7 MB, free: 20.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.3266, allocations: 0.8987 MB / 380.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004342/0.327, allocations: 107 kB / 380.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.3273, allocations: 233.4 kB / 381 MB, free: 19.57 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3273, allocations: 0 / 381 MB, free: 19.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03774/0.3651, allocations: 10.64 MB / 391.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002688/0.3654, allocations: 177.8 kB / 391.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.029/2.395, allocations: 10.97 kB / 391.8 MB, free: 15.67 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) 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