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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1322
RA = 242.176, Dec = 10.4938
tmin = 581990401, tmax = 582249601
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='55107', job_status='RUN', time_executed='2021-09-13 09:45:12.625121', time_epoch_executed='1631551512.63' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55107/ft1_4FGL_J1608.7+1029_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55107/ft2_4FGL_J1608.7+1029_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55107/ft1_4FGL_J1608.7+1029_daily_bin1322.fits outfile=/scratch/kocevski/55107/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1322.fits ra=242.176 dec=10.4938 rad=12.0 tmin=581990401.0 tmax=582249601.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 2.37
user 2.19
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55107/ft1_filtered_4FGL_J1608.7+1029_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/55107/ft2_4FGL_J1608.7+1029_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/55107/ltcube_581990401_582249601_4FGL_J1608.7+1029_daily_bin1322.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/55107/ft2_4FGL_J1608.7+1029_daily_bin1322.fits
.....................!
real 15.39
user 14.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55107/ft1_filtered_4FGL_J1608.7+1029_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/55107/ft2_4FGL_J1608.7+1029_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/55107/ltcube_581990401_582249601_4FGL_J1608.7+1029_daily_bin1322.fits outfile=/scratch/kocevski/55107/expmap_581990401_582249601_4FGL_J1608.7+1029_daily_bin1322.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/55107/ltcube_581990401_582249601_4FGL_J1608.7+1029_daily_bin1322.fits
.....................!
real 191.45
user 186.62
sys 4.36

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/55107/ft1_filtered_4FGL_J1608.7+1029_daily_bin1322.fits scfile=/scratch/kocevski/55107/ft2_4FGL_J1608.7+1029_daily_bin1322.fits outfile=/scratch/kocevski/55107/cmap_581990401_582249601_4FGL_J1608.7+1029_daily_bin1322.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55107/ft1_filtered_4FGL_J1608.7+1029_daily_bin1322.fits scfile=/scratch/kocevski/55107/ft2_4FGL_J1608.7+1029_daily_bin1322.fits outfile=/scratch/kocevski/55107/cmap_HighResolution_581990401_582249601_4FGL_J1608.7+1029_daily_bin1322.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55107/ft1_filtered_4FGL_J1608.7+1029_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/55107/ft2_4FGL_J1608.7+1029_daily_bin1322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55107/Model_4FGL_J1608.7+1029_daily_bin1322.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/55107/ft1_filtered_4FGL_J1608.7+1029_daily_bin1322.fits.....................!
real 63.51
user 62.24
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.853       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.062       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4684       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4047       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6907       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6241       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7849       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3289       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.3561       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0965       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99010       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=   8125.647     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2229 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.850        47.228       -.21671E-05    .81130E-04
   2  Prefactor     37.060        31.590       -.10674E-05    .25933E-04
   3  Prefactor     .10000E-03    14.623       -.50539E-05** at limit **
   4  norm          4.2474        2.5184       -.43496E-08   -.10513E-03
   5  Prefactor     4.4682        6.4977       -.80027E-07   -.13529E-03
   6  Prefactor     .10000E-03    29.871        .66354E-05** at limit **
   7  norm          1.4039        5.0631       -.27116E-05   -.99693E-03
   8  Prefactor     .10000E-03    22.585       -.64603E-05** at limit **
   9  norm          3.6902        8.1625       -.51924E-06   -.22332E-03
  10  norm          4.6241        1.8971        .23930E-07    .13264E-03
  11  norm          3.7842        19.336       -.92675E-06   -.57050E-04
  12  norm          .10000E-03    52.989       -.31067E-05** at limit **
  13  Prefactor     5.3285        10.232       -.45987E-06   -.10576E-03
  14  Prefactor     34.041        110.58       -.14806E-05    .24325E-05
  15  Prefactor     .10000E-03    15.714        .72188E-05** at limit **
  16  Prefactor     .10000E-03    3.6628       -.87070E-08** at limit **
  17  Prefactor     .10000E-03    3.7580       -.37956E-08** at limit **
  18  Prefactor     .10000E-03    6.3635       -.14431E-07** at limit **
  19  Prefactor     8.3567        7.1759        .18023E-06   -.18786E-03
  20  Normalizat    1.0966        .25956        .13302E-05   -.22677E-04
  21  Prefactor     .99007        .10555        .92413E-08    .77089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.8504
  Prefactor  = 37.0601
  Prefactor  = 0.000100001
  norm       = 4.2474
  Prefactor  = 4.46815
  Prefactor  = 0.000100002
  norm       = 1.40391
  Prefactor  = 0.000100002
  norm       = 3.69022
  norm       = 4.62406
  norm       = 3.78421
  norm       = 0.0001
  Prefactor  = 5.3285
  Prefactor  = 34.0414
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.35671
  Normalizat = 1.09659
  Prefactor  = 0.990071
 **********
 **   18 **HESSE 
 **********

 FCN=   8125.647     FROM HESSE     STATUS=OK           315 CALLS     2544 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.850        47.439        .47691E-04   -1.4023    
   2  Prefactor     37.060        31.707        .65833E-04   -1.4490    
   3  Prefactor     .10000E-03    14.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2474        2.5147        .10594E-03   -1.5296    
   5  Prefactor     4.4682        6.4296        .19048E-03   -1.5285    
   6  Prefactor     .10000E-03    29.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4039        5.7984        .36586E-03   -1.5471    
   8  Prefactor     .10000E-03    21.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6902        8.1825        .21023E-03   -1.5324    
  10  norm          4.6241        1.8963        .76486E-04   -1.5278    
  11  norm          3.7842        19.379        .20750E-03   -1.5319    
  12  norm          .10000E-03    52.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3285        10.266        .17410E-03   -1.5246    
  14  Prefactor     34.041        110.76        .68681E-04   -1.4540    
  15  Prefactor     .10000E-03    14.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.6688        .16847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7765        .17064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.3567        7.1713        .13868E-03   -1.5130    
  20  Normalizat    1.0966        .31319        .39305E-03   -.89861    
  21  Prefactor     .99007        .12849        .17618E-03   -.93061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82896e-09
