/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 168 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1608.7+1029_daily_bin18
RA = 242.176, Dec = 10.4938
tmin = 243993601, tmax = 244252801
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='45847', job_status='RUN', time_executed='2021-09-13 09:16:00.849160', time_epoch_executed='1631549760.85' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45847/ft1_4FGL_J1608.7+1029_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45847/ft2_4FGL_J1608.7+1029_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45847/ft1_4FGL_J1608.7+1029_daily_bin18.fits outfile=/scratch/kocevski/45847/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin18.fits ra=242.176 dec=10.4938 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.41
user 1.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/45847/ft2_4FGL_J1608.7+1029_daily_bin18.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/45847/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/45847/ft1_filtered_4FGL_J1608.7+1029_daily_bin18.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/45847/ft1_filtered_4FGL_J1608.7+1029_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/45847/ft2_4FGL_J1608.7+1029_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/45847/ltcube_243993601_244252801_4FGL_J1608.7+1029_daily_bin18.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/45847/ft2_4FGL_J1608.7+1029_daily_bin18.fits
.....................!
real 14.59
user 14.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45847/ft1_filtered_4FGL_J1608.7+1029_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/45847/ft2_4FGL_J1608.7+1029_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/45847/ltcube_243993601_244252801_4FGL_J1608.7+1029_daily_bin18.fits outfile=/scratch/kocevski/45847/expmap_243993601_244252801_4FGL_J1608.7+1029_daily_bin18.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/45847/ltcube_243993601_244252801_4FGL_J1608.7+1029_daily_bin18.fits
.....................!
real 191.55
user 185.79
sys 4.95

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/45847/ft1_filtered_4FGL_J1608.7+1029_daily_bin18.fits scfile=/scratch/kocevski/45847/ft2_4FGL_J1608.7+1029_daily_bin18.fits outfile=/scratch/kocevski/45847/cmap_243993601_244252801_4FGL_J1608.7+1029_daily_bin18.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/45847/ft1_filtered_4FGL_J1608.7+1029_daily_bin18.fits scfile=/scratch/kocevski/45847/ft2_4FGL_J1608.7+1029_daily_bin18.fits outfile=/scratch/kocevski/45847/cmap_HighResolution_243993601_244252801_4FGL_J1608.7+1029_daily_bin18.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45847/ft1_filtered_4FGL_J1608.7+1029_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/45847/ft2_4FGL_J1608.7+1029_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45847/Model_4FGL_J1608.7+1029_daily_bin18.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/45847/ft1_filtered_4FGL_J1608.7+1029_daily_bin18.fits.....................!
real 68.10
user 66.55
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3106       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2292       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0451       1.0000         .10000E-03   10000.    
     8 'Prefactor '    97.748       1.0000         .10000E-03   10000.    
     9 'norm      '    19.534       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8198       1.0000         .10000E-03   10000.    
    11 'norm      '    15.455       1.0000         .10000E-03   10000.    
    12 'norm      '    18.788       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.422       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.535       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12424E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4837       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0171       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0666       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=   8445.690     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     1925 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.636        .33761E-06** at limit **
   2  Prefactor     .10000E-03    14.437        .28223E-06** at limit **
   3  Prefactor     .10000E-03    11.728       -.13097E-06** at limit **
   4  norm          1.3107        1.5138        .28673E-07   -.76060E-05
   5  Prefactor     2.2295        4.7736        .12325E-05   -.69688E-05
   6  Prefactor     .10000E-03    9.7807        .88629E-07** at limit **
   7  norm          2.0451        3.8274        .46166E-06   -.37207E-04
   8  Prefactor     97.736        63.530       -.20466E-06   -.31589E-04
   9  norm          19.533        10.494        .34301E-08   -.12852E-04
  10  norm          3.8198        1.7643        .78265E-08   -.28737E-04
  11  norm          15.452        15.299        .51776E-07   -.18868E-04
  12  norm          18.890        142.77        .36345E-05    .42340E-04
  13  Prefactor     10.789        14.907        .51620E-07   -.13833E-04
  14  Prefactor     87.435        74.197        .59317E-06    .22870E-04
  15  Prefactor     24.482        35.357       -.36489E-06   -.14062E-03
  16  Prefactor     .10000E-03    9.1387       -.36372E-05** at limit **
  17  Prefactor     .10000E-03    6.4087       -.64511E-06** at limit **
  18  Prefactor     .10000E-03    4.0372       -.32765E-07** at limit **
  19  Prefactor     6.4838        5.9956        .33876E-05    .14154E-03
  20  Normalizat    1.0173        .25679        .26629E-05   -.81585E-04
  21  Prefactor     1.0665        .10771       -.19320E-05    .25159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31066
  Prefactor  = 2.22948
  Prefactor  = 0.0001
  norm       = 2.04515
  Prefactor  = 97.7364
  norm       = 19.533
  norm       = 3.81982
  norm       = 15.4519
  norm       = 18.8904
  Prefactor  = 10.7891
  Prefactor  = 87.4348
  Prefactor  = 24.4819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48383
  Normalizat = 1.01733
  Prefactor  = 1.06653
 **********
 **   18 **HESSE 
 **********

 FCN=   8445.690     FROM HESSE     STATUS=OK           317 CALLS     2242 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3107        1.5063        .11795E-03   -1.5479    
   5  Prefactor     2.2295        4.7331        .26975E-03   -1.5409    
   6  Prefactor     .10000E-03    9.7860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0451        3.7834        .23080E-03   -1.5422    
   8  Prefactor     97.736        63.534        .20329E-03   -1.3727    
   9  norm          19.533        10.505        .90623E-04   -1.4824    
  10  norm          3.8198        1.7646        .80117E-04   -1.5317    
  11  norm          15.452        15.315        .10188E-03   -1.4922    
  12  norm          18.890        142.24        .92403E-04   -1.4838    
  13  Prefactor     10.789        14.953        .12196E-03   -1.5051    
  14  Prefactor     87.435        74.229        .21485E-03   -1.3835    
  15  Prefactor     24.482        35.324        .80871E-04   -1.4718    
  16  Prefactor     .10000E-03    9.2489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1155        .18030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4838        6.0497        .78807E-03   -1.5199    
  20  Normalizat    1.0173        .29318        .39892E-03   -.92452    
  21  Prefactor     1.0665        .12257        .16967E-03   -.90544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62785e-10
