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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1632
RA = 332.474, Dec = -50.4702
tmin = 662342401, tmax = 662601601
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='628547', job_status='RUN', time_executed='2021-12-31 00:36:26.701261', time_epoch_executed='1640939786.7' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628547

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628547/ft1_4FGL_J2209.8-5028_daily_bin1632.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628547/ft2_4FGL_J2209.8-5028_daily_bin1632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628547/ft1_4FGL_J2209.8-5028_daily_bin1632.fits outfile=/scratch/kocevski/628547/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1632.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=662342401.0 tmax=662601601.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 2.95
user 2.74
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628547/ft2_4FGL_J2209.8-5028_daily_bin1632.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/628547/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1632.fits evtable="EVENTS" outfile="/scratch/kocevski/628547/ft1_filtered_4FGL_J2209.8-5028_daily_bin1632.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628547/ft1_filtered_4FGL_J2209.8-5028_daily_bin1632.fits" evtable="EVENTS" scfile=/scratch/kocevski/628547/ft2_4FGL_J2209.8-5028_daily_bin1632.fits sctable="SC_DATA" outfile=/scratch/kocevski/628547/ltcube_662342401_662601601_4FGL_J2209.8-5028_daily_bin1632.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/628547/ft2_4FGL_J2209.8-5028_daily_bin1632.fits
.....................!
real 12.54
user 12.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628547/ft1_filtered_4FGL_J2209.8-5028_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/628547/ft2_4FGL_J2209.8-5028_daily_bin1632.fits sctable="SC_DATA" expcube=/scratch/kocevski/628547/ltcube_662342401_662601601_4FGL_J2209.8-5028_daily_bin1632.fits outfile=/scratch/kocevski/628547/expmap_662342401_662601601_4FGL_J2209.8-5028_daily_bin1632.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/628547/ltcube_662342401_662601601_4FGL_J2209.8-5028_daily_bin1632.fits
.....................!
real 190.84
user 185.67
sys 4.81

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/628547/ft1_filtered_4FGL_J2209.8-5028_daily_bin1632.fits scfile=/scratch/kocevski/628547/ft2_4FGL_J2209.8-5028_daily_bin1632.fits outfile=/scratch/kocevski/628547/cmap_662342401_662601601_4FGL_J2209.8-5028_daily_bin1632.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628547/ft1_filtered_4FGL_J2209.8-5028_daily_bin1632.fits scfile=/scratch/kocevski/628547/ft2_4FGL_J2209.8-5028_daily_bin1632.fits outfile=/scratch/kocevski/628547/cmap_HighResolution_662342401_662601601_4FGL_J2209.8-5028_daily_bin1632.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628547/ft1_filtered_4FGL_J2209.8-5028_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/628547/ft2_4FGL_J2209.8-5028_daily_bin1632.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628547/Model_4FGL_J2209.8-5028_daily_bin1632.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/628547/ft1_filtered_4FGL_J2209.8-5028_daily_bin1632.fits.....................!
real 31.53
user 30.21
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    495.02       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.540       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.039       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7338       1.0000         .10000E-03   10000.    
     7 'norm      '    18.435       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7659       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4559       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5974       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78276       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81207       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=   3546.780     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     3275 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     494.96        413.34       -.10266E-04   -.98943E-05
   2  Prefactor     .10000E-03    69.309        .74864E-05** at limit **
   3  Prefactor     21.539        15.244        .92730E-07    .57523E-05
   4  Prefactor     20.038        63.057       -.45876E-06   -.71994E-06
   5  Prefactor     .10000E-03    72.897        .55722E-05** at limit **
   6  Prefactor     4.7329        9.4552        .25873E-06    .43528E-05
   7  norm          18.434        10.317        .53961E-07   -.96381E-06
   8  Prefactor     .10000E-03    30.166        .76994E-06** at limit **
   9  Prefactor     .10000E-03    91.613       -.15933E-04** at limit **
  10  Prefactor     4.7441        28.416        .43496E-05    .62858E-04
  11  Prefactor     6.5255        5.8380       -.36555E-06   -.34514E-04
  12  Prefactor     10.898        1761.2       -.15305E-04    .75632E-05
  13  norm          4.4558        5.7039        .19124E-08   -.77563E-06
  14  Prefactor     .10000E-03    3.2960       -.77239E-07** at limit **
  15  Prefactor     .10000E-03    10.970        .12455E-06** at limit **
  16  Prefactor     4.5973        5.1267        .27370E-08    .56757E-05
  17  Prefactor     .10000E-03    13.535       -.65268E-06** at limit **
  18  Prefactor     .10000E-03    4.1253        .15577E-06** at limit **
  19  Prefactor     .10000E-03    45.263       -.44036E-05** at limit **
  20  Prefactor     .10000E-03    1.9740       -.31367E-08** at limit **
  21  Prefactor     .10000E-03    9.1117       -.12169E-07** at limit **
  22  Prefactor     .10000E-03    13.428        .11228E-05** at limit **
  23  norm          .10000E-03    3.5298       -.59967E-08** at limit **
  24  Normalizat    .78270        .19312       -.64505E-06    .28906E-04
  25  Prefactor     .81207        .17851        .21753E-06    .30068E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 494.957
  Prefactor  = 0.0001
  Prefactor  = 21.5395
  Prefactor  = 20.038
  Prefactor  = 0.0001
  Prefactor  = 4.73294
  norm       = 18.4345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.74406
  Prefactor  = 6.52552
  Prefactor  = 10.8978
  norm       = 4.45576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.782698
  Prefactor  = 0.812066
 **********
 **   18 **HESSE 
 **********

 FCN=   3546.780     FROM HESSE     STATUS=OK           423 CALLS     3698 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     494.96        413.42        .92202E-04   -1.1221    
   2  Prefactor     .10000E-03    69.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.539        15.235        .86302E-04   -1.4779    
   4  Prefactor     20.038        62.996        .89474E-04   -1.4812    
   5  Prefactor     .10000E-03    73.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7329        9.4177        .18494E-03   -1.5273    
   7  norm          18.434        10.311        .93283E-04   -1.4849    
   8  Prefactor     .10000E-03    30.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    92.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7441        28.955        .18430E-03   -1.5272    
  11  Prefactor     6.5255        5.8339        .12790E-03   -1.5197    
  12  Prefactor     10.898        1763.8        .12307E-03   -1.5048    
  13  norm          4.4558        5.6996        .15653E-03   -1.5286    
  14  Prefactor     .10000E-03    3.4029        .21074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5973        5.1254        .13475E-03   -1.5279    
  17  Prefactor     .10000E-03    13.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1397        .11812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9789        .81713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.1134        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.5495        .10928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78270        .22363        .23476E-03   -1.0071    
  25  Prefactor     .81207        .20736        .21399E-03   -.99285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69623e-11
