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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1224
RA = 242.176, Dec = 10.4938
tmin = 556588801, tmax = 556848001
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='54960', job_status='RUN', time_executed='2021-09-13 09:44:17.975923', time_epoch_executed='1631551457.98' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54960/ft1_4FGL_J1608.7+1029_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54960/ft2_4FGL_J1608.7+1029_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54960/ft1_4FGL_J1608.7+1029_daily_bin1224.fits outfile=/scratch/kocevski/54960/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1224.fits ra=242.176 dec=10.4938 rad=12.0 tmin=556588801.0 tmax=556848001.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.70
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54960/ft1_filtered_4FGL_J1608.7+1029_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/54960/ft2_4FGL_J1608.7+1029_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/54960/ltcube_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.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/54960/ft2_4FGL_J1608.7+1029_daily_bin1224.fits
.....................!
real 13.26
user 12.46
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54960/ft1_filtered_4FGL_J1608.7+1029_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/54960/ft2_4FGL_J1608.7+1029_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/54960/ltcube_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.fits outfile=/scratch/kocevski/54960/expmap_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.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/54960/ltcube_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.fits
.....................!
real 192.58
user 187.62
sys 4.45

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/54960/ft1_filtered_4FGL_J1608.7+1029_daily_bin1224.fits scfile=/scratch/kocevski/54960/ft2_4FGL_J1608.7+1029_daily_bin1224.fits outfile=/scratch/kocevski/54960/cmap_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54960/ft1_filtered_4FGL_J1608.7+1029_daily_bin1224.fits scfile=/scratch/kocevski/54960/ft2_4FGL_J1608.7+1029_daily_bin1224.fits outfile=/scratch/kocevski/54960/cmap_HighResolution_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54960/ft1_filtered_4FGL_J1608.7+1029_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/54960/ft2_4FGL_J1608.7+1029_daily_bin1224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54960/Model_4FGL_J1608.7+1029_daily_bin1224.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/54960/ft1_filtered_4FGL_J1608.7+1029_daily_bin1224.fits......................!
real 35.64
user 34.37
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/54960/ft1_filtered_4FGL_J1608.7+1029_daily_bin1224.fits', '/scratch/kocevski/54960/ft2_4FGL_J1608.7+1029_daily_bin1224.fits', expMap='/scratch/kocevski/54960/expmap_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.fits', expCube='/scratch/kocevski/54960/ltcube_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/54960/Model_4FGL_J1608.7+1029_daily_bin1224.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/54960/ft1_filtered_4FGL_J1608.7+1029_daily_bin1224.fits
Spacecraft file(s): /scratch/kocevski/54960/ft2_4FGL_J1608.7+1029_daily_bin1224.fits
Exposure map: /scratch/kocevski/54960/expmap_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.fits
Exposure cube: /scratch/kocevski/54960/ltcube_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/54960/Model_4FGL_J1608.7+1029_daily_bin1224.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) = 3585.62359621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.342       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.586       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10431E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .30424E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5808       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7697       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.545       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .92314       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.788       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.212       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.625       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .56758       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0817       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3585.525     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1872 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.305        4.8730        .18623E-05   -.19858E-03
   2  Prefactor     .10063E-03    19.124        .23095E-04** at limit **
   3  Prefactor     .10000E-03    15.601        .58025E-07** at limit **
   4  norm          .10000E-03    2.2623        .10943E-05** at limit **
   5  Prefactor     20.586        8.6255       -.75803E-05   -.56963E-02
   6  Prefactor     .10030E-03    18.889       -.11946E-04** at limit **
   7  norm          .10000E-03    8.9722       -.42112E-06** at limit **
   8  Prefactor     .10485E-03    61.755        .37465E-04** at limit **
   9  norm          .10207E-03    24.239       -.57528E-04** at limit **
  10  norm          5.5841        3.4649       -.62373E-06   -.37078E-03
  11  norm          3.7702        1.0989       -.76759E-06   -.21680E-04
  12  norm          .10637E-03    76.665       -.46373E-04** at limit **
  13  Prefactor     .10000E-03    12.513        .68721E-06** at limit **
  14  Prefactor     .10447E-03    181.98        .57093E-04** at limit **
  15  Prefactor     64.292        65.165       -.35951E-04    .30574E-02
  16  Prefactor     .99234        32.352        .73315E-04    .67659E-03
  17  Prefactor     25.760        11.041        .85274E-06    .11223E-01
  18  Prefactor     26.211        7.0161       -.47393E-05    .71932E-02
  19  Prefactor     10.621        2.7820       -.10588E-05   -.19133E-02
  20  Normalizat    .56792        .40608        .15689E-04   -.40984E-04
  21  Prefactor     1.0816        .18298       -.10788E-06   -.18970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3045
  Prefactor  = 0.000100628
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.5863
  Prefactor  = 0.000100304
  norm       = 0.0001
  Prefactor  = 0.000104847
  norm       = 0.000102074
  norm       = 5.58407
  norm       = 3.77025
  norm       = 0.000106368
  Prefactor  = 0.0001
  Prefactor  = 0.000104466
  Prefactor  = 64.2921
  Prefactor  = 0.992336
  Prefactor  = 25.7597
  Prefactor  = 26.2106
  Prefactor  = 10.6208
  Normalizat = 0.567923
  Prefactor  = 1.0816
 **********
 **   18 **HESSE 
 **********

 FCN=   3585.525     FROM HESSE     STATUS=OK           369 CALLS     2241 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.305        30.497        .26441E-02   -1.4951    
   2  Prefactor     .10063E-03    23.338        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.599        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.2443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.586        8.8610        .22069E-02   -1.4800    
   6  Prefactor     .10030E-03    23.857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.6344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10485E-03    72.885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10207E-03    11.281        .69365E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5841        3.5402        .42515E-02   -1.5235    
  11  norm          3.7702        11.030        .51983E-02   -1.5320    
  12  norm          .10637E-03    89.923        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.430        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10447E-03    193.67        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     64.292        72.507        .12488E-02   -1.4103    
  16  Prefactor     .99234        23.713        .80130E-01   -1.5509    
  17  Prefactor     25.760        16.557        .19721E-02   -1.4692    
  18  Prefactor     26.211        16.717        .19561E-02   -1.4684    
  19  Prefactor     10.621        10.551        .30730E-02   -1.5056    
  20  Normalizat    .56792        .37775        .10823       -1.0936    
  21  Prefactor     1.0816        .16648        .38328E-01   -.90057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88123e-07
