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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin674
RA = 241.158, Dec = 57.2381
tmin = 414028801, tmax = 414288001
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='7610', job_status='RUN', time_executed='2021-09-13 07:04:53.200283', time_epoch_executed='1631541893.2' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7610/ft1_4FGL_J1604.6+5714_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7610/ft2_4FGL_J1604.6+5714_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7610/ft1_4FGL_J1604.6+5714_daily_bin674.fits outfile=/scratch/kocevski/7610/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin674.fits ra=241.158 dec=57.2381 rad=12.0 tmin=414028801.0 tmax=414288001.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.32
user 5.02
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7610/ft1_filtered_4FGL_J1604.6+5714_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/7610/ft2_4FGL_J1604.6+5714_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/7610/ltcube_414028801_414288001_4FGL_J1604.6+5714_daily_bin674.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/7610/ft2_4FGL_J1604.6+5714_daily_bin674.fits
.....................!
real 15.07
user 14.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7610/ft1_filtered_4FGL_J1604.6+5714_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/7610/ft2_4FGL_J1604.6+5714_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/7610/ltcube_414028801_414288001_4FGL_J1604.6+5714_daily_bin674.fits outfile=/scratch/kocevski/7610/expmap_414028801_414288001_4FGL_J1604.6+5714_daily_bin674.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/7610/ltcube_414028801_414288001_4FGL_J1604.6+5714_daily_bin674.fits
.....................!
real 191.82
user 186.71
sys 4.72

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/7610/ft1_filtered_4FGL_J1604.6+5714_daily_bin674.fits scfile=/scratch/kocevski/7610/ft2_4FGL_J1604.6+5714_daily_bin674.fits outfile=/scratch/kocevski/7610/cmap_414028801_414288001_4FGL_J1604.6+5714_daily_bin674.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7610/ft1_filtered_4FGL_J1604.6+5714_daily_bin674.fits scfile=/scratch/kocevski/7610/ft2_4FGL_J1604.6+5714_daily_bin674.fits outfile=/scratch/kocevski/7610/cmap_HighResolution_414028801_414288001_4FGL_J1604.6+5714_daily_bin674.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1037       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.1100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.990       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1071       1.0000         .10000E-03   10000.    
    11 'norm      '    16.845       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6985       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9028       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.570       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9453       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1765       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .58196E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1135       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.780       1.0000         .10000E-03   10000.    
    27 'Prefactor '    185.81       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84171       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1303       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=   4101.076     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3795 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.037        .12276E-06** at limit **
   2  Prefactor     1.1042        22.317        .81249E-05    .92372E-04
   3  norm          .10000E-03    1.0715       -.59858E-07** at limit **
   4  Prefactor     .10000E-03    4.1815       -.77282E-07** at limit **
   5  Prefactor     .10000E-03    5.8854       -.17156E-06** at limit **
   6  Prefactor     .10000E-03    13.173       -.21590E-06** at limit **
   7  Prefactor     .10000E-03    26.144        .57124E-06** at limit **
   8  norm          7.1100        4.0601        .23871E-07    .17219E-04
   9  Prefactor     82.988        113.75        .68655E-07    .24116E-05
  10  Prefactor     4.1070        8.6708        .19551E-07    .24963E-04
  11  norm          16.844        12.207        .11545E-06    .71822E-04
  12  Prefactor     3.6943        216.96       -.95539E-06    .77604E-05
  13  Prefactor     .10000E-03    61.650        .19586E-05** at limit **
  14  Prefactor     7.9035        11.258       -.17249E-07   -.52827E-05
  15  Prefactor     14.571        36.598       -.13905E-07   -.21491E-05
  16  Prefactor     .10000E-03    7.4922       -.40148E-06** at limit **
  17  norm          1.9238        88.290        .47408E-06   -.75632E-07
  18  Prefactor     6.1769        6.1519        .16305E-06    .31781E-04
  19  Prefactor     .10099E-03    12.967       -.40133E-05** at limit **
  20  norm          4.1135        7.8065        .82333E-06   -.26049E-04
  21  Prefactor     .10000E-03    1.2577       -.23888E-07** at limit **
  22  Prefactor     .10000E-03    6.8669       -.54186E-07** at limit **
  23  Prefactor     .10000E-03    24.432        .25558E-06** at limit **
  24  Prefactor     .10000E-03    6.1169        .24253E-06** at limit **
  25  Prefactor     .10000E-03    49.273        .11326E-04** at limit **
  26  Prefactor     22.774        21.125        .57638E-06   -.18616E-03
  27  Prefactor     185.72        180.46       -.20490E-05   -.56091E-04
  28  Normalizat    .84188        .20711       -.35111E-06   -.22414E-04
  29  Prefactor     1.1302        .20874       -.87375E-07   -.83364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.10421
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.10998
  Prefactor  = 82.9882
  Prefactor  = 4.10698
  norm       = 16.8439
  Prefactor  = 3.69429
  Prefactor  = 0.000100001
  Prefactor  = 7.9035
  Prefactor  = 14.5711
  Prefactor  = 0.0001
  norm       = 1.92379
  Prefactor  = 6.17691
  Prefactor  = 0.000100992
  norm       = 4.11351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.774
  Prefactor  = 185.719
  Normalizat = 0.841877
  Prefactor  = 1.13017
 **********
 **   18 **HESSE 
 **********

 FCN=   4101.076     FROM HESSE     STATUS=OK           555 CALLS     4350 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1042        22.733        .22571E-02   -1.5498    
   3  norm          .10000E-03    1.1234        .12943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1918        .12788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9383        .15160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.1100        4.0572        .88927E-04   -1.5175    
   9  Prefactor     82.988        113.95        .44092E-04   -1.3883    
  10  Prefactor     4.1070        8.6357        .19892E-03   -1.5303    
  11  norm          16.844        12.139        .97584E-04   -1.4887    
  12  Prefactor     3.6943        213.83        .21000E-03   -1.5324    
  13  Prefactor     .10000E-03    61.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9035        11.263        .14263E-03   -1.5146    
  15  Prefactor     14.571        36.636        .10493E-03   -1.4944    
  16  Prefactor     .10000E-03    7.5752        .17100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9238        88.834        .29760E-03   -1.5431    
  18  Prefactor     6.1769        6.1481        .76597E-03   -1.5211    
  19  Prefactor     .10099E-03    9.9982        .55612E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1135        7.7966        .99380E-03   -1.5302    
  21  Prefactor     .10000E-03    1.2595        .70137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.8803        .16390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.2082        .15461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    49.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.774        21.001        .83924E-04   -1.4753    
  27  Prefactor     185.72        179.98        .14811E-03   -1.2974    
  28  Normalizat    .84188        .24311        .25461E-03   -.98534    
  29  Prefactor     1.1302        .24495        .23129E-03   -.88508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73847e-10
