/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 230 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 = 7467
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1604.6+5714_daily_bin71
RA = 241.158, Dec = 57.2381
tmin = 257731201, tmax = 257990401
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='995175', job_status='RUN', time_executed='2021-09-13 06:19:46.067654', time_epoch_executed='1631539186.07' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995175

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995175/ft1_4FGL_J1604.6+5714_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995175/ft2_4FGL_J1604.6+5714_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995175/ft1_4FGL_J1604.6+5714_daily_bin71.fits outfile=/scratch/kocevski/995175/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin71.fits ra=241.158 dec=57.2381 rad=12.0 tmin=257731201.0 tmax=257990401.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 1.44
user 1.27
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995175/ft2_4FGL_J1604.6+5714_daily_bin71.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/995175/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/995175/ft1_filtered_4FGL_J1604.6+5714_daily_bin71.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.52
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995175/ft1_filtered_4FGL_J1604.6+5714_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/995175/ft2_4FGL_J1604.6+5714_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/995175/ltcube_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.fits outfile=/scratch/kocevski/995175/expmap_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.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/995175/ltcube_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.fits
.....................!
real 191.11
user 185.98
sys 4.53

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/995175/ft1_filtered_4FGL_J1604.6+5714_daily_bin71.fits scfile=/scratch/kocevski/995175/ft2_4FGL_J1604.6+5714_daily_bin71.fits outfile=/scratch/kocevski/995175/cmap_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995175/ft1_filtered_4FGL_J1604.6+5714_daily_bin71.fits scfile=/scratch/kocevski/995175/ft2_4FGL_J1604.6+5714_daily_bin71.fits outfile=/scratch/kocevski/995175/cmap_HighResolution_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.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.57
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/995175/ft1_filtered_4FGL_J1604.6+5714_daily_bin71.fits', '/scratch/kocevski/995175/ft2_4FGL_J1604.6+5714_daily_bin71.fits', expMap='/scratch/kocevski/995175/expmap_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.fits', expCube='/scratch/kocevski/995175/ltcube_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/995175/Model_4FGL_J1604.6+5714_daily_bin71.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/995175/ft1_filtered_4FGL_J1604.6+5714_daily_bin71.fits
Spacecraft file(s): /scratch/kocevski/995175/ft2_4FGL_J1604.6+5714_daily_bin71.fits
Exposure map: /scratch/kocevski/995175/expmap_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.fits
Exposure cube: /scratch/kocevski/995175/ltcube_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/995175/Model_4FGL_J1604.6+5714_daily_bin71.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) = 4574.48390194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11559E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.014       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7592       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11285E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.5267       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.306       1.0000         .10000E-03   10000.    
    11 'norm      '    29.191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.976       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0724       1.0000         .10000E-03   10000.    
    20 'norm      '    15.949       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4638       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.608       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .33048E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11599E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    52.808       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1946       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59119       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=   4574.406     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3237 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.922        .28273E-05** at limit **
   2  Prefactor     30.041        26.383        .37804E-06    .15294E-05
   3  norm          1.1594        1.8027        .21002E-06    .39165E-03
   4  Prefactor     5.7606        16.114        .16919E-06    .59580E-05
   5  Prefactor     14.250        14.927        .29616E-06   -.21982E-05
   6  Prefactor     .10000E-03    12.908       -.33415E-06** at limit **
   7  Prefactor     .10000E-03    19.070        .11343E-06** at limit **
   8  norm          8.5281        4.3516        .34657E-07    .30478E-04
   9  Prefactor     .10000E-03    131.69       -.17838E-05** at limit **
  10  Prefactor     11.301        10.411       -.11972E-07    .16630E-04
  11  norm          29.201        14.742        .93053E-07    .73494E-04
  12  Prefactor     .10000E-03    50.740       -.78687E-06** at limit **
  13  Prefactor     .10000E-03    34.479        .12460E-05** at limit **
  14  Prefactor     .10000E-03    3.9556       -.21467E-07** at limit **
  15  Prefactor     .10000E-03    12.067        .21229E-06** at limit **
  16  Prefactor     .10000E-03    2.7582        .14495E-07** at limit **
  17  norm          .10000E-03    16.309        .22619E-06** at limit **
  18  Prefactor     10.976        6.3218       -.15036E-06   -.24661E-04
  19  Prefactor     1.0682        18.260        .46081E-05    .29513E-03
  20  norm          15.956        12.647        .97169E-07   -.81650E-04
  21  Prefactor     1.4634        3.5454        .98374E-06    .30462E-03
  22  Prefactor     23.610        16.530       -.18798E-06   -.33577E-05
  23  Prefactor     .10030E-03    27.743       -.21490E-05** at limit **
  24  Prefactor     .10006E-03    12.713        .32870E-05** at limit **
  25  Prefactor     .10000E-03    9.1327       -.12164E-06** at limit **
  26  Prefactor     52.808        18.937        .30382E-08    .49361E-04
  27  Prefactor     .10000E-03    43.462       -.26299E-05** at limit **
  28  Normalizat    1.1950        .21463       -.11547E-05   -.67134E-06
  29  Prefactor     .59093        .19460        .97129E-06   -.34191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.0408
  norm       = 1.15939
  Prefactor  = 5.76059
  Prefactor  = 14.2503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.52812
  Prefactor  = 0.0001
  Prefactor  = 11.301
  norm       = 29.2005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9756
  Prefactor  = 1.06816
  norm       = 15.9557
  Prefactor  = 1.46338
  Prefactor  = 23.6099
  Prefactor  = 0.000100304
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 52.8078
  Prefactor  = 0.0001
  Normalizat = 1.19495
  Prefactor  = 0.590928
 **********
 **   18 **HESSE 
 **********

 FCN=   4574.406     FROM HESSE     STATUS=OK           567 CALLS     3804 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.041        26.385        .73132E-04   -1.4611    
   3  norm          1.1594        1.6097        .11061E-02   -1.5493    
   4  Prefactor     5.7606        15.894        .16736E-03   -1.5228    
   5  Prefactor     14.250        14.880        .10609E-03   -1.4953    
   6  Prefactor     .10000E-03    13.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.5281        4.3523        .97488E-04   -1.5124    
   9  Prefactor     .10000E-03    131.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.301        10.408        .11914E-03   -1.5036    
  11  norm          29.201        14.739        .74154E-04   -1.4627    
  12  Prefactor     .10000E-03    50.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9853        .13134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7678        .10968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.976        6.3136        .12093E-03   -1.5045    
  19  Prefactor     1.0682        18.894        .46829E-03   -1.5501    
  20  norm          15.956        12.592        .10029E-03   -1.4909    
  21  Prefactor     1.4634        3.5478        .18760E-03   -1.5466    
  22  Prefactor     23.610        16.493        .82441E-04   -1.4736    
  23  Prefactor     .10030E-03    33.292        .93203E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10006E-03    25.884        .34813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.2314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     52.808        18.894        .55192E-04   -1.4253    
  27  Prefactor     .10000E-03    42.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1950        .25158        .23221E-03   -.86759    
  29  Prefactor     .59093        .22478        .30208E-03   -1.0797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23402e-09
