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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1110
RA = 182.466, Dec = 18.1776
tmin = 527040001, tmax = 527299201
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='380547', job_status='RUN', time_executed='2021-09-05 02:38:27.504724', time_epoch_executed='1630834707.5' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380547

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380547/ft1_4FGL_J1209.8+1810_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380547/ft2_4FGL_J1209.8+1810_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380547/ft1_4FGL_J1209.8+1810_daily_bin1110.fits outfile=/scratch/kocevski/380547/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1110.fits ra=182.466 dec=18.1776 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.00
user 5.72
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380547/ft2_4FGL_J1209.8+1810_daily_bin1110.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/380547/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/380547/ft1_filtered_4FGL_J1209.8+1810_daily_bin1110.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.58
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380547/ft1_filtered_4FGL_J1209.8+1810_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/380547/ft2_4FGL_J1209.8+1810_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/380547/ltcube_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.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/380547/ft2_4FGL_J1209.8+1810_daily_bin1110.fits
.....................!
real 12.17
user 11.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380547/ft1_filtered_4FGL_J1209.8+1810_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/380547/ft2_4FGL_J1209.8+1810_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/380547/ltcube_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.fits outfile=/scratch/kocevski/380547/expmap_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.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/380547/ltcube_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.fits
.....................!
real 192.94
user 187.29
sys 5.04

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/380547/ft1_filtered_4FGL_J1209.8+1810_daily_bin1110.fits scfile=/scratch/kocevski/380547/ft2_4FGL_J1209.8+1810_daily_bin1110.fits outfile=/scratch/kocevski/380547/cmap_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380547/ft1_filtered_4FGL_J1209.8+1810_daily_bin1110.fits scfile=/scratch/kocevski/380547/ft2_4FGL_J1209.8+1810_daily_bin1110.fits outfile=/scratch/kocevski/380547/cmap_HighResolution_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.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.58
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380547/ft1_filtered_4FGL_J1209.8+1810_daily_bin1110.fits', '/scratch/kocevski/380547/ft2_4FGL_J1209.8+1810_daily_bin1110.fits', expMap='/scratch/kocevski/380547/expmap_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.fits', expCube='/scratch/kocevski/380547/ltcube_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380547/Model_4FGL_J1209.8+1810_daily_bin1110.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/380547/ft1_filtered_4FGL_J1209.8+1810_daily_bin1110.fits
Spacecraft file(s): /scratch/kocevski/380547/ft2_4FGL_J1209.8+1810_daily_bin1110.fits
Exposure map: /scratch/kocevski/380547/expmap_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.fits
Exposure cube: /scratch/kocevski/380547/ltcube_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380547/Model_4FGL_J1209.8+1810_daily_bin1110.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) = 5071.66280434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.533       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.334       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8645       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20357E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9165       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.917       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1581       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6971       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.495       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.215       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4595       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2798       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87151       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=   5071.656     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2744 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.533        10.585       -.24443E-06    .14085E-03
   2  Prefactor     2.6031        248.32       -.77201E-04    .55170E-04
   3  Prefactor     29.347        32.630        .15820E-04    .40730E-03
   4  Prefactor     2.8646        11.932        .12783E-05   -.12938E-04
   5  Prefactor     .10018E-03    1.5338       -.24377E-05** at limit **
   6  Prefactor     .10000E-03    40.905       -.19313E-05** at limit **
   7  Prefactor     .10000E-03    9.6963       -.16893E-06** at limit **
   8  norm          4.9166        2.1092       -.39796E-06    .81054E-03
   9  Prefactor     17.904        25.315        .65558E-05   -.93189E-04
  10  Prefactor     .10000E-03    3.5088       -.10531E-06** at limit **
  11  Prefactor     .10000E-03    67.539        .12543E-05** at limit **
  12  Prefactor     4.1571        3.7872       -.36198E-06    .24670E-04
  13  Prefactor     .10000E-03    3.3933       -.78223E-08** at limit **
  14  Prefactor     3.6972        3.3624       -.14574E-06   -.71313E-04
  15  Prefactor     .10000E-03    11.779       -.11036E-06** at limit **
  16  Prefactor     .10000E-03    2.9917        .62408E-07** at limit **
  17  norm          .10000E-03    .74819E-01   -.25720E-07** at limit **
  18  norm          19.495        7.9579        .86066E-07    .79116E-04
  19  Prefactor     15.216        12.047       -.68689E-05    .49850E-03
  20  Prefactor     6.4091        11.098       -.26227E-05    .70037E-04
  21  Prefactor     .10000E-03    14.923        .10499E-06** at limit **
  22  Prefactor     5.4588        9.1691       -.15234E-05   -.28416E-04
  23  Normalizat    1.2795        .22408       -.30277E-06    .10606E-02
  24  Prefactor     .87176        .19863        .26339E-05    .62235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5329
  Prefactor  = 2.60313
  Prefactor  = 29.3471
  Prefactor  = 2.86464
  Prefactor  = 0.000100185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.91656
  Prefactor  = 17.904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.15711
  Prefactor  = 0.0001
  Prefactor  = 3.69717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.4945
  Prefactor  = 15.2163
  Prefactor  = 6.40914
  Prefactor  = 0.0001
  Prefactor  = 5.45882
  Normalizat = 1.27953
  Prefactor  = 0.871759
 **********
 **   18 **HESSE 
 **********

 FCN=   5071.656     FROM HESSE     STATUS=OK           403 CALLS     3147 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.533        10.588        .11796E-03   -1.5029    
   2  Prefactor     2.6031        253.28        .25156E-03   -1.5385    
   3  Prefactor     29.347        34.216        .73973E-04   -1.4624    
   4  Prefactor     2.8646        11.869        .24019E-03   -1.5369    
   5  Prefactor     .10018E-03    7.3361        .25937E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9166        2.1083        .64821E-04   -1.5264    
   9  Prefactor     17.904        25.279        .94622E-04   -1.4861    
  10  Prefactor     .10000E-03    3.5424        .13006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    67.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1571        3.7808        .12401E-03   -1.5300    
  13  Prefactor     .10000E-03    3.4634        .25507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6972        3.3593        .11867E-03   -1.5323    
  15  Prefactor     .10000E-03    11.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9971        .12027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .79029E-01    .37917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.495        7.9599        .90713E-04   -1.4825    
  19  Prefactor     15.216        12.024        .10268E-03   -1.4928    
  20  Prefactor     6.4091        11.086        .15854E-03   -1.5202    
  21  Prefactor     .10000E-03    14.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4588        9.1772        .17197E-03   -1.5241    
  23  Normalizat    1.2795        .26795        .25406E-03   -.84180    
  24  Prefactor     .87176        .23372        .28731E-03   -.97135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09175e-09
