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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1106
RA = 241.158, Dec = 57.2381
tmin = 526003201, tmax = 526262401
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='13038', job_status='RUN', time_executed='2021-09-13 07:21:08.994386', time_epoch_executed='1631542868.99' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13038

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13038/ft1_4FGL_J1604.6+5714_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13038/ft2_4FGL_J1604.6+5714_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13038/ft1_4FGL_J1604.6+5714_daily_bin1106.fits outfile=/scratch/kocevski/13038/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1106.fits ra=241.158 dec=57.2381 rad=12.0 tmin=526003201.0 tmax=526262401.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.25
user 3.03
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13038/ft1_filtered_4FGL_J1604.6+5714_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/13038/ft2_4FGL_J1604.6+5714_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/13038/ltcube_526003201_526262401_4FGL_J1604.6+5714_daily_bin1106.fits outfile=/scratch/kocevski/13038/expmap_526003201_526262401_4FGL_J1604.6+5714_daily_bin1106.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/13038/ltcube_526003201_526262401_4FGL_J1604.6+5714_daily_bin1106.fits
.....................!
real 159.47
user 154.77
sys 4.35

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/13038/ft1_filtered_4FGL_J1604.6+5714_daily_bin1106.fits scfile=/scratch/kocevski/13038/ft2_4FGL_J1604.6+5714_daily_bin1106.fits outfile=/scratch/kocevski/13038/cmap_526003201_526262401_4FGL_J1604.6+5714_daily_bin1106.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.52
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13038/ft1_filtered_4FGL_J1604.6+5714_daily_bin1106.fits scfile=/scratch/kocevski/13038/ft2_4FGL_J1604.6+5714_daily_bin1106.fits outfile=/scratch/kocevski/13038/cmap_HighResolution_526003201_526262401_4FGL_J1604.6+5714_daily_bin1106.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.51
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78835E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.5318       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7912       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19541E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.073       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17240E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9576       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5589       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5121       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.7325       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4792       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87749       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2705       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=   7410.901     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3728 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.294       -.96419E-06** at limit **
   2  Prefactor     .10000E-03    3.9647        .14812E-07** at limit **
   3  norm          3.5351        1.8314       -.65399E-08   -.11388E-03
   4  Prefactor     .88132E-01    4.4590        .10513E-05   -.80074E-03
   5  Prefactor     .10000E-03    3.7132       -.62269E-07** at limit **
   6  Prefactor     .10000E-03    13.671       -.59619E-05** at limit **
   7  Prefactor     .10000E-03    8.1753       -.13770E-05** at limit **
   8  norm          1.1466        1.4736       -.10414E-06   -.30540E-03
   9  Prefactor     .10000E-03    137.85        .12083E-04** at limit **
  10  Prefactor     .10000E-03    12.625        .11964E-04** at limit **
  11  norm          6.5321        6.2428        .10696E-06   -.10073E-02
  12  Prefactor     .10000E-03    11.479       -.81351E-05** at limit **
  13  Prefactor     3.5831        215.05       -.18903E-04   -.26874E-04
  14  Prefactor     .10000E-03    9.4031        .24675E-05** at limit **
  15  Prefactor     12.076        29.468        .75873E-06   -.39604E-03
  16  Prefactor     .10000E-03    3.3795        .86901E-06** at limit **
  17  norm          2.9635        15.102       -.22492E-05   -.14513E-03
  18  Prefactor     5.5596        5.4360       -.27779E-05   -.48104E-03
  19  Prefactor     2.5121        4.9742        .24824E-05   -.82372E-03
  20  norm          .10000E-03    5.2644       -.45871E-07** at limit **
  21  Prefactor     .10000E-03    1.6981        .15335E-06** at limit **
  22  Prefactor     .10000E-03    3.6392       -.42927E-07** at limit **
  23  Prefactor     7.7319        12.340        .14001E-06   -.89464E-04
  24  Prefactor     .10000E-03    4.1284       -.97969E-07** at limit **
  25  Prefactor     .10000E-03    1.3556        .14727E-07** at limit **
  26  Prefactor     4.4793        4.2580        .28717E-06    .15764E-03
  27  Prefactor     .10000E-03    25.510        .71799E-06** at limit **
  28  Normalizat    .87759        .16170       -.34761E-06   -.47887E-03
  29  Prefactor     1.2703        .16033        .38044E-06   -.45481E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.53506
  Prefactor  = 0.0881322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1466
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.5321
  Prefactor  = 0.0001
  Prefactor  = 3.58308
  Prefactor  = 0.0001
  Prefactor  = 12.076
  Prefactor  = 0.0001
  norm       = 2.96351
  Prefactor  = 5.55958
  Prefactor  = 2.51215
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.73194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.47929
  Prefactor  = 0.0001
  Normalizat = 0.877591
  Prefactor  = 1.27033
 **********
 **   18 **HESSE 
 **********

 FCN=   7410.901     FROM HESSE     STATUS=OK           555 CALLS     4283 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9655        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5351        1.8315        .81497E-04   -1.5332    
   4  Prefactor     .88132E-01    7.7608        .60611E-01   -1.5649    
   5  Prefactor     .10000E-03    3.7409        .16172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1466        1.4455        .11515E-03   -1.5494    
   9  Prefactor     .10000E-03    138.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.5321        6.2233        .15703E-03   -1.5197    
  12  Prefactor     .10000E-03    11.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5831        211.43        .20732E-03   -1.5329    
  14  Prefactor     .10000E-03    9.5575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.076        29.255        .57645E-03   -1.5013    
  16  Prefactor     .10000E-03    7.9106        .30061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9635        15.164        .23613E-03   -1.5364    
  18  Prefactor     5.5596        5.4406        .17040E-03   -1.5236    
  19  Prefactor     2.5121        4.8568        .25254E-03   -1.5391    
  20  norm          .10000E-03    5.3595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7215        .10948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6500        .16038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.7319        12.327        .14421E-03   -1.5152    
  24  Prefactor     .10000E-03    4.1794        .17078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.3591        .97876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.4793        4.2663        .16895E-03   -1.5285    
  27  Prefactor     .10000E-03    25.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87759        .19168        .25911E-03   -.97252    
  29  Prefactor     1.2703        .19079        .22694E-03   -.84194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04379e-09
