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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1303
RA = 181.203, Dec = 4.12
tmin = 577065601, tmax = 577324801
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='311825', job_status='RUN', time_executed='2021-09-04 23:21:13.533882', time_epoch_executed='1630822873.53' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311825/ft1_4FGL_J1204.8+0407_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311825/ft2_4FGL_J1204.8+0407_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311825/ft1_4FGL_J1204.8+0407_daily_bin1303.fits outfile=/scratch/kocevski/311825/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1303.fits ra=181.203 dec=4.12 rad=12.0 tmin=577065601.0 tmax=577324801.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.07
user 2.85
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311825/ft2_4FGL_J1204.8+0407_daily_bin1303.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/311825/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1303.fits evtable="EVENTS" outfile="/scratch/kocevski/311825/ft1_filtered_4FGL_J1204.8+0407_daily_bin1303.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311825/ft1_filtered_4FGL_J1204.8+0407_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/311825/ft2_4FGL_J1204.8+0407_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/311825/ltcube_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.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/311825/ft2_4FGL_J1204.8+0407_daily_bin1303.fits
.....................!
real 12.36
user 11.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311825/ft1_filtered_4FGL_J1204.8+0407_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/311825/ft2_4FGL_J1204.8+0407_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/311825/ltcube_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.fits outfile=/scratch/kocevski/311825/expmap_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.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/311825/ltcube_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.fits
.....................!
real 191.17
user 185.23
sys 5.47

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/311825/ft1_filtered_4FGL_J1204.8+0407_daily_bin1303.fits scfile=/scratch/kocevski/311825/ft2_4FGL_J1204.8+0407_daily_bin1303.fits outfile=/scratch/kocevski/311825/cmap_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311825/ft1_filtered_4FGL_J1204.8+0407_daily_bin1303.fits scfile=/scratch/kocevski/311825/ft2_4FGL_J1204.8+0407_daily_bin1303.fits outfile=/scratch/kocevski/311825/cmap_HighResolution_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/311825/ft1_filtered_4FGL_J1204.8+0407_daily_bin1303.fits', '/scratch/kocevski/311825/ft2_4FGL_J1204.8+0407_daily_bin1303.fits', expMap='/scratch/kocevski/311825/expmap_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.fits', expCube='/scratch/kocevski/311825/ltcube_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/311825/Model_4FGL_J1204.8+0407_daily_bin1303.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/311825/ft1_filtered_4FGL_J1204.8+0407_daily_bin1303.fits
Spacecraft file(s): /scratch/kocevski/311825/ft2_4FGL_J1204.8+0407_daily_bin1303.fits
Exposure map: /scratch/kocevski/311825/expmap_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.fits
Exposure cube: /scratch/kocevski/311825/ltcube_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/311825/Model_4FGL_J1204.8+0407_daily_bin1303.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) = 2017.3866992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7526       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .80899E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    385.75       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.545       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16333E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13397E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.916       1.0000         .10000E-03   10000.    
    19 'norm      '    .10565E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12108E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.041       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8278       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    63.009       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.5763       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=   2017.377     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     4405 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7515        3.5090       -.61600E-06   -.13597E-03
   2  Prefactor     .10000E-03    332.75       -.11723E-03** at limit **
   3  Prefactor     .10000E-03    62.166       -.40651E-04** at limit **
   4  Prefactor     385.88        272.47        .62269E-04    .49099E-04
   5  Prefactor     9.1344        21.518        .13000E-04    .15353E-03
   6  Prefactor     .10000E-03    247.08        .13103E-04** at limit **
   7  Prefactor     5.3610        26.630       -.11503E-04   -.43394E-05
   8  Prefactor     .10000E-03    11.301        .82652E-06** at limit **
   9  Prefactor     .10000E-03    193.71        .55232E-04** at limit **
  10  Prefactor     14.181        236.64       -.27438E-03    .13167E-04
  11  Prefactor     .10000E-03    239.46        .23473E-04** at limit **
  12  Prefactor     .10000E-03    46.420       -.28800E-04** at limit **
  13  Prefactor     .10000E-03    52.679        .20410E-04** at limit **
  14  Prefactor     47.570        71.079        .21652E-04    .58629E-04
  15  Prefactor     .10000E-03    161.95        .31317E-04** at limit **
  16  norm          .10000E-03    12.023       -.40772E-06** at limit **
  17  norm          .10000E-03    14.716       -.61121E-06** at limit **
  18  Prefactor     13.879        93.546       -.56695E-04    .22463E-04
  19  norm          .10000E-03    138.54       -.22843E-04** at limit **
  20  Prefactor     .10000E-03    268.86       -.20705E-04** at limit **
  21  norm          .10000E-03    1.0491       -.12193E-06** at limit **
  22  Prefactor     23.048        18.157        .18507E-05    .71121E-04
  23  Prefactor     .10000E-03    22.510        .49696E-06** at limit **
  24  Prefactor     .10000E-03    50.934        .18607E-04** at limit **
  25  norm          1.8277        4.4372       -.10511E-05   -.16533E-03
  26  Prefactor     .10000E-03    51.927        .20491E-04** at limit **
  27  Prefactor     63.031        139.61        .23645E-04    .87879E-06
  28  Normalizat    .10000E-01    .42462       -.13115E-05** at limit **
  29  Prefactor     1.5764        .22777        .41795E-05    .11728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 385.879
  Prefactor  = 9.13438
  Prefactor  = 0.0001
  Prefactor  = 5.36097
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 14.1809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.5697
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 13.8791
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 23.048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82768
  Prefactor  = 0.0001
  Prefactor  = 63.0305
  Normalizat = 0.01
  Prefactor  = 1.57643
 **********
 **   18 **HESSE 
 **********

 FCN=   2017.377     FROM HESSE     STATUS=OK           537 CALLS     4942 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7515        3.4828        .11469E-03   -1.5443    
   2  Prefactor     .10000E-03    335.30        .18458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     385.88        270.65        .10385E-03   -1.1753    
   5  Prefactor     9.1344        21.441        .13272E-03   -1.5103    
   6  Prefactor     .10000E-03    247.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3610        26.676        .17335E-03   -1.5245    
   8  Prefactor     .10000E-03    11.321        .14748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    193.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.181        237.08        .10588E-03   -1.4955    
  11  Prefactor     .10000E-03    239.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    52.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.570        70.891        .58152E-04   -1.4327    
  15  Prefactor     .10000E-03    163.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.119        .15209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.962        .33514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.879        92.910        .10737E-03   -1.4963    
  19  norm          .10000E-03    138.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    268.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.0713        .89382E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.048        18.177        .83448E-04   -1.4747    
  23  Prefactor     .10000E-03    22.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    50.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8277        4.3949        .13805E-03   -1.5438    
  26  Prefactor     .10000E-03    51.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     63.031        139.40        .50553E-04   -1.4118    
  28  Normalizat    .10000E-01    .81458        .12768E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.5764        .18859        .18494E-03   -.75421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21977e-10
