/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 7372
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1482
RA = 182.466, Dec = 18.1776
tmin = 623462401, tmax = 623721601
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='382731', job_status='RUN', time_executed='2021-09-05 02:41:47.394655', time_epoch_executed='1630834907.39' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382731

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382731/ft1_4FGL_J1209.8+1810_daily_bin1482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382731/ft2_4FGL_J1209.8+1810_daily_bin1482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382731/ft1_4FGL_J1209.8+1810_daily_bin1482.fits outfile=/scratch/kocevski/382731/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1482.fits ra=182.466 dec=18.1776 rad=12.0 tmin=623462401.0 tmax=623721601.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.70
user 2.49
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/382731/ft2_4FGL_J1209.8+1810_daily_bin1482.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/382731/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1482.fits evtable="EVENTS" outfile="/scratch/kocevski/382731/ft1_filtered_4FGL_J1209.8+1810_daily_bin1482.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382731/ft1_filtered_4FGL_J1209.8+1810_daily_bin1482.fits" evtable="EVENTS" scfile=/scratch/kocevski/382731/ft2_4FGL_J1209.8+1810_daily_bin1482.fits sctable="SC_DATA" outfile=/scratch/kocevski/382731/ltcube_623462401_623721601_4FGL_J1209.8+1810_daily_bin1482.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/382731/ft2_4FGL_J1209.8+1810_daily_bin1482.fits
.....................!
real 13.18
user 12.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382731/ft1_filtered_4FGL_J1209.8+1810_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/382731/ft2_4FGL_J1209.8+1810_daily_bin1482.fits sctable="SC_DATA" expcube=/scratch/kocevski/382731/ltcube_623462401_623721601_4FGL_J1209.8+1810_daily_bin1482.fits outfile=/scratch/kocevski/382731/expmap_623462401_623721601_4FGL_J1209.8+1810_daily_bin1482.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/382731/ltcube_623462401_623721601_4FGL_J1209.8+1810_daily_bin1482.fits
.....................!
real 190.33
user 185.10
sys 4.71

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/382731/ft1_filtered_4FGL_J1209.8+1810_daily_bin1482.fits scfile=/scratch/kocevski/382731/ft2_4FGL_J1209.8+1810_daily_bin1482.fits outfile=/scratch/kocevski/382731/cmap_623462401_623721601_4FGL_J1209.8+1810_daily_bin1482.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.53
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.638       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4472       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3592       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .80614       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.964       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9640       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7084       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .42321       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.233       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31191E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1157       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=   7137.356     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2734 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.641        10.408       -.14021E-06   -.12870E-04
   2  Prefactor     .10000E-03    19.921        .16565E-04** at limit **
   3  Prefactor     .10000E-03    8.4385       -.57179E-05** at limit **
   4  Prefactor     4.4448        11.366       -.82533E-06   -.13422E-03
   5  Prefactor     3.3589        1.8275       -.18587E-07    .44615E-04
   6  Prefactor     .10000E-03    138.11       -.13209E-03** at limit **
   7  Prefactor     .10000E-03    17.885       -.11867E-04** at limit **
   8  norm          .80636        .95514       -.12416E-06   -.11154E-02
   9  Prefactor     10.966        21.733       -.28318E-05   -.62866E-03
  10  Prefactor     2.9674        3.8861       -.34945E-06   -.57187E-03
  11  Prefactor     .10000E-03    73.969        .10638E-03** at limit **
  12  Prefactor     .10000E-03    1.2606        .24779E-07** at limit **
  13  Prefactor     4.5634        3.7025       -.13914E-06   -.48751E-03
  14  Prefactor     1.7087        1.6518       -.11487E-06   -.35011E-03
  15  Prefactor     .10000E-03    43.752       -.36491E-04** at limit **
  16  Prefactor     .10000E-03    1.5288       -.53547E-07** at limit **
  17  norm          .42325        .23230       -.25358E-07   -.10933E-02
  18  norm          .10000E-03    1.2534       -.13289E-07** at limit **
  19  Prefactor     14.217        13.647       -.19493E-05   -.18205E-03
  20  Prefactor     .10000E-03    4.6210       -.25020E-07** at limit **
  21  Prefactor     .10000E-03    123.69        .12855E-04** at limit **
  22  Prefactor     .10000E-03    8.2513        .53716E-05** at limit **
  23  Normalizat    1.0784        .18416        .33824E-06   -.54276E-04
  24  Prefactor     1.1158        .17553        .75065E-06   -.56115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.44479
  Prefactor  = 3.35886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.806355
  Prefactor  = 10.9662
  Prefactor  = 2.96737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.56336
  Prefactor  = 1.70867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.423249
  norm       = 0.0001
  Prefactor  = 14.2168
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.07839
  Prefactor  = 1.11577
 **********
 **   18 **HESSE 
 **********

 FCN=   7137.356     FROM HESSE     STATUS=OK           399 CALLS     3133 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.641        10.412        .10128E-03   -1.4917    
   2  Prefactor     .10000E-03    19.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4448        11.335        .19095E-03   -1.5286    
   5  Prefactor     3.3589        1.8257        .80051E-04   -1.5341    
   6  Prefactor     .10000E-03    137.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .80636        .86884        .85849E-03   -1.5528    
   9  Prefactor     10.966        21.803        .60496E-03   -1.5046    
  10  Prefactor     2.9674        3.8673        .17767E-03   -1.5363    
  11  Prefactor     .10000E-03    73.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2738        .92335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5634        3.6877        .13743E-03   -1.5281    
  14  Prefactor     1.7087        1.6447        .10235E-03   -1.5447    
  15  Prefactor     .10000E-03    43.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5324        .10199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .42325        .22767        .28205E-04   -1.5578    
  18  norm          .10000E-03    1.2627        .92336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.217        13.593        .10617E-03   -1.4954    
  20  Prefactor     .10000E-03    4.6520        .17734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    126.62        .42747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0784        .21863        .26910E-03   -.90449    
  24  Prefactor     1.1158        .20914        .26455E-03   -.88964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22538e-09
