Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 181.2 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008611/0.0008613, allocations: 95.94 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003806, allocations: 12 kB / 351.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2605, allocations: 50.39 MB / 401.5 MB, free: 32.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1004/0.3609, allocations: 80.99 MB / 482.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.3612, allocations: 76.91 kB / 482.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.028/0.3892, allocations: 10.5 MB / 493 MB, free: 4.922 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3892, allocations: 0 / 493 MB, free: 4.922 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.486e-05/0.3893, allocations: 20 kB / 493.1 MB, free: 4.902 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.001718/0.391, allocations: 0.9207 MB / 494 MB, free: 3.922 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3911, allocations: 8.031 kB / 494 MB, free: 3.914 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.3912, allocations: 87.05 kB / 494.1 MB, free: 3.828 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008044/0.3921, allocations: 0.5291 MB / 494.6 MB, free: 3.258 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.731e-05/0.3921, allocations: 53.2 kB / 494.7 MB, free: 3.207 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-05/0.3922, allocations: 64 kB / 494.7 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.3935, allocations: 0.6722 MB / 495.4 MB, free: 2.453 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.3935, allocations: 3.906 kB / 495.4 MB, free: 2.449 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.197e-05/0.3936, allocations: 28 kB / 495.4 MB, free: 2.422 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.3936, allocations: 12 kB / 495.4 MB, free: 2.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.3947, allocations: 0.5516 MB / 496 MB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003491/0.3982, allocations: 1.992 MB / 498 MB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.3994, allocations: 0.5207 MB / 498.5 MB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.705e-05/0.3995, allocations: 12.41 kB / 498.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008211/0.4003, allocations: 413.8 kB / 498.9 MB, free: 14.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=53): time 7.013e-06/0.4003, allocations: 3.984 kB / 498.9 MB, free: 14.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=53): time 0.001714/0.402, allocations: 0.8068 MB / 499.7 MB, free: 14.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.798e-05/0.4021, allocations: 115.2 kB / 499.8 MB, free: 13.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.4027, allocations: 393 kB / 0.4885 GB, free: 13.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/0.4027, allocations: 49.69 kB / 0.4885 GB, free: 13.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.403, allocations: 316.3 kB / 0.4889 GB, free: 13.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.4032, allocations: 157.8 kB / 0.489 GB, free: 12.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.4032, allocations: 16 kB / 0.489 GB, free: 12.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.4034, allocations: 374.7 kB / 0.4894 GB, free: 12.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.4039, allocations: 225.2 kB / 0.4896 GB, free: 12.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006143/0.4045, allocations: 441 kB / 0.49 GB, free: 11.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005731/0.4051, allocations: 270.9 kB / 0.4903 GB, free: 11.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.4051, allocations: 4 kB / 0.4903 GB, free: 11.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001348/0.4065, allocations: 0.7231 MB / 0.491 GB, free: 10.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00106/0.4075, allocations: 2.525 MB / 0.4934 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.4075, allocations: 8 kB / 0.4935 GB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.691e-05/0.4076, allocations: 8 kB / 0.4935 GB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005327/0.4081, allocations: 151.7 kB / 0.4936 GB, free: 7.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.387e-05/0.4082, allocations: 15.94 kB / 0.4936 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/0.4086, allocations: 95.5 kB / 0.4937 GB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.4087, allocations: 24 kB / 0.4937 GB, free: 7.828 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.494e-06/0.4087, allocations: 4 kB / 0.4937 GB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001034/0.4097, allocations: 0.5911 MB / 0.4943 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.4097, allocations: 12.33 kB / 0.4943 GB, free: 7.227 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.4098, allocations: 16 kB / 0.4943 GB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004492/0.4102, allocations: 131.7 kB / 0.4945 GB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.4102, allocations: 15.98 kB / 0.4945 GB, free: 7.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003829/0.4106, allocations: 75.61 kB / 0.4946 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.166e-05/0.4107, allocations: 31.98 kB / 0.4946 GB, free: 6.961 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.000476/0.4112, allocations: 311.4 kB / 0.4949 GB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.656e-05/0.4113, allocations: 55.34 kB / 0.4949 GB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.4126, allocations: 0.6266 MB / 0.4955 GB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.4126, allocations: 8 kB / 0.4956 GB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.4126, allocations: 3.984 kB / 0.4956 GB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4126, allocations: 0 / 0.4956 GB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007759/0.4134, allocations: 0.638 MB / 0.4962 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.4134, allocations: 0 / 0.4962 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004285/0.4138, allocations: 95.81 kB / 0.4963 GB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.4139, allocations: 8 kB / 0.4963 GB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.35e-05/0.4139, allocations: 15.98 kB / 0.4963 GB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.4139, allocations: 7.953 kB / 0.4963 GB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4139, allocations: 0 / 0.4963 GB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.4157, allocations: 0.9413 MB / 0.4972 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.4158, allocations: 120.5 kB / 0.4973 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.91e-05/0.4159, allocations: 23.98 kB / 0.4974 GB, free: 4.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000335/0.4162, allocations: 55.95 kB / 0.4974 GB, free: 3.953 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.4164, allocations: 44.33 kB / 0.4975 GB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.4164, allocations: 15.98 kB / 0.4975 GB, free: 3.895 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000385/0.4168, allocations: 307.1 kB / 0.4978 GB, free: 3.594 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4168, allocations: 0 / 0.4978 GB, free: 3.594 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008504/0.4177, allocations: 255 kB / 0.498 GB, free: 3.344 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.0002064/0.4179, allocations: 136.8 kB / 0.4981 GB, free: 3.199 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001881/0.4198, allocations: 0.89 MB / 0.499 GB, free: 2.316 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4198, allocations: 0 / 0.499 GB, free: 2.316 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005757/0.4204, allocations: 290.4 kB / 0.4993 GB, free: 2.031 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004697/0.4209, allocations: 68.92 kB / 0.4993 GB, free: 1.969 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.4231, allocations: 1.343 MB / 0.5007 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2013/0.6244, allocations: 0.9144 MB / 0.5016 GB, free: 97.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000614/0.625, allocations: 97.78 kB / 0.5016 GB, free: 97.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.6252, allocations: 48.55 kB / 0.5017 GB, free: 97.11 MB / 378.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6252, allocations: 0 / 0.5017 GB, free: 97.11 MB / 378.7 MB Notification: Performance of Templates: time 0.01059/0.6358, allocations: 5.381 MB / 0.5069 GB, free: 96.98 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches