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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1420
RA = 181.203, Dec = 4.12
tmin = 607392001, tmax = 607651201
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='311992', job_status='RUN', time_executed='2021-09-04 23:24:11.220181', time_epoch_executed='1630823051.22' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311992/ft1_4FGL_J1204.8+0407_daily_bin1420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311992/ft1_4FGL_J1204.8+0407_daily_bin1420.fits outfile=/scratch/kocevski/311992/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1420.fits ra=181.203 dec=4.12 rad=12.0 tmin=607392001.0 tmax=607651201.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.95
user 3.68
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.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/311992/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1420.fits evtable="EVENTS" outfile="/scratch/kocevski/311992/ft1_filtered_4FGL_J1204.8+0407_daily_bin1420.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.43
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311992/ft1_filtered_4FGL_J1204.8+0407_daily_bin1420.fits" evtable="EVENTS" scfile=/scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits sctable="SC_DATA" outfile=/scratch/kocevski/311992/ltcube_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.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/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits
.....................!
real 8.57
user 8.25
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311992/ft1_filtered_4FGL_J1204.8+0407_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits sctable="SC_DATA" expcube=/scratch/kocevski/311992/ltcube_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.fits outfile=/scratch/kocevski/311992/expmap_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.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/311992/ltcube_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.fits
.....................!
real 141.29
user 137.48
sys 3.29

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 J1204.8+0407 @ 181.203 4.12

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/311992/ft1_filtered_4FGL_J1204.8+0407_daily_bin1420.fits scfile=/scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits outfile=/scratch/kocevski/311992/cmap_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.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=181.203 yref=4.12 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.44
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311992/ft1_filtered_4FGL_J1204.8+0407_daily_bin1420.fits scfile=/scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits outfile=/scratch/kocevski/311992/cmap_HighResolution_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.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=181.203 yref=4.12 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.46
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/311992/ft1_filtered_4FGL_J1204.8+0407_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/311992/Model_4FGL_J1204.8+0407_daily_bin1420.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/311992/ft1_filtered_4FGL_J1204.8+0407_daily_bin1420.fits.....................!
real 35.91
user 34.90
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/311992/ft1_filtered_4FGL_J1204.8+0407_daily_bin1420.fits', '/scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits', expMap='/scratch/kocevski/311992/expmap_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.fits', expCube='/scratch/kocevski/311992/ltcube_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/311992/Model_4FGL_J1204.8+0407_daily_bin1420.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.8+0407'

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/311992/ft1_filtered_4FGL_J1204.8+0407_daily_bin1420.fits
Spacecraft file(s): /scratch/kocevski/311992/ft2_4FGL_J1204.8+0407_daily_bin1420.fits
Exposure map: /scratch/kocevski/311992/expmap_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.fits
Exposure cube: /scratch/kocevski/311992/ltcube_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/311992/Model_4FGL_J1204.8+0407_daily_bin1420.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) = 5177.20214452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.444       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4651       1.0000         .10000E-03   10000.    
    17 'norm      '    5.6728       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    43.260       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .26025       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3112       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.2174       1.0000         .10000E-03   10000.    
    25 'norm      '    2.1823       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.0012       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2239       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86745       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=   5177.194     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3645 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5659        3.0789       -.67004E-07   -.22478E-03
   2  Prefactor     .10000E-03    57.793        .28448E-04** at limit **
   3  Prefactor     14.444        22.648       -.56081E-06   -.44160E-04
   4  Prefactor     .10000E-03    32.685       -.11537E-04** at limit **
   5  Prefactor     11.305        10.814       -.15553E-06   -.21782E-04
   6  Prefactor     .10000E-03    24.060       -.11909E-05** at limit **
   7  Prefactor     .10000E-03    8.0082        .47042E-05** at limit **
   8  Prefactor     .10000E-03    5.6449        .83549E-07** at limit **
   9  Prefactor     22.603        20.893       -.12421E-06   -.84140E-04
  10  Prefactor     .10000E-03    29.929       -.13740E-04** at limit **
  11  Prefactor     .10000E-03    20.450        .13238E-04** at limit **
  12  Prefactor     .10000E-03    41.197        .10770E-04** at limit **
  13  Prefactor     .10000E-03    13.761       -.53582E-05** at limit **
  14  Prefactor     .10000E-03    8.2424       -.46364E-05** at limit **
  15  Prefactor     .10000E-03    35.374       -.36572E-05** at limit **
  16  norm          1.4658        1.9019       -.69480E-07   -.73656E-04
  17  norm          5.6751        5.0050        .32868E-05   -.77192E-03
  18  Prefactor     .10000E-03    10.134        .28903E-05** at limit **
  19  norm          43.236        62.718       -.28802E-04   -.44240E-04
  20  Prefactor     .10000E-03    81.648       -.51604E-04** at limit **
  21  norm          .26033        .57870        .84692E-06   -.53947E-03
  22  Prefactor     8.3068        11.924       -.92355E-06   -.30520E-03
  23  Prefactor     .10000E-03    60.981        .23923E-04** at limit **
  24  Prefactor     6.2183        8.5846       -.65758E-07   -.10039E-03
  25  norm          2.1826        1.4333        .25442E-07   -.27913E-03
  26  Prefactor     .10000E-03    8.0978       -.13117E-05** at limit **
  27  Prefactor     7.9817        33.881       -.27446E-04   -.26676E-04
  28  Normalizat    1.2238        .21792       -.15889E-05   -.20740E-03
  29  Prefactor     .86756        .18074        .24666E-05   -.34520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.56594
  Prefactor  = 0.0001
  Prefactor  = 14.4436
  Prefactor  = 0.0001
  Prefactor  = 11.3049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46577
  norm       = 5.6751
  Prefactor  = 0.0001
  norm       = 43.2363
  Prefactor  = 0.0001
  norm       = 0.260333
  Prefactor  = 8.30675
  Prefactor  = 0.0001
  Prefactor  = 6.21829
  norm       = 2.18257
  Prefactor  = 0.0001
  Prefactor  = 7.98174
  Normalizat = 1.22378
  Prefactor  = 0.867562
 **********
 **   18 **HESSE 
 **********

 FCN=   5177.194     FROM HESSE     STATUS=OK           545 CALLS     4190 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5659        3.0799        .83003E-04   -1.5195    
   2  Prefactor     .10000E-03    58.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.444        22.648        .10539E-03   -1.4948    
   4  Prefactor     .10000E-03    32.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.305        10.842        .11916E-03   -1.5035    
   6  Prefactor     .10000E-03    24.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6524        .16695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.603        20.928        .84258E-04   -1.4757    
  10  Prefactor     .10000E-03    29.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4658        1.8755        .10901E-03   -1.5466    
  17  norm          5.6751        4.9920        .11250E-03   -1.5231    
  18  Prefactor     .10000E-03    10.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          43.236        62.526        .60952E-04   -1.4392    
  20  Prefactor     .10000E-03    81.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .26033        .55361        .68131E-04   -1.5606    
  22  Prefactor     8.3068        11.909        .13906E-03   -1.5131    
  23  Prefactor     .10000E-03    61.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.2183        8.5625        .16099E-03   -1.5209    
  25  norm          2.1826        1.4264        .67015E-04   -1.5412    
  26  Prefactor     .10000E-03    8.1727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.9817        33.914        .14175E-03   -1.5143    
  28  Normalizat    1.2238        .25533        .25620E-03   -.85871    
  29  Prefactor     .86756        .21124        .25523E-03   -.97284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50768e-10