Minuit parameter uncertainties:
  1  47.4647
  2  31.7218
  3  0.000258892
  4  2.51474
  5  6.43064
  6  0.000432519
  7  5.70704
  8  0.000368017
  9  8.18499
  10  1.89633
  11  17.1355
  12  0.000265434
  13  10.2691
  14  111.44
  15  0.00034063
  16  3.14733e-06
  17  3.02511e-06
  18  5.87719e-06
  19  7.17205
  20  0.313724
  21  0.12853
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  3.784e+00  1.714e+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:  9.901e-01  1.285e-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:  1.097e+00  3.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/55107/likelihoodResults_581990401_582249601_4FGL_J1608.7+1029_daily_bin1322.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) = 8125.04247879
delta logL = 0.604369615047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8124.95383625
delta logL = 0.693012155248

Fit tolerance = 1e-08

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

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

 FCN=   8124.954     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      228 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2302        103.69        .49023E-02    .62718E-03
   2  alpha         4.3014        2.5715        .50000        .45405E-04
   3  Normalizat    .97890        .95704E-01    .93335E-01    .29469E-04
   4  Prefactor     1.0195        .41508E-01    .42191E-01   -.75081E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 4.2302
  alpha      = 4.30136
  Normalizat = 0.978897
  Prefactor  = 1.01952
 **********
 **   18 **HESSE 
 **********

 FCN=   8124.954     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .84E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2302        150.50        .15247E-03   -1.5297    
   2  alpha         4.3014        2.6951        .36200E-01    .80459    
   3  Normalizat    .97890        .28898        .41340E-03   -.93741    
   4  Prefactor     1.0195        .12290        .17383E-03   -.92082    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.41165e-07
Minuit parameter uncertainties:
  1  50.6009
  2  8.69349
  3  0.289445
  4  0.122939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55107': 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): 102
logL (Free Index) = 8124.95383591
delta logL = 0.693012496597

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  4.230e+00  5.060e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  4.301e+00  8.693e+00  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.020e+00  1.229e-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:  9.789e-01  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 242.176 10.494
Photon Index (Free Index): 4.30 +/- 8.69
Photon Flux (Free Index): 1.14e-07 +/- 1.19e-07
Energy Flux (Free Index): 1.70e-05 +/- 3.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/55107/cmap_HighResolution_581990401_582249601_4FGL_J1608.7+1029_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='6.93e-01', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-13 09:56:09.654432', photon_index_error2='8.69', photon_index2='4.30', ts='0.06', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='3.44e-05', EG='1.10', time_epoch_completed='1631552169.65', return_code='0', job_id='55107', GAL2='1.02', EG2='0.98', return_code2='102', photon_flux_error2='1.19e-07', ts2='1.60', photon_index='2.46' WHERE bin_id='1322' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 55107: <4FGL_J1608.7+1029_daily_bin1322> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1322 242.176 10.4938 581990401 582249601 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 :                                   655.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            936 sec.

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

