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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1283
RA = 241.158, Dec = 57.2381
tmin = 571881601, tmax = 572140801
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='14449', job_status='RUN', time_executed='2021-09-13 07:26:12.621258', time_epoch_executed='1631543172.62' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14449

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14449/ft1_4FGL_J1604.6+5714_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14449/ft2_4FGL_J1604.6+5714_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14449/ft1_4FGL_J1604.6+5714_daily_bin1283.fits outfile=/scratch/kocevski/14449/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1283.fits ra=241.158 dec=57.2381 rad=12.0 tmin=571881601.0 tmax=572140801.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.42
user 2.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14449/ft1_filtered_4FGL_J1604.6+5714_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/14449/ft2_4FGL_J1604.6+5714_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/14449/ltcube_571881601_572140801_4FGL_J1604.6+5714_daily_bin1283.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/14449/ft2_4FGL_J1604.6+5714_daily_bin1283.fits
.....................!
real 15.25
user 14.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14449/ft1_filtered_4FGL_J1604.6+5714_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/14449/ft2_4FGL_J1604.6+5714_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/14449/ltcube_571881601_572140801_4FGL_J1604.6+5714_daily_bin1283.fits outfile=/scratch/kocevski/14449/expmap_571881601_572140801_4FGL_J1604.6+5714_daily_bin1283.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/14449/ltcube_571881601_572140801_4FGL_J1604.6+5714_daily_bin1283.fits
.....................!
real 191.24
user 186.71
sys 4.15

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/14449/ft1_filtered_4FGL_J1604.6+5714_daily_bin1283.fits scfile=/scratch/kocevski/14449/ft2_4FGL_J1604.6+5714_daily_bin1283.fits outfile=/scratch/kocevski/14449/cmap_571881601_572140801_4FGL_J1604.6+5714_daily_bin1283.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14449/ft1_filtered_4FGL_J1604.6+5714_daily_bin1283.fits scfile=/scratch/kocevski/14449/ft2_4FGL_J1604.6+5714_daily_bin1283.fits outfile=/scratch/kocevski/14449/cmap_HighResolution_571881601_572140801_4FGL_J1604.6+5714_daily_bin1283.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.018       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8602       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9861       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9602       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.8782       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3980       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4950       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0451       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8639       1.0000         .10000E-03   10000.    
    20 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9145       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2931       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74885       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1183       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=   7745.686     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3659 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.995        64.179        .81893E-08   -.51340E-04
   2  Prefactor     .10000E-03    3.6525        .11081E-07** at limit **
   3  norm          .10000E-03    .62487        .11863E-06** at limit **
   4  Prefactor     13.671        12.043        .55457E-07   -.99701E-05
   5  Prefactor     7.8578        9.3090        .35042E-06   -.21971E-04
   6  Prefactor     .10000E-03    5.5167        .15603E-06** at limit **
   7  Prefactor     8.9887        18.018        .27754E-06    .71712E-05
   8  norm          5.9602        2.5847        .45349E-07   -.18567E-04
   9  Prefactor     .10000E-03    17.602        .10946E-06** at limit **
  10  Prefactor     .10000E-03    2.5658        .43061E-07** at limit **
  11  norm          9.8784        5.6535        .62636E-08   -.25703E-04
  12  Prefactor     .10000E-03    17.941        .20888E-06** at limit **
  13  Prefactor     9.2011        104.55       -.10241E-04   -.72440E-04
  14  Prefactor     6.3988        6.0030        .23887E-05   -.21703E-03
  15  Prefactor     .10000E-03    17.251       -.10835E-05** at limit **
  16  Prefactor     9.4972        6.2921        .15870E-05   -.23208E-03
  17  norm          .10000E-03    10.339        .10227E-07** at limit **
  18  Prefactor     2.0456        3.6757        .26758E-06   -.90877E-04
  19  Prefactor     3.8640        5.6181        .52764E-06   -.48896E-04
  20  norm          .10000E-03    12.240        .78518E-06** at limit **
  21  Prefactor     5.9147        3.0895       -.59964E-07   -.66584E-04
  22  Prefactor     3.2936        9.7267        .75758E-06   -.16777E-04
  23  Prefactor     .10000E-03    3.9689        .95120E-07** at limit **
  24  Prefactor     .10000E-03    8.5385        .81463E-06** at limit **
  25  Prefactor     .10000E-03    3.7914        .39301E-06** at limit **
  26  Prefactor     .10000E-03    1.8921        .76405E-07** at limit **
  27  Prefactor     .10000E-03    19.738        .10325E-06** at limit **
  28  Normalizat    .74887        .16601       -.10923E-05   -.77540E-04
  29  Prefactor     1.1183        .15873       -.41640E-06   -.10330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.9947
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6714
  Prefactor  = 7.85781
  Prefactor  = 0.0001
  Prefactor  = 8.98872
  norm       = 5.96023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.87838
  Prefactor  = 0.0001
  Prefactor  = 9.20111
  Prefactor  = 6.39876
  Prefactor  = 0.0001
  Prefactor  = 9.49718
  norm       = 0.0001
  Prefactor  = 2.04563
  Prefactor  = 3.86401
  norm       = 0.0001
  Prefactor  = 5.91469
  Prefactor  = 3.29358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.748875
  Prefactor  = 1.11832
 **********
 **   18 **HESSE 
 **********

 FCN=   7745.686     FROM HESSE     STATUS=OK           553 CALLS     4212 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.995        64.260        .22589E-03   -1.3928    
   2  Prefactor     .10000E-03    3.6527        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.0255        .13549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.671        11.989        .10834E-03   -1.4968    
   5  Prefactor     7.8578        9.2941        .14302E-03   -1.5147    
   6  Prefactor     .10000E-03    5.5299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9887        18.009        .13370E-03   -1.5108    
   8  norm          5.9602        2.5849        .90243E-04   -1.5220    
   9  Prefactor     .10000E-03    17.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5790        .13760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.8784        5.6549        .12750E-03   -1.5079    
  12  Prefactor     .10000E-03    17.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.2011        108.25        .13150E-03   -1.5101    
  14  Prefactor     6.3988        6.0013        .79339E-03   -1.5202    
  15  Prefactor     .10000E-03    17.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4972        6.2884        .65027E-03   -1.5092    
  17  norm          .10000E-03    10.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0456        3.6527        .21468E-03   -1.5422    
  19  Prefactor     3.8640        5.6140        .20529E-03   -1.5315    
  20  norm          .10000E-03    12.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9147        3.0751        .10448E-03   -1.5222    
  22  Prefactor     3.2936        9.6999        .22311E-03   -1.5345    
  23  Prefactor     .10000E-03    3.9753        .17123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.8849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.9084        .33464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.8987        .11823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    19.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .74887        .19458        .26668E-03   -1.0199    
  29  Prefactor     1.1183        .18677        .22319E-03   -.88883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49206e-10