Minuit parameter uncertainties:
  1  4.32429e-05
  2  10.0243
  3  2.8351e-07
  4  5.31005e-08
  5  1.20484e-06
  6  4.10673e-06
  7  0.000147125
  8  4.05735
  9  114.253
  10  8.63828
  11  12.141
  12  56.4244
  13  0.000584768
  14  11.2661
  15  36.6928
  16  5.34656e-07
  17  26.1864
  18  6.14869
  19  0.00629931
  20  7.79852
  21  2.50524e-07
  22  2.83217e-06
  23  9.1899e-05
  24  7.85136e-06
  25  0.000422022
  26  21.0077
  27  180.513
  28  0.243427
  29  0.245197
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.684e+01  1.214e+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:  1.130e+00  2.452e-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:  8.419e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.24
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 7.08e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.67e-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) = 4101.06990742
delta logL = 0.00598064291444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4101.06920277
delta logL = 0.00668528991537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.816       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2594       1.0000          .0000       5.0000    
     3 'Normalizat'    .84949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1257       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=   4101.069     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.794        346.06        .24418E-02    .32931E-03
   2  alpha         2.2576        2.8672        .41395       -.36019E-06
   3  Normalizat    .84969        .26032        .44253E-01    .84198E-05
   4  Prefactor     1.1256        .15240        .52409E-01   -.68690E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 16.7936
  alpha      = 2.25757
  Normalizat = 0.849693
  Prefactor  = 1.12559
 **********
 **   18 **HESSE 
 **********

 FCN=   4101.069     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.794        11.583        .48835E-03   -1.4888    
   2  alpha         2.2576        .77094        .14532E-01   -.97124E-01
   3  Normalizat    .84969        .24340        .25357E-03   -.98251    
   4  Prefactor     1.1256        .24485        .23171E-03   -.88653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80523e-13
Minuit parameter uncertainties:
  1  11.5841
  2  0.783844
  3  0.243712
  4  0.245096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7610': 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) = 4101.06919862
delta logL = 0.00668943801884

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.679e+01  1.158e+01  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.258e+00  7.838e-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.126e+00  2.451e-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:  8.497e-01  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.25
Ra Dec: 241.158 57.238
Photon Index (Free Index): 2.26 +/- 0.78
Photon Flux (Free Index): 6.46e-08 +/- 6.81e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.65e-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/7610/cmap_HighResolution_414028801_414288001_4FGL_J1604.6+5714_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-08', energy_flux2='2.35e-05', photon_flux_error='5.10e-08', dlogl='6.69e-03', energy_flux='2.32e-05', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-09-13 07:16:16.874979', photon_index_error2='0.78', photon_index2='2.26', ts='5.24', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='0.84', time_epoch_completed='1631542576.88', return_code='0', job_id='7610', GAL2='1.13', EG2='0.85', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.81e-08', ts2='5.25', photon_index='2.35' WHERE bin_id='674' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:16:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 7610: <4FGL_J1604.6+5714_daily_bin674> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin674> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep 13 07:00:25 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:01:05 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:01:05 2021
Terminated at Mon Sep 13 07:16:17 2021
Results reported at Mon Sep 13 07:16:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin674 241.158 57.2381 414028801 414288001 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 :                                   682.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            952 sec.

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