Minuit parameter uncertainties:
  1  30.5298
  2  0.00765783
  3  3.12425e-06
  4  1.93633e-07
  5  8.86153
  6  0.00538727
  7  3.88017e-05
  8  0.0376385
  9  0.00967482
  10  3.54032
  11  11.0359
  12  0.0479313
  13  2.2933e-05
  14  0.0590142
  15  72.6067
  16  9.70571
  17  16.56
  18  16.7201
  19  10.5524
  20  0.379476
  21  0.166557
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  3.770e+00  1.104e+01  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.666e-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:  5.679e-01  3.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 242.176 10.494
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54960/likelihoodResults_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.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) = 3585.19365302
delta logL = 0.331558642061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3585.13480516
delta logL = 0.390406498753

Fit tolerance = 1e-08

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

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

 FCN=   3585.135     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1987        11.660        .49710E-05   -.15259E-03
   2  alpha         1.3559        .96950        .99410E-04    .73495E-05
   3  Normalizat    .58447        .36543        .50142E-07   -.47948E-04
   4  Prefactor     1.0728        .16457       -.29150E-06   -.11093E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.19866
  alpha      = 1.3559
  Normalizat = 0.584467
  Prefactor  = 1.0728
 **********
 **   18 **HESSE 
 **********

 FCN=   3585.135     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1987        11.420        .14955E-03   -1.5171    
   2  alpha         1.3559        .95184        .20964E-01   -.47534    
   3  Normalizat    .58447        .40363        .47326E-03   -1.0865    
   4  Prefactor     1.0728        .18250        .15944E-03   -.90341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98712e-11
Minuit parameter uncertainties:
  1  11.4231
  2  0.983624
  3  0.405679
  4  0.182605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54960': 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) = 3585.13480506
delta logL = 0.390406598297

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  7.199e+00  1.142e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  1.356e+00  9.836e-01  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.073e+00  1.826e-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:  5.845e-01  4.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 242.176 10.494

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/54960/cmap_HighResolution_556588801_556848001_4FGL_J1608.7+1029_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-13 09:52:04.751586', job_id='54960', GAL2='1.07', fit_tolerance='1e-08', EG2='0.58', EG='0.57', time_epoch_completed='1631551924.75', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.90e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1224' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:52:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 54960: <4FGL_J1608.7+1029_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1224> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 09:40:23 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:42:02 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:42:02 2021
Terminated at Mon Sep 13 09:52:05 2021
Results reported at Mon Sep 13 09:52:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1224 242.176 10.4938 556588801 556848001 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 :                                   465.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            702 sec.

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