Minuit parameter uncertainties:
  1  3.48317
  2  0.00056851
  3  5.46253e-05
  4  271.547
  5  21.4587
  6  5.83223e-05
  7  23.9341
  8  0.000342304
  9  0.000384982
  10  116.511
  11  7.03472e-05
  12  0.000302409
  13  9.82835e-05
  14  71.0172
  15  0.0017101
  16  0.000101557
  17  0.000343832
  18  71.9812
  19  0.000431271
  20  0.00118531
  21  1.52134e-05
  22  18.1816
  23  2.20431e-05
  24  0.000131316
  25  4.3957
  26  8.51453e-05
  27  140.131
  28  2.12686e-05
  29  0.188675
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.024e-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:  1.576e+00  1.887e-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.000e-02  2.127e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 2.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311825/likelihoodResults_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.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) = 2017.37664275
delta logL = -0.000107328097101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2017.37654039
delta logL = -4.97579412695e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3980       1.0000          .0000       10.000    
     3 'Normalizat'    .10007E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5764       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=   2017.377     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      295 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10625E-03    31.203        .18142E-01** at limit **
   2  Index         3.2093        5.6492        .50000        .54757E-05
   3  Normalizat    .10000E-01    .15351E-02    .12749E-01** at limit **
   4  Prefactor     1.5764        .66073E-02    .18494E-03    .96972E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106246
  Index      = 3.20932
  Normalizat = 0.01
  Prefactor  = 1.57643
 **********
 **   18 **HESSE 
 **********

 FCN=   2017.377     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      324 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10625E-03    389.23        .25499E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2093        6.4654        .50000       -.36627    
   3  Normalizat    .10000E-01    .19918E-01    .25498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5764        .23673E-01    .73977E-05   -.75421    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15709e-08
Minuit parameter uncertainties:
  1  0.0992623
  2  1356.46
  3  1.93383e-08
  4  0.0236727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311825': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2017.37653591
delta logL = -4.89671492687e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.062e-04  9.926e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.209e+00  1.356e+03  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:  1.576e+00  2.367e-02  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.000e-02  1.934e-08  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/311825/cmap_HighResolution_577065601_577324801_4FGL_J1204.8+0407_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-02', job_status='DONE', photon_flux_upper_limit='2.31e-07', time_completed='2021-09-04 23:29:30.441156', job_id='311825', GAL2='1.58', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630823370.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.58', dlogl='-4.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1303' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:29:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 311825: <4FGL_J1204.8+0407_daily_bin1303> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1303> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:29 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:31 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:31 2021
Terminated at Sat Sep  4 23:29:31 2021
Results reported at Sat Sep  4 23:29:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1303 181.203 4.12 577065601 577324801 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 :                                   492.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            542 sec.

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

