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.001678/0.001678, allocations: 114 kB / 17.06 MB, free: 5.996 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.002077/0.002077, allocations: 200 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.256/2.256, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 47.86 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.4084, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.006174/0.4146, allocations: 3.622 MB / 403.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002829/0.4175, allocations: 1.227 MB / 405.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005674/0.4181, allocations: 11.94 kB / 405.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003614/0.4185, allocations: 90.98 kB / 405.2 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007142/0.4193, allocations: 138.7 kB / 405.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.4206, allocations: 406.8 kB / 405.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001204/0.4218, allocations: 0.865 MB / 406.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006617/0.4224, allocations: 383.4 kB / 407 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005344/0.423, allocations: 330.7 kB / 407.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005033/0.4235, allocations: 354.3 kB / 407.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.4237, allocations: 96 kB / 407.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.4238, allocations: 96 kB / 407.8 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002115/0.424, allocations: 207.4 kB / 408 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004026/0.4244, allocations: 390 kB / 408.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.4256, allocations: 0.9928 MB / 409.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.4257, allocations: 4 kB / 409.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.22e-06/0.4257, allocations: 3.938 kB / 409.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.154e-05/0.4257, allocations: 4 kB / 409.4 MB, free: 15.62 MB / 334.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.002748/0.4285, allocations: 1.022 MB / 410.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.56e-05/0.4286, allocations: 8.031 kB / 410.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.4287, allocations: 102.7 kB / 410.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.429, allocations: 87.89 kB / 410.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.4302, allocations: 0.5927 MB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.844e-05/0.4302, allocations: 53.23 kB / 411.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.4304, allocations: 71.84 kB / 411.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.4318, allocations: 0.6566 MB / 412 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.203e-05/0.4318, allocations: 0 / 412 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.888e-05/0.4319, allocations: 28 kB / 412 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.4319, allocations: 12 kB / 412 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001137/0.4331, allocations: 0.5009 MB / 412.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003537/0.4366, allocations: 1.878 MB / 414.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.4377, allocations: 0.4932 MB / 414.9 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004744/0.4382, allocations: 214.1 kB / 415.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.087e-05/0.4383, allocations: 4.438 kB / 415.1 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008146/0.4391, allocations: 397 kB / 415.5 MB, free: 9.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=53): time 2.956e-06/0.4391, allocations: 0 / 415.5 MB, free: 9.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=53): time 0.001777/0.4409, allocations: 0.7209 MB / 416.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.832e-05/0.441, allocations: 123.2 kB / 416.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006516/0.4417, allocations: 445.8 kB / 416.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.205e-05/0.4418, allocations: 45.7 kB / 416.8 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/0.4421, allocations: 316.3 kB / 417.1 MB, free: 7.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.4423, allocations: 157.8 kB / 417.3 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.4425, allocations: 126.2 kB / 417.4 MB, free: 7.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.4426, allocations: 370.8 kB / 417.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.4431, allocations: 207.4 kB / 418 MB, free: 6.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006465/0.4438, allocations: 424.9 kB / 418.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.4449, allocations: 0.6122 MB / 419 MB, free: 5.551 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.4449, allocations: 0 / 419 MB, free: 5.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001477/0.4464, allocations: 0.6819 MB / 419.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.4464, allocations: 8 kB / 419.7 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.4464, allocations: 4 kB / 419.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.028e-05/0.4465, allocations: 15.98 kB / 419.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005973/0.4471, allocations: 135.7 kB / 419.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/0.4471, allocations: 15.98 kB / 419.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005553/0.4477, allocations: 83.59 kB / 419.9 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.224e-05/0.4477, allocations: 28 kB / 420 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007611/0.4485, allocations: 341.3 kB / 420.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005672/0.4491, allocations: 397 kB / 420.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001063/0.4502, allocations: 0.57 MB / 421.3 MB, free: 3.105 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.083e-06/0.4502, allocations: 4 kB / 421.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001269/0.4515, allocations: 0.6233 MB / 421.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.4515, allocations: 12.75 kB / 421.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.4515, allocations: 4 kB / 421.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.4515, allocations: 16 kB / 421.9 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007595/0.4523, allocations: 131.7 kB / 422 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.264e-05/0.4524, allocations: 15.94 kB / 422.1 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007373/0.4531, allocations: 63.56 kB / 422.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.336e-05/0.4532, allocations: 28 kB / 422.1 MB, free: 2.207 MB / 334.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.0003957/0.4536, allocations: 235.2 kB / 422.4 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001871/0.4538, allocations: 63.27 kB / 422.4 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.4559, allocations: 0.5944 MB / 423 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.456, allocations: 4 kB / 423 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.456, allocations: 0 / 423 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.456, allocations: 3.984 kB / 423 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.4574, allocations: 0.6303 MB / 423.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.4574, allocations: 0 / 423.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000696/0.4581, allocations: 87.81 kB / 423.8 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.42e-05/0.4582, allocations: 8 kB / 423.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.713e-05/0.4582, allocations: 15.98 kB / 423.8 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.017e-06/0.4583, allocations: 4 kB / 423.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.4583, allocations: 0 / 423.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00293/0.4612, allocations: 0.8708 MB / 424.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/0.4615, allocations: 140.3 kB / 424.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.4617, allocations: 12 kB / 424.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000551/0.4623, allocations: 43.95 kB / 424.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.4625, allocations: 44.5 kB / 424.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-05/0.4626, allocations: 19.98 kB / 424.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006305/0.4632, allocations: 303.1 kB / 425.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4632, allocations: 0 / 425.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001784/0.465, allocations: 251 kB / 425.4 MB, free: 14.8 MB / 350.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.003579/0.4686, allocations: 1.449 MB / 426.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003109/0.4718, allocations: 0.8195 MB / 427.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/0.4718, allocations: 0 / 427.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009593/0.4728, allocations: 271.1 kB / 428 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009465/0.4738, allocations: 86.05 kB / 428.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.4888, allocations: 5.115 MB / 433.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.4899, allocations: 0.9036 MB / 434.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000971/0.4909, allocations: 104.6 kB / 434.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007093/0.4916, allocations: 235.3 kB / 434.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of SimCode: time 2.355e-06/0.4917, allocations: 0 / 434.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06782/0.5595, allocations: 11.93 MB / 446.3 MB, free: 9.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.12, allocations: 15.22 kB / 446.4 MB, free: 9.691 MB / 366.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/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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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.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.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.yGreaterOrEqualZero,thd1.harmonic.mean2.f,thd1.harmonic.mean2.u,thd1.harmonic.mean2.x,thd1.harmonic.mean2.x0,thd1.harmonic.mean2.y,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.f,thd1.harmonic.sin1.offset,thd1.harmonic.sin1.phase,thd1.harmonic.sin1.startTime,thd1.harmonic.sin1.y,thd1.harmonic.sin2.amplitude,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.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.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.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.yGreaterOrEqualZero,thdRMS.harmonic.mean2.f,thdRMS.harmonic.mean2.u,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean2.x0,thdRMS.harmonic.mean2.y,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.f,thdRMS.harmonic.sin1.offset,thdRMS.harmonic.sin1.phase,thdRMS.harmonic.sin1.startTime,thdRMS.harmonic.sin1.y,thdRMS.harmonic.sin2.amplitude,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.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.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.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