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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1331
RA = 332.474, Dec = -50.4702
tmin = 584323201, tmax = 584582401
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='211640', job_status='RUN', time_executed='2021-09-28 06:31:01.768380', time_epoch_executed='1632835861.77' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211640/ft1_4FGL_J2209.8-5028_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211640/ft2_4FGL_J2209.8-5028_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211640/ft1_4FGL_J2209.8-5028_daily_bin1331.fits outfile=/scratch/kocevski/211640/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1331.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=584323201.0 tmax=584582401.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.48
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211640/ft1_filtered_4FGL_J2209.8-5028_daily_bin1331.fits" evtable="EVENTS" scfile=/scratch/kocevski/211640/ft2_4FGL_J2209.8-5028_daily_bin1331.fits sctable="SC_DATA" outfile=/scratch/kocevski/211640/ltcube_584323201_584582401_4FGL_J2209.8-5028_daily_bin1331.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/211640/ft2_4FGL_J2209.8-5028_daily_bin1331.fits
.....................!
real 12.52
user 12.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211640/ft1_filtered_4FGL_J2209.8-5028_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/211640/ft2_4FGL_J2209.8-5028_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/211640/ltcube_584323201_584582401_4FGL_J2209.8-5028_daily_bin1331.fits outfile=/scratch/kocevski/211640/expmap_584323201_584582401_4FGL_J2209.8-5028_daily_bin1331.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/211640/ltcube_584323201_584582401_4FGL_J2209.8-5028_daily_bin1331.fits
.....................!
real 190.28
user 185.47
sys 4.47

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/211640/ft1_filtered_4FGL_J2209.8-5028_daily_bin1331.fits scfile=/scratch/kocevski/211640/ft2_4FGL_J2209.8-5028_daily_bin1331.fits outfile=/scratch/kocevski/211640/cmap_584323201_584582401_4FGL_J2209.8-5028_daily_bin1331.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211640/ft1_filtered_4FGL_J2209.8-5028_daily_bin1331.fits scfile=/scratch/kocevski/211640/ft2_4FGL_J2209.8-5028_daily_bin1331.fits outfile=/scratch/kocevski/211640/cmap_HighResolution_584323201_584582401_4FGL_J2209.8-5028_daily_bin1331.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211640/ft1_filtered_4FGL_J2209.8-5028_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/211640/ft2_4FGL_J2209.8-5028_daily_bin1331.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211640/Model_4FGL_J2209.8-5028_daily_bin1331.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/211640/ft1_filtered_4FGL_J2209.8-5028_daily_bin1331.fits.....................!
real 26.84
user 25.61
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.700       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .79498       1.0000         .10000E-03   10000.    
     7 'norm      '    .31063       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.103       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43342       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11678E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27611E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .74312E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.1360       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94274       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92147       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=   2432.577     FROM MIGRAD    STATUS=CONVERGED   1080 CALLS     3844 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.95        .18142E-02** at limit **
   2  Prefactor     .10000E-03    33.375        .18142E-02** at limit **
   3  Prefactor     26.709        16.161        .77528E-04   -.57483E-04
   4  Prefactor     .10000E-03    72.879        .18142E-02** at limit **
   5  Prefactor     21.285        26.060        .86839E-04   -.94915E-05
   6  Prefactor     .80358        22.174        .24303E-02    .67788E-04
   7  norm          .31892        27.103        .22295E-02   -.45771E-04
   8  Prefactor     .10000E-03    15.601        .18142E-02** at limit **
   9  Prefactor     42.103        65.107        .61781E-04   -.33215E-04
  10  Prefactor     9.8609        15.168        .63776E-03   -.71251E-04
  11  Prefactor     .44153        33.275        .21893E-02    .36700E-03
  12  Prefactor     .10000E-03    221.52        .18142E-02** at limit **
  13  norm          .10000E-03    4.4945        .10213E-02** at limit **
  14  Prefactor     .12807        67.587        .20155E-02   -.99231E-04
  15  Prefactor     .10000E-03    27.930        .18142E-02** at limit **
  16  Prefactor     .10000E-03    13.875        .35317E-03** at limit **
  17  Prefactor     .10000E-03    30.734        .18142E-02** at limit **
  18  Prefactor     .10000E-03    5.7860        .11579E-02** at limit **
  19  Prefactor     .10000E-03    73.867        .18142E-02** at limit **
  20  Prefactor     .10000E-03    11.247        .16076E-02** at limit **
  21  Prefactor     .10084E-03    89.631        .12647    ** at limit **
  22  Prefactor     .10000E-03    39.830        .18142E-02** at limit **
  23  norm          4.1390        8.5144        .19820E-03    .19752E-03
  24  Normalizat    .94176        .32224        .24875E-03    .77330E-04
  25  Prefactor     .92139        .25729        .21028E-03   -.10615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7089
  Prefactor  = 0.000100001
  Prefactor  = 21.2853
  Prefactor  = 0.80358
  norm       = 0.31892
  Prefactor  = 0.0001
  Prefactor  = 42.1029
  Prefactor  = 9.86094
  Prefactor  = 0.441527
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.128068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100837
  Prefactor  = 0.0001
  norm       = 4.13901
  Normalizat = 0.941764
  Prefactor  = 0.921385
 **********
 **   18 **HESSE 
 **********

 FCN=   2432.577     FROM HESSE     STATUS=OK           419 CALLS     4263 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.709        16.136        .31011E-05   -1.4674    
   4  Prefactor     .10000E-03    72.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.285        26.052        .34736E-05   -1.4785    
   6  Prefactor     .80358        21.952        .97212E-04   -1.5529    
   7  norm          .31892        27.100        .89179E-04   -1.5595    
   8  Prefactor     .10000E-03    15.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.103        65.081        .12356E-04   -1.4409    
  10  Prefactor     9.8609        15.112        .25510E-04   -1.5080    
  11  Prefactor     .44153        32.637        .87572E-04   -1.5575    
  12  Prefactor     .10000E-03    221.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.4945        .20425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12807        66.944        .80622E-04   -1.5636    
  15  Prefactor     .10000E-03    27.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.876        .70635E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.7861        .23157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    73.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.250        .32153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10084E-03    88.120        .12783       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.1390        8.5138        .79281E-05   -1.5301    
  24  Normalizat    .94176        .31975        .99499E-05   -.95008    
  25  Prefactor     .92139        .25697        .42056E-04   -.95398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20443e-09