Minuit parameter uncertainties:
  1  2.63901e-05
  2  1.79565e-05
  3  4.46716e-05
  4  1.50639
  5  4.73385
  6  2.00807e-06
  7  3.78379
  8  63.5784
  9  10.5064
  10  1.76467
  11  15.3189
  12  104.017
  13  14.9586
  14  74.308
  15  35.3541
  16  3.79402e-06
  17  6.23058e-06
  18  9.00899e-06
  19  6.05024
  20  0.293642
  21  0.122603
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.545e+01  1.532e+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.067e+00  1.226e-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.017e+00  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 4.88e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/45847/likelihoodResults_243993601_244252801_4FGL_J1608.7+1029_daily_bin18.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) = 8444.71036376
delta logL = 0.979736115545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8444.66452884
delta logL = 1.02557103252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3928       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1895       1.0000          .0000       5.0000    
     3 'Normalizat'    .90506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0994       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=   8444.665     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      246 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3928        67.832        .43262E-02    .71093E-03
   2  alpha         4.1899        3.9227        .50000        .48595E-04
   3  Normalizat    .90501        .96431E-01    .94831E-01    .33773E-04
   4  Prefactor     1.0995        .40619E-01    .37608E-01   -.58750E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.39285
  alpha      = 4.18986
  Normalizat = 0.90501
  Prefactor  = 1.09947
 **********
 **   18 **HESSE 
 **********

 FCN=   8444.665     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3928        96.627        .12449E-03   -1.5243    
   2  alpha         4.1899        3.6172        .25634E-01    .74224    
   3  Normalizat    .90501        .30392        .42008E-03   -.96284    
   4  Prefactor     1.0995        .13125        .16735E-03   -.89484    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33017e-07
Minuit parameter uncertainties:
  1  45.7408
  2  6.751
  3  0.304497
  4  0.131288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45847': 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) = 8444.66452858
delta logL = 1.02557129422

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  5.393e+00  4.574e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  4.190e+00  6.751e+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.099e+00  1.313e-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.050e-01  3.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 242.176 10.494
Photon Index (Free Index): 4.19 +/- 6.75
Photon Flux (Free Index): 1.26e-07 +/- 8.89e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.89e-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/45847/cmap_HighResolution_243993601_244252801_4FGL_J1608.7+1029_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-05', comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='1.91e-05', photon_flux_error='4.88e-08', dlogl='1.03e+00', energy_flux='1.41e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-13 09:27:03.181935', photon_index_error2='6.75', photon_index2='4.19', ts='1.45', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.89e-05', EG='1.02', time_epoch_completed='1631550423.18', return_code='0', job_id='45847', GAL2='1.10', EG2='0.91', return_code2='102', energy_flux_error='1.40e-05', photon_flux_error2='8.89e-08', ts2='3.76', photon_index='2.46' WHERE bin_id='18' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:27:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 45847: <4FGL_J1608.7+1029_daily_bin18> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin18> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 09:10:41 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:13:03 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:13:03 2021
Terminated at Mon Sep 13 09:27:03 2021
Results reported at Mon Sep 13 09:27:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin18 242.176 10.4938 243993601 244252801 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 :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            982 sec.

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