Minuit parameter uncertainties:
  1  10.5898
  2  51.5801
  3  34.239
  4  11.6656
  5  0.00232764
  6  7.65228e-05
  7  6.89274e-05
  8  2.10833
  9  25.2941
  10  9.72368e-06
  11  0.000333563
  12  3.78103
  13  2.12392e-06
  14  3.35942
  15  3.07171e-06
  16  4.53185e-06
  17  3.76342e-07
  18  7.96029
  19  12.0259
  20  11.0898
  21  0.000131723
  22  9.17955
  23  0.268242
  24  0.233985
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  4.157e+00  3.781e+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:  8.718e-01  2.340e-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.280e+00  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.69e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.67e-05

TS (Fixed Index): 1.67
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380547/likelihoodResults_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.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) = 5071.54845006
delta logL = 0.107539181806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5071.53528589
delta logL = 0.120703358851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9659       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1478       1.0000          .0000       10.000    
     3 'Normalizat'    1.2331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90589       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=   5071.535     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      253 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9568        33.442        .73947E-02    .21441E-03
   2  Index         3.1508        3.8638        .12540        .86092E-04
   3  Normalizat    1.2331        .75642E-01    .58363E-01   -.73268E-04
   4  Prefactor     .90578        .64343E-01    .45080E-01   -.83060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95678
  Index      = 3.15078
  Normalizat = 1.23315
  Prefactor  = 0.905781
 **********
 **   18 **HESSE 
 **********

 FCN=   5071.535     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9568        57.799        .77428E-04   -1.5428    
   2  Index         3.1508        6.3606        .65524E-02   -.37884    
   3  Normalizat    1.2331        .38269        .25811E-03   -.85585    
   4  Prefactor     .90578        .34153        .28233E-03   -.95939    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.2289e-07
Minuit parameter uncertainties:
  1  21.2917
  2  7.47669
  3  0.383562
  4  0.342344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380547': 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): 102
logL (Free Index) = 5071.53528383
delta logL = 0.120705420242

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.957e+00  2.129e+01  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  3.151e+00  7.477e+00  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:  9.058e-01  3.423e-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.233e+00  3.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 182.466 18.178
Photon Index (Free Index): 3.15 +/- 7.48
Photon Flux (Free Index): 8.84e-08 +/- 1.91e-07
Energy Flux (Free Index): 1.65e-05 +/- 2.15e-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/380547/cmap_HighResolution_527040001_527299201_4FGL_J1209.8+1810_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='5.69e-08', energy_flux2='1.65e-05', photon_flux_error='5.17e-08', dlogl='1.21e-01', energy_flux='1.84e-05', photon_flux2='8.84e-08', job_status='DONE', time_completed='2021-09-05 02:51:55.293794', photon_index_error2='7.48', photon_index2='3.15', ts='1.67', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='2.15e-05', EG='1.28', time_epoch_completed='1630835515.29', return_code='0', job_id='380547', GAL2='0.91', EG2='1.23', return_code2='102', energy_flux_error='1.67e-05', photon_flux_error2='1.91e-07', ts2='1.94', photon_index='2.41' WHERE bin_id='1110' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 380547: <4FGL_J1209.8+1810_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1110> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 02:35:49 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:35:50 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:35:50 2021
Terminated at Sun Sep  5 02:51:56 2021
Results reported at Sun Sep  5 02:51:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1110 182.466 18.1776 527040001 527299201 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 :                                   654.05 sec.
    Max Memory :                                 1140 MB
    Average Memory :                             268.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

