Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="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",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="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",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.679/1.679, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008689/0.0008694, allocations: 78.64 kB / 267.9 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.581e-05/2.583e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09548/0.09552, allocations: 47.57 MB / 370 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2968/0.3924, allocations: 79.6 MB / 449.6 MB, free: 13.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001855/0.3926, allocations: 72.91 kB / 449.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02843/0.4211, allocations: 10.23 MB / 459.9 MB, free: 4.961 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4211, allocations: 3.938 kB / 459.9 MB, free: 4.957 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.8e-05/0.4211, allocations: 20 kB / 459.9 MB, free: 4.938 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001435/0.4226, allocations: 0.8356 MB / 460.8 MB, free: 4.047 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.4226, allocations: 8.031 kB / 460.8 MB, free: 4.039 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.4228, allocations: 83.02 kB / 460.9 MB, free: 3.957 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008145/0.4236, allocations: 0.5176 MB / 461.4 MB, free: 3.395 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.803e-05/0.4236, allocations: 45.31 kB / 461.4 MB, free: 3.352 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.332e-05/0.4237, allocations: 63.98 kB / 461.5 MB, free: 3.289 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.4247, allocations: 0.5936 MB / 462.1 MB, free: 2.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.4248, allocations: 7.891 kB / 462.1 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-05/0.4249, allocations: 20 kB / 462.1 MB, free: 2.652 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.4249, allocations: 16 kB / 462.1 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007543/0.4256, allocations: 415.9 kB / 462.5 MB, free: 2.227 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003204/0.4288, allocations: 1.947 MB / 464.5 MB, free: 220 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007868/0.4297, allocations: 418.2 kB / 464.9 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.43, allocations: 174.2 kB / 465.1 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.681e-05/0.43, allocations: 8.422 kB / 465.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005968/0.4306, allocations: 349.1 kB / 465.4 MB, free: 15.26 MB / 346.7 MB Notification: Performance of pre-optimization done (n=53): time 2.485e-06/0.4306, allocations: 0 / 465.4 MB, free: 15.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.0008347/0.4315, allocations: 463.4 kB / 465.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.4316, allocations: 115.2 kB / 466 MB, free: 14.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004607/0.432, allocations: 399.8 kB / 466.4 MB, free: 14.26 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.971e-05/0.4321, allocations: 49.62 kB / 466.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.4323, allocations: 316.4 kB / 466.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.4325, allocations: 161.7 kB / 466.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.11e-05/0.4325, allocations: 12 kB / 466.9 MB, free: 13.72 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.4327, allocations: 366.8 kB / 467.2 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002907/0.433, allocations: 157.6 kB / 467.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.4334, allocations: 378.3 kB / 467.8 MB, free: 12.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/0.4337, allocations: 203 kB / 468 MB, free: 12.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.4338, allocations: 0 / 468 MB, free: 12.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009051/0.4347, allocations: 0.5961 MB / 468.6 MB, free: 11.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000878/0.4356, allocations: 2.529 MB / 471.1 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.4356, allocations: 4 kB / 471.1 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/0.4356, allocations: 12 kB / 471.1 MB, free: 9.191 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005469/0.4362, allocations: 151.7 kB / 471.3 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.94e-05/0.4362, allocations: 15.92 kB / 471.3 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/0.4366, allocations: 91.5 kB / 471.4 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.613e-05/0.4367, allocations: 31.98 kB / 471.4 MB, free: 8.906 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.775e-06/0.4367, allocations: 4 kB / 471.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007713/0.4375, allocations: 0.5004 MB / 471.9 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.4375, allocations: 4 kB / 471.9 MB, free: 8.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.4375, allocations: 12 kB / 471.9 MB, free: 8.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004631/0.438, allocations: 144.5 kB / 472.1 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.438, allocations: 15.92 kB / 472.1 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.4384, allocations: 71.52 kB / 472.1 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.133e-05/0.4384, allocations: 31.92 kB / 472.2 MB, free: 8.129 MB / 346.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,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.rootMeanSquare.mean.y,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean2.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.rootMeanSquare.mean.y,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.0001604/0.4386, allocations: 163 kB / 472.3 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.945e-05/0.4387, allocations: 59.33 kB / 472.4 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009096/0.4396, allocations: 497.8 kB / 472.9 MB, free: 7.414 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.4396, allocations: 4 kB / 472.9 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4397, allocations: 4 kB / 472.9 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.4397, allocations: 7.984 kB / 472.9 MB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006437/0.4403, allocations: 0.6301 MB / 473.5 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.4403, allocations: 7.953 kB / 473.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.4408, allocations: 99.86 kB / 473.6 MB, free: 6.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.4408, allocations: 4 kB / 473.6 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.229e-05/0.4409, allocations: 19.98 kB / 473.6 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4409, allocations: 0 / 473.6 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.4409, allocations: 0 / 473.6 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.442, allocations: 0.7385 MB / 474.4 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.452e-05/0.4421, allocations: 140.3 kB / 474.5 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.764e-05/0.4422, allocations: 12 kB / 474.5 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003532/0.4426, allocations: 55.95 kB / 474.6 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4427, allocations: 40.38 kB / 474.6 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.023e-05/0.4427, allocations: 19.98 kB / 474.6 MB, free: 5.547 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003273/0.4431, allocations: 313.6 kB / 475 MB, free: 5.242 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4431, allocations: 0 / 475 MB, free: 5.242 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007056/0.4438, allocations: 247.1 kB / 475.2 MB, free: 5 MB / 346.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,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,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.000188/0.444, allocations: 139.4 kB / 475.3 MB, free: 4.855 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.4451, allocations: 0.7266 MB / 476.1 MB, free: 4.133 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.4451, allocations: 0 / 476.1 MB, free: 4.133 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003521/0.4455, allocations: 226.4 kB / 476.3 MB, free: 3.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.4458, allocations: 75.48 kB / 476.4 MB, free: 3.836 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.4474, allocations: 0.8533 MB / 477.2 MB, free: 2.957 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/0.4479, allocations: 0.9123 MB / 478.1 MB, free: 2.012 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005068/0.4484, allocations: 118.7 kB / 478.2 MB, free: 1.891 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.4485, allocations: 43.42 kB / 478.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4485, allocations: 0 / 478.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of Templates: time 0.01097/0.4595, allocations: 6.167 MB / 484.4 MB, free: 11.68 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/TotalHarmonicDistortion/TotalHarmonicDistortion.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches