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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1423
RA = 182.466, Dec = 18.1776
tmin = 608169601, tmax = 608428801
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='382645', job_status='RUN', time_executed='2021-09-05 02:43:38.742764', time_epoch_executed='1630835018.74' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382645/ft1_4FGL_J1209.8+1810_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382645/ft2_4FGL_J1209.8+1810_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382645/ft1_4FGL_J1209.8+1810_daily_bin1423.fits outfile=/scratch/kocevski/382645/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1423.fits ra=182.466 dec=18.1776 rad=12.0 tmin=608169601.0 tmax=608428801.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.64
user 3.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382645/ft1_filtered_4FGL_J1209.8+1810_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/382645/ft2_4FGL_J1209.8+1810_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/382645/ltcube_608169601_608428801_4FGL_J1209.8+1810_daily_bin1423.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/382645/ft2_4FGL_J1209.8+1810_daily_bin1423.fits
.....................!
real 11.81
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382645/ft1_filtered_4FGL_J1209.8+1810_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/382645/ft2_4FGL_J1209.8+1810_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/382645/ltcube_608169601_608428801_4FGL_J1209.8+1810_daily_bin1423.fits outfile=/scratch/kocevski/382645/expmap_608169601_608428801_4FGL_J1209.8+1810_daily_bin1423.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/382645/ltcube_608169601_608428801_4FGL_J1209.8+1810_daily_bin1423.fits
.....................!
real 190.46
user 185.89
sys 4.23

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/382645/ft1_filtered_4FGL_J1209.8+1810_daily_bin1423.fits scfile=/scratch/kocevski/382645/ft2_4FGL_J1209.8+1810_daily_bin1423.fits outfile=/scratch/kocevski/382645/cmap_608169601_608428801_4FGL_J1209.8+1810_daily_bin1423.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382645/ft1_filtered_4FGL_J1209.8+1810_daily_bin1423.fits scfile=/scratch/kocevski/382645/ft2_4FGL_J1209.8+1810_daily_bin1423.fits outfile=/scratch/kocevski/382645/cmap_HighResolution_608169601_608428801_4FGL_J1209.8+1810_daily_bin1423.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2296       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8306       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2667       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25857E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16242       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .91898E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8649       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11150E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16869E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.986       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71613       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2512       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=   5276.551     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2429 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.048        10.874        .51005E-06   -.90715E-04
   2  Prefactor     .10000E-03    19.710        .11886E-05** at limit **
   3  Prefactor     8.2298        12.943        .50996E-06   -.69971E-05
   4  Prefactor     .10000E-03    6.9994       -.37391E-07** at limit **
   5  Prefactor     .10000E-03    .69436       -.29980E-07** at limit **
   6  Prefactor     .10000E-03    62.155        .79413E-06** at limit **
   7  Prefactor     3.8301        10.001        .70655E-05   -.48858E-03
   8  norm          3.2667        1.3593        .48946E-07   -.57828E-04
   9  Prefactor     .10000E-03    13.893       -.48224E-06** at limit **
  10  Prefactor     1.6042        2.0537        .43045E-07   -.77291E-04
  11  Prefactor     .10050E-03    458.22       -.35879E-04** at limit **
  12  Prefactor     .15885        1.7518        .37541E-06   -.35289E-03
  13  Prefactor     .10000E-03    1.5912        .87228E-07** at limit **
  14  Prefactor     1.2410        2.2539        .41710E-06   -.24580E-03
  15  Prefactor     58.510        35.210        .74925E-06    .16540E-03
  16  Prefactor     .10000E-03    2.9725       -.14303E-06** at limit **
  17  norm          .91863E-01    .14221        .68533E-07    .65600E-03
  18  norm          4.8645        3.8096        .95386E-07   -.39173E-04
  19  Prefactor     .10001E-03    22.888        .73340E-06** at limit **
  20  Prefactor     .10000E-03    7.1848        .45959E-06** at limit **
  21  Prefactor     19.013        31.076        .47181E-05    .39300E-03
  22  Prefactor     .10000E-03    4.4660       -.68027E-07** at limit **
  23  Normalizat    .71608        .18077       -.19804E-05   -.28244E-04
  24  Prefactor     1.2513        .18190       -.71251E-06   -.26661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0478
  Prefactor  = 0.000100001
  Prefactor  = 8.22985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.83005
  norm       = 3.26667
  Prefactor  = 0.0001
  Prefactor  = 1.60416
  Prefactor  = 0.000100499
  Prefactor  = 0.158853
  Prefactor  = 0.0001
  Prefactor  = 1.24104
  Prefactor  = 58.5104
  Prefactor  = 0.0001
  norm       = 0.0918628
  norm       = 4.86454
  Prefactor  = 0.000100006
  Prefactor  = 0.000100003
  Prefactor  = 19.0127
  Prefactor  = 0.0001
  Normalizat = 0.716079
  Prefactor  = 1.2513
 **********
 **   18 **HESSE 
 **********

 FCN=   5276.551     FROM HESSE     STATUS=OK           403 CALLS     2832 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.048        10.875        .51623E-03   -1.4932    
   2  Prefactor     .10000E-03    19.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2298        12.925        .13975E-03   -1.5134    
   4  Prefactor     .10000E-03    7.0810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .71876        .11801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8301        10.505        .10311E-02   -1.5317    
   8  norm          3.2667        1.3581        .52753E-04   -1.5346    
   9  Prefactor     .10000E-03    13.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6042        2.0365        .11395E-03   -1.5455    
  11  Prefactor     .10050E-03    500.61        .21451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .15885        4.1529        .18146E-02   -1.5628    
  13  Prefactor     .10000E-03    2.5916        .17526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2410        2.1867        .13715E-03   -1.5485    
  15  Prefactor     58.510        35.288        .52452E-04   -1.4177    
  16  Prefactor     .10000E-03    5.5012        .23930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .91863E-01    .12552        .32813E-03   -1.5647    
  18  norm          4.8645        3.7446        .11920E-03   -1.5267    
  19  Prefactor     .10001E-03    23.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.721        .37044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.013        32.041        .91919E-04   -1.4836    
  22  Prefactor     .10000E-03    4.5028        .14990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .71608        .20925        .27725E-03   -1.0326    
  24  Prefactor     1.2513        .21443        .22375E-03   -.84767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3061e-08