Minuit parameter uncertainties:
  1  1.08849e-05
  2  1.42656e-07
  3  1.83153
  4  1.65334
  5  1.11577e-05
  6  1.9517e-05
  7  1.31918e-06
  8  1.44559
  9  7.74234e-05
  10  0.000184186
  11  6.22389
  12  7.71431e-06
  13  55.2535
  14  7.22962e-05
  15  29.2894
  16  7.88624e-05
  17  13.4123
  18  5.44106
  19  4.85752
  20  4.96183e-06
  21  1.80836e-05
  22  1.48293e-06
  23  12.3315
  24  1.44142e-06
  25  1.1033e-06
  26  4.2666
  27  7.22606e-06
  28  0.191831
  29  0.190892
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  6.532e+00  6.224e+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.270e+00  1.909e-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.776e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 2.75e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 8.99e-06 +/- 8.57e-06

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

Saving results to:
/scratch/kocevski/13038/likelihoodResults_526003201_526262401_4FGL_J1604.6+5714_daily_bin1106.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7410.54578116
delta logL = 0.354904004306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7410.54526448
delta logL = 0.355420685715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2177       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1050       1.0000          .0000       5.0000    
     3 'Normalizat'    .84215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2926       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=   7410.545     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      290 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2188        6.2355        .13950E-03   -.97046E-03
   2  alpha         3.1055        .99600        .17566E-01   -.73242E-04
   3  Normalizat    .84208        .18957        .26395E-03    .48665E-03
   4  Prefactor     1.2926        .19145        .22525E-03    .64689E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.2188
  alpha      = 3.10547
  Normalizat = 0.842076
  Prefactor  = 1.29262
 **********
 **   18 **HESSE 
 **********

 FCN=   7410.545     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2188        5.6131        .55800E-05   -1.5251    
   2  alpha         3.1055        .90016        .70265E-03    .24462    
   3  Normalizat    .84208        .18947        .52790E-04   -.98526    
   4  Prefactor     1.2926        .19137        .45050E-04   -.83527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36034e-10
Minuit parameter uncertainties:
  1  5.61368
  2  0.922218
  3  0.189621
  4  0.191472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13038': 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) = 7410.5452639
delta logL = 0.355421265126

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  5.219e+00  5.614e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  3.105e+00  9.222e-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.293e+00  1.915e-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.421e-01  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 241.158 57.238
Photon Index (Free Index): 3.11 +/- 0.92
Photon Flux (Free Index): 5.24e-08 +/- 4.49e-08
Energy Flux (Free Index): 1.03e-05 +/- 7.78e-06

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/13038/cmap_HighResolution_526003201_526262401_4FGL_J1604.6+5714_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', comment='SUCCESS', photon_flux='2.75e-08', energy_flux2='1.03e-05', photon_flux_error='2.61e-08', dlogl='3.55e-01', energy_flux='8.99e-06', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-09-13 07:36:24.512918', photon_index_error2='0.92', photon_index2='3.11', ts='1.81', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='8.73e-08', energy_flux_error2='7.78e-06', EG='0.88', time_epoch_completed='1631543784.51', return_code='0', job_id='13038', GAL2='1.29', EG2='0.84', return_code2='0', energy_flux_error='8.57e-06', photon_flux_error2='4.49e-08', ts2='2.58', photon_index='2.35' WHERE bin_id='1106' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:36:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 13038: <4FGL_J1604.6+5714_daily_bin1106> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1106> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 13 07:20:26 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:20:57 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:20:57 2021
Terminated at Mon Sep 13 07:36:25 2021
Results reported at Mon Sep 13 07:36:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1106 241.158 57.2381 526003201 526262401 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 :                                   908.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            959 sec.

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

