Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002368/0.002373, allocations: 180.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001074/0.001074, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.19e-05, allocations: 8 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09942/0.09947, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4178/0.5173, allocations: 79.59 MB / 448.7 MB, free: 13.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.5176, allocations: 65.16 kB / 448.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04633/0.564, allocations: 10.23 MB / 459 MB, free: 5.047 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.626e-06/0.564, allocations: 0 / 459 MB, free: 5.047 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.954e-05/0.5641, allocations: 19.94 kB / 459 MB, free: 5.027 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.002523/0.5666, allocations: 0.8372 MB / 459.8 MB, free: 4.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.5667, allocations: 8.031 kB / 459.8 MB, free: 4.172 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003582/0.5671, allocations: 87.02 kB / 459.9 MB, free: 4.086 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.5684, allocations: 0.5163 MB / 460.4 MB, free: 3.637 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.798e-05/0.5685, allocations: 44.06 kB / 460.5 MB, free: 3.613 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/0.5687, allocations: 62.67 kB / 460.5 MB, free: 3.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.5704, allocations: 0.5935 MB / 461.1 MB, free: 3.031 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.057e-05/0.5705, allocations: 11.91 kB / 461.2 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.5706, allocations: 20 kB / 461.2 MB, free: 3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.5706, allocations: 12 kB / 461.2 MB, free: 2.988 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.5719, allocations: 419.9 kB / 461.6 MB, free: 2.574 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005426/0.5773, allocations: 1.947 MB / 463.5 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.5786, allocations: 415.4 kB / 463.9 MB, free: 152 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004963/0.5791, allocations: 178.2 kB / 464.1 MB, free: 15.97 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.561e-05/0.5792, allocations: 4.438 kB / 464.1 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008953/0.5801, allocations: 353 kB / 464.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of pre-optimization done (n=53): time 3.787e-06/0.5802, allocations: 0 / 464.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.001484/0.5816, allocations: 463.4 kB / 464.9 MB, free: 15.15 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.757e-05/0.5818, allocations: 115.2 kB / 465 MB, free: 15.01 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007838/0.5826, allocations: 403.8 kB / 465.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.5827, allocations: 45.69 kB / 465.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.583, allocations: 350.8 kB / 465.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/0.5833, allocations: 161.7 kB / 466 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/0.5833, allocations: 16 kB / 466 MB, free: 14.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.5835, allocations: 330.8 kB / 466.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004857/0.584, allocations: 161.5 kB / 466.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006877/0.5847, allocations: 378.3 kB / 466.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005912/0.5853, allocations: 203.3 kB / 467 MB, free: 12.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.5853, allocations: 0 / 467 MB, free: 12.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001502/0.5868, allocations: 0.559 MB / 467.6 MB, free: 12.31 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001185/0.588, allocations: 2.53 MB / 470.1 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.5881, allocations: 4 kB / 470.1 MB, free: 9.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.988e-05/0.5881, allocations: 15.94 kB / 470.1 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.5893, allocations: 147.8 kB / 470.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.614e-05/0.5894, allocations: 11.94 kB / 470.3 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008541/0.5902, allocations: 95.48 kB / 470.4 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.013e-05/0.5903, allocations: 28 kB / 470.4 MB, free: 9.293 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.5903, allocations: 4 kB / 470.4 MB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001386/0.5917, allocations: 0.5068 MB / 470.9 MB, free: 8.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.5918, allocations: 8 kB / 470.9 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.5918, allocations: 8.812 kB / 470.9 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009185/0.5927, allocations: 143.7 kB / 471.1 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.031e-05/0.5928, allocations: 11.94 kB / 471.1 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005867/0.5934, allocations: 75.5 kB / 471.2 MB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-05/0.5935, allocations: 24 kB / 471.2 MB, free: 8.516 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.0003238/0.5938, allocations: 170.9 kB / 471.4 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002133/0.594, allocations: 55.34 kB / 471.4 MB, free: 8.285 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.5955, allocations: 497.8 kB / 471.9 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/0.5956, allocations: 8 kB / 471.9 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.5956, allocations: 8 kB / 471.9 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.5956, allocations: 3.984 kB / 471.9 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.5968, allocations: 0.6379 MB / 472.6 MB, free: 7.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.5968, allocations: 3.953 kB / 472.6 MB, free: 7.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008884/0.5977, allocations: 91.88 kB / 472.7 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.816e-05/0.5978, allocations: 4 kB / 472.7 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.837e-05/0.5978, allocations: 19.98 kB / 472.7 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.5979, allocations: 0 / 472.7 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.5979, allocations: 7.984 kB / 472.7 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.5999, allocations: 0.7347 MB / 473.4 MB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001927/0.6002, allocations: 140.3 kB / 473.6 MB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.6003, allocations: 12 kB / 473.6 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006925/0.601, allocations: 55.95 kB / 473.6 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.6012, allocations: 40.38 kB / 473.7 MB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.415e-05/0.6013, allocations: 27.92 kB / 473.7 MB, free: 5.918 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005932/0.6019, allocations: 309.6 kB / 474 MB, free: 5.617 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6019, allocations: 0 / 474 MB, free: 5.617 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00115/0.6031, allocations: 247.1 kB / 474.2 MB, free: 5.375 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.0002835/0.6034, allocations: 135.4 kB / 474.4 MB, free: 5.234 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.6054, allocations: 0.7167 MB / 475.1 MB, free: 4.523 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.6054, allocations: 0 / 475.1 MB, free: 4.523 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006494/0.6061, allocations: 234.4 kB / 475.3 MB, free: 4.293 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006653/0.6067, allocations: 67.45 kB / 475.4 MB, free: 4.227 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.6095, allocations: 0.884 MB / 476.3 MB, free: 3.309 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006492/0.6102, allocations: 0.9075 MB / 477.2 MB, free: 2.367 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003972/0.6106, allocations: 51.42 kB / 477.2 MB, free: 2.316 MB / 346.7 MB Notification: Performance of SimCode: time 1.372e-06/0.6106, allocations: 0 / 477.2 MB, free: 2.316 MB / 346.7 MB Notification: Performance of Templates: time 0.01866/0.6293, allocations: 7.453 MB / 484.7 MB, free: 10.86 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches