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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1341
RA = 332.474, Dec = -50.4702
tmin = 586915201, tmax = 587174401
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='211655', job_status='RUN', time_executed='2021-09-28 06:30:32.454760', time_epoch_executed='1632835832.45' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211655/ft1_4FGL_J2209.8-5028_daily_bin1341.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211655/ft2_4FGL_J2209.8-5028_daily_bin1341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211655/ft1_4FGL_J2209.8-5028_daily_bin1341.fits outfile=/scratch/kocevski/211655/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1341.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=586915201.0 tmax=587174401.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.65
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211655/ft2_4FGL_J2209.8-5028_daily_bin1341.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/211655/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1341.fits evtable="EVENTS" outfile="/scratch/kocevski/211655/ft1_filtered_4FGL_J2209.8-5028_daily_bin1341.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211655/ft1_filtered_4FGL_J2209.8-5028_daily_bin1341.fits" evtable="EVENTS" scfile=/scratch/kocevski/211655/ft2_4FGL_J2209.8-5028_daily_bin1341.fits sctable="SC_DATA" outfile=/scratch/kocevski/211655/ltcube_586915201_587174401_4FGL_J2209.8-5028_daily_bin1341.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/211655/ft2_4FGL_J2209.8-5028_daily_bin1341.fits
.....................!
real 15.30
user 14.77
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211655/ft1_filtered_4FGL_J2209.8-5028_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/211655/ft2_4FGL_J2209.8-5028_daily_bin1341.fits sctable="SC_DATA" expcube=/scratch/kocevski/211655/ltcube_586915201_587174401_4FGL_J2209.8-5028_daily_bin1341.fits outfile=/scratch/kocevski/211655/expmap_586915201_587174401_4FGL_J2209.8-5028_daily_bin1341.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/211655/ltcube_586915201_587174401_4FGL_J2209.8-5028_daily_bin1341.fits
.....................!
real 191.53
user 186.69
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/211655/ft1_filtered_4FGL_J2209.8-5028_daily_bin1341.fits scfile=/scratch/kocevski/211655/ft2_4FGL_J2209.8-5028_daily_bin1341.fits outfile=/scratch/kocevski/211655/cmap_586915201_587174401_4FGL_J2209.8-5028_daily_bin1341.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211655/ft1_filtered_4FGL_J2209.8-5028_daily_bin1341.fits scfile=/scratch/kocevski/211655/ft2_4FGL_J2209.8-5028_daily_bin1341.fits outfile=/scratch/kocevski/211655/cmap_HighResolution_586915201_587174401_4FGL_J2209.8-5028_daily_bin1341.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211655/ft1_filtered_4FGL_J2209.8-5028_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/211655/ft2_4FGL_J2209.8-5028_daily_bin1341.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211655/Model_4FGL_J2209.8-5028_daily_bin1341.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/211655/ft1_filtered_4FGL_J2209.8-5028_daily_bin1341.fits.....................!
real 43.05
user 41.53
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.277       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.033       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.278       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6170       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1158       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20668E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95921       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.864       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4336       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75386       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=   4955.849     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2898 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.877        19.901        .88847E-06    .60817E-05
   2  Prefactor     .10000E-03    16.139       -.76760E-06** at limit **
   3  Prefactor     13.287        10.615       -.33971E-06    .28413E-04
   4  Prefactor     .10000E-03    46.201       -.23232E-04** at limit **
   5  Prefactor     .10000E-03    12.251        .72819E-06** at limit **
   6  Prefactor     .10000E-03    1.5347       -.32293E-07** at limit **
   7  norm          18.031        7.0917       -.35438E-06    .31699E-03
   8  Prefactor     .10000E-03    5.7417       -.49390E-07** at limit **
   9  Prefactor     23.234        44.945        .30251E-04    .33777E-04
  10  Prefactor     .10003E-03    11.692        .24165E-05** at limit **
  11  Prefactor     10.279        5.8666       -.30864E-06   -.29228E-04
  12  Prefactor     3.4974        577.22       -.31342E-03   -.38686E-05
  13  norm          .10000E-03    2.5434        .53663E-07** at limit **
  14  Prefactor     4.1185        5.5126       -.15794E-05   -.52788E-03
  15  Prefactor     .10000E-03    24.140       -.50924E-05** at limit **
  16  Prefactor     .10001E-03    6.1959        .20338E-05** at limit **
  17  Prefactor     .81821        22.631        .33181E-05   -.32474E-03
  18  Prefactor     .10000E-03    7.6242       -.39040E-07** at limit **
  19  Prefactor     .10000E-03    43.686        .24377E-04** at limit **
  20  Prefactor     .10000E-03    4.8390       -.15520E-07** at limit **
  21  Prefactor     28.036        57.370       -.50702E-05   -.11003E-03
  22  Prefactor     .10000E-03    8.1668        .47786E-07** at limit **
  23  norm          .10000E-03    2.9497        .48334E-07** at limit **
  24  Normalizat    1.4340        .22574        .44626E-06   -.16785E-03
  25  Prefactor     .75378        .16501        .19949E-05   -.81941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8774
  Prefactor  = 0.0001
  Prefactor  = 13.2868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0312
  Prefactor  = 0.0001
  Prefactor  = 23.2345
  Prefactor  = 0.000100027
  Prefactor  = 10.2785
  Prefactor  = 3.49742
  norm       = 0.0001
  Prefactor  = 4.11846
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.818211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0359
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.43396
  Prefactor  = 0.753776
 **********
 **   18 **HESSE 
 **********

 FCN=   4955.849     FROM HESSE     STATUS=OK           421 CALLS     3319 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.877        19.903        .89814E-04   -1.4816    
   2  Prefactor     .10000E-03    16.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.287        10.615        .10993E-03   -1.4979    
   4  Prefactor     .10000E-03    46.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5413        .85158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.031        7.0879        .94316E-04   -1.4858    
   8  Prefactor     .10000E-03    5.7470        .16475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.234        44.964        .83076E-04   -1.4744    
  10  Prefactor     .10003E-03    11.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.279        5.8729        .12167E-03   -1.5067    
  12  Prefactor     3.4974        586.57        .21244E-03   -1.5334    
  13  norm          .10000E-03    2.5438        .10965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1185        5.5367        .18071E-03   -1.5302    
  15  Prefactor     .10000E-03    24.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    20.479        .32856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .81821        188.84        .61804E-02   -1.5527    
  18  Prefactor     .10000E-03    7.6528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8613        .15123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.036        57.026        .75896E-04   -1.4648    
  22  Prefactor     .10000E-03    8.1821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9498        .11808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4340        .26396        .24736E-03   -.79651    
  25  Prefactor     .75378        .19113        .25107E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47293e-09
