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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001613/0.001614, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008469/0.000847, allocations: 89.47 kB / 292.1 MB, free: 6.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.133e-05, allocations: 3.984 kB / 350.5 MB, free: 2.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 51.49 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3299/0.436, allocations: 81.75 MB / 483.8 MB, free: 7.684 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.4363, allocations: 71.44 kB / 483.8 MB, free: 7.652 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02723/0.4635, allocations: 10.77 MB / 494.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4635, allocations: 0 / 494.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.512e-05/0.4636, allocations: 12 kB / 494.6 MB, free: 14.63 MB / 362.7 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.002131/0.4658, allocations: 0.8681 MB / 495.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.4658, allocations: 12.03 kB / 495.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008676/0.4667, allocations: 155.8 kB / 495.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.4678, allocations: 0.5365 MB / 496.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.484e-05/0.4679, allocations: 53.28 kB / 496.3 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.468, allocations: 68 kB / 496.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.4693, allocations: 0.6059 MB / 496.9 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.4694, allocations: 0 / 496.9 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.4694, allocations: 23.98 kB / 496.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.4695, allocations: 16 kB / 497 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008421/0.4703, allocations: 421.2 kB / 497.4 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003635/0.474, allocations: 2.03 MB / 499.4 MB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007684/0.4747, allocations: 419.3 kB / 499.8 MB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003093/0.4751, allocations: 174.2 kB / 500 MB, free: 9.094 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.789e-05/0.4751, allocations: 16.41 kB / 500 MB, free: 9.078 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006215/0.4758, allocations: 349.2 kB / 0.4886 GB, free: 8.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 3.146e-06/0.4758, allocations: 0.75 kB / 0.4886 GB, free: 8.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.0009617/0.4767, allocations: 467.3 kB / 0.4891 GB, free: 8.258 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.65e-05/0.4768, allocations: 111.2 kB / 0.4892 GB, free: 8.125 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006212/0.4775, allocations: 424 kB / 0.4896 GB, free: 7.707 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.024e-05/0.4776, allocations: 49.69 kB / 0.4896 GB, free: 7.652 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002796/0.4778, allocations: 328.3 kB / 0.4899 GB, free: 7.328 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.478, allocations: 165.7 kB / 0.4901 GB, free: 7.164 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.478, allocations: 12 kB / 0.4901 GB, free: 7.152 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.4782, allocations: 372.4 kB / 0.4905 GB, free: 6.781 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003104/0.4785, allocations: 161.5 kB / 0.4906 GB, free: 6.625 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.479, allocations: 382.3 kB / 0.491 GB, free: 6.152 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000389/0.4794, allocations: 205.2 kB / 0.4912 GB, free: 5.953 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.4794, allocations: 4 kB / 0.4912 GB, free: 5.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001133/0.4805, allocations: 0.6004 MB / 0.4918 GB, free: 5.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001141/0.4817, allocations: 2.533 MB / 0.4942 GB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.4817, allocations: 19.92 kB / 0.4943 GB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.001e-05/0.4818, allocations: 8 kB / 0.4943 GB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005699/0.4823, allocations: 147.7 kB / 0.4944 GB, free: 2.445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.531e-05/0.4824, allocations: 15.98 kB / 0.4944 GB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000546/0.4829, allocations: 87.5 kB / 0.4945 GB, free: 2.344 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.813e-05/0.483, allocations: 31.98 kB / 0.4945 GB, free: 2.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.483, allocations: 4 kB / 0.4945 GB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009018/0.4839, allocations: 0.5191 MB / 0.495 GB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4839, allocations: 8 kB / 0.495 GB, free: 1.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.484, allocations: 8 kB / 0.4951 GB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.4845, allocations: 134.1 kB / 0.4952 GB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.4845, allocations: 12.34 kB / 0.4952 GB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004556/0.4849, allocations: 75.56 kB / 0.4953 GB, free: 1.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.485, allocations: 31.98 kB / 0.4953 GB, free: 1.531 MB / 362.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_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.rootMeanSquare.mean.y_last,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.0002229/0.4852, allocations: 163.8 kB / 0.4955 GB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.4854, allocations: 63.25 kB / 0.4955 GB, free: 1.305 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009669/0.4864, allocations: 498 kB / 0.496 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.4864, allocations: 4 kB / 0.496 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.4864, allocations: 0 / 0.496 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4864, allocations: 3.984 kB / 0.496 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008558/0.4873, allocations: 0.6613 MB / 0.4966 GB, free: 92 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.4873, allocations: 0 / 0.4966 GB, free: 92 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004677/0.4878, allocations: 103.9 kB / 0.4967 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.4878, allocations: 0 / 0.4967 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.673e-05/0.4878, allocations: 11.94 kB / 0.4968 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.481e-06/0.4878, allocations: 4 kB / 0.4968 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4879, allocations: 0 / 0.4968 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.4891, allocations: 0.754 MB / 0.4975 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000175/0.4893, allocations: 128.4 kB / 0.4976 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.4894, allocations: 16 kB / 0.4976 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003946/0.4898, allocations: 56.08 kB / 0.4977 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.49, allocations: 44.38 kB / 0.4977 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.556e-05/0.49, allocations: 19.98 kB / 0.4977 GB, free: 14.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004743/0.4905, allocations: 329.6 kB / 0.4981 GB, free: 14.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4905, allocations: 0 / 0.4981 GB, free: 14.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009853/0.4915, allocations: 260.5 kB / 0.4983 GB, free: 14.34 MB / 378.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_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,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.0003471/0.4919, allocations: 157.4 kB / 0.4985 GB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.4935, allocations: 0.7432 MB / 0.4992 GB, free: 13.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.4935, allocations: 0 / 0.4992 GB, free: 13.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004085/0.4939, allocations: 222.5 kB / 0.4994 GB, free: 13.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.4944, allocations: 70 kB / 0.4995 GB, free: 13.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.4965, allocations: 0.8702 MB / 0.5003 GB, free: 12.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005324/0.497, allocations: 0.9204 MB / 0.5012 GB, free: 11.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005893/0.4976, allocations: 132.8 kB / 0.5013 GB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.4978, allocations: 47.42 kB / 0.5014 GB, free: 11.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.4978, allocations: 0 / 0.5014 GB, free: 11.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01422/0.512, allocations: 6.431 MB / 0.5077 GB, free: 4.773 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/TotalHarmonicDistortion/TotalHarmonicDistortion.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches