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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1008
RA = 241.158, Dec = 57.2381
tmin = 500601601, tmax = 500860801
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='11713', job_status='RUN', time_executed='2021-09-13 07:17:04.214467', time_epoch_executed='1631542624.21' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11713/ft1_4FGL_J1604.6+5714_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11713/ft1_4FGL_J1604.6+5714_daily_bin1008.fits outfile=/scratch/kocevski/11713/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1008.fits ra=241.158 dec=57.2381 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.22
user 4.93
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.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/11713/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1008.fits evtable="EVENTS" outfile="/scratch/kocevski/11713/ft1_filtered_4FGL_J1604.6+5714_daily_bin1008.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.53
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/11713/ft1_filtered_4FGL_J1604.6+5714_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/11713/ltcube_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.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/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits
.....................!
real 14.70
user 14.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11713/ft1_filtered_4FGL_J1604.6+5714_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/11713/ltcube_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.fits outfile=/scratch/kocevski/11713/expmap_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.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/11713/ltcube_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.fits
.....................!
real 191.79
user 185.84
sys 5.38

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 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1604.6+5714 @ 241.158 57.2381

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/11713/ft1_filtered_4FGL_J1604.6+5714_daily_bin1008.fits scfile=/scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits outfile=/scratch/kocevski/11713/cmap_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.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=241.158 yref=57.2381 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/11713/ft1_filtered_4FGL_J1604.6+5714_daily_bin1008.fits scfile=/scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits outfile=/scratch/kocevski/11713/cmap_HighResolution_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.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=241.158 yref=57.2381 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/11713/ft1_filtered_4FGL_J1604.6+5714_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/11713/Model_4FGL_J1604.6+5714_daily_bin1008.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/11713/ft1_filtered_4FGL_J1604.6+5714_daily_bin1008.fits.....................!
real 44.20
user 42.65
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/11713/ft1_filtered_4FGL_J1604.6+5714_daily_bin1008.fits', '/scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits', expMap='/scratch/kocevski/11713/expmap_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.fits', expCube='/scratch/kocevski/11713/ltcube_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/11713/Model_4FGL_J1604.6+5714_daily_bin1008.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1604.6+5714'

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  8.996e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.348e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  7.626e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  5.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/11713/ft1_filtered_4FGL_J1604.6+5714_daily_bin1008.fits
Spacecraft file(s): /scratch/kocevski/11713/ft2_4FGL_J1604.6+5714_daily_bin1008.fits
Exposure map: /scratch/kocevski/11713/expmap_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.fits
Exposure cube: /scratch/kocevski/11713/ltcube_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/11713/Model_4FGL_J1604.6+5714_daily_bin1008.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) = 4895.8764001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.709       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.744       1.0000         .10000E-03   10000.    
     3 'norm      '    4.3256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9908       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5254       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11273E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10852E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9119       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.940       1.0000         .10000E-03   10000.    
    20 'norm      '    10.571       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.622       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1065       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.0707       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.477       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2591       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4895.875     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3649 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.626        44.990       -.32209E-05    .41375E-05
   2  Prefactor     51.733        28.420       -.46498E-06    .47231E-05
   3  norm          4.3260        2.1920        .35827E-08    .48617E-05
   4  Prefactor     .10000E-03    5.3138        .91353E-08** at limit **
   5  Prefactor     12.950        8.5464        .83892E-07    .70615E-05
   6  Prefactor     .10000E-03    4.8461       -.35396E-07** at limit **
   7  Prefactor     .10000E-03    8.9342       -.23846E-07** at limit **
   8  norm          1.9933        2.4728       -.28093E-06   -.95245E-04
   9  Prefactor     17.237        139.23        .15076E-04   -.45723E-05
  10  Prefactor     2.5268        7.9990        .58173E-06    .18871E-04
  11  norm          .10000E-03    5.1418        .90005E-06** at limit **
  12  Prefactor     .10000E-03    27.596       -.73160E-07** at limit **
  13  Prefactor     .10000E-03    42.747       -.18088E-06** at limit **
  14  Prefactor     7.9118        6.9328        .83801E-07    .32152E-05
  15  Prefactor     .10000E-03    21.387       -.59811E-07** at limit **
  16  Prefactor     .10000E-03    1.9048        .37760E-07** at limit **
  17  norm          .10000E-03    13.615       -.21793E-07** at limit **
  18  Prefactor     .10000E-03    2.6591       -.38517E-08** at limit **
  19  Prefactor     20.942        11.820       -.90828E-07   -.59594E-05
  20  norm          10.571        9.4655       -.11893E-07   -.20383E-05
  21  Prefactor     .10000E-03    1.7704       -.66606E-08** at limit **
  22  Prefactor     20.611        14.371        .49958E-07    .32793E-06
  23  Prefactor     .10000E-03    26.737        .26972E-06** at limit **
  24  Prefactor     3.1071        7.5935        .17894E-07   -.21918E-06
  25  Prefactor     4.0697        9.1366        .47479E-07    .25659E-06
  26  Prefactor     21.476        14.755        .21649E-07    .99011E-06
  27  Prefactor     .10000E-03    57.747        .27895E-06** at limit **
  28  Normalizat    1.2586        .21146        .11654E-05   -.68212E-04
  29  Prefactor     .65690        .19783       -.18921E-05    .21032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6257
  Prefactor  = 51.7334
  norm       = 4.32601
  Prefactor  = 0.0001
  Prefactor  = 12.9495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99331
  Prefactor  = 17.2372
  Prefactor  = 2.52678
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.91175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9417
  norm       = 10.5707
  Prefactor  = 0.0001
  Prefactor  = 20.6113
  Prefactor  = 0.0001
  Prefactor  = 3.1071
  Prefactor  = 4.06969
  Prefactor  = 21.4764
  Prefactor  = 0.0001
  Normalizat = 1.25859
  Prefactor  = 0.656895
 **********
 **   18 **HESSE 
 **********

 FCN=   4895.875     FROM HESSE     STATUS=OK           553 CALLS     4202 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.626        44.992        .80585E-04   -1.4715    
   2  Prefactor     51.733        28.421        .55754E-04   -1.4268    
   3  norm          4.3260        2.1936        .71805E-04   -1.5292    
   4  Prefactor     .10000E-03    5.3295        .15745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.950        8.5771        .11133E-03   -1.4988    
   6  Prefactor     .10000E-03    4.8526        .15044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9933        2.4554        .11590E-03   -1.5426    
   9  Prefactor     17.237        145.54        .95612E-04   -1.4877    
  10  Prefactor     2.5268        8.1674        .12853E-02   -1.5390    
  11  norm          .10000E-03    5.1815        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9118        6.9305        .14255E-03   -1.5145    
  15  Prefactor     .10000E-03    21.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9076        .94299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6936        .11140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.942        11.895        .87530E-04   -1.4792    
  20  norm          10.571        9.4552        .12323E-03   -1.5058    
  21  Prefactor     .10000E-03    1.7859        .90885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.611        14.370        .88201E-04   -1.4800    
  23  Prefactor     .10000E-03    26.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1071        7.5720        .23007E-03   -1.5355    
  25  Prefactor     4.0697        9.1001        .19983E-03   -1.5304    
  26  Prefactor     21.476        14.715        .86430E-04   -1.4781    
  27  Prefactor     .10000E-03    57.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2586        .24798        .22317E-03   -.84811    
  29  Prefactor     .65690        .22660        .29283E-03   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50022e-11
