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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1201
RA = 242.176, Dec = 10.4938
tmin = 550627201, tmax = 550886401
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='54926', job_status='RUN', time_executed='2021-09-13 09:44:35.566498', time_epoch_executed='1631551475.57' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54926

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54926/ft1_4FGL_J1608.7+1029_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54926/ft2_4FGL_J1608.7+1029_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54926/ft1_4FGL_J1608.7+1029_daily_bin1201.fits outfile=/scratch/kocevski/54926/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1201.fits ra=242.176 dec=10.4938 rad=12.0 tmin=550627201.0 tmax=550886401.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 4.01
user 3.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54926/ft1_filtered_4FGL_J1608.7+1029_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/54926/ft2_4FGL_J1608.7+1029_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/54926/ltcube_550627201_550886401_4FGL_J1608.7+1029_daily_bin1201.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/54926/ft2_4FGL_J1608.7+1029_daily_bin1201.fits
.....................!
real 14.17
user 13.25
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54926/ft1_filtered_4FGL_J1608.7+1029_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/54926/ft2_4FGL_J1608.7+1029_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/54926/ltcube_550627201_550886401_4FGL_J1608.7+1029_daily_bin1201.fits outfile=/scratch/kocevski/54926/expmap_550627201_550886401_4FGL_J1608.7+1029_daily_bin1201.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/54926/ltcube_550627201_550886401_4FGL_J1608.7+1029_daily_bin1201.fits
.....................!
real 192.05
user 185.98
sys 5.60

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/54926/ft1_filtered_4FGL_J1608.7+1029_daily_bin1201.fits scfile=/scratch/kocevski/54926/ft2_4FGL_J1608.7+1029_daily_bin1201.fits outfile=/scratch/kocevski/54926/cmap_550627201_550886401_4FGL_J1608.7+1029_daily_bin1201.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54926/ft1_filtered_4FGL_J1608.7+1029_daily_bin1201.fits scfile=/scratch/kocevski/54926/ft2_4FGL_J1608.7+1029_daily_bin1201.fits outfile=/scratch/kocevski/54926/cmap_HighResolution_550627201_550886401_4FGL_J1608.7+1029_daily_bin1201.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/54926/ft1_filtered_4FGL_J1608.7+1029_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/54926/ft2_4FGL_J1608.7+1029_daily_bin1201.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54926/Model_4FGL_J1608.7+1029_daily_bin1201.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/54926/ft1_filtered_4FGL_J1608.7+1029_daily_bin1201.fits....................!
real 36.06
user 34.76
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.146       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.041       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1694       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10497E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.334       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6218       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    215.58       1.0000         .10000E-03   10000.    
    14 'Prefactor '    106.73       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14544E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1278       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98644       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0229       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=   3279.800     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2273 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.577        127.42        .69656E-05    .66794E-04
   2  Prefactor     .10005E-03    222.04        .18542E-04** at limit **
   3  Prefactor     22.034        34.158       -.22157E-06    .54214E-04
   4  norm          2.4632        5.8722        .95680E-06    .22216E-03
   5  Prefactor     5.1694        5.5464        .30196E-06    .21200E-03
   6  Prefactor     .10000E-03    50.429        .11915E-05** at limit **
   7  norm          .10000E-03    10.136       -.19776E-05** at limit **
   8  Prefactor     .10000E-03    94.682       -.68022E-06** at limit **
   9  norm          22.328        25.712        .73792E-06    .35327E-04
  10  norm          2.6217        2.5017       -.36697E-07    .52013E-04
  11  norm          .10000E-03    10.161       -.30864E-06** at limit **
  12  norm          .10000E-03    142.35       -.78394E-06** at limit **
  13  Prefactor     215.80        218.91        .91142E-06    .30949E-04
  14  Prefactor     106.74        111.12       -.73158E-06    .18817E-04
  15  Prefactor     .10000E-03    365.73       -.35308E-05** at limit **
  16  Prefactor     1.0280        91.711        .34374E-05    .40998E-04
  17  Prefactor     .10000E-03    8.5050       -.67205E-06** at limit **
  18  Prefactor     21.897        16.289        .10645E-06    .43993E-04
  19  Prefactor     .10000E-03    12.662       -.56407E-06** at limit **
  20  Normalizat    .98491        .52331       -.28322E-04    .97880E-04
  21  Prefactor     1.0235        .19923        .10768E-04    .56666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.5772
  Prefactor  = 0.000100053
  Prefactor  = 22.0343
  norm       = 2.4632
  Prefactor  = 5.16945
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 22.3279
  norm       = 2.62174
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 215.803
  Prefactor  = 106.737
  Prefactor  = 0.0001
  Prefactor  = 1.02803
  Prefactor  = 0.0001
  Prefactor  = 21.897
  Prefactor  = 0.0001
  Normalizat = 0.984911
  Prefactor  = 1.02353
 **********
 **   18 **HESSE 
 **********

 FCN=   3279.800     FROM HESSE     STATUS=OK           317 CALLS     2590 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.577        127.50        .23471E-03   -1.3990    
   2  Prefactor     .10005E-03    227.95        .21449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.034        34.144        .85317E-04   -1.4769    
   4  norm          2.4632        5.8440        .20005E-03   -1.5394    
   5  Prefactor     5.1694        5.5376        .12911E-03   -1.5253    
   6  Prefactor     .10000E-03    50.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.596        .35626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    94.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.328        25.608        .84756E-04   -1.4763    
  10  norm          2.6217        2.5037        .85094E-04   -1.5384    
  11  norm          .10000E-03    10.169        .17832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    142.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     215.80        219.03        .13771E-03   -1.2759    
  14  Prefactor     106.74        111.18        .38927E-04   -1.3638    
  15  Prefactor     .10000E-03    368.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0280        95.774        .44056E-02   -1.5505    
  17  Prefactor     .10000E-03    8.5346        .16318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.897        16.287        .85602E-04   -1.4772    
  19  Prefactor     .10000E-03    12.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98491        .52469        .45152E-03   -.93538    
  21  Prefactor     1.0235        .20070        .17397E-03   -.91949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80286e-10
