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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1619
RA = 242.176, Dec = 10.4938
tmin = 658972801, tmax = 659232001
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='388505', job_status='RUN', time_executed='2021-12-08 02:30:20.364236', time_epoch_executed='1638959420.36' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/388505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/388505/ft1_4FGL_J1608.7+1029_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/388505/ft2_4FGL_J1608.7+1029_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/388505/ft1_4FGL_J1608.7+1029_daily_bin1619.fits outfile=/scratch/kocevski/388505/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1619.fits ra=242.176 dec=10.4938 rad=12.0 tmin=658972801.0 tmax=659232001.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 3.00
user 2.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/388505/ft1_filtered_4FGL_J1608.7+1029_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/388505/ft2_4FGL_J1608.7+1029_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/388505/ltcube_658972801_659232001_4FGL_J1608.7+1029_daily_bin1619.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/388505/ft2_4FGL_J1608.7+1029_daily_bin1619.fits
.....................!
real 15.08
user 14.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/388505/ft1_filtered_4FGL_J1608.7+1029_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/388505/ft2_4FGL_J1608.7+1029_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/388505/ltcube_658972801_659232001_4FGL_J1608.7+1029_daily_bin1619.fits outfile=/scratch/kocevski/388505/expmap_658972801_659232001_4FGL_J1608.7+1029_daily_bin1619.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/388505/ltcube_658972801_659232001_4FGL_J1608.7+1029_daily_bin1619.fits
.....................!
real 192.59
user 186.86
sys 5.18

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/388505/ft1_filtered_4FGL_J1608.7+1029_daily_bin1619.fits scfile=/scratch/kocevski/388505/ft2_4FGL_J1608.7+1029_daily_bin1619.fits outfile=/scratch/kocevski/388505/cmap_658972801_659232001_4FGL_J1608.7+1029_daily_bin1619.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/388505/ft1_filtered_4FGL_J1608.7+1029_daily_bin1619.fits scfile=/scratch/kocevski/388505/ft2_4FGL_J1608.7+1029_daily_bin1619.fits outfile=/scratch/kocevski/388505/cmap_HighResolution_658972801_659232001_4FGL_J1608.7+1029_daily_bin1619.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.280       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .50848       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.089       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8437       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2884       1.0000         .10000E-03   10000.    
    11 'norm      '    69.292       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .96306E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .77719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1567       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95888       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1348       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=   7349.245     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2618 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.274        57.624       -.11068E-05   -.10354E-03
   2  Prefactor     .10000E-03    15.706        .54525E-06** at limit **
   3  Prefactor     .10000E-03    17.763        .62858E-07** at limit **
   4  norm          .50753        2.7392       -.11328E-05   -.40253E-03
   5  Prefactor     .10000E-03    3.4422        .34069E-07** at limit **
   6  Prefactor     40.089        40.832       -.14886E-05   -.12177E-03
   7  norm          .10000E-03    2.0549        .37455E-07** at limit **
   8  Prefactor     .10000E-03    68.771       -.70343E-06** at limit **
   9  norm          4.8430        9.7032       -.85527E-06   -.17399E-03
  10  norm          5.2879        2.4772        .21952E-07   -.53160E-04
  11  norm          69.289        28.698        .77310E-07   -.16592E-04
  12  norm          .10000E-03    137.04        .17382E-05** at limit **
  13  Prefactor     .30677E-01    35.520       -.52358E-05    .57658E-03
  14  Prefactor     .10003E-03    468.06        .18559E-04** at limit **
  15  Prefactor     .10000E-03    34.753       -.12486E-07** at limit **
  16  Prefactor     .75412        80.263        .57108E-05    .27401E-03
  17  Prefactor     8.1597        12.537       -.12927E-05   -.82395E-04
  18  Prefactor     9.4935        14.953       -.10307E-06   -.17336E-04
  19  Prefactor     10.999        10.706        .43003E-06    .93226E-04
  20  Normalizat    .95878        .31831       -.34804E-05   -.35532E-04
  21  Prefactor     1.1349        .13026        .91164E-06   -.11421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.2743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.507526
  Prefactor  = 0.0001
  Prefactor  = 40.0888
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.84302
  norm       = 5.28795
  norm       = 69.2891
  norm       = 0.0001
  Prefactor  = 0.0306768
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.754117
  Prefactor  = 8.1597
  Prefactor  = 9.49346
  Prefactor  = 10.9986
  Normalizat = 0.958777
  Prefactor  = 1.1349
 **********
 **   18 **HESSE 
 **********

 FCN=   7349.245     FROM HESSE     STATUS=OK           325 CALLS     2943 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.274        57.687        .42290E-04   -1.3805    
   2  Prefactor     .10000E-03    15.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .50753        2.7562        .26867E-03   -1.5565    
   5  Prefactor     .10000E-03    3.4477        .15534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.089        40.764        .63308E-04   -1.4441    
   7  norm          .10000E-03    2.0585        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    68.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8430        9.6314        .18278E-03   -1.5268    
  10  norm          5.2879        2.4771        .87896E-04   -1.5248    
  11  norm          69.289        28.726        .48222E-04   -1.4041    
  12  norm          .10000E-03    137.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .30677E-01    14.629        .74164E-01   -1.5673    
  14  Prefactor     .10003E-03    466.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .75412        85.299        .48495E-02   -1.5534    
  17  Prefactor     8.1597        12.405        .14038E-03   -1.5137    
  18  Prefactor     9.4935        14.934        .13004E-03   -1.5092    
  19  Prefactor     10.999        10.680        .12080E-03   -1.5045    
  20  Normalizat    .95878        .35640        .45704E-03   -.94425    
  21  Prefactor     1.1349        .14612        .18204E-03   -.88359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82548e-09
