Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001044/0.001049, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 64.53 kB / 306.3 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09801, allocations: 50.53 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.006125/0.1042, allocations: 3.743 MB / 360.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.1068, allocations: 1.363 MB / 362 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006526/0.1075, allocations: 15.94 kB / 362 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003791/0.1079, allocations: 59.42 kB / 362.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005775/0.1085, allocations: 103.1 kB / 362.2 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009612/0.1095, allocations: 419.4 kB / 362.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.1105, allocations: 0.8374 MB / 363.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006004/0.1111, allocations: 369.9 kB / 363.8 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000507/0.1116, allocations: 290.6 kB / 364.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004579/0.1121, allocations: 334.2 kB / 364.4 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001517/0.1122, allocations: 44 kB / 364.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.1124, allocations: 48 kB / 364.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.1126, allocations: 147.4 kB / 364.6 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003657/0.113, allocations: 361.9 kB / 365 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008625/0.1138, allocations: 0.9659 MB / 365.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1139, allocations: 8 kB / 365.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1139, allocations: 0 / 365.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.069e-05/0.1139, allocations: 0 / 365.9 MB, free: 5.066 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.002326/0.1162, allocations: 1.07 MB / 367 MB, free: 3.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1163, allocations: 8.031 kB / 367 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001503/0.1164, allocations: 98.7 kB / 367.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007082/0.1172, allocations: 143.8 kB / 367.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.1182, allocations: 0.6607 MB / 367.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.517e-05/0.1183, allocations: 45.69 kB / 368 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.168e-05/0.1184, allocations: 64.38 kB / 368 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.1196, allocations: 0.6604 MB / 368.7 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.1196, allocations: 0 / 368.7 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.05e-05/0.1197, allocations: 31.98 kB / 368.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.1197, allocations: 12 kB / 368.7 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.1208, allocations: 0.4931 MB / 369.2 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.201/0.3218, allocations: 1.918 MB / 371.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.323, allocations: 492.8 kB / 371.6 MB, free: 19.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005219/0.3235, allocations: 213.2 kB / 371.8 MB, free: 19.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-05/0.3236, allocations: 10.52 kB / 371.8 MB, free: 19.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009134/0.3245, allocations: 395.7 kB / 372.2 MB, free: 19.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 3.526e-06/0.3245, allocations: 0 / 372.2 MB, free: 19.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.001852/0.3264, allocations: 0.7309 MB / 373 MB, free: 19.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.3265, allocations: 112.6 kB / 373.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006438/0.3271, allocations: 493.7 kB / 373.6 MB, free: 18.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.16e-05/0.3272, allocations: 44.31 kB / 373.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.3274, allocations: 348 kB / 373.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.3275, allocations: 162.9 kB / 374.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001992/0.3277, allocations: 125 kB / 374.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3279, allocations: 369.2 kB / 374.6 MB, free: 18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005153/0.3284, allocations: 209.2 kB / 374.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006005/0.329, allocations: 422.7 kB / 375.2 MB, free: 17.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009318/0.3299, allocations: 0.6141 MB / 375.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3299, allocations: 1.375 kB / 375.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001238/0.3312, allocations: 0.6803 MB / 376.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.3312, allocations: 9.844 kB / 376.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.3312, allocations: 10.41 kB / 376.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.892e-05/0.3313, allocations: 10.94 kB / 376.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005578/0.3318, allocations: 141.1 kB / 376.7 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.951e-05/0.3319, allocations: 15.3 kB / 376.7 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003904/0.3323, allocations: 83.05 kB / 376.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-05/0.3323, allocations: 29.03 kB / 376.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005343/0.3329, allocations: 340.7 kB / 377.1 MB, free: 16.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004342/0.3333, allocations: 394.8 kB / 377.5 MB, free: 16.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007169/0.334, allocations: 0.5831 MB / 378.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.318e-06/0.334, allocations: 2.188 kB / 378.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001032/0.3351, allocations: 0.6257 MB / 378.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.3351, allocations: 10.59 kB / 378.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3351, allocations: 6.625 kB / 378.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.3351, allocations: 18.7 kB / 378.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.3356, allocations: 122.4 kB / 378.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.3356, allocations: 15.73 kB / 378.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003532/0.336, allocations: 71.56 kB / 378.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/0.336, allocations: 33.48 kB / 379 MB, free: 15.6 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,thdRMS.pythagoras.valid,thdRMS.valid,thdRMS.greaterThreshold.y,thdRMS.rootMeanSquare.mean.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean1.y_last,thd1.pythagoras.valid,thd1.valid,thd1.greaterThreshold.y,thd1.rootMeanSquare.mean.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean1.y_last) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001622/0.3362, allocations: 233.8 kB / 379.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.036e-05/0.3363, allocations: 63.09 kB / 379.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.3375, allocations: 0.5886 MB / 379.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3375, allocations: 5.844 kB / 379.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3375, allocations: 2.438 kB / 379.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3375, allocations: 4.016 kB / 379.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000729/0.3382, allocations: 0.6518 MB / 380.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3382, allocations: 4 kB / 380.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004225/0.3387, allocations: 87.08 kB / 380.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3387, allocations: 6.25 kB / 380.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.214e-05/0.3387, allocations: 16.12 kB / 380.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.3387, allocations: 9.359 kB / 380.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3388, allocations: 0 / 380.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.3404, allocations: 0.882 MB / 381.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.544e-05/0.3405, allocations: 135.6 kB / 381.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.309e-05/0.3406, allocations: 22.3 kB / 381.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.3409, allocations: 39.12 kB / 381.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.341, allocations: 43.02 kB / 381.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.119e-05/0.3411, allocations: 17.06 kB / 381.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003558/0.3414, allocations: 336.6 kB / 382.1 MB, free: 14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3414, allocations: 0 / 382.1 MB, free: 14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007253/0.3422, allocations: 251.7 kB / 382.4 MB, free: 13.93 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002034/0.3442, allocations: 1.452 MB / 383.8 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.3459, allocations: 0.8262 MB / 384.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.346, allocations: 0 / 384.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005221/0.3465, allocations: 271.1 kB / 384.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004922/0.347, allocations: 91.67 kB / 385 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007835/0.3548, allocations: 5.719 MB / 390.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.3553, allocations: 0.9134 MB / 391.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005533/0.3559, allocations: 120.1 kB / 391.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.3562, allocations: 256 kB / 392 MB, free: 8.113 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3562, allocations: 0 / 392 MB, free: 8.113 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.3781, allocations: 11.58 MB / 403.6 MB, free: 15.68 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.3783, allocations: 211.3 kB / 403.8 MB, free: 15.42 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.097/2.475, allocations: 0 / 403.8 MB, free: 15.42 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion.fmu > Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/TotalHarmonicDistortion/TotalHarmonicDistortion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,thd1.harmonic.mean1.x,thd1.harmonic.mean2.x,thd1.rootMeanSquare.mean.x,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean2.x,thdRMS.rootMeanSquare.mean.x Variables in the result:THD1,THDrms,V1,V3,der(thd1.harmonic.mean1.x),der(thd1.harmonic.mean2.x),der(thd1.rootMeanSquare.mean.x),der(thdRMS.harmonic.mean1.x),der(thdRMS.harmonic.mean2.x),der(thdRMS.rootMeanSquare.mean.x),f1,ground.p.i,ground.p.v,sineVoltage1.V,sineVoltage1.f,sineVoltage1.i,sineVoltage1.n.i,sineVoltage1.n.v,sineVoltage1.offset,sineVoltage1.p.i,sineVoltage1.p.v,sineVoltage1.phase,sineVoltage1.signalSource.amplitude,sineVoltage1.signalSource.continuous,sineVoltage1.signalSource.f,sineVoltage1.signalSource.offset,sineVoltage1.signalSource.phase,sineVoltage1.signalSource.startTime,sineVoltage1.signalSource.y,sineVoltage1.startTime,sineVoltage1.v,sineVoltage3.V,sineVoltage3.f,sineVoltage3.i,sineVoltage3.n.i,sineVoltage3.n.v,sineVoltage3.offset,sineVoltage3.p.i,sineVoltage3.p.v,sineVoltage3.phase,sineVoltage3.signalSource.amplitude,sineVoltage3.signalSource.continuous,sineVoltage3.signalSource.f,sineVoltage3.signalSource.offset,sineVoltage3.signalSource.phase,sineVoltage3.signalSource.startTime,sineVoltage3.signalSource.y,sineVoltage3.startTime,sineVoltage3.v,thd1.andValid.u1,thd1.andValid.u2,thd1.andValid.y,thd1.booleanExpression.y,thd1.division.u1,thd1.division.u2,thd1.division.y,thd1.f,thd1.greaterThreshold.threshold,thd1.greaterThreshold.u,thd1.greaterThreshold.y,thd1.harmonic.f,thd1.harmonic.gain.k,thd1.harmonic.gain.u,thd1.harmonic.gain.y,thd1.harmonic.k,thd1.harmonic.mean1.f,thd1.harmonic.mean1.u,thd1.harmonic.mean1.x,thd1.harmonic.mean1.x0,thd1.harmonic.mean1.y,thd1.harmonic.mean1.y0,thd1.harmonic.mean1.yGreaterOrEqualZero,thd1.harmonic.mean2.f,thd1.harmonic.mean2.u,thd1.harmonic.mean2.x,thd1.harmonic.mean2.x0,thd1.harmonic.mean2.y,thd1.harmonic.mean2.y0,thd1.harmonic.mean2.yGreaterOrEqualZero,thd1.harmonic.product1.nu,thd1.harmonic.product1.significantDigits,thd1.harmonic.product1.u[1],thd1.harmonic.product1.u[2],thd1.harmonic.product1.y,thd1.harmonic.product2.nu,thd1.harmonic.product2.significantDigits,thd1.harmonic.product2.u[1],thd1.harmonic.product2.u[2],thd1.harmonic.product2.y,thd1.harmonic.rectangularToPolar.u_im,thd1.harmonic.rectangularToPolar.u_re,thd1.harmonic.rectangularToPolar.y_abs,thd1.harmonic.rectangularToPolar.y_arg,thd1.harmonic.sin1.amplitude,thd1.harmonic.sin1.continuous,thd1.harmonic.sin1.f,thd1.harmonic.sin1.offset,thd1.harmonic.sin1.phase,thd1.harmonic.sin1.startTime,thd1.harmonic.sin1.y,thd1.harmonic.sin2.amplitude,thd1.harmonic.sin2.continuous,thd1.harmonic.sin2.f,thd1.harmonic.sin2.offset,thd1.harmonic.sin2.phase,thd1.harmonic.sin2.startTime,thd1.harmonic.sin2.y,thd1.harmonic.u,thd1.harmonic.useConjugateComplex,thd1.harmonic.x0Cos,thd1.harmonic.x0Sin,thd1.harmonic.y0Cos,thd1.harmonic.y0Sin,thd1.harmonic.y_arg,thd1.harmonic.y_rms,thd1.limiter.homotopyType,thd1.limiter.strict,thd1.limiter.u,thd1.limiter.uMax,thd1.limiter.uMin,thd1.limiter.y,thd1.pythagoras.u1,thd1.pythagoras.u1IsHypotenuse,thd1.pythagoras.u2,thd1.pythagoras.valid,thd1.pythagoras.y,thd1.rootMeanSquare.f,thd1.rootMeanSquare.mean.f,thd1.rootMeanSquare.mean.u,thd1.rootMeanSquare.mean.x,thd1.rootMeanSquare.mean.x0,thd1.rootMeanSquare.mean.y,thd1.rootMeanSquare.mean.y0,thd1.rootMeanSquare.mean.yGreaterOrEqualZero,thd1.rootMeanSquare.product.nu,thd1.rootMeanSquare.product.significantDigits,thd1.rootMeanSquare.product.u[1],thd1.rootMeanSquare.product.u[2],thd1.rootMeanSquare.product.y,thd1.rootMeanSquare.sqrt1.u,thd1.rootMeanSquare.sqrt1.y,thd1.rootMeanSquare.u,thd1.rootMeanSquare.x0,thd1.rootMeanSquare.y,thd1.rootMeanSquare.y0,thd1.switch1.u1,thd1.switch1.u2,thd1.switch1.u3,thd1.switch1.y,thd1.u,thd1.useFirstHarmonic,thd1.valid,thd1.y,thdRMS.andValid.u1,thdRMS.andValid.u2,thdRMS.andValid.y,thdRMS.booleanExpression.y,thdRMS.division.u1,thdRMS.division.u2,thdRMS.division.y,thdRMS.f,thdRMS.greaterThreshold.threshold,thdRMS.greaterThreshold.u,thdRMS.greaterThreshold.y,thdRMS.harmonic.f,thdRMS.harmonic.gain.k,thdRMS.harmonic.gain.u,thdRMS.harmonic.gain.y,thdRMS.harmonic.k,thdRMS.harmonic.mean1.f,thdRMS.harmonic.mean1.u,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean1.x0,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean1.y0,thdRMS.harmonic.mean1.yGreaterOrEqualZero,thdRMS.harmonic.mean2.f,thdRMS.harmonic.mean2.u,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean2.x0,thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean2.y0,thdRMS.harmonic.mean2.yGreaterOrEqualZero,thdRMS.harmonic.product1.nu,thdRMS.harmonic.product1.significantDigits,thdRMS.harmonic.product1.u[1],thdRMS.harmonic.product1.u[2],thdRMS.harmonic.product1.y,thdRMS.harmonic.product2.nu,thdRMS.harmonic.product2.significantDigits,thdRMS.harmonic.product2.u[1],thdRMS.harmonic.product2.u[2],thdRMS.harmonic.product2.y,thdRMS.harmonic.rectangularToPolar.u_im,thdRMS.harmonic.rectangularToPolar.u_re,thdRMS.harmonic.rectangularToPolar.y_abs,thdRMS.harmonic.rectangularToPolar.y_arg,thdRMS.harmonic.sin1.amplitude,thdRMS.harmonic.sin1.continuous,thdRMS.harmonic.sin1.f,thdRMS.harmonic.sin1.offset,thdRMS.harmonic.sin1.phase,thdRMS.harmonic.sin1.startTime,thdRMS.harmonic.sin1.y,thdRMS.harmonic.sin2.amplitude,thdRMS.harmonic.sin2.continuous,thdRMS.harmonic.sin2.f,thdRMS.harmonic.sin2.offset,thdRMS.harmonic.sin2.phase,thdRMS.harmonic.sin2.startTime,thdRMS.harmonic.sin2.y,thdRMS.harmonic.u,thdRMS.harmonic.useConjugateComplex,thdRMS.harmonic.x0Cos,thdRMS.harmonic.x0Sin,thdRMS.harmonic.y0Cos,thdRMS.harmonic.y0Sin,thdRMS.harmonic.y_arg,thdRMS.harmonic.y_rms,thdRMS.limiter.homotopyType,thdRMS.limiter.strict,thdRMS.limiter.u,thdRMS.limiter.uMax,thdRMS.limiter.uMin,thdRMS.limiter.y,thdRMS.pythagoras.u1,thdRMS.pythagoras.u1IsHypotenuse,thdRMS.pythagoras.u2,thdRMS.pythagoras.valid,thdRMS.pythagoras.y,thdRMS.rootMeanSquare.f,thdRMS.rootMeanSquare.mean.f,thdRMS.rootMeanSquare.mean.u,thdRMS.rootMeanSquare.mean.x,thdRMS.rootMeanSquare.mean.x0,thdRMS.rootMeanSquare.mean.y,thdRMS.rootMeanSquare.mean.y0,thdRMS.rootMeanSquare.mean.yGreaterOrEqualZero,thdRMS.rootMeanSquare.product.nu,thdRMS.rootMeanSquare.product.significantDigits,thdRMS.rootMeanSquare.product.u[1],thdRMS.rootMeanSquare.product.u[2],thdRMS.rootMeanSquare.product.y,thdRMS.rootMeanSquare.sqrt1.u,thdRMS.rootMeanSquare.sqrt1.y,thdRMS.rootMeanSquare.u,thdRMS.rootMeanSquare.x0,thdRMS.rootMeanSquare.y,thdRMS.rootMeanSquare.y0,thdRMS.switch1.u1,thdRMS.switch1.u2,thdRMS.switch1.u3,thdRMS.switch1.y,thdRMS.u,thdRMS.useFirstHarmonic,thdRMS.valid,thdRMS.y,time,voltageSensor.n.i,voltageSensor.n.v,voltageSensor.p.i,voltageSensor.p.v,voltageSensor.v