Minuit parameter uncertainties:
  1  127.974
  2  0.00700792
  3  34.1742
  4  5.84539
  5  5.53811
  6  0.000210222
  7  0.000156188
  8  4.6387e-05
  9  25.6211
  10  2.50381
  11  1.82422e-05
  12  0.000642981
  13  219.866
  14  111.4
  15  0.000644441
  16  19.8771
  17  5.84641e-05
  18  16.2899
  19  5.65163e-05
  20  0.527467
  21  0.200846
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.000e-04  1.824e-05  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.024e+00  2.008e-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.849e-01  5.275e-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: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54926/likelihoodResults_550627201_550886401_4FGL_J1608.7+1029_daily_bin1201.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) = 3279.80058787
delta logL = -0.000467183037472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3279.8001211
delta logL = -4.16323018726e-07

Fit tolerance = 1e-08

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

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

 FCN=   3279.800     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      232 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2153.3        .17856E-02** at limit **
   2  alpha         2.2005        3.1137        .16465        .20715E-09
   3  Normalizat    .98490        .29587        .45160E-03    .59537E-05
   4  Prefactor     1.0235        .11705        .17397E-03    .16664E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.20046
  Normalizat = 0.984905
  Prefactor  = 1.02354
 **********
 **   18 **HESSE 
 **********

 FCN=   3279.800     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.489        .35712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2005        2.5295        .65858E-02   -.12010    
   3  Normalizat    .98490        .49108        .18064E-04   -.93538    
   4  Prefactor     1.0235        .19476        .69586E-05   -.91949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29452e-12
Minuit parameter uncertainties:
  1  5.94387e-05
  2  467.903
  3  0.49335
  4  0.194896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54926': 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) = 3279.80012054
delta logL = 1.49507741298e-07

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.000e-04  5.944e-05  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.200e+00  4.679e+02  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.024e+00  1.949e-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.849e-01  4.933e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/54926/cmap_HighResolution_550627201_550886401_4FGL_J1608.7+1029_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-05', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-13 09:52:17.888028', job_id='54926', GAL2='1.02', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631551937.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1201' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:52:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 54926: <4FGL_J1608.7+1029_daily_bin1201> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1201 242.176 10.4938 550627201 550886401 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 :                                   459.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            717 sec.

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

