/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 97 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 = 7171
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1662
RA = 332.474, Dec = -50.4702
tmin = 670118401, tmax = 670377601
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='124927', job_status='RUN', time_executed='2022-03-31 00:37:12.228207', time_epoch_executed='1648712232.23' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124927/ft1_4FGL_J2209.8-5028_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124927/ft1_4FGL_J2209.8-5028_daily_bin1662.fits outfile=/scratch/kocevski/124927/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1662.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=670118401.0 tmax=670377601.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.44
user 3.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.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/124927/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1662.fits evtable="EVENTS" outfile="/scratch/kocevski/124927/ft1_filtered_4FGL_J2209.8-5028_daily_bin1662.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 615

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124927/ft1_filtered_4FGL_J2209.8-5028_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124927/ltcube_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.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/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits
.....................!
real 11.54
user 11.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124927/ft1_filtered_4FGL_J2209.8-5028_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124927/ltcube_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.fits outfile=/scratch/kocevski/124927/expmap_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.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/124927/ltcube_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.fits
.....................!
real 191.48
user 185.40
sys 5.72

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/124927/ft1_filtered_4FGL_J2209.8-5028_daily_bin1662.fits scfile=/scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits outfile=/scratch/kocevski/124927/cmap_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.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=332.474 yref=-50.4702 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124927/ft1_filtered_4FGL_J2209.8-5028_daily_bin1662.fits scfile=/scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits outfile=/scratch/kocevski/124927/cmap_HighResolution_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.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=332.474 yref=-50.4702 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124927/ft1_filtered_4FGL_J2209.8-5028_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124927/Model_4FGL_J2209.8-5028_daily_bin1662.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/124927/ft1_filtered_4FGL_J2209.8-5028_daily_bin1662.fits.....................!
real 50.60
user 49.29
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/124927/ft1_filtered_4FGL_J2209.8-5028_daily_bin1662.fits', '/scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits', expMap='/scratch/kocevski/124927/expmap_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.fits', expCube='/scratch/kocevski/124927/ltcube_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/124927/Model_4FGL_J2209.8-5028_daily_bin1662.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/124927/ft1_filtered_4FGL_J2209.8-5028_daily_bin1662.fits
Spacecraft file(s): /scratch/kocevski/124927/ft2_4FGL_J2209.8-5028_daily_bin1662.fits
Exposure map: /scratch/kocevski/124927/expmap_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.fits
Exposure cube: /scratch/kocevski/124927/ltcube_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/124927/Model_4FGL_J2209.8-5028_daily_bin1662.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) = 6605.46833333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.940       1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.059       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.963       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8316       1.0000         .10000E-03   10000.    
     7 'norm      '    7.3105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10418E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4736       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .96524E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    73.311       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .78337       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.888       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.920       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3985       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80686       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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.

 FCN=   6605.458     FROM MIGRAD    STATUS=CONVERGED   1037 CALLS     3387 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.937        31.028        .10032E-03   -.58930E-05
   2  Prefactor     56.058        43.592        .53577E-04   -.61961E-05
   3  Prefactor     8.2400        7.6508        .13966E-03   -.36956E-04
   4  Prefactor     42.960        36.602        .61162E-04    .24164E-05
   5  Prefactor     .10000E-03    6.3524        .18142E-02** at limit **
   6  Prefactor     8.8313        5.0663        .13226E-03   -.42977E-04
   7  norm          7.3105        5.3481        .14834E-03    .30118E-04
   8  Prefactor     .10005E-03    7.6390        .76251E-01** at limit **
   9  Prefactor     .10000E-03    32.650        .18142E-02** at limit **
  10  Prefactor     .10000E-03    10.284        .18142E-02** at limit **
  11  Prefactor     1.4711        4.6750        .29009E-03   -.30921E-04
  12  Prefactor     .10000E-03    135.37        .18142E-02** at limit **
  13  norm          .10753        5.4710        .65252E-01    .71895E-03
  14  Prefactor     .10000E-03    1.0649        .81676E-03** at limit **
  15  Prefactor     73.305        50.682        .46890E-04   -.76615E-05
  16  Prefactor     .78453        5.8784        .37042E-03    .51439E-04
  17  Prefactor     .10000E-03    66.135        .18142E-02** at limit **
  18  Prefactor     10.894        12.025        .12142E-03    .20712E-03
  19  Prefactor     .10000E-03    36.803        .18142E-02** at limit **
  20  Prefactor     .10000E-03    2.2460        .11877E-02** at limit **
  21  Prefactor     13.921        22.890        .10735E-03    .26793E-04
  22  Prefactor     .10000E-03    7.0747        .18142E-02** at limit **
  23  norm          .10000E-03    2.0491        .11362E-02** at limit **
  24  Normalizat    1.3987        .22034        .24734E-03   -.47159E-04
  25  Prefactor     .80678        .17149        .24933E-03   -.19698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9374
  Prefactor  = 56.0584
  Prefactor  = 8.24002
  Prefactor  = 42.9604
  Prefactor  = 0.0001
  Prefactor  = 8.83125
  norm       = 7.31053
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.47109
  Prefactor  = 0.0001
  norm       = 0.107534
  Prefactor  = 0.0001
  Prefactor  = 73.3048
  Prefactor  = 0.784531
  Prefactor  = 0.000100005
  Prefactor  = 10.8938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9213
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.39866
  Prefactor  = 0.806777
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.458     FROM HESSE     STATUS=OK           421 CALLS     3808 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.937        31.023        .40127E-05   -1.4909    
   2  Prefactor     56.058        43.591        .10715E-04   -1.4209    
   3  Prefactor     8.2400        7.6505        .55865E-05   -1.5134    
   4  Prefactor     42.960        36.596        .24465E-05   -1.4396    
   5  Prefactor     .10000E-03    6.3525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8313        5.0662        .52906E-05   -1.5114    
   7  norm          7.3105        5.3480        .59338E-05   -1.5167    
   8  Prefactor     .10005E-03    7.5048        .77632E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4711        4.6729        .11604E-04   -1.5465    
  12  Prefactor     .10000E-03    135.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10753        5.4277        .65773E-01   -1.5642    
  14  Prefactor     .10000E-03    1.0650        .16335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     73.305        50.680        .93781E-05   -1.3994    
  16  Prefactor     .78453        5.8745        .14817E-04   -1.5531    
  17  Prefactor     .10000E-03    66.165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.894        12.024        .48567E-05   -1.5048    
  19  Prefactor     .10000E-03    36.803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2461        .23754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.921        22.888        .42941E-05   -1.4962    
  22  Prefactor     .10000E-03    7.0754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.0491        .22724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3987        .22048        .98935E-05   -.80667    
  25  Prefactor     .80678        .17164        .99732E-05   -.99479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29074e-09