Minuit parameter uncertainties:
  1  415.962
  2  0.000169207
  3  15.2378
  4  63.2059
  5  0.000228944
  6  9.42065
  7  10.3121
  8  2.47835e-05
  9  0.000360705
  10  23.4571
  11  5.83441
  12  286.338
  13  5.70027
  14  4.00475e-06
  15  2.05908e-06
  16  5.12594
  17  3.92919e-06
  18  1.97405e-06
  19  6.5219e-05
  20  6.15723e-07
  21  7.38217e-07
  22  3.08794e-06
  23  1.33001e-07
  24  0.223888
  25  0.20756
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.090e+01  2.863e+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:  8.121e-01  2.076e-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:  7.827e-01  2.239e-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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628547/likelihoodResults_662342401_662601601_4FGL_J2209.8-5028_daily_bin1632.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) = 3546.77951112
delta logL = 0.000513740497354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3546.77932444
delta logL = 0.000700420514477

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2786       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5924       1.0000          .0000       10.000    
     3 'Normalizat'    .78165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81256       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=   3546.779     FROM MIGRAD    STATUS=FAILED        93 CALLS      330 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4061        531.83        .13933E-03    .26483E-03
   2  Index         2.5993        6.0050        .49006E-02    .93395E-03
   3  Normalizat    .78178        .22208        .23488E-03    .52420E-04
   4  Prefactor     .81261        .20612        .21392E-03   -.69370E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3546.779     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      412 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4061        531.83        .22251E-02   -1.5128    
   2  Index         2.5993        6.0050        .48113E-02   -.50081    
   3  Normalizat    .78178        .22208        .15370E-03   -1.0075    
   4  Prefactor     .81261        .20612        .13283E-03   -.99265    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3546.779     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      441 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5043        431.27        .27867E-04    .93424E-05
   2  Index         2.5918        6.1564        .19602E-03    .26330E-05
   3  Normalizat    .78180        .22218        .93951E-05    .96805E-05
   4  Prefactor     .81260        .20609        .42785E-04    .13047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.5043
  Index      = 2.5918
  Normalizat = 0.781795
  Prefactor  = 0.812599
 **********
 **   18 **HESSE 
 **********

 FCN=   3546.779     FROM HESSE     STATUS=OK            23 CALLS      464 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5043        428.34        .55734E-05   -1.5125    
   2  Index         2.5918        6.1607        .39205E-04   -.50252    
   3  Normalizat    .78180        .22204        .18790E-05   -1.0075    
   4  Prefactor     .81260        .20598        .85570E-05   -.99266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31341e-12
Minuit parameter uncertainties:
  1  121.641
  2  6.12886
  3  0.222301
  4  0.206172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628547': 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) = 3546.77931869
delta logL = 0.000706168367742

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  8.504e+00  1.216e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.592e+00  6.129e+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.126e-01  2.062e-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:  7.818e-01  2.223e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/628547/cmap_HighResolution_662342401_662601601_4FGL_J2209.8-5028_daily_bin1632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.60e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-12-31 00:45:41.439027', job_id='628547', GAL2='0.81', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1640940341.44', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='7.06e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1632' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 31 00:45:41 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 628547: <4FGL_J2209.8-5028_daily_bin1632> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1632> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 31 00:35:33 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:35:34 2021
Terminated at Fri Dec 31 00:45:42 2021
Results reported at Fri Dec 31 00:45:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1632 332.474 -50.4702 662342401 662601601 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 :                                   557.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            609 sec.

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

