/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 61 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7383
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1221
RA = 324.855, Dec = -42.5895
tmin = 555811201, tmax = 556070401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='641218', job_status='RUN', time_executed='2021-09-26 21:54:19.799170', time_epoch_executed='1632718459.8' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641218

Creating custom pfile directory:
/scratch/kocevski/641218/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=555811201.0 && nMetStart<556070401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=555811201.0 && nMetStart<556070401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641218/ft1_4FGL_J2139.4-4235_daily_bin1221.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=555811201.0 && nMetStart<556070401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641218/ft1_4FGL_J2139.4-4235_daily_bin1221.fits outfile=/scratch/kocevski/641218/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1221.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=555811201.0 tmax=556070401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.57
user 3.36
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/641218/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/641218/ft1_filtered_4FGL_J2139.4-4235_daily_bin1221.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641218/ft1_filtered_4FGL_J2139.4-4235_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/641218/ltcube_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits
.....................!
real 13.69
user 13.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641218/ft1_filtered_4FGL_J2139.4-4235_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/641218/ltcube_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits outfile=/scratch/kocevski/641218/expmap_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/641218/ltcube_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits
.....................!
real 192.00
user 186.02
sys 4.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2139.4-4235 @ 324.855 -42.5895

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/641218/ft1_filtered_4FGL_J2139.4-4235_daily_bin1221.fits scfile=/scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits outfile=/scratch/kocevski/641218/cmap_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=324.855 yref=-42.5895 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641218/ft1_filtered_4FGL_J2139.4-4235_daily_bin1221.fits scfile=/scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits outfile=/scratch/kocevski/641218/cmap_HighResolution_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=324.855 yref=-42.5895 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641218/ft1_filtered_4FGL_J2139.4-4235_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641218/Model_4FGL_J2139.4-4235_daily_bin1221.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/641218/ft1_filtered_4FGL_J2139.4-4235_daily_bin1221.fits.....................!
real 25.02
user 23.76
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641218/ft1_filtered_4FGL_J2139.4-4235_daily_bin1221.fits', '/scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits', expMap='/scratch/kocevski/641218/expmap_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits', expCube='/scratch/kocevski/641218/ltcube_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641218/Model_4FGL_J2139.4-4235_daily_bin1221.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2139.4-4235'

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.892e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/641218/ft1_filtered_4FGL_J2139.4-4235_daily_bin1221.fits
Spacecraft file(s): /scratch/kocevski/641218/ft2_4FGL_J2139.4-4235_daily_bin1221.fits
Exposure map: /scratch/kocevski/641218/expmap_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits
Exposure cube: /scratch/kocevski/641218/ltcube_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641218/Model_4FGL_J2139.4-4235_daily_bin1221.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 1856.75405734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 1856.74104674

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    165.93       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4573       1.0000         .10000E-03   10000.    
     4 'Prefactor '    77.983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.178       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3503       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11746E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .49174E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .80717       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9990       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67323       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3288       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1856.741     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2526 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.203        .71864E-06** at limit **
   2  Prefactor     166.05        212.08       -.77503E-06    .90311E-05
   3  norm          1.4578        4.7814        .24656E-06    .83286E-04
   4  Prefactor     77.985        65.136       -.93463E-07    .86665E-05
   5  Prefactor     62.218        104.37       -.22378E-06   -.11655E-06
   6  Prefactor     5.3509        15.893        .64398E-06    .90517E-04
   7  Prefactor     .10000E-03    53.452       -.45938E-06** at limit **
   8  Prefactor     25.738        101.97       -.37417E-05   -.42774E-05
   9  Prefactor     .10001E-03    27.555        .10211E-04** at limit **
  10  norm          .10032E-03    25.621       -.57732E-05** at limit **
  11  Prefactor     .79678        16.260        .29452E-05   -.29287E-03
  12  Prefactor     .10000E-03    9.3796       -.29092E-06** at limit **
  13  norm          .10000E-03    6.5921       -.40134E-06** at limit **
  14  Prefactor     .10000E-03    49.715       -.68368E-07** at limit **
  15  Prefactor     .10000E-03    6.8859        .28198E-06** at limit **
  16  Prefactor     .10000E-03    79.954        .12774E-06** at limit **
  17  Prefactor     .10000E-03    12.949       -.68939E-06** at limit **
  18  Prefactor     4.9972        9.0442        .52700E-07    .10239E-03
  19  Prefactor     .10000E-03    61.074       -.26121E-06** at limit **
  20  Prefactor     .10000E-03    26.204       -.95819E-06** at limit **
  21  Prefactor     .10000E-03    31.262       -.53930E-06** at limit **
  22  Normalizat    .67336        .41440        .93940E-05    .18015E-03
  23  Prefactor     1.3287        .28218       -.22238E-05    .36891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 166.054
  norm       = 1.4578
  Prefactor  = 77.9847
  Prefactor  = 62.2183
  Prefactor  = 5.35087
  Prefactor  = 0.0001
  Prefactor  = 25.7379
  Prefactor  = 0.000100007
  norm       = 0.000100323
  Prefactor  = 0.796781
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.99721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.673358
  Prefactor  = 1.32868
 **********
 **   18 **HESSE 
 **********

 FCN=   1856.741     FROM HESSE     STATUS=OK           364 CALLS     2890 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     166.05        212.14        .15657E-03   -1.3124    
   3  norm          1.4578        4.7350        .16155E-03   -1.5466    
   4  Prefactor     77.985        65.292        .45475E-04   -1.3939    
   5  Prefactor     62.218        104.35        .25444E-03   -1.4129    
   6  Prefactor     5.3509        15.864        .17375E-03   -1.5245    
   7  Prefactor     .10000E-03    53.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.738        101.86        .39663E-03   -1.4693    
   9  Prefactor     .10001E-03    28.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10032E-03    92.786        .36816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .79678        45.722        .30409E-02   -1.5529    
  12  Prefactor     .10000E-03    9.3924        .12893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6111        .10812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8873        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    79.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.992        .15159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9972        9.0392        .16594E-03   -1.5261    
  19  Prefactor     .10000E-03    61.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67336        .44353        .38663E-03   -1.0495    
  23  Prefactor     1.3287        .30425        .19466E-03   -.82458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59014e-09