Minuit parameter uncertainties:
  1  4.65541e-05
  2  26.3952
  3  1.60975
  4  15.9053
  5  14.8838
  6  4.59855e-06
  7  5.6799e-06
  8  4.35247
  9  1.45849e-05
  10  10.4096
  11  14.7407
  12  1.11249e-05
  13  6.55401e-06
  14  5.24517e-07
  15  7.82045e-07
  16  3.95374e-07
  17  4.8346e-06
  18  6.31403
  19  8.98766
  20  12.594
  21  3.54831
  22  16.4957
  23  0.00636126
  24  0.00258198
  25  9.44428e-06
  26  18.896
  27  2.30275e-06
  28  0.251838
  29  0.22512
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  2.920e+01  1.474e+01  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:  5.909e-01  2.251e-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.195e+00  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.30
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 6.19e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 2.03e-05

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) = 4573.12115694
delta logL = 1.28470829423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4573.12024961
delta logL = 1.28561561915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.021       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2723       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65614       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=   4573.120     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      294 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.017        13.882        .97079E-04    .37946E-02
   2  alpha         3.2721        .68564        .86469E-02    .45697E-03
   3  Normalizat    1.0963        .24386        .24027E-03   -.29022E-03
   4  Prefactor     .65624        .22516        .28782E-03   -.51560E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.0173
  alpha      = 3.2721
  Normalizat = 1.09631
  Prefactor  = 0.65624
 **********
 **   18 **HESSE 
 **********

 FCN=   4573.120     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.017        12.731        .19416E-04   -1.4883    
   2  alpha         3.2721        .62970        .34588E-03    .31397    
   3  Normalizat    1.0963        .24362        .48054E-04   -.89870    
   4  Prefactor     .65624        .22494        .57564E-04   -1.0527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11571e-09
Minuit parameter uncertainties:
  1  12.7329
  2  0.637301
  3  0.243874
  4  0.225252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995175': 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) = 4573.12024859
delta logL = 1.2856166407

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.702e+01  1.273e+01  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  3.272e+00  6.373e-01  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.562e-01  2.253e-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.096e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.22
Ra Dec: 241.158 57.238
Photon Index (Free Index): 3.27 +/- 0.64
Photon Flux (Free Index): 2.12e-07 +/- 9.49e-08
Energy Flux (Free Index): 3.89e-05 +/- 1.57e-05

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/995175/cmap_HighResolution_257731201_257990401_4FGL_J1604.6+5714_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='3.89e-05', photon_flux_error='6.19e-08', dlogl='1.29e+00', energy_flux='4.02e-05', photon_flux2='2.12e-07', job_status='DONE', time_completed='2021-09-13 06:30:39.365440', photon_index_error2='0.64', photon_index2='3.27', ts='8.30', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.19', time_epoch_completed='1631539839.37', return_code='0', job_id='995175', GAL2='0.66', EG2='1.10', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='9.49e-08', ts2='11.22', photon_index='2.35' WHERE bin_id='71' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 06:30:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 995175: <4FGL_J1604.6+5714_daily_bin71> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin71> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 13 06:15:22 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 06:15: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 06:15:48 2021
Terminated at Mon Sep 13 06:30:40 2021
Results reported at Mon Sep 13 06:30:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin71 241.158 57.2381 257731201 257990401 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 :                                   652.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            918 sec.

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

