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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1119
RA = 332.474, Dec = -50.4702
tmin = 529372801, tmax = 529632001
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='210759', job_status='RUN', time_executed='2021-09-28 06:27:15.916340', time_epoch_executed='1632835635.92' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210759/ft1_4FGL_J2209.8-5028_daily_bin1119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210759/ft2_4FGL_J2209.8-5028_daily_bin1119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210759/ft1_4FGL_J2209.8-5028_daily_bin1119.fits outfile=/scratch/kocevski/210759/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1119.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=529372801.0 tmax=529632001.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.51
user 3.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210759/ft1_filtered_4FGL_J2209.8-5028_daily_bin1119.fits" evtable="EVENTS" scfile=/scratch/kocevski/210759/ft2_4FGL_J2209.8-5028_daily_bin1119.fits sctable="SC_DATA" outfile=/scratch/kocevski/210759/ltcube_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.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/210759/ft2_4FGL_J2209.8-5028_daily_bin1119.fits
.....................!
real 11.71
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210759/ft1_filtered_4FGL_J2209.8-5028_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/210759/ft2_4FGL_J2209.8-5028_daily_bin1119.fits sctable="SC_DATA" expcube=/scratch/kocevski/210759/ltcube_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.fits outfile=/scratch/kocevski/210759/expmap_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.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/210759/ltcube_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.fits
.....................!
real 190.01
user 184.07
sys 5.49

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/210759/ft1_filtered_4FGL_J2209.8-5028_daily_bin1119.fits scfile=/scratch/kocevski/210759/ft2_4FGL_J2209.8-5028_daily_bin1119.fits outfile=/scratch/kocevski/210759/cmap_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.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/210759/ft1_filtered_4FGL_J2209.8-5028_daily_bin1119.fits scfile=/scratch/kocevski/210759/ft2_4FGL_J2209.8-5028_daily_bin1119.fits outfile=/scratch/kocevski/210759/cmap_HighResolution_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210759/ft1_filtered_4FGL_J2209.8-5028_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/210759/ft2_4FGL_J2209.8-5028_daily_bin1119.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210759/Model_4FGL_J2209.8-5028_daily_bin1119.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/210759/ft1_filtered_4FGL_J2209.8-5028_daily_bin1119.fits.....................!
real 50.22
user 48.89
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/210759/ft1_filtered_4FGL_J2209.8-5028_daily_bin1119.fits', '/scratch/kocevski/210759/ft2_4FGL_J2209.8-5028_daily_bin1119.fits', expMap='/scratch/kocevski/210759/expmap_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.fits', expCube='/scratch/kocevski/210759/ltcube_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/210759/Model_4FGL_J2209.8-5028_daily_bin1119.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/210759/ft1_filtered_4FGL_J2209.8-5028_daily_bin1119.fits
Spacecraft file(s): /scratch/kocevski/210759/ft2_4FGL_J2209.8-5028_daily_bin1119.fits
Exposure map: /scratch/kocevski/210759/expmap_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.fits
Exposure cube: /scratch/kocevski/210759/ltcube_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/210759/Model_4FGL_J2209.8-5028_daily_bin1119.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) = 6975.86934399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.812       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.392       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7346       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2322       1.0000         .10000E-03   10000.    
     7 'norm      '    8.8565       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.826       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4729       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9086       1.0000         .10000E-03   10000.    
    13 'norm      '    6.7953       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .92493       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.931       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7652       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.3792       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67869       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98015       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.

 FCN=   6975.863     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2897 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5834        17.311        .18923E-06   -.69073E-05
   2  Prefactor     40.817        36.589        .27645E-06    .25700E-05
   3  Prefactor     13.392        7.8846       -.34076E-07   -.71239E-04
   4  Prefactor     .10000E-03    18.607        .40518E-06** at limit **
   5  Prefactor     2.7372        16.532        .65156E-06   -.11970E-04
   6  Prefactor     1.2316        3.2655        .11675E-05   -.13168E-05
   7  norm          8.8567        4.2307        .27006E-07   -.47140E-04
   8  Prefactor     18.826        10.826        .27142E-07   -.11814E-04
   9  Prefactor     .10000E-03    55.497        .30576E-06** at limit **
  10  Prefactor     4.4714        9.3614       -.44874E-06   -.32106E-04
  11  Prefactor     5.8853        3.6297        .29983E-07   -.62356E-04
  12  Prefactor     6.8445        449.53       -.21317E-05   -.14257E-04
  13  norm          6.7953        4.9102       -.18987E-06   -.45090E-04
  14  Prefactor     .92429        2.5153        .92853E-06    .44402E-04
  15  Prefactor     .10000E-03    24.700        .51413E-06** at limit **
  16  Prefactor     .10000E-03    1.4680       -.10919E-06** at limit **
  17  Prefactor     10.918        26.335       -.91758E-06   -.23361E-04
  18  Prefactor     6.7600        10.609        .50852E-06    .20550E-04
  19  Prefactor     .10000E-03    56.157        .47916E-07** at limit **
  20  Prefactor     .10000E-03    3.0946        .42690E-07** at limit **
  21  Prefactor     .10000E-03    20.574       -.96886E-06** at limit **
  22  Prefactor     .10000E-03    3.2983        .18204E-07** at limit **
  23  norm          1.3794        3.7150        .65051E-06   -.91859E-05
  24  Normalizat    .67905        .15840        .17383E-06   -.11786E-03
  25  Prefactor     .97988        .12663       -.62473E-06   -.56787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.58344
  Prefactor  = 40.8168
  Prefactor  = 13.3922
  Prefactor  = 0.0001
  Prefactor  = 2.73725
  Prefactor  = 1.23156
  norm       = 8.85668
  Prefactor  = 18.8258
  Prefactor  = 0.0001
  Prefactor  = 4.47139
  Prefactor  = 5.88535
  Prefactor  = 6.84448
  norm       = 6.79533
  Prefactor  = 0.924292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9179
  Prefactor  = 6.76005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37936
  Normalizat = 0.679051
  Prefactor  = 0.979875
 **********
 **   18 **HESSE 
 **********

 FCN=   6975.863     FROM HESSE     STATUS=OK           437 CALLS     3334 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5834        17.308        .14564E-03   -1.5157    
   2  Prefactor     40.817        36.576        .62746E-04   -1.4429    
   3  Prefactor     13.392        7.8701        .10946E-03   -1.4976    
   4  Prefactor     .10000E-03    18.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7372        16.451        .24623E-03   -1.5377    
   6  Prefactor     1.2316        3.2562        .23273E-03   -1.5486    
   7  norm          8.8567        4.2296        .11407E-03   -1.5113    
   8  Prefactor     18.826        10.825        .92308E-04   -1.4840    
   9  Prefactor     .10000E-03    56.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4714        9.1533        .19039E-03   -1.5285    
  11  Prefactor     5.8853        3.6233        .11782E-03   -1.5223    
  12  Prefactor     6.8445        447.00        .15264E-03   -1.5185    
  13  norm          6.7953        4.9111        .15329E-03   -1.5187    
  14  Prefactor     .92429        2.5024        .20852E-03   -1.5516    
  15  Prefactor     .10000E-03    24.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4719        .98707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.918        26.253        .12118E-03   -1.5047    
  18  Prefactor     6.7600        10.506        .15426E-03   -1.5188    
  19  Prefactor     .10000E-03    56.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2391        .28691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.3031        .14814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3794        3.6638        .25860E-03   -1.5473    
  24  Normalizat    .67905        .18645        .27182E-03   -1.0473    
  25  Prefactor     .97988        .14939        .19283E-03   -.93403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41046e-11