Minuit parameter uncertainties:
  1  10.8769
  2  0.000251884
  3  12.9293
  4  1.69225e-05
  5  1.79195e-06
  6  0.000287057
  7  10.5105
  8  1.35815
  9  3.05811e-05
  10  2.03656
  11  0.0318792
  12  1.62405
  13  1.85238e-07
  14  2.18685
  15  35.3008
  16  6.11934e-05
  17  0.125516
  18  3.74473
  19  0.000724773
  20  0.000621485
  21  32.0696
  22  1.50724e-06
  23  0.209479
  24  0.21458
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.589e-01  1.624e+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.251e+00  2.146e-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.161e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/382645/likelihoodResults_608169601_608428801_4FGL_J1209.8+1810_daily_bin1423.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) = 5276.53953665
delta logL = 0.0119217459724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5276.52640745
delta logL = 0.0250509385651

Fit tolerance = 1e-08

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

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

 FCN=   5276.526     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      266 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48997        2.4095        .21448E-03   -.39018E-03
   2  Index         1.9898        1.4379        .14271E-01   -.63395E-04
   3  Normalizat    .71788        .20314        .27693E-03    .14442E-03
   4  Prefactor     1.2477        .21297        .22401E-03    .25370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.489973
  Index      = 1.98982
  Normalizat = 0.717875
  Prefactor  = 1.24774
 **********
 **   18 **HESSE 
 **********

 FCN=   5276.526     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48997        2.3366        .85792E-05   -1.5568    
   2  Index         1.9898        1.4178        .57086E-03   -.64605    
   3  Normalizat    .71788        .20328        .11077E-04   -1.0319    
   4  Prefactor     1.2477        .21310        .44803E-04   -.84875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19731e-10
Minuit parameter uncertainties:
  1  2.13988
  2  1.44947
  3  0.203496
  4  0.213245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382645': 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) = 5276.52640702
delta logL = 0.0250513733981

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  4.900e-01  2.140e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  1.990e+00  1.449e+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.248e+00  2.132e-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.179e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/382645/cmap_HighResolution_608169601_608428801_4FGL_J1209.8+1810_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-05 02:57:02.357411', job_id='382645', GAL2='1.25', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630835822.36', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.51e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1423' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:57:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 382645: <4FGL_J1209.8+1810_daily_bin1423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1423 182.466 18.1776 608169601 608428801 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 :                                   623.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             244.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