Minuit parameter uncertainties:
  1  10.4135
  2  2.3832e-05
  3  4.85777e-06
  4  11.3405
  5  1.82576
  6  4.42566e-05
  7  0.000118477
  8  0.868851
  9  21.8187
  10  3.86762
  11  5.11774e-05
  12  2.4911e-06
  13  3.68793
  14  1.64479
  15  5.24269e-05
  16  6.26219e-07
  17  0.227674
  18  1.05414e-06
  19  13.5963
  20  1.94174e-06
  21  0.000823866
  22  6.89631e-05
  23  0.218811
  24  0.209295
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.491e-06  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.116e+00  2.093e-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.078e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/382731/likelihoodResults_623462401_623721601_4FGL_J1209.8+1810_daily_bin1482.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): 102
logL (Free Index) = 7137.35956082
delta logL = -0.00371801644906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7137.35584298
delta logL = -1.71838109964e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4148       1.0000          .0000       10.000    
     3 'Normalizat'    1.0784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1158       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7137.356     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10062E-03    1.4616        .92371E-03** at limit **
   2  Index         2.5856        6.2928        .50000       -.13360E-04
   3  Normalizat    1.0784        .20532        .26910E-03    .97758E-04
   4  Prefactor     1.1158        .20588        .26455E-03    .85216E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7137.356     FROM SIMPLEX   STATUS=UNCHANGED    108 CALLS      352 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10062E-03    1.4616        .12394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5856        6.2928        .38988E-02   -.50394    
   3  Normalizat    1.0784        .20532        .17588E-03   -.90449    
   4  Prefactor     1.1158        .20588        .93002E-04   -.88964    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7137.356     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      385 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3072        .18474E-03** at limit **
   2  Index         2.5867        6.2882        .50000       -.13216E-04
   3  Normalizat    1.0784        .20552        .10764E-04   -.10815E-03
   4  Prefactor     1.1158        .20609        .10582E-04   -.85517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58668
  Normalizat = 1.07839
  Prefactor  = 1.11577
 **********
 **   18 **HESSE 
 **********

 FCN=   7137.356     FROM HESSE     STATUS=OK            29 CALLS      414 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2990        .36948E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5867        6.2877        .50000       -.50369    
   3  Normalizat    1.0784        .20569        .21528E-05   -.90449    
   4  Prefactor     1.1158        .20627        .21164E-05   -.88964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05906e-10
Minuit parameter uncertainties:
  1  1.16886e-05
  2  4.37961
  3  0.205845
  4  0.206413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382731': 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) = 7137.35584204
delta logL = 7.69877260609e-07

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.169e-05  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.587e+00  4.380e+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.116e+00  2.064e-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.078e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.466 18.178

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/382731/cmap_HighResolution_623462401_623721601_4FGL_J1209.8+1810_daily_bin1482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-05 02:55:53.511312', job_id='382731', GAL2='1.12', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630835753.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='7.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1482' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 382731: <4FGL_J1209.8+1810_daily_bin1482> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1482 182.466 18.1776 623462401 623721601 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 :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