Minuit parameter uncertainties:
  1  3.08
  2  0.000217536
  3  22.6615
  4  9.07627e-06
  5  10.8443
  6  3.60397e-06
  7  2.64243e-05
  8  8.3571e-07
  9  20.9345
  10  2.41317e-06
  11  6.45316e-06
  12  0.000133709
  13  1.23615e-05
  14  1.45312e-05
  15  0.000165907
  16  1.87556
  17  4.99236
  18  6.45565e-06
  19  62.6212
  20  2.38024e-05
  21  0.553622
  22  11.9127
  23  5.5716e-05
  24  8.56418
  25  1.42645
  26  3.6888e-05
  27  32.9369
  28  0.255595
  29  0.211435
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.337e-04  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.676e-01  2.114e-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.224e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 9.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311992/likelihoodResults_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.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) = 5177.19443426
delta logL = -0.000115190654469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5177.19431923
delta logL = -1.58589500643e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5109       1.0000          .0000       10.000    
     3 'Normalizat'    1.2238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86757       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=   5177.194     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7146.3        .90712E-02** at limit **
   2  Index         2.5501        7.5222        .50000       -.99541E-05
   3  Normalizat    1.2238        .75013E-01    .57933E-01   -.14100E-03
   4  Prefactor     .86757        .64168E-01    .44590E-01    .20133E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.55011
  Normalizat = 1.22378
  Prefactor  = 0.867567
 **********
 **   18 **HESSE 
 **********

 FCN=   5177.194     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5501        6.1057        .50000       -.51206    
   3  Normalizat    1.2238        .24033        .25620E-03   -.85871    
   4  Prefactor     .86757        .20653        .25523E-03   -.97284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74031e-10
Minuit parameter uncertainties:
  1  0.000232082
  2  6.22805
  3  0.240543
  4  0.206716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311992': 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) = 5177.19431914
delta logL = -6.46232365398e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.321e-04  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.550e+00  6.228e+00  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.676e-01  2.067e-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.224e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.203 4.120

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/311992/cmap_HighResolution_607392001_607651201_4FGL_J1204.8+0407_daily_bin1420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-09-04 23:33:32.077572', job_id='311992', GAL2='0.87', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630823612.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-6.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1420' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:33:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 311992: <4FGL_J1204.8+0407_daily_bin1420> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1420> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:41 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:20:42 2021
Terminated at Sat Sep  4 23:33:32 2021
Results reported at Sat Sep  4 23:33:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1420 181.203 4.12 607392001 607651201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.8+0407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   555.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            771 sec.

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