Minuit parameter uncertainties:
  1  7.22109e-05
  2  0.000115257
  3  16.1384
  4  0.000500297
  5  26.0662
  6  8.40286
  7  5.8815
  8  2.16808e-05
  9  65.1913
  10  15.1183
  11  7.59559
  12  0.000652676
  13  1.19392e-06
  14  5.86039
  15  7.52781e-05
  16  1.99139e-05
  17  0.000126991
  18  3.45236e-06
  19  0.00025481
  20  2.49315e-06
  21  0.0172049
  22  0.000260263
  23  8.51631
  24  0.320398
  25  0.257312
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.527e-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:  9.214e-01  2.573e-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:  9.418e-01  3.204e-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: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211640/likelihoodResults_584323201_584582401_4FGL_J2209.8-5028_daily_bin1331.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) = 2432.57710311
delta logL = -2.13662010538e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2432.57708177
delta logL = -3.04953573504e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11226E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3440       1.0000          .0000       10.000    
     3 'Normalizat'    .94177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92139       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=   2432.577     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      257 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    227.69        .18142E-02** at limit **
   2  Index         2.3430        6.1686        .50000       -.51580E-07
   3  Normalizat    .94176        .29686        .24874E-03    .16895E-03
   4  Prefactor     .92139        .25009        .21028E-03    .25146E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34296
  Normalizat = 0.941759
  Prefactor  = 0.921391
 **********
 **   18 **HESSE 
 **********

 FCN=   2432.577     FROM HESSE     STATUS=OK            29 CALLS      286 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    204.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3430        6.1714        .50000       -.56026    
   3  Normalizat    .94176        .29709        .49748E-04   -.95008    
   4  Prefactor     .92139        .25028        .42056E-04   -.95398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2281e-10
Minuit parameter uncertainties:
  1  0.000304186
  2  4.24499
  3  0.297608
  4  0.250592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211640': 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) = 2432.57708174
delta logL = -1.83717929758e-10

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.042e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.343e+00  4.245e+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.214e-01  2.506e-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:  9.418e-01  2.976e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/211640/cmap_HighResolution_584323201_584582401_4FGL_J2209.8-5028_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-28 06:39:44.154772', job_id='211640', GAL2='0.92', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632836384.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-1.84e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1331' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 211640: <4FGL_J2209.8-5028_daily_bin1331> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1331> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:18 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:20 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:30:20 2021
Terminated at Tue Sep 28 06:39:44 2021
Results reported at Tue Sep 28 06:39:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1331 332.474 -50.4702 584323201 584582401 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 :                                   503.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            566 sec.

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

