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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin3
RA = 241.158, Dec = 57.2381
tmin = 240105601, tmax = 240364801
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='993732', job_status='RUN', time_executed='2021-09-13 06:12:59.157729', time_epoch_executed='1631538779.16' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993732/ft1_4FGL_J1604.6+5714_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993732/ft2_4FGL_J1604.6+5714_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993732/ft1_4FGL_J1604.6+5714_daily_bin3.fits outfile=/scratch/kocevski/993732/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin3.fits ra=241.158 dec=57.2381 rad=12.0 tmin=240105601.0 tmax=240364801.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.45
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993732/ft1_filtered_4FGL_J1604.6+5714_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/993732/ft2_4FGL_J1604.6+5714_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/993732/ltcube_240105601_240364801_4FGL_J1604.6+5714_daily_bin3.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/993732/ft2_4FGL_J1604.6+5714_daily_bin3.fits
.....................!
real 14.67
user 14.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993732/ft1_filtered_4FGL_J1604.6+5714_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/993732/ft2_4FGL_J1604.6+5714_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/993732/ltcube_240105601_240364801_4FGL_J1604.6+5714_daily_bin3.fits outfile=/scratch/kocevski/993732/expmap_240105601_240364801_4FGL_J1604.6+5714_daily_bin3.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/993732/ltcube_240105601_240364801_4FGL_J1604.6+5714_daily_bin3.fits
.....................!
real 192.38
user 187.38
sys 4.34

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/993732/ft1_filtered_4FGL_J1604.6+5714_daily_bin3.fits scfile=/scratch/kocevski/993732/ft2_4FGL_J1604.6+5714_daily_bin3.fits outfile=/scratch/kocevski/993732/cmap_240105601_240364801_4FGL_J1604.6+5714_daily_bin3.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993732/ft1_filtered_4FGL_J1604.6+5714_daily_bin3.fits scfile=/scratch/kocevski/993732/ft2_4FGL_J1604.6+5714_daily_bin3.fits outfile=/scratch/kocevski/993732/cmap_HighResolution_240105601_240364801_4FGL_J1604.6+5714_daily_bin3.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.065       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9970       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7492       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.075       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2538       1.0000         .10000E-03   10000.    
    11 'norm      '    15.872       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.267       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0704       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3363       1.0000         .10000E-03   10000.    
    17 'norm      '    12.781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5812       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2357       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.680       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.3945       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3086       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65562       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=   6246.781     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3637 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.067        35.739        .20640E-05    .23607E-05
   2  Prefactor     7.9963        13.727        .28427E-07   -.33844E-04
   3  norm          .10000E-03    .84005        .91035E-08** at limit **
   4  Prefactor     3.7489        6.7451       -.56813E-07   -.13751E-04
   5  Prefactor     .10000E-03    3.8961        .31552E-08** at limit **
   6  Prefactor     .10000E-03    7.8911        .13541E-06** at limit **
   7  Prefactor     .10000E-03    15.162        .16723E-05** at limit **
   8  norm          2.0937        2.0770        .12975E-07    .19164E-05
   9  Prefactor     20.075        60.737        .77962E-07   -.26190E-05
  10  Prefactor     9.2539        8.1138        .22717E-08   -.44733E-04
  11  norm          15.872        8.7768        .19303E-06    .39663E-05
  12  Prefactor     27.264        34.318       -.33743E-05   -.31239E-05
  13  Prefactor     .10000E-03    44.572       -.19398E-06** at limit **
  14  Prefactor     6.0703        5.5764        .19363E-06   -.23083E-04
  15  Prefactor     .10000E-03    19.957        .10072E-05** at limit **
  16  Prefactor     4.3359        2.8482        .59264E-07   -.54701E-03
  17  norm          12.782        14.589       -.39531E-07    .37262E-06
  18  Prefactor     2.5811        4.5277       -.35206E-06   -.52137E-04
  19  Prefactor     .10000E-03    3.2305       -.23032E-08** at limit **
  20  norm          .10000E-03    4.7240        .83561E-09** at limit **
  21  Prefactor     .10000E-03    1.2473       -.24080E-08** at limit **
  22  Prefactor     3.2353        8.0984       -.27697E-07   -.13660E-04
  23  Prefactor     .10000E-03    8.2243       -.16096E-06** at limit **
  24  Prefactor     14.680        9.7441       -.62889E-09   -.70644E-04
  25  Prefactor     .10000E-03    1.8304        .20263E-08** at limit **
  26  Prefactor     6.3945        7.2666        .10926E-07   -.19427E-03
  27  Prefactor     .10000E-03    16.597       -.26795E-05** at limit **
  28  Normalizat    1.3086        .17171        .13324E-06   -.51158E-05
  29  Prefactor     .65564        .16546        .67739E-07    .30704E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.0667
  Prefactor  = 7.99628
  norm       = 0.0001
  Prefactor  = 3.7489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.0937
  Prefactor  = 20.0746
  Prefactor  = 9.25393
  norm       = 15.8719
  Prefactor  = 27.2643
  Prefactor  = 0.0001
  Prefactor  = 6.07032
  Prefactor  = 0.0001
  Prefactor  = 4.33588
  norm       = 12.7817
  Prefactor  = 2.58112
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.23529
  Prefactor  = 0.0001
  Prefactor  = 14.6803
  Prefactor  = 0.0001
  Prefactor  = 6.39448
  Prefactor  = 0.0001
  Normalizat = 1.3086
  Prefactor  = 0.655639
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.781     FROM HESSE     STATUS=OK           555 CALLS     4192 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.067        35.750        .69686E-04   -1.4557    
   2  Prefactor     7.9963        13.804        .70892E-03   -1.5142    
   3  norm          .10000E-03    .85421        .70723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7489        6.7451        .20852E-03   -1.5321    
   5  Prefactor     .10000E-03    3.9345        .15227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.9112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0937        2.0702        .10955E-03   -1.5419    
   9  Prefactor     20.075        60.804        .44697E-03   -1.4812    
  10  Prefactor     9.2539        8.1323        .65873E-03   -1.5099    
  11  norm          15.872        8.7882        .10053E-03   -1.4911    
  12  Prefactor     27.264        34.351        .76719E-04   -1.4663    
  13  Prefactor     .10000E-03    44.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0703        5.5626        .16296E-03   -1.5215    
  15  Prefactor     .10000E-03    20.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3359        6.2522        .96720E-03   -1.5291    
  17  norm          12.782        14.688        .11204E-03   -1.4993    
  18  Prefactor     2.5811        4.5219        .21264E-03   -1.5387    
  19  Prefactor     .10000E-03    3.2773        .13868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.7467        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.2694        .86123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.2353        8.0981        .22518E-03   -1.5348    
  23  Prefactor     .10000E-03    8.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.680        9.8568        .52268E-03   -1.4941    
  25  Prefactor     .10000E-03    1.8377        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.3945        7.7876        .79361E-03   -1.5202    
  27  Prefactor     .10000E-03    16.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3086        .20672        .21616E-03   -.83310    
  29  Prefactor     .65564        .19628        .28436E-03   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0854e-10
