/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 5 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1608.7+1029_daily_bin139
RA = 242.176, Dec = 10.4938
tmin = 275356801, tmax = 275616001
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='47221', job_status='RUN', time_executed='2021-09-13 09:17:25.644566', time_epoch_executed='1631549845.64' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47221

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47221/ft1_4FGL_J1608.7+1029_daily_bin139.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47221/ft2_4FGL_J1608.7+1029_daily_bin139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47221/ft1_4FGL_J1608.7+1029_daily_bin139.fits outfile=/scratch/kocevski/47221/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin139.fits ra=242.176 dec=10.4938 rad=12.0 tmin=275356801.0 tmax=275616001.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.64
user 4.38
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47221/ft1_filtered_4FGL_J1608.7+1029_daily_bin139.fits" evtable="EVENTS" scfile=/scratch/kocevski/47221/ft2_4FGL_J1608.7+1029_daily_bin139.fits sctable="SC_DATA" outfile=/scratch/kocevski/47221/ltcube_275356801_275616001_4FGL_J1608.7+1029_daily_bin139.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/47221/ft2_4FGL_J1608.7+1029_daily_bin139.fits
.....................!
real 13.61
user 13.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47221/ft1_filtered_4FGL_J1608.7+1029_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/47221/ft2_4FGL_J1608.7+1029_daily_bin139.fits sctable="SC_DATA" expcube=/scratch/kocevski/47221/ltcube_275356801_275616001_4FGL_J1608.7+1029_daily_bin139.fits outfile=/scratch/kocevski/47221/expmap_275356801_275616001_4FGL_J1608.7+1029_daily_bin139.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/47221/ltcube_275356801_275616001_4FGL_J1608.7+1029_daily_bin139.fits
.....................!
real 192.26
user 186.63
sys 5.04

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/47221/ft1_filtered_4FGL_J1608.7+1029_daily_bin139.fits scfile=/scratch/kocevski/47221/ft2_4FGL_J1608.7+1029_daily_bin139.fits outfile=/scratch/kocevski/47221/cmap_275356801_275616001_4FGL_J1608.7+1029_daily_bin139.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=242.176 yref=10.4938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47221/ft1_filtered_4FGL_J1608.7+1029_daily_bin139.fits scfile=/scratch/kocevski/47221/ft2_4FGL_J1608.7+1029_daily_bin139.fits outfile=/scratch/kocevski/47221/cmap_HighResolution_275356801_275616001_4FGL_J1608.7+1029_daily_bin139.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/47221/ft1_filtered_4FGL_J1608.7+1029_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/47221/ft2_4FGL_J1608.7+1029_daily_bin139.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/47221/Model_4FGL_J1608.7+1029_daily_bin139.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/47221/ft1_filtered_4FGL_J1608.7+1029_daily_bin139.fits.....................!
real 65.15
user 63.50
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.763       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.372       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1331       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2360       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5868       1.0000         .10000E-03   10000.    
     8 'Prefactor '    148.28       1.0000         .10000E-03   10000.    
     9 'norm      '    9.4512       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6690       1.0000         .10000E-03   10000.    
    11 'norm      '    25.736       1.0000         .10000E-03   10000.    
    12 'norm      '    .10664E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.232       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4949       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5395       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85028       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8139.054     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2279 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.761        36.073         .0000        .35332E-03
   2  Prefactor     .10000E-03    10.918         .0000    ** at limit **
   3  Prefactor     17.374        25.060         .0000        .41635E-04
   4  norm          1.1331        1.3945         .0000        .35138E-03
   5  Prefactor     3.2375        5.7053         .0000        .16196E-01
   6  Prefactor     .10000E-03    18.742         .0000    ** at limit **
   7  norm          2.5855        4.5741         .0000        .86303E-03
   8  Prefactor     148.28        89.136         .0000       -.43798E-03
   9  norm          9.4508        9.1601         .0000        .21472E-02
  10  norm          4.6690        2.0310         .0000       -.73002E-04
  11  norm          25.735        15.859         .0000       -.11895E-03
  12  norm          .10000E-03    139.27         .0000    ** at limit **
  13  Prefactor     .10000E-03    3.0294         .0000    ** at limit **
  14  Prefactor     .10000E-03    44.161         .0000    ** at limit **
  15  Prefactor     56.234        35.853         .0000       -.58837E-03
  16  Prefactor     .10000E-03    6.1483         .0000    ** at limit **
  17  Prefactor     .10000E-03    2.2081         .0000    ** at limit **
  18  Prefactor     1.4926        11.846         .0000        .12650E-01
  19  Prefactor     .10000E-03    9.3230         .0000    ** at limit **
  20  Normalizat    1.5397        .25473         .0000        .62813E-04
  21  Prefactor     .85017        .10373         .0000        .13078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.761
  Prefactor  = 0.0001
  Prefactor  = 17.3737
  norm       = 1.13312
  Prefactor  = 3.23755
  Prefactor  = 0.0001
  norm       = 2.58548
  Prefactor  = 148.281
  norm       = 9.45083
  norm       = 4.66903
  norm       = 25.7348
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.2339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49256
  Prefactor  = 0.0001
  Normalizat = 1.53967
  Prefactor  = 0.850171
 **********
 **   18 **HESSE 
 **********

 FCN=   8139.054     FROM HESSE     STATUS=OK           317 CALLS     2596 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.761        36.187        .83955E-04   -1.4753    
   2  Prefactor     .10000E-03    10.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.374        25.011        .96093E-04   -1.4874    
   4  norm          1.1331        1.3664        .11502E-03   -1.5495    
   5  Prefactor     3.2375        5.6671        .11259E-02   -1.5348    
   6  Prefactor     .10000E-03    18.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5855        4.5266        .23716E-03   -1.5386    
   8  Prefactor     148.28        89.218        .33095E-04   -1.3266    
   9  norm          9.4508        9.1618        .65179E-03   -1.5093    
  10  norm          4.6690        2.0306        .81186E-04   -1.5276    
  11  norm          25.735        15.878        .78965E-04   -1.4693    
  12  norm          .10000E-03    139.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0324        .15335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.234        35.866        .53495E-04   -1.4207    
  16  Prefactor     .10000E-03    6.1944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2117        .13091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4926        11.943        .17522E-02   -1.5464    
  19  Prefactor     .10000E-03    9.6968        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5397        .30905        .34478E-03   -.76670    
  21  Prefactor     .85017        .12577        .18739E-03   -.97905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6881e-09
