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.001113/0.001113, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007587/0.0007587, allocations: 86.22 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.682e-05/1.685e-05, allocations: 0 / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09384/0.09387, allocations: 47.59 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3404/0.4344, allocations: 79.17 MB / 442.2 MB, free: 492 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.4347, allocations: 65.97 kB / 442.3 MB, free: 460 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04147/0.4762, allocations: 10.15 MB / 452.5 MB, free: 8.094 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4762, allocations: 3.938 kB / 452.5 MB, free: 8.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.386e-05/0.4763, allocations: 19.98 kB / 452.5 MB, free: 8.07 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.002537/0.4789, allocations: 0.8363 MB / 453.3 MB, free: 7.227 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/0.4789, allocations: 8.031 kB / 453.3 MB, free: 7.219 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/0.4792, allocations: 83.02 kB / 453.4 MB, free: 7.137 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.4805, allocations: 0.5149 MB / 453.9 MB, free: 6.688 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.705e-05/0.4806, allocations: 20 kB / 453.9 MB, free: 6.668 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.4807, allocations: 43.38 kB / 454 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001281/0.482, allocations: 391.2 kB / 454.4 MB, free: 6.402 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.4836, allocations: 0.5089 MB / 454.9 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.781e-05/0.4836, allocations: 11.84 kB / 454.9 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.532e-05/0.4837, allocations: 3.312 kB / 454.9 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.4838, allocations: 15.95 kB / 454.9 MB, free: 6.004 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005194/0.489, allocations: 1.845 MB / 456.7 MB, free: 4.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.4901, allocations: 400.8 kB / 457.1 MB, free: 4.348 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004253/0.4905, allocations: 162.7 kB / 457.3 MB, free: 4.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-05/0.4906, allocations: 8.422 kB / 457.3 MB, free: 4.246 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008387/0.4915, allocations: 326.7 kB / 457.6 MB, free: 3.992 MB / 330.7 MB Notification: Performance of pre-optimization done (n=53): time 3.997e-06/0.4915, allocations: 0 / 457.6 MB, free: 3.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.001263/0.4928, allocations: 441.4 kB / 458.1 MB, free: 3.676 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.903e-05/0.4929, allocations: 115.1 kB / 458.2 MB, free: 3.543 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006836/0.4936, allocations: 375.5 kB / 458.5 MB, free: 3.254 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.529e-05/0.4937, allocations: 36.81 kB / 458.6 MB, free: 3.215 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003011/0.494, allocations: 306.5 kB / 458.9 MB, free: 3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002099/0.4942, allocations: 155.8 kB / 459 MB, free: 2.867 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.121e-05/0.4943, allocations: 4 kB / 459 MB, free: 2.863 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.4945, allocations: 363 kB / 459.4 MB, free: 2.523 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/0.4949, allocations: 145.9 kB / 459.5 MB, free: 2.441 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006479/0.4956, allocations: 365.3 kB / 459.9 MB, free: 2.074 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005301/0.4962, allocations: 194.8 kB / 460.1 MB, free: 1.953 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.898e-06/0.4962, allocations: 4 kB / 460.1 MB, free: 1.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001486/0.4977, allocations: 0.5226 MB / 460.6 MB, free: 1.543 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00133/0.499, allocations: 2.531 MB / 463.1 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.213e-05/0.4991, allocations: 8 kB / 463.1 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.742e-05/0.4991, allocations: 12 kB / 463.1 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009548/0.5001, allocations: 154.7 kB / 463.3 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.282e-05/0.5001, allocations: 11.94 kB / 463.3 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007485/0.5009, allocations: 75.5 kB / 463.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.227e-05/0.501, allocations: 33.73 kB / 463.4 MB, free: 14.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.501, allocations: 4 kB / 463.4 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009988/0.502, allocations: 438.7 kB / 463.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.502, allocations: 7.938 kB / 463.9 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.5021, allocations: 12 kB / 463.9 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006993/0.5028, allocations: 139.3 kB / 464 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.5028, allocations: 15.94 kB / 464 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005077/0.5033, allocations: 63.5 kB / 464.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.898e-05/0.5034, allocations: 27.25 kB / 464.1 MB, free: 14.02 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.0001981/0.5036, allocations: 141.8 kB / 464.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.5037, allocations: 63.23 kB / 464.3 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.5049, allocations: 453.5 kB / 464.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.5049, allocations: 8 kB / 464.8 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.505, allocations: 0 / 464.8 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.505, allocations: 3.938 kB / 464.8 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000849/0.5058, allocations: 0.5543 MB / 465.3 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.5059, allocations: 4 kB / 465.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00072/0.5066, allocations: 99.23 kB / 465.4 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.5066, allocations: 3.984 kB / 465.4 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.534e-05/0.5067, allocations: 11.17 kB / 465.4 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.044e-06/0.5067, allocations: 7.953 kB / 465.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.5067, allocations: 4 kB / 465.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.5083, allocations: 0.6968 MB / 466.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.5084, allocations: 135.6 kB / 466.3 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.5086, allocations: 7.625 kB / 466.3 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004316/0.509, allocations: 43.95 kB / 466.3 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.5091, allocations: 47.33 kB / 466.4 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.127e-05/0.5092, allocations: 19.92 kB / 466.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003962/0.5096, allocations: 284.2 kB / 466.7 MB, free: 12 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5096, allocations: 0 / 466.7 MB, free: 12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001019/0.5106, allocations: 211.1 kB / 466.9 MB, free: 11.79 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.0002238/0.5109, allocations: 126 kB / 467 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.5122, allocations: 0.6765 MB / 467.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5122, allocations: 3.875 kB / 467.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002857/0.5125, allocations: 208.8 kB / 467.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003657/0.5128, allocations: 56.98 kB / 467.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/0.5144, allocations: 0.8254 MB / 468.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005257/0.5149, allocations: 0.9118 MB / 469.7 MB, free: 9.359 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005164/0.5154, allocations: 126.5 kB / 469.8 MB, free: 9.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.5156, allocations: 46.61 kB / 469.8 MB, free: 9.188 MB / 346.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5156, allocations: 0 / 469.8 MB, free: 9.188 MB / 346.7 MB Notification: Performance of Templates: time 0.01003/0.5256, allocations: 5.587 MB / 475.4 MB, free: 3.609 MB / 346.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