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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1321
RA = 242.176, Dec = 10.4938
tmin = 581731201, tmax = 581990401
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='55105', job_status='RUN', time_executed='2021-09-13 09:46:11.465730', time_epoch_executed='1631551571.47' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55105

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55105/ft1_4FGL_J1608.7+1029_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55105/ft2_4FGL_J1608.7+1029_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55105/ft1_4FGL_J1608.7+1029_daily_bin1321.fits outfile=/scratch/kocevski/55105/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1321.fits ra=242.176 dec=10.4938 rad=12.0 tmin=581731201.0 tmax=581990401.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.51
user 2.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55105/ft1_filtered_4FGL_J1608.7+1029_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/55105/ft2_4FGL_J1608.7+1029_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/55105/ltcube_581731201_581990401_4FGL_J1608.7+1029_daily_bin1321.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/55105/ft2_4FGL_J1608.7+1029_daily_bin1321.fits
.....................!
real 13.15
user 12.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55105/ft1_filtered_4FGL_J1608.7+1029_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/55105/ft2_4FGL_J1608.7+1029_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/55105/ltcube_581731201_581990401_4FGL_J1608.7+1029_daily_bin1321.fits outfile=/scratch/kocevski/55105/expmap_581731201_581990401_4FGL_J1608.7+1029_daily_bin1321.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/55105/ltcube_581731201_581990401_4FGL_J1608.7+1029_daily_bin1321.fits
.....................!
real 191.48
user 185.89
sys 5.25

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/55105/ft1_filtered_4FGL_J1608.7+1029_daily_bin1321.fits scfile=/scratch/kocevski/55105/ft2_4FGL_J1608.7+1029_daily_bin1321.fits outfile=/scratch/kocevski/55105/cmap_581731201_581990401_4FGL_J1608.7+1029_daily_bin1321.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.40
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55105/ft1_filtered_4FGL_J1608.7+1029_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/55105/ft2_4FGL_J1608.7+1029_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55105/Model_4FGL_J1608.7+1029_daily_bin1321.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/55105/ft1_filtered_4FGL_J1608.7+1029_daily_bin1321.fits.....................!
real 47.39
user 45.59
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.555       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.7570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.1513       1.0000         .10000E-03   10000.    
    10 'norm      '    5.5509       1.0000         .10000E-03   10000.    
    11 'norm      '    53.743       1.0000         .10000E-03   10000.    
    12 'norm      '    280.90       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.959       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.725       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0999       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11458E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.062       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .68187       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0378       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=   5268.100     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2178 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.527        58.172       -.10970E-05   -.16674E-03
   2  Prefactor     40.431        33.171        .25008E-06    .82601E-05
   3  Prefactor     .10000E-03    21.459        .15104E-07** at limit **
   4  norm          8.7575        4.0089        .37705E-07   -.18948E-04
   5  Prefactor     .10000E-03    5.3862        .27138E-07** at limit **
   6  Prefactor     .10000E-03    50.542        .11845E-05** at limit **
   7  norm          .10000E-03    2.7762        .17903E-07** at limit **
   8  Prefactor     .10000E-03    32.925        .12064E-06** at limit **
   9  norm          8.1506        9.3386        .27117E-07   -.66921E-04
  10  norm          5.5509        2.5073        .42295E-08   -.10756E-04
  11  norm          53.740        27.012       -.37785E-07   -.27870E-04
  12  norm          280.89        273.23       -.58155E-07   -.10228E-04
  13  Prefactor     16.953        16.849        .70850E-07    .44798E-05
  14  Prefactor     .10000E-03    116.53       -.18355E-06** at limit **
  15  Prefactor     15.723        42.790       -.26010E-05   -.14858E-04
  16  Prefactor     6.0773        16.354        .55503E-05   -.57137E-04
  17  Prefactor     5.1038        11.426       -.70329E-06   -.41113E-04
  18  Prefactor     .10000E-03    43.410       -.14810E-05** at limit **
  19  Prefactor     24.066        14.680       -.24463E-06   -.19086E-04
  20  Normalizat    .68253        .35917        .13608E-05   -.21524E-04
  21  Prefactor     1.0376        .14593       -.71366E-06    .36395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.5272
  Prefactor  = 40.4309
  Prefactor  = 0.0001
  norm       = 8.75752
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.15055
  norm       = 5.55088
  norm       = 53.7398
  norm       = 280.888
  Prefactor  = 16.9526
  Prefactor  = 0.0001
  Prefactor  = 15.7229
  Prefactor  = 6.07732
  Prefactor  = 5.10381
  Prefactor  = 0.000100002
  Prefactor  = 24.0658
  Normalizat = 0.682534
  Prefactor  = 1.03759
 **********
 **   18 **HESSE 
 **********

 FCN=   5268.100     FROM HESSE     STATUS=OK           319 CALLS     2497 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.527        58.364        .57547E-04   -1.4314    
   2  Prefactor     40.431        33.178        .63042E-04   -1.4435    
   3  Prefactor     .10000E-03    21.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.7575        4.0051        .93507E-04   -1.5116    
   5  Prefactor     .10000E-03    5.3975        .16452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7813        .11811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.1506        9.3253        .14043E-03   -1.5137    
  10  norm          5.5509        2.5072        .74703E-04   -1.5237    
  11  norm          53.740        26.992        .54713E-04   -1.4240    
  12  norm          280.89        273.54        .12104E-03   -1.2340    
  13  Prefactor     16.953        16.861        .97257E-04   -1.4884    
  14  Prefactor     .10000E-03    116.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.723        42.784        .10100E-03   -1.4915    
  16  Prefactor     6.0773        16.396        .81392E-03   -1.5215    
  17  Prefactor     5.1038        11.426        .17804E-03   -1.5256    
  18  Prefactor     .10000E-03    45.121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.066        14.683        .81660E-04   -1.4726    
  20  Normalizat    .68253        .39558        .48826E-03   -1.0459    
  21  Prefactor     1.0376        .16380        .17489E-03   -.91487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97466e-10