Minuit parameter uncertainties:
  1  6.92907e-05
  2  213.126
  3  4.73621
  4  65.352
  5  104.657
  6  15.8768
  7  5.659e-05
  8  102.564
  9  0.000893563
  10  0.010974
  11  12.0805
  12  2.83101e-05
  13  3.37922e-05
  14  3.34079e-05
  15  1.00639e-05
  16  8.61842e-06
  17  7.63753e-05
  18  9.04171
  19  1.96401e-05
  20  0.000175605
  21  0.000143044
  22  0.445911
  23  0.304658
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 1856.74101727

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.003e-04  1.097e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.329e+00  3.047e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  6.734e-01  4.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 2.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641218/likelihoodResults_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1856.74106797
delta logL = -5.07031343204e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1856.74101839
delta logL = -1.12148609333e-06

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14421E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9815       1.0000          .0000       5.0000    
     3 'Normalizat'    .67349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3288       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1856.741     FROM MIGRAD    STATUS=FAILED       107 CALLS      284 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10334E-03    7474.9        .48722E-01** at limit **
   2  alpha         1.8394        2.8138        .16932        .13391E-04
   3  Normalizat    .67334        .27352        .38665E-03   -.82978E-03
   4  Prefactor     1.3287        .22911        .19467E-03   -.15522E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1856.741     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      425 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10334E-03    7474.9        .32883E-02** at limit **
   2  alpha         1.8394        2.8138        .10925E-04    .13391E-04
   3  Normalizat    .67334        .27352        .17588E-05   -.82978E-03
   4  Prefactor     1.3287        .22911        .57339E-06   -.15522E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1856.741     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      462 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10069E-03    6749.3        .61612E-01** at limit **
   2  alpha         1.8398        2.5841        .33864E-01    .13023E-04
   3  Normalizat    .67335        .26130        .77330E-04   -.52917E-03
   4  Prefactor     1.3287        .21293        .38933E-04   -.94353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100693
  alpha      = 1.83977
  Normalizat = 0.673348
  Prefactor  = 1.32868
 **********
 **   18 **HESSE 
 **********

 FCN=   1856.741     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      495 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10069E-03    7052.4        .55726E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8398        2.7608        .67728E-02   -.26726    
   3  Normalizat    .67335        .27031        .15466E-04   -1.0495    
   4  Prefactor     1.3287        .22382        .77866E-05   -.82458    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.5265e-09
Minuit parameter uncertainties:
  1  0.115754
  2  30.8433
  3  0.270846
  4  0.223986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641218': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1856.74101683
delta logL = 4.42088776254e-07

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.007e-04  1.158e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.840e+00  3.084e+01  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.329e+00  2.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  6.733e-01  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 324.855 -42.590

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/641218/cmap_HighResolution_555811201_556070401_4FGL_J2139.4-4235_daily_bin1221.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/641218

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-04', job_status='DONE', photon_flux_upper_limit='2.28e-07', time_completed='2021-09-26 22:05:08.104911', job_id='641218', GAL2='1.33', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632719108.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1221' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:05:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 641218: <4FGL_J2139.4-4235_daily_bin1221> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1221> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:38 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:53:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 21:53:10 2021
Terminated at Sun Sep 26 22:05:08 2021
Results reported at Sun Sep 26 22:05:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1221 324.855 -42.5895 555811201 556070401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2139.4-4235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   424.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            870 sec.

The output (if any) is above this job summary.

