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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1591
RA = 182.466, Dec = 18.1776
tmin = 651715201, tmax = 651974401
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='382891', job_status='RUN', time_executed='2021-09-05 02:41:05.778644', time_epoch_executed='1630834865.78' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382891

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382891/ft1_4FGL_J1209.8+1810_daily_bin1591.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382891/ft2_4FGL_J1209.8+1810_daily_bin1591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382891/ft1_4FGL_J1209.8+1810_daily_bin1591.fits outfile=/scratch/kocevski/382891/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1591.fits ra=182.466 dec=18.1776 rad=12.0 tmin=651715201.0 tmax=651974401.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.61
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382891/ft1_filtered_4FGL_J1209.8+1810_daily_bin1591.fits" evtable="EVENTS" scfile=/scratch/kocevski/382891/ft2_4FGL_J1209.8+1810_daily_bin1591.fits sctable="SC_DATA" outfile=/scratch/kocevski/382891/ltcube_651715201_651974401_4FGL_J1209.8+1810_daily_bin1591.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/382891/ft2_4FGL_J1209.8+1810_daily_bin1591.fits
.....................!
real 12.09
user 11.64
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382891/ft1_filtered_4FGL_J1209.8+1810_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/382891/ft2_4FGL_J1209.8+1810_daily_bin1591.fits sctable="SC_DATA" expcube=/scratch/kocevski/382891/ltcube_651715201_651974401_4FGL_J1209.8+1810_daily_bin1591.fits outfile=/scratch/kocevski/382891/expmap_651715201_651974401_4FGL_J1209.8+1810_daily_bin1591.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/382891/ltcube_651715201_651974401_4FGL_J1209.8+1810_daily_bin1591.fits
.....................!
real 190.40
user 184.96
sys 5.11

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/382891/ft1_filtered_4FGL_J1209.8+1810_daily_bin1591.fits scfile=/scratch/kocevski/382891/ft2_4FGL_J1209.8+1810_daily_bin1591.fits outfile=/scratch/kocevski/382891/cmap_651715201_651974401_4FGL_J1209.8+1810_daily_bin1591.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382891/ft1_filtered_4FGL_J1209.8+1810_daily_bin1591.fits scfile=/scratch/kocevski/382891/ft2_4FGL_J1209.8+1810_daily_bin1591.fits outfile=/scratch/kocevski/382891/cmap_HighResolution_651715201_651974401_4FGL_J1209.8+1810_daily_bin1591.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13615       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0417       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6233       1.0000         .10000E-03   10000.    
     8 'norm      '    9.8994       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.552       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5098       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97059       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.589       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5545       1.0000         .10000E-03   10000.    
    17 'norm      '    .15207       1.0000         .10000E-03   10000.    
    18 'norm      '    .19018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1799       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2231       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.311       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .66265E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75071       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3081       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=   6038.426     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2824 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.622        13.986       -.19927E-06    .29523E-04
   2  Prefactor     .10000E-03    26.209       -.46959E-09** at limit **
   3  Prefactor     .10049E-03    12.093        .37475E-06** at limit **
   4  Prefactor     3.0402        12.986       -.86571E-06    .21643E-03
   5  Prefactor     1.1456        2.3256       -.20280E-05    .55235E-03
   6  Prefactor     .10000E-03    49.152        .70074E-05** at limit **
   7  Prefactor     6.6209        12.555       -.10349E-05    .14946E-03
   8  norm          9.9002        2.1782       -.78507E-07   -.17399E-03
   9  Prefactor     14.550        15.302       -.43115E-06    .16850E-03
  10  Prefactor     6.5095        4.1822        .46498E-06    .56819E-03
  11  Prefactor     .10000E-03    57.952       -.97842E-05** at limit **
  12  Prefactor     .97092        2.0944       -.22676E-05   -.24790E-03
  13  Prefactor     .10000E-03    1.1584        .30332E-06** at limit **
  14  Prefactor     .10000E-03    .97510        .32915E-06** at limit **
  15  Prefactor     16.588        21.567       -.38621E-06    .32531E-05
  16  Prefactor     4.5466        8.1586       -.26502E-05    .22429E-03
  17  norm          .15209        .16000        .58777E-07    .23618E-02
  18  norm          .10017E-03    3.3724       -.17996E-05** at limit **
  19  Prefactor     6.1831        15.226       -.69886E-06    .10614E-03
  20  Prefactor     9.2211        11.019        .10635E-05    .11573E-03
  21  Prefactor     39.294        33.987       -.12469E-07    .44712E-04
  22  Prefactor     .10000E-03    49.597        .18871E-04** at limit **
  23  Normalizat    .75079        .20125        .32743E-05    .26438E-03
  24  Prefactor     1.3081        .18820        .95306E-07    .34243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6218
  Prefactor  = 0.0001
  Prefactor  = 0.000100486
  Prefactor  = 3.04018
  Prefactor  = 1.14563
  Prefactor  = 0.0001
  Prefactor  = 6.62093
  norm       = 9.90024
  Prefactor  = 14.5498
  Prefactor  = 6.5095
  Prefactor  = 0.000100001
  Prefactor  = 0.970916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5876
  Prefactor  = 4.54663
  norm       = 0.152085
  norm       = 0.000100172
  Prefactor  = 6.18306
  Prefactor  = 9.22109
  Prefactor  = 39.2938
  Prefactor  = 0.000100001
  Normalizat = 0.750791
  Prefactor  = 1.30809
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.426     FROM HESSE     STATUS=OK           425 CALLS     3249 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.622        13.984        .79139E-04   -1.4695    
   2  Prefactor     .10000E-03    26.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10049E-03    24.548        .81563E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0402        12.850        .23264E-03   -1.5359    
   5  Prefactor     1.1456        2.3186        .15118E-03   -1.5494    
   6  Prefactor     .10000E-03    49.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6209        12.531        .15593E-03   -1.5193    
   8  norm          9.9002        2.1794        .51602E-04   -1.5079    
   9  Prefactor     14.550        15.274        .10499E-03   -1.4945    
  10  Prefactor     6.5095        4.1791        .12013E-03   -1.5198    
  11  Prefactor     .10000E-03    58.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .97092        2.0051        .16291E-02   -1.5511    
  13  Prefactor     .10000E-03    1.1726        .81646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .98683        .74742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.588        21.567        .98336E-04   -1.4893    
  16  Prefactor     4.5466        7.6048        .18863E-03   -1.5281    
  17  norm          .15209        .15338        .30334E-03   -1.5630    
  18  norm          .10017E-03    46.043        .22865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1831        15.115        .16149E-03   -1.5211    
  20  Prefactor     9.2211        11.047        .13197E-03   -1.5101    
  21  Prefactor     39.294        33.785        .63929E-04   -1.4453    
  22  Prefactor     .10000E-03    48.778        .38779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .75079        .23010        .30392E-03   -1.0192    
  24  Prefactor     1.3081        .22126        .24152E-03   -.83067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87451e-09