Minuit parameter uncertainties:
  1  64.317
  2  8.32025e-07
  3  1.97871e-06
  4  11.9915
  5  9.29585
  6  8.66558e-08
  7  18.0195
  8  2.58495
  9  1.62707e-05
  10  4.2514e-07
  11  5.65525
  12  1.81793e-05
  13  63.2625
  14  6.00183
  15  0.00014141
  16  6.2888
  17  3.27036e-05
  18  3.65313
  19  5.61476
  20  1.33231e-05
  21  3.07516
  22  9.70454
  23  1.62053e-06
  24  2.59279e-05
  25  7.28194e-06
  26  9.87162e-07
  27  8.77254e-06
  28  0.194761
  29  0.186877
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  9.878e+00  5.655e+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:  1.118e+00  1.869e-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:  7.489e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.32
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 7.79e-06

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) = 7745.56032935
delta logL = 0.126052215848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7745.55832924
delta logL = 0.128052322891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7807       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0572       1.0000          .0000       5.0000    
     3 'Normalizat'    .76355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1094       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=   7745.558     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7789        8.3827        .32033E-02    .37027E-04
   2  alpha         2.0570        .66095        .41998       -.10868E-04
   3  Normalizat    .76338        .15776        .43133E-01    .34165E-04
   4  Prefactor     1.1095        .15743        .37239E-01   -.28531E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.77887
  alpha      = 2.05696
  Normalizat = 0.763381
  Prefactor  = 1.10947
 **********
 **   18 **HESSE 
 **********

 FCN=   7745.558     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7789        5.9837        .12813E-03   -1.5082    
   2  alpha         2.0570        .56645        .15960E-01   -.17816    
   3  Normalizat    .76338        .18371        .26436E-03   -1.0144    
   4  Prefactor     1.1095        .18356        .22397E-03   -.89164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4432e-10
Minuit parameter uncertainties:
  1  5.98409
  2  0.571574
  3  0.183858
  4  0.183664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14449': 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) = 7745.55832747
delta logL = 0.128054100191

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  9.779e+00  5.984e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.057e+00  5.716e-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:  1.109e+00  1.837e-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:  7.634e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.56
Ra Dec: 241.158 57.238
Photon Index (Free Index): 2.06 +/- 0.57
Photon Flux (Free Index): 3.15e-08 +/- 2.66e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/14449/cmap_HighResolution_571881601_572140801_4FGL_J1604.6+5714_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='1.51e-05', photon_flux_error='2.38e-08', dlogl='1.28e-01', energy_flux='1.36e-05', photon_flux2='3.15e-08', job_status='DONE', time_completed='2021-09-13 07:42:07.102662', photon_index_error2='0.57', photon_index2='2.06', ts='9.32', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='0.75', time_epoch_completed='1631544127.1', return_code='0', job_id='14449', GAL2='1.11', EG2='0.76', return_code2='0', energy_flux_error='7.79e-06', photon_flux_error2='2.66e-08', ts2='9.56', photon_index='2.35' WHERE bin_id='1283' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:42:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 14449: <4FGL_J1604.6+5714_daily_bin1283> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1283> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep 13 07:25:33 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:25:55 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:25:55 2021
Terminated at Mon Sep 13 07:42:07 2021
Results reported at Mon Sep 13 07:42:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1283 241.158 57.2381 571881601 572140801 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 :                                   943.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            994 sec.

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

