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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1309
RA = 242.176, Dec = 10.4938
tmin = 578620801, tmax = 578880001
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='56864', job_status='RUN', time_executed='2021-09-13 09:48:26.843723', time_epoch_executed='1631551706.84' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56864/ft1_4FGL_J1608.7+1029_daily_bin1309.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56864/ft1_4FGL_J1608.7+1029_daily_bin1309.fits outfile=/scratch/kocevski/56864/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1309.fits ra=242.176 dec=10.4938 rad=12.0 tmin=578620801.0 tmax=578880001.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.53
user 3.28
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.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/56864/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1309.fits evtable="EVENTS" outfile="/scratch/kocevski/56864/ft1_filtered_4FGL_J1608.7+1029_daily_bin1309.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56864/ft1_filtered_4FGL_J1608.7+1029_daily_bin1309.fits" evtable="EVENTS" scfile=/scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits sctable="SC_DATA" outfile=/scratch/kocevski/56864/ltcube_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.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/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits
.....................!
real 13.26
user 12.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56864/ft1_filtered_4FGL_J1608.7+1029_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits sctable="SC_DATA" expcube=/scratch/kocevski/56864/ltcube_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.fits outfile=/scratch/kocevski/56864/expmap_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.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/56864/ltcube_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.fits
.....................!
real 190.99
user 185.51
sys 5.06

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1608.7+1029 @ 242.176 10.4938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/56864/ft1_filtered_4FGL_J1608.7+1029_daily_bin1309.fits scfile=/scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits outfile=/scratch/kocevski/56864/cmap_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.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=242.176 yref=10.4938 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56864/ft1_filtered_4FGL_J1608.7+1029_daily_bin1309.fits scfile=/scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits outfile=/scratch/kocevski/56864/cmap_HighResolution_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.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=242.176 yref=10.4938 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56864/ft1_filtered_4FGL_J1608.7+1029_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56864/Model_4FGL_J1608.7+1029_daily_bin1309.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/56864/ft1_filtered_4FGL_J1608.7+1029_daily_bin1309.fits.....................!
real 59.62
user 58.28
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/56864/ft1_filtered_4FGL_J1608.7+1029_daily_bin1309.fits', '/scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits', expMap='/scratch/kocevski/56864/expmap_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.fits', expCube='/scratch/kocevski/56864/ltcube_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/56864/Model_4FGL_J1608.7+1029_daily_bin1309.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1608.7+1029'

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  8.130e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/56864/ft1_filtered_4FGL_J1608.7+1029_daily_bin1309.fits
Spacecraft file(s): /scratch/kocevski/56864/ft2_4FGL_J1608.7+1029_daily_bin1309.fits
Exposure map: /scratch/kocevski/56864/expmap_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.fits
Exposure cube: /scratch/kocevski/56864/ltcube_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/56864/Model_4FGL_J1608.7+1029_daily_bin1309.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) = 7600.28677504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.734       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7658       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.902       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8701       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.362       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9741       1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .42417E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1291       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .72016E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .86345       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88271       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7600.279     FROM MIGRAD    STATUS=FAILED       802 CALLS     2591 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.067        .18142E-02** at limit **
   2  Prefactor     3.1884        57.159        .22706E-03   -.11966E-04
   3  Prefactor     26.736        33.717        .77480E-04    .48421E-05
   4  norm          6.4977        3.1107        .10217E-03    .52518E-04
   5  Prefactor     3.7668        5.1303        .20804E-03    .12645E-03
   6  Prefactor     22.902        28.220        .83701E-04    .25535E-04
   7  norm          4.8701        4.4247        .16543E-03   -.72090E-04
   8  Prefactor     .10000E-03    34.285        .18142E-02** at limit **
   9  norm          14.363        9.0917        .10569E-03    .69490E-04
  10  norm          5.9743        2.2587        .77308E-04    .62940E-04
  11  norm          .10000E-03    5.5176        .18142E-02** at limit **
  12  norm          .10000E-03    62.353        .18142E-02** at limit **
  13  Prefactor     2.3706        16.082        .26650E-03   -.17362E-04
  14  Prefactor     .10000E-03    57.402        .20689    ** at limit **
  15  Prefactor     .10000E-03    10.355        .18142E-02** at limit **
  16  Prefactor     3.1258        8.9005        .22919E-03    .11156E-03
  17  Prefactor     .10056E-03    73.606        .32453E-02** at limit **
  18  Prefactor     .86422        8.4470        .24231E-02   -.13758E-02
  19  Prefactor     .10019E-03    27.178        .35060E-02** at limit **
  20  Normalizat    .88266        .29021        .40247E-03    .53682E-03
  21  Prefactor     1.0824        .12879        .16425E-03    .11937E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7600.279     FROM SIMPLEX   STATUS=UNCHANGED   1008 CALLS     3599 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.067        .71632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1884        57.159        .60282E-06   -1.5351    
   3  Prefactor     26.736        33.717        .57578E-06   -1.4673    
   4  norm          6.4977        3.1107        .59585E-06   -1.5198    
   5  Prefactor     3.7668        5.1303        .60157E-06   -1.5320    
   6  Prefactor     22.902        28.220        .58082E-06   -1.4750    
   7  norm          4.8701        4.4247        .59851E-06   -1.5267    
   8  Prefactor     .10000E-03    34.285        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.363        9.0917        .58566E-06   -1.4950    
  10  norm          5.9743        2.2587        .59627E-06   -1.5219    
  11  norm          .10000E-03    5.5176        .37748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    62.353        .11650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3706        16.082        .61486E-06   -1.5400    
  14  Prefactor     .10000E-03    57.402        .31403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.355        .49838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1258        8.9005        .60758E-06   -1.5354    
  17  Prefactor     .10056E-03    73.606        .41695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .86422        8.4470        .63504E-06   -1.5522    
  19  Prefactor     .10019E-03    27.178        .20413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88266        .29021        .40055E-06   -.97072    
  21  Prefactor     1.0824        .12879        .35397E-06   -.90031    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7600.279     FROM MIGRAD    STATUS=CONVERGED    310 CALLS     3909 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.073        .36285E-03** at limit **
   2  Prefactor     3.1886        57.115        .90825E-05    .25034E-06
   3  Prefactor     26.736        33.715        .30992E-05    .73366E-06
   4  norm          6.4977        3.1106        .40870E-05    .55634E-06
   5  Prefactor     3.7668        5.1290        .83217E-05    .21858E-05
   6  Prefactor     22.902        28.222        .33480E-05    .13583E-06
   7  norm          4.8701        4.4242        .66171E-05    .24053E-05
   8  Prefactor     .10000E-03    34.287        .36285E-03** at limit **
   9  norm          14.363        9.0913        .42275E-05    .26892E-05
  10  norm          5.9743        2.2587        .30923E-05    .29411E-05
  11  norm          .10000E-03    5.5182        .36285E-03** at limit **
  12  norm          .10000E-03    62.354        .36285E-03** at limit **
  13  Prefactor     2.3707        16.074        .10660E-04    .85317E-06
  14  Prefactor     .10000E-03    58.929        .20256    ** at limit **
  15  Prefactor     .10000E-03    10.356        .36285E-03** at limit **
  16  Prefactor     3.1258        8.8926        .91675E-05    .90032E-04
  17  Prefactor     .10000E-03    76.836        .12981E-03** at limit **
  18  Prefactor     .86469        8.4303        .96925E-04    .31200E-04
  19  Prefactor     .10000E-03    27.736        .70120E-03** at limit **
  20  Normalizat    .88265        .29036        .16099E-04    .78246E-04
  21  Prefactor     1.0824        .12880        .32849E-04    .24053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.18856
  Prefactor  = 26.7357
  norm       = 6.49772
  Prefactor  = 3.7668
  Prefactor  = 22.9025
  norm       = 4.87013
  Prefactor  = 0.0001
  norm       = 14.3633
  norm       = 5.97431
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.37069
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 3.12584
  Prefactor  = 0.000100001
  Prefactor  = 0.864695
  Prefactor  = 0.0001
  Normalizat = 0.882653
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********

 FCN=   7600.279     FROM HESSE     STATUS=OK           305 CALLS     4214 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.073        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1886        57.105        .90825E-05   -1.5351    
   3  Prefactor     26.736        33.601        .61984E-06   -1.4673    
   4  norm          6.4977        3.1108        .81739E-06   -1.5198    
   5  Prefactor     3.7668        5.1284        .16643E-05   -1.5320    
   6  Prefactor     22.902        28.224        .33480E-05   -1.4750    
   7  norm          4.8701        4.4247        .13234E-05   -1.5267    
   8  Prefactor     .10000E-03    34.287        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.363        9.0899        .84550E-06   -1.4950    
  10  norm          5.9743        2.2588        .61846E-06   -1.5219    
  11  norm          .10000E-03    5.5182        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    62.354        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3707        16.084        .21320E-05   -1.5400    
  14  Prefactor     .10000E-03    58.619        .20341       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.356        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1258        8.8889        .18335E-05   -1.5354    
  17  Prefactor     .10000E-03    76.843        .25963E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .86469        8.4294        .38770E-05   -1.5522    
  19  Prefactor     .10000E-03    27.759        .14024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88265        .29044        .32197E-05   -.97072    
  21  Prefactor     1.0824        .12884        .65698E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05192e-11
