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.00107/0.00107, allocations: 199 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 227.2 MB / 245 MB, free: 5.836 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000906/0.000906, allocations: 106.2 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001885/0.0001885, allocations: 7.938 kB / 357.9 MB, free: 9.316 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1842/0.1844, allocations: 51.48 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08544/0.2699, allocations: 81.82 MB / 491.2 MB, free: 8.773 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/0.2701, allocations: 71.97 kB / 491.3 MB, free: 8.703 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02739/0.2976, allocations: 10.81 MB / 0.4903 GB, free: 13.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.2976, allocations: 0 / 0.4903 GB, free: 13.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.265e-05/0.2976, allocations: 20.12 kB / 0.4903 GB, free: 13.85 MB / 378.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.001554/0.2992, allocations: 0.9492 MB / 0.4913 GB, free: 12.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2992, allocations: 12.03 kB / 0.4913 GB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006297/0.2999, allocations: 162.8 kB / 0.4914 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007199/0.3006, allocations: 0.5369 MB / 0.492 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.916e-05/0.3006, allocations: 45.31 kB / 0.492 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/0.3007, allocations: 60 kB / 0.4921 GB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.3018, allocations: 0.6917 MB / 0.4927 GB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.3019, allocations: 0 / 0.4927 GB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.595e-05/0.3019, allocations: 24 kB / 0.4928 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.302, allocations: 12 kB / 0.4928 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.303, allocations: 0.5555 MB / 0.4933 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.3058, allocations: 2.023 MB / 0.4953 GB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009663/0.3068, allocations: 0.5374 MB / 0.4958 GB, free: 8.051 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.925e-05/0.3069, allocations: 8.422 kB / 0.4958 GB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006981/0.3076, allocations: 409.2 kB / 0.4962 GB, free: 7.633 MB / 378.7 MB Notification: Performance of pre-optimization done (n=53): time 1.934e-06/0.3076, allocations: 0 / 0.4962 GB, free: 7.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=53): time 0.001521/0.3091, allocations: 0.8067 MB / 0.497 GB, free: 6.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/0.3092, allocations: 119.2 kB / 0.4971 GB, free: 6.676 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004457/0.3096, allocations: 433.2 kB / 0.4975 GB, free: 6.246 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.3097, allocations: 45.64 kB / 0.4976 GB, free: 6.195 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.3099, allocations: 328.3 kB / 0.4979 GB, free: 5.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.31, allocations: 161.8 kB / 0.498 GB, free: 5.711 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.31, allocations: 8 kB / 0.4981 GB, free: 5.703 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3102, allocations: 374.8 kB / 0.4984 GB, free: 5.328 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/0.3106, allocations: 233.2 kB / 0.4986 GB, free: 5.098 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005519/0.3112, allocations: 449 kB / 0.4991 GB, free: 4.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004978/0.3117, allocations: 271.7 kB / 0.4993 GB, free: 4.305 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3117, allocations: 4 kB / 0.4993 GB, free: 4.301 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001212/0.3129, allocations: 0.7364 MB / 0.5 GB, free: 3.562 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007116/0.3137, allocations: 2.531 MB / 0.5025 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.3137, allocations: 8 kB / 0.5025 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.123e-05/0.3137, allocations: 12 kB / 0.5025 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005308/0.3142, allocations: 151.7 kB / 0.5027 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.3143, allocations: 8 kB / 0.5027 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004096/0.3147, allocations: 99.39 kB / 0.5028 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/0.3147, allocations: 28 kB / 0.5028 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.855e-06/0.3147, allocations: 4 kB / 0.5028 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1527/0.4675, allocations: 0.5933 MB / 0.5034 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.448e-05/0.4675, allocations: 6.781 kB / 0.5034 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.4676, allocations: 11.38 kB / 0.5034 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000591/0.4682, allocations: 132.9 kB / 0.5035 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.978e-05/0.4682, allocations: 13.84 kB / 0.5035 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005542/0.4688, allocations: 75.92 kB / 0.5036 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.836e-05/0.4688, allocations: 27.12 kB / 0.5036 GB, free: 91.59 MB / 378.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000485/0.4693, allocations: 316.5 kB / 0.5039 GB, free: 91.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.4695, allocations: 62.36 kB / 0.504 GB, free: 91.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/0.4709, allocations: 0.6253 MB / 0.5046 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.4709, allocations: 6.344 kB / 0.5046 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.4709, allocations: 0.6875 kB / 0.5046 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.471, allocations: 6.641 kB / 0.5046 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008073/0.4718, allocations: 0.6552 MB / 0.5053 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.4718, allocations: 0 / 0.5053 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004536/0.4722, allocations: 100.9 kB / 0.5054 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.4723, allocations: 2.594 kB / 0.5054 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-05/0.4723, allocations: 15.47 kB / 0.5054 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.4723, allocations: 2.391 kB / 0.5054 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4723, allocations: 0 / 0.5054 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001656/0.474, allocations: 0.9377 MB / 0.5063 GB, free: 91.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.4741, allocations: 133.3 kB / 0.5064 GB, free: 91.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.043e-05/0.4742, allocations: 17.06 kB / 0.5064 GB, free: 91.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000357/0.4746, allocations: 56.28 kB / 0.5065 GB, free: 91.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.4747, allocations: 43.48 kB / 0.5065 GB, free: 91.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/0.4748, allocations: 20 kB / 0.5066 GB, free: 91.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003654/0.4751, allocations: 335.2 kB / 0.5069 GB, free: 90.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4751, allocations: 2.625 kB / 0.5069 GB, free: 90.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000847/0.476, allocations: 262.4 kB / 0.5071 GB, free: 90.92 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) * Number of clocked states: 0 () * 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.0001745/0.4762, allocations: 144.7 kB / 0.5073 GB, free: 90.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001847/0.478, allocations: 0.8954 MB / 0.5081 GB, free: 90.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.289e-06/0.478, allocations: 4.531 kB / 0.5081 GB, free: 90.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005824/0.4786, allocations: 296.1 kB / 0.5084 GB, free: 90.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.479, allocations: 64.89 kB / 0.5085 GB, free: 90.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.4808, allocations: 1.381 MB / 0.5098 GB, free: 90.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.4811, allocations: 0.9234 MB / 0.5107 GB, free: 89.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003933/0.4815, allocations: 98.77 kB / 0.5108 GB, free: 89.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.4817, allocations: 47.17 kB / 0.5109 GB, free: 89.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4817, allocations: 2.906 kB / 0.5109 GB, free: 89.41 MB / 378.7 MB Notification: Performance of Templates: time 0.008566/0.4902, allocations: 5.609 MB / 0.5164 GB, free: 89.15 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