Minuit parameter uncertainties:
  1  57.7226
  2  0.000103153
  3  8.43995e-06
  4  2.36539
  5  3.09167e-06
  6  40.7919
  7  2.44905e-06
  8  6.77837e-05
  9  9.63448
  10  2.47711
  11  28.7318
  12  0.000395455
  13  1.33795
  14  0.00778565
  15  4.25017e-05
  16  16.0631
  17  12.4087
  18  14.9398
  19  10.6817
  20  0.357284
  21  0.146169
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  6.929e+01  2.873e+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.135e+00  1.462e-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.588e-01  3.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.83
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 2.21e-07 +/- 9.16e-08
Energy Flux (Fixed Index): 6.32e-05 +/- 2.62e-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) = 7348.29948693
delta logL = 0.945581817414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7348.28124913
delta logL = 0.96381961662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.921       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4434       1.0000          .0000       5.0000    
     3 'Normalizat'    .75823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1956       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=   7348.281     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.923        46.715        .60493E-04   -.17064E-03
   2  alpha         3.4434        1.0695        .11516E-01   -.16956E-04
   3  Normalizat    .75826        .37876        .50750E-03   -.40569E-04
   4  Prefactor     1.1956        .15677        .17792E-03    .88369E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 43.9232
  alpha      = 3.44344
  Normalizat = 0.758255
  Prefactor  = 1.19563
 **********
 **   18 **HESSE 
 **********

 FCN=   7348.281     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.923        37.036        .24197E-05   -1.4382    
   2  alpha         3.4434        .85876        .46062E-03    .38696    
   3  Normalizat    .75826        .36774        .20300E-04   -1.0164    
   4  Prefactor     1.1956        .15262        .71169E-05   -.86466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49242e-11
Minuit parameter uncertainties:
  1  37.0559
  2  0.879785
  3  0.368952
  4  0.152679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/388505': 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) = 7348.28124902
delta logL = 0.963819720089

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  4.392e+01  3.706e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.443e+00  8.798e-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.196e+00  1.527e-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.583e-01  3.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.53
Ra Dec: 242.176 10.494
Photon Index (Free Index): 3.44 +/- 0.88
Photon Flux (Free Index): 4.03e-07 +/- 1.82e-07
Energy Flux (Free Index): 7.19e-05 +/- 2.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/388505/cmap_HighResolution_658972801_659232001_4FGL_J1608.7+1029_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.21e-07', energy_flux2='7.19e-05', photon_flux_error='9.16e-08', dlogl='9.64e-01', energy_flux='6.32e-05', photon_flux2='4.03e-07', job_status='DONE', time_completed='2021-12-08 02:40:23.423012', photon_index_error2='0.88', photon_index2='3.44', ts='10.83', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='0.96', time_epoch_completed='1638960023.42', return_code='0', job_id='388505', GAL2='1.20', EG2='0.76', return_code2='0', energy_flux_error='2.62e-05', photon_flux_error2='1.82e-07', ts2='13.53', photon_index='2.46' WHERE bin_id='1619' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:40:23 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 388505: <4FGL_J1608.7+1029_daily_bin1619> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1619> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 02:25:31 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:28:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:28:06 2021
Terminated at Wed Dec  8 02:40:24 2021
Results reported at Wed Dec  8 02:40:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1619 242.176 10.4938 658972801 659232001 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 :                                   602.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            893 sec.

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