Minuit parameter uncertainties:
  1  17.3198
  2  36.5958
  3  7.87071
  4  2.58268e-05
  5  13.4263
  6  3.25664
  7  4.22975
  8  10.8266
  9  3.40073e-05
  10  9.15616
  11  3.62341
  12  111.504
  13  4.91135
  14  2.5027
  15  1.00412e-05
  16  1.19655e-06
  17  26.2809
  18  10.5089
  19  1.30832e-06
  20  7.28269e-07
  21  4.42133e-05
  22  5.02816e-07
  23  3.66438
  24  0.186627
  25  0.149452
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.844e+00  1.115e+02  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:  9.799e-01  1.495e-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:  6.791e-01  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/210759/likelihoodResults_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.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) = 6975.81808267
delta logL = 0.0453657251237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6975.81599408
delta logL = 0.047454317084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7492       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0146       1.0000          .0000       10.000    
     3 'Normalizat'    .67016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98305       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6975.816     FROM MIGRAD    STATUS=FAILED       103 CALLS      295 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8139        152.00        .67756E-03   -.67786E-05
   2  Index         3.0118        3.1031        .11059E-01    .24036E-03
   3  Normalizat    .67012        .17427        .27345E-03    .27023E-05
   4  Prefactor     .98300        .14517        .19252E-03    .12696E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6975.816     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      376 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8139        152.00        .48213E-03   -1.5114    
   2  Index         3.0118        3.1031        .20340E-02   -.40894    
   3  Normalizat    .67012        .17427        .38092E-03   -1.0508    
   4  Prefactor     .98300        .14517        .26310E-03   -.93298    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6975.816     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      412 TOTAL
                     EDM=   .60E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8139        58.606        .27103E-04   -.67115E-05
   2  Index         3.0118        2.0387        .22118E-02   -.95606E-06
   3  Normalizat    .67012        .17450        .10938E-04    .83149E-06
   4  Prefactor     .98300        .14513        .77009E-05    .59051E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.81388
  Index      = 3.01184
  Normalizat = 0.670118
  Prefactor  = 0.982999
 **********
 **   18 **HESSE 
 **********

 FCN=   6975.816     FROM HESSE     STATUS=OK            23 CALLS      435 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8139        52.929        .54205E-05   -1.5114    
   2  Index         3.0118        1.9430        .88470E-04   -.40894    
   3  Normalizat    .67012        .17434        .21876E-05   -1.0508    
   4  Prefactor     .98300        .14498        .15402E-05   -.93298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87055e-13
Minuit parameter uncertainties:
  1  43.255
  2  2.00632
  3  0.174488
  4  0.145037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210759': 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) = 6975.81599234
delta logL = 0.0474560571811

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  8.814e+00  4.325e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.012e+00  2.006e+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:  9.830e-01  1.450e-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:  6.701e-01  1.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/210759/cmap_HighResolution_529372801_529632001_4FGL_J2209.8-5028_daily_bin1119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-28 06:40:12.042203', job_id='210759', GAL2='0.98', fit_tolerance='1e-08', EG2='0.67', EG='0.68', time_epoch_completed='1632836412.04', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.75e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1119' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 210759: <4FGL_J2209.8-5028_daily_bin1119> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1119> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:40 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:25:42 2021
Terminated at Tue Sep 28 06:40:12 2021
Results reported at Tue Sep 28 06:40:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1119 332.474 -50.4702 529372801 529632001 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 :                                   759.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