Minuit parameter uncertainties:
  1  36.2217
  2  6.26637e-06
  3  25.0259
  4  1.36639
  5  5.66808
  6  9.08706e-06
  7  4.52717
  8  89.2992
  9  9.16311
  10  2.03062
  11  15.8806
  12  1.8194e-05
  13  2.82734e-06
  14  1.7971e-05
  15  35.8803
  16  3.5185e-06
  17  1.43127e-06
  18  8.44604
  19  9.31511e-06
  20  0.309436
  21  0.125809
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.573e+01  1.588e+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:  8.502e-01  1.258e-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.540e+00  3.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 8.21e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.45e-05

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) = 8139.02443015
delta logL = 0.029862836338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8139.01989882
delta logL = 0.0343941584397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.386       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6373       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85424       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=   8139.020     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      252 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.385        16.689        .81118E-04    .97264E-04
   2  alpha         2.6371        .70540        .18252E-01    .91797E-05
   3  Normalizat    1.5255        .30319        .34604E-03    .63276E-04
   4  Prefactor     .85428        .12601        .18699E-03    .13972E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.3846
  alpha      = 2.63711
  Normalizat = 1.52551
  Prefactor  = 0.854276
 **********
 **   18 **HESSE 
 **********

 FCN=   8139.020     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.385        16.274        .32447E-05   -1.4720    
   2  alpha         2.6371        .68770        .73010E-03    .54873E-01
   3  Normalizat    1.5255        .30337        .13842E-04   -.77064    
   4  Prefactor     .85428        .12608        .74796E-05   -.97758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48677e-11
Minuit parameter uncertainties:
  1  16.2774
  2  0.696715
  3  0.303729
  4  0.126126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47221': 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) = 8139.01989865
delta logL = 0.0343943305525

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.438e+01  1.628e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.637e+00  6.967e-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:  8.543e-01  1.261e-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.526e+00  3.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.60
Ra Dec: 242.176 10.494
Photon Index (Free Index): 2.64 +/- 0.70
Photon Flux (Free Index): 9.22e-08 +/- 6.61e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.40e-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/47221/cmap_HighResolution_275356801_275616001_4FGL_J1608.7+1029_daily_bin139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.21e-08', energy_flux2='2.33e-05', photon_flux_error='5.06e-08', dlogl='3.44e-02', energy_flux='2.35e-05', photon_flux2='9.22e-08', job_status='DONE', time_completed='2021-09-13 09:27:50.991448', photon_index_error2='0.70', photon_index2='2.64', ts='4.52', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.54', time_epoch_completed='1631550470.99', return_code='0', job_id='47221', GAL2='0.85', EG2='1.53', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='6.61e-08', ts2='4.60', photon_index='2.46' WHERE bin_id='139' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:27:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 47221: <4FGL_J1608.7+1029_daily_bin139> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin139> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 13 09:15:25 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:17:11 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:17:11 2021
Terminated at Mon Sep 13 09:27:51 2021
Results reported at Mon Sep 13 09:27:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin139 242.176 10.4938 275356801 275616001 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 :                                   623.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            746 sec.

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