Minuit parameter uncertainties:
  1  13.9859
  2  4.24515e-05
  3  0.00691374
  4  12.5052
  5  2.31873
  6  0.000251909
  7  12.5356
  8  2.17943
  9  15.2782
  10  4.17925
  11  0.000368187
  12  2.00528
  13  8.98711e-06
  14  1.64481e-05
  15  21.5767
  16  7.6064
  17  0.15338
  18  0.00563043
  19  15.1241
  20  11.0499
  21  33.8011
  22  0.00053867
  23  0.230394
  24  0.221421
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  9.709e-01  2.005e+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:  1.308e+00  2.214e-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:  7.508e-01  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382891/likelihoodResults_651715201_651974401_4FGL_J1209.8+1810_daily_bin1591.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) = 6038.42265712
delta logL = 0.00322118081021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6038.42225822
delta logL = 0.00362007938475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91744       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5353       1.0000          .0000       10.000    
     3 'Normalizat'    .74870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3092       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=   6038.422     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      239 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91798        17.300        .33532E-01    .10409E-02
   2  Index         2.5354        2.1099        .37757        .13428E-04
   3  Normalizat    .74872        .19680E-01    .68770E-01    .22122E-04
   4  Prefactor     1.3092        .20102E-01    .54607E-01    .10774E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.917976
  Index      = 2.5354
  Normalizat = 0.748716
  Prefactor  = 1.30921
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.422     FROM HESSE     STATUS=OK            35 CALLS      274 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91798        2.1930        .15338E-02   -1.5516    
   2  Index         2.5354        1.5671        .93321E-02   -.51544    
   3  Normalizat    .74872        .21570        .30431E-03   -1.0200    
   4  Prefactor     1.3092        .21958        .24144E-03   -.83033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51371e-09
Minuit parameter uncertainties:
  1  2.19316
  2  1.60313
  3  0.215944
  4  0.219738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382891': 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) = 6038.42225817
delta logL = 0.00362013358881

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  9.180e-01  2.193e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.535e+00  1.603e+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:  1.309e+00  2.197e-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:  7.487e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 182.466 18.178

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/382891/cmap_HighResolution_651715201_651974401_4FGL_J1209.8+1810_daily_bin1591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-05 02:52:58.048031', job_id='382891', GAL2='1.31', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630835578.05', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='3.62e-03', ts2='0.32', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1591' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:52:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 382891: <4FGL_J1209.8+1810_daily_bin1591> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1591> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 02:40:48 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:40: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:40:50 2021
Terminated at Sun Sep  5 02:52:58 2021
Results reported at Sun Sep  5 02:52:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1591 182.466 18.1776 651715201 651974401 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 :                                   703.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