Minuit parameter uncertainties:
  1  45.0539
  2  28.4289
  3  2.19361
  4  7.52744e-07
  5  8.57793
  6  3.2017e-06
  7  2.20039e-06
  8  2.4555
  9  100.506
  10  8.17101
  11  1.20634e-05
  12  2.15416e-05
  13  7.55204e-07
  14  6.93122
  15  2.90602e-06
  16  4.57791e-07
  17  4.05168e-06
  18  2.58329e-08
  19  11.8964
  20  9.45651
  21  2.06999e-07
  22  14.3724
  23  3.80445e-06
  24  7.57432
  25  9.10316
  26  14.7179
  27  5.06232e-06
  28  0.248209
  29  0.22692
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.000e-04  1.206e-05  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.348e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  7.626e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  5.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  6.569e-01  2.269e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.259e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 241.158 57.238
Photon Flux Upper Limit: 7.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/11713/likelihoodResults_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4895.87545319
delta logL = -0.00091815214364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4895.8745319
delta logL = 3.1373310776e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10936E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9303       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65694       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+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=   4895.875     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      308 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    718.34        .36285E-02** at limit **
   2  alpha         3.4261        2.9775        .16780       -.11586E-07
   3  Normalizat    1.2586        .44014E-01    .22317E-03   -.22767E-03
   4  Prefactor     .65690        .42920E-01    .29284E-03   -.26593E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.42609
  Normalizat = 1.25859
  Prefactor  = 0.656897
 **********
 **   18 **HESSE 
 **********

 FCN=   4895.875     FROM HESSE     STATUS=OK            23 CALLS      331 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.970        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4261        2.6426        .67119E-02    .37948    
   3  Normalizat    1.2586        .22656        .44633E-04   -.84811    
   4  Prefactor     .65690        .22251        .11714E-04   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89855e-10
Minuit parameter uncertainties:
  1  4.37896e-05
  2  257.389
  3  0.226737
  4  0.22281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11713': 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) = 4895.87452995
delta logL = 5.09083201905e-06

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.000e-04  4.379e-05  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  3.426e+00  2.574e+02  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  7.626e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  5.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  6.569e-01  2.228e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.259e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 241.158 57.238

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/11713/cmap_HighResolution_500601601_500860801_4FGL_J1604.6+5714_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2021-09-13 07:31:01.986123', job_id='11713', GAL2='0.66', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631543461.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='5.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1008' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 11713: <4FGL_J1604.6+5714_daily_bin1008> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1008> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 13 07:15:26 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:16:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 07:16:48 2021
Terminated at Mon Sep 13 07:31:02 2021
Results reported at Mon Sep 13 07:31:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1008 241.158 57.2381 500601601 500860801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1604.6+5714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   834.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            936 sec.

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