Minuit parameter uncertainties:
  1  19.9099
  2  8.09622e-06
  3  10.6163
  4  5.15697e-05
  5  7.65936e-06
  6  2.74036e-06
  7  7.0882
  8  2.9383e-06
  9  45.03
  10  0.00114133
  11  5.87322
  12  91.5118
  13  5.3423e-06
  14  5.53738
  15  9.69866e-06
  16  0.000944764
  17  24.9388
  18  1.08218e-05
  19  1.24154e-05
  20  2.40611e-07
  21  57.1371
  22  3.1044e-06
  23  2.07132e-07
  24  0.264211
  25  0.191299
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.497e+00  9.151e+01  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:  7.538e-01  1.913e-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.434e+00  2.642e-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: 9.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211655/likelihoodResults_586915201_587174401_4FGL_J2209.8-5028_daily_bin1341.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) = 4955.80054376
delta logL = 0.0482084744108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4955.79886189
delta logL = 0.0498903406788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.384       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7444       1.0000          .0000       10.000    
     3 'Normalizat'    1.4367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74869       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=   4955.799     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      312 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.391        139.22        .63077E-04   -.54323E-04
   2  Index         1.7439        1.3320        .12408E-01   -.65407E-04
   3  Normalizat    1.4365        .24451        .24717E-03    .11919E-03
   4  Prefactor     .74878        .18799        .25180E-03    .15654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.3909
  Index      = 1.74395
  Normalizat = 1.43649
  Prefactor  = 0.748777
 **********
 **   18 **HESSE 
 **********

 FCN=   4955.799     FROM HESSE     STATUS=OK            23 CALLS      335 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.391        138.57        .12615E-04   -1.4436    
   2  Index         1.7439        1.3267        .49631E-03   -.70918    
   3  Normalizat    1.4365        .24468        .49433E-04   -.79579    
   4  Prefactor     .74878        .18811        .10072E-04   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21917e-10
Minuit parameter uncertainties:
  1  139.695
  2  1.3553
  3  0.244876
  4  0.188274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211655': 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) = 4955.79886118
delta logL = 0.0498910537826

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.039e+01  1.397e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.744e+00  1.355e+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:  7.488e-01  1.883e-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.436e+00  2.449e-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/211655/cmap_HighResolution_586915201_587174401_4FGL_J2209.8-5028_daily_bin1341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.64e-08', time_completed='2021-09-28 06:41:37.492303', job_id='211655', GAL2='0.75', fit_tolerance='1e-08', EG2='1.44', EG='1.43', time_epoch_completed='1632836497.49', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.99e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1341' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:41:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 211655: <4FGL_J2209.8-5028_daily_bin1341> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1341> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:19 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:21 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:21 2021
Terminated at Tue Sep 28 06:41:38 2021
Results reported at Tue Sep 28 06:41:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1341 332.474 -50.4702 586915201 587174401 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            679 sec.

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

