/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 158 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 = 7566
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin40
RA = 182.466, Dec = 18.1776
tmin = 249696001, tmax = 249955201
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='373679', job_status='RUN', time_executed='2021-09-05 02:18:19.101386', time_epoch_executed='1630833499.1' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373679/ft1_4FGL_J1209.8+1810_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373679/ft1_4FGL_J1209.8+1810_daily_bin40.fits outfile=/scratch/kocevski/373679/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin40.fits ra=182.466 dec=18.1776 rad=12.0 tmin=249696001.0 tmax=249955201.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 1.46
user 1.28
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.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/373679/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/373679/ft1_filtered_4FGL_J1209.8+1810_daily_bin40.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373679/ft1_filtered_4FGL_J1209.8+1810_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/373679/ltcube_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.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/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits
.....................!
real 14.78
user 14.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373679/ft1_filtered_4FGL_J1209.8+1810_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/373679/ltcube_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.fits outfile=/scratch/kocevski/373679/expmap_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.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/373679/ltcube_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.fits
.....................!
real 191.43
user 185.68
sys 5.39

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

Setting source of interest to:
4FGL J1209.8+1810 @ 182.466 18.1776

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/373679/ft1_filtered_4FGL_J1209.8+1810_daily_bin40.fits scfile=/scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits outfile=/scratch/kocevski/373679/cmap_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.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=182.466 yref=18.1776 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373679/ft1_filtered_4FGL_J1209.8+1810_daily_bin40.fits scfile=/scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits outfile=/scratch/kocevski/373679/cmap_HighResolution_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.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=182.466 yref=18.1776 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.57
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373679/ft1_filtered_4FGL_J1209.8+1810_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373679/Model_4FGL_J1209.8+1810_daily_bin40.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/373679/ft1_filtered_4FGL_J1209.8+1810_daily_bin40.fits.....................!
real 53.64
user 52.22
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/373679/ft1_filtered_4FGL_J1209.8+1810_daily_bin40.fits', '/scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits', expMap='/scratch/kocevski/373679/expmap_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.fits', expCube='/scratch/kocevski/373679/ltcube_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/373679/Model_4FGL_J1209.8+1810_daily_bin40.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1209.8+1810'

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/373679/ft1_filtered_4FGL_J1209.8+1810_daily_bin40.fits
Spacecraft file(s): /scratch/kocevski/373679/ft2_4FGL_J1209.8+1810_daily_bin40.fits
Exposure map: /scratch/kocevski/373679/expmap_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.fits
Exposure cube: /scratch/kocevski/373679/ltcube_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/373679/Model_4FGL_J1209.8+1810_daily_bin40.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) = 5447.71895908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.528       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    96.347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9958       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .68215E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2764       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .29070       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.011       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.285       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4424       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2432       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5447.707     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     3077 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9757       -.45737E-05** at limit **
   2  Prefactor     11.532        22.920        .57988E-05    .24179E-04
   3  Prefactor     .10000E-03    9.8849        .66178E-05** at limit **
   4  Prefactor     .10000E-03    6.8448        .12252E-05** at limit **
   5  Prefactor     1.3410        1.4700       -.29095E-06   -.42152E-03
   6  Prefactor     96.307        114.26       -.40142E-04    .74970E-04
   7  Prefactor     .10000E-03    4.0782        .52235E-05** at limit **
   8  norm          2.9959        1.2950       -.70637E-07    .47754E-04
   9  Prefactor     .10000E-03    19.627       -.77264E-05** at limit **
  10  Prefactor     .10000E-03    1.0957       -.64087E-07** at limit **
  11  Prefactor     .10052E-03    825.46       -.43164E-03** at limit **
  12  Prefactor     2.2765        2.7295       -.87022E-06   -.23927E-03
  13  Prefactor     .10000E-03    1.9459        .25842E-06** at limit **
  14  Prefactor     7.6732        2.9545       -.24400E-06    .25052E-04
  15  Prefactor     .10000E-03    8.4392       -.69236E-05** at limit **
  16  Prefactor     .10000E-03    1.8362       -.24494E-06** at limit **
  17  norm          .29075        .21465       -.83080E-07   -.57264E-03
  18  norm          .10000E-03    1.3677       -.96517E-07** at limit **
  19  Prefactor     .10000E-03    18.565        .92921E-05** at limit **
  20  Prefactor     21.016        15.337        .22922E-05    .87934E-05
  21  Prefactor     26.275        32.352       -.14861E-04   -.36960E-04
  22  Prefactor     9.4432        8.2846       -.53245E-06   -.42317E-04
  23  Normalizat    1.2429        .18348        .35146E-05    .84896E-03
  24  Prefactor     .79576        .17643        .13042E-05    .74245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.5317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34099
  Prefactor  = 96.3072
  Prefactor  = 0.0001
  norm       = 2.99592
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100525
  Prefactor  = 2.27649
  Prefactor  = 0.0001
  Prefactor  = 7.67319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.290752
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 21.0155
  Prefactor  = 26.2745
  Prefactor  = 9.4432
  Normalizat = 1.24294
  Prefactor  = 0.795757
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.707     FROM HESSE     STATUS=OK           391 CALLS     3468 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9975        .14377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.532        22.912        .11799E-03   -1.5029    
   3  Prefactor     .10000E-03    9.9111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3410        1.4561        .90414E-04   -1.5476    
   6  Prefactor     96.307        114.20        .20475E-03   -1.3742    
   7  Prefactor     .10000E-03    4.0999        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9959        1.2962        .53696E-04   -1.5362    
   9  Prefactor     .10000E-03    19.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1006        .75426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10052E-03    824.98        .41988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2765        2.7095        .12653E-03   -1.5406    
  13  Prefactor     .10000E-03    1.9853        .20034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.6732        2.9564        .75513E-04   -1.5154    
  15  Prefactor     .10000E-03    8.4428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8403        .97666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29075        .20926        .28051E-04   -1.5600    
  18  norm          .10000E-03    1.3712        .84287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.016        15.337        .87380E-04   -1.4791    
  21  Prefactor     26.275        32.500        .78138E-04   -1.4682    
  22  Prefactor     9.4432        8.2858        .13042E-03   -1.5093    
  23  Normalizat    1.2429        .21455        .22985E-03   -.85286    
  24  Prefactor     .79576        .20546        .27606E-03   -.99885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2799e-09