Minuit parameter uncertainties:
  1  35.7728
  2  13.8099
  3  3.69722e-07
  4  6.74646
  5  1.39744e-06
  6  1.4853e-06
  7  1.49602e-07
  8  2.07032
  9  60.993
  10  8.13328
  11  8.78886
  12  34.376
  13  7.46142e-06
  14  5.56309
  15  1.23391e-05
  16  6.25319
  17  14.692
  18  4.52252
  19  7.83988e-07
  20  4.77635e-08
  21  5.98947e-07
  22  8.10088
  23  1.01226e-07
  24  9.85784
  25  9.50933e-08
  26  7.78887
  27  4.64204e-06
  28  0.206846
  29  0.196484
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.587e+01  8.789e+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

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  6.556e-01  1.965e-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.309e+00  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.92
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.21e-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) = 6246.78126286
delta logL = 0.000110465502075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6246.78125421
delta logL = 0.000119109180559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.891       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3404       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65533       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.

 FCN=   6246.781     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.898        207.65        .25118E-02    .27360E-04
   2  alpha         2.3408        3.2080        .32801        .18353E-04
   3  Normalizat    1.3091        .15217        .48889E-01    .17274E-05
   4  Prefactor     .65535        .12461        .64284E-01    .24808E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.8981
  alpha      = 2.34084
  Normalizat = 1.30907
  Prefactor  = 0.655351
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.781     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.898        8.4224        .10047E-03   -1.4910    
   2  alpha         2.3408        .48920        .12843E-01   -.63707E-01
   3  Normalizat    1.3091        .20348        .21613E-03   -.83296    
   4  Prefactor     .65535        .19421        .28442E-03   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79763e-13
Minuit parameter uncertainties:
  1  8.42303
  2  0.49239
  3  0.203603
  4  0.194411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993732': 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) = 6246.78125324
delta logL = 0.000120087579489

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.590e+01  8.423e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.341e+00  4.924e-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.554e-01  1.944e-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.309e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.97
Ra Dec: 241.158 57.238
Photon Index (Free Index): 2.34 +/- 0.49
Photon Flux (Free Index): 6.63e-08 +/- 4.21e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.18e-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/993732/cmap_HighResolution_240105601_240364801_4FGL_J1604.6+5714_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='2.19e-05', photon_flux_error='3.69e-08', dlogl='1.20e-04', energy_flux='2.19e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2021-09-13 06:26:38.694106', photon_index_error2='0.49', photon_index2='2.34', ts='8.92', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.31', time_epoch_completed='1631539598.69', return_code='0', job_id='993732', GAL2='0.66', EG2='1.31', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.21e-08', ts2='8.97', photon_index='2.35' WHERE bin_id='3' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 06:26:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 993732: <4FGL_J1604.6+5714_daily_bin3> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin3> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 06:10:38 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 06:11:25 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:11:25 2021
Terminated at Mon Sep 13 06:26:39 2021
Results reported at Mon Sep 13 06:26:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin3 241.158 57.2381 240105601 240364801 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 :                                   818.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            961 sec.

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