Minuit parameter uncertainties:
  1  31.0539
  2  43.6163
  3  7.65136
  4  36.6147
  5  9.10218e-06
  6  5.06645
  7  5.34837
  8  0.00116457
  9  0.00011778
  10  6.61748e-05
  11  4.67409
  12  0.000510723
  13  1.52739
  14  6.98887e-06
  15  50.7103
  16  4.29392
  17  0.00111638
  18  12.0265
  19  6.10728e-05
  20  6.36609e-06
  21  22.9025
  22  1.90185e-05
  23  5.25645e-07
  24  0.220633
  25  0.171751
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.107e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.068e-01  1.718e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.399e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 7.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124927/likelihoodResults_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.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): 102
logL (Free Index) = 6605.45801428
delta logL = -3.50647442247e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6605.45797307
delta logL = 6.14772761764e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92916E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0081       1.0000          .0000       10.000    
     3 'Normalizat'    1.3987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80678       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6605.415     FROM MIGRAD    STATUS=FAILED       148 CALLS      329 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4791        1933.4        .20810E-02    .19913E-04
   2  Index         3.5251        8.0827        .10002E-01    .22817E-03
   3  Normalizat    1.3831        .18051        .24853E-03    .14455E-04
   4  Prefactor     .81267        .13557        .24852E-03    .18984E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6605.415     FROM SIMPLEX   STATUS=UNCHANGED    102 CALLS      431 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4791        1933.4        .46009E-03    .19913E-04
   2  Index         3.5251        8.0827        .14714E-02    .22817E-03
   3  Normalizat    1.3831        .18051        .72696E-04    .14455E-04
   4  Prefactor     .81267        .13557        .50668E-04    .18984E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6605.415     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      464 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4791        36.619        .83240E-04    .81947E-06
   2  Index         3.5251        2.4546        .20004E-02    .88997E-05
   3  Normalizat    1.3831        .21747        .99413E-05    .14409E-04
   4  Prefactor     .81267        .16878        .99408E-05    .18984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.4791
  Index      = 3.52509
  Normalizat = 1.38308
  Prefactor  = 0.812667
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.415     FROM HESSE     STATUS=OK            25 CALLS      489 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4791        31.852        .16648E-04   -1.5335    
   2  Index         3.5251        2.3030        .40009E-03   -.29944    
   3  Normalizat    1.3831        .21763        .19883E-05   -.81119    
   4  Prefactor     .81267        .16889        .19882E-05   -.99263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18191e-13
Minuit parameter uncertainties:
  1  21.0684
  2  2.403
  3  0.217778
  4  0.168993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124927': 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): 0
logL (Free Index) = 6605.41487485
delta logL = 0.0431043634835

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.479e+00  2.107e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.525e+00  2.403e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.127e-01  1.690e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.383e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/124927/cmap_HighResolution_670118401_670377601_4FGL_J2209.8-5028_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2022-03-31 00:50:25.149842', job_id='124927', GAL2='0.81', fit_tolerance='1e-08', EG2='1.38', EG='1.40', time_epoch_completed='1648713025.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.31e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1662' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:50:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 124927: <4FGL_J2209.8-5028_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:25 2022
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:27 2022
Terminated at Thu Mar 31 00:50:25 2022
Results reported at Thu Mar 31 00:50:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1662 332.474 -50.4702 670118401 670377601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2209.8-5028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   795.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