Minuit parameter uncertainties:
  1  5.10587e-06
  2  22.9296
  3  3.26009e-05
  4  3.28272e-05
  5  1.45611
  6  114.466
  7  5.38893e-05
  8  1.29616
  9  0.000367132
  10  2.1218e-06
  11  0.042207
  12  2.70969
  13  1.30548e-05
  14  2.95643
  15  3.71678e-06
  16  4.42937e-06
  17  0.209264
  18  5.22453e-06
  19  0.000541603
  20  15.34
  21  32.522
  22  8.28681
  23  0.214702
  24  0.205655
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.276e+00  2.710e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.958e-01  2.057e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.243e+00  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.93
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373679/likelihoodResults_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.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) = 5447.66446325
delta logL = 0.0421566014311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5447.66040641
delta logL = 0.046213443431

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5447.660     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      266 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8082        102.49        .60714E-02    .44920E-03
   2  Index         2.1538        5.9054        .24980        .50116E-04
   3  Normalizat    1.2507        .65426E-01    .51843E-01   -.11927E-03
   4  Prefactor     .78958        .59724E-01    .62623E-01   -.15278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80823
  Index      = 2.15381
  Normalizat = 1.25069
  Prefactor  = 0.789579
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.660     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8082        3.4526        .13710E-03   -1.5373    
   2  Index         2.1538        .79363        .90311E-02   -.60558    
   3  Normalizat    1.2507        .20897        .22922E-03   -.85050    
   4  Prefactor     .78958        .20589        .27699E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15938e-11
Minuit parameter uncertainties:
  1  3.4528
  2  0.798646
  3  0.209113
  4  0.206087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373679': 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) = 5447.66040224
delta logL = 0.0462176170795

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.808e+00  3.453e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.154e+00  7.986e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.896e-01  2.061e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.251e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 182.466 18.178
Photon Index (Free Index): 2.15 +/- 0.80
Photon Flux (Free Index): 2.68e-08 +/- 3.52e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.98e-05

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/373679/cmap_HighResolution_249696001_249955201_4FGL_J1209.8+1810_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.87e-03', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='4.62e-02', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-09-05 02:29:51.638155', photon_index_error2='0.80', photon_index2='2.15', ts='0.93', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.98e-05', EG='1.24', time_epoch_completed='1630834191.64', return_code='0', job_id='373679', GAL2='0.79', EG2='1.25', return_code2='0', photon_flux_error2='3.52e-08', ts2='1.02', photon_index='2.41' WHERE bin_id='40' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:29:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 373679: <4FGL_J1209.8+1810_daily_bin40> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin40> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:15:30 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:15:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 02:15:32 2021
Terminated at Sun Sep  5 02:29:52 2021
Results reported at Sun Sep  5 02:29:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin40 182.466 18.1776 249696001 249955201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1209.8+1810 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   690.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