Minuit parameter uncertainties:
  1  58.4332
  2  33.1929
  3  3.36834e-07
  4  4.00518
  5  8.46348e-07
  6  0.000614942
  7  4.29538e-07
  8  6.5431e-05
  9  9.32701
  10  2.50724
  11  26.9979
  12  274.804
  13  16.8659
  14  0.000208986
  15  42.8671
  16  16.4077
  17  11.4305
  18  0.000526113
  19  14.6854
  20  0.397241
  21  0.163878
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  5.374e+01  2.700e+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.038e+00  1.639e-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:  6.825e-01  3.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.85
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.71e-07 +/- 8.61e-08
Energy Flux (Fixed Index): 4.90e-05 +/- 2.46e-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) = 5267.59781514
delta logL = 0.50198008635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5267.5780639
delta logL = 0.521731334939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    57.221       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9685       1.0000          .0000       5.0000    
     3 'Normalizat'    .72991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0228       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=   5267.578     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      205 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          57.221        28.894        .13258E-02   -.18971E-03
   2  alpha         1.9685        .43907        .29233       -.83047E-04
   3  Normalizat    .72988        .32140        .10673        .19507E-04
   4  Prefactor     1.0228        .14000        .41874E-01    .16055E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 57.2212
  alpha      = 1.96849
  Normalizat = 0.729878
  Prefactor  = 1.0228
 **********
 **   18 **HESSE 
 **********

 FCN=   5267.578     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          57.221        28.149        .53033E-04   -1.4194    
   2  alpha         1.9685        .45156        .12200E-01   -.21424    
   3  Normalizat    .72988        .36320        .47319E-03   -1.0273    
   4  Prefactor     1.0228        .15895        .17589E-03   -.91973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53361e-10
Minuit parameter uncertainties:
  1  28.1554
  2  0.454169
  3  0.36441
  4  0.159024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55105': 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) = 5267.57806389
delta logL = 0.521731345011

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  5.722e+01  2.816e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  1.968e+00  4.542e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.023e+00  1.590e-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:  7.299e-01  3.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 242.176 10.494
Photon Index (Free Index): 1.97 +/- 0.45
Photon Flux (Free Index): 1.24e-07 +/- 7.56e-08
Energy Flux (Free Index): 5.75e-05 +/- 3.02e-05

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/55105/cmap_HighResolution_581731201_581990401_4FGL_J1608.7+1029_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.71e-07', energy_flux2='5.75e-05', photon_flux_error='8.61e-08', dlogl='5.22e-01', energy_flux='4.90e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-13 09:54:19.307090', photon_index_error2='0.45', photon_index2='1.97', ts='7.85', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.02e-05', EG='0.68', time_epoch_completed='1631552059.31', return_code='0', job_id='55105', GAL2='1.02', EG2='0.73', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='7.56e-08', ts2='8.90', photon_index='2.46' WHERE bin_id='1321' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:54:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 55105: <4FGL_J1608.7+1029_daily_bin1321> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1321> 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) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:43:00 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:00 2021
Terminated at Mon Sep 13 09:54:20 2021
Results reported at Mon Sep 13 09:54:20 2021

Your job looked like:

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

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