Minuit parameter uncertainties:
  1  5.57577e-06
  2  27.0174
  3  33.6249
  4  3.1109
  5  5.12898
  6  28.2408
  7  4.42496
  8  2.55953e-06
  9  9.09073
  10  2.25883
  11  1.09927e-06
  12  1.27274e-06
  13  12.3545
  14  0.000907335
  15  1.24079e-06
  16  8.89266
  17  0.000646358
  18  5.40026
  19  0.000115051
  20  0.290959
  21  0.128876
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.000e-04  1.099e-06  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.082e+00  1.289e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.827e-01  2.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 242.176 10.494
Photon Flux Upper Limit: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56864/likelihoodResults_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.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): 102
logL (Free Index) = 7600.28031147
delta logL = -0.000863293470502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7600.27945167
delta logL = -3.49117726728e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4671       1.0000          .0000       5.0000    
     3 'Normalizat'    .88254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0823       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7600.007     FROM MIGRAD    STATUS=FAILED       201 CALLS      346 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63147        4.7467        .18142E-01    .21837E-02
   2  alpha         5.0000        4.4435        .16462    ** at limit **
   3  Normalizat    .81710        .41885        .40247E-02   -.15335E-03
   4  Prefactor     1.1005        .15178        .16425E-03   -.33325E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7600.007     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      488 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63147        4.7467        .84485E-06   -1.5549    
   2  alpha         5.0000        4.4435        .63301E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81710        .41885        .69420E-05   -.99438    
   4  Prefactor     1.1005        .15178        .36015E-06   -.89451    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7600.007     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      519 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63145        .94423        .98387E-03   -.33757E-03
   2  alpha         5.0000        3.3135        .65850E-02** at limit **
   3  Normalizat    .81710        .29624        .16099E-03   -.14977E-03
   4  Prefactor     1.1005        .12999        .32849E-04   -.31120E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.631453
  alpha      = 5
  Normalizat = 0.8171
  Prefactor  = 1.10047
 **********
 **   18 **HESSE 
 **********

 FCN=   7600.007     FROM HESSE     STATUS=OK            25 CALLS      544 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63145        .94213        .39355E-04   -1.5549    
   2  alpha         5.0000        3.3135        .13170E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81710        .29583        .32197E-04   -.99437    
   4  Prefactor     1.1005        .12994        .65699E-05   -.89451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68352e-11
Minuit parameter uncertainties:
  1  0.942151
  2  2.38058e-08
  3  0.296416
  4  0.129974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56864': 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) = 7600.00731484
delta logL = 0.272133336041

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  6.315e-01  9.422e-01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  5.000e+00  2.381e-08  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.100e+00  1.300e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.171e-01  2.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 242.176 10.494

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/56864/cmap_HighResolution_578620801_578880001_4FGL_J1608.7+1029_daily_bin1309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-05', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-13 10:01:54.973559', job_id='56864', GAL2='1.10', fit_tolerance='1e-08', EG2='0.82', EG='0.88', time_epoch_completed='1631552514.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.72e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1309' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 10:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 56864: <4FGL_J1608.7+1029_daily_bin1309> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1309> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 09:45:25 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:48:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 09:48:12 2021
Terminated at Mon Sep 13 10:01:55 2021
Results reported at Mon Sep 13 10:01:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1309 242.176 10.4938 578620801 578880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1608.7+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   806.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             328.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            990 sec.

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

