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


Performing analysis on: 4FGL_J0608.0+6721_daily_bin8
RA = 92.0057, Dec = 67.3512
tmin = 241401601, tmax = 241660801
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='11232', job_status='RUN', time_executed='2021-08-24 07:31:41.523798', time_epoch_executed='1629815501.52' WHERE source_name='4FGL J0608.0+6721' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11232/ft1_4FGL_J0608.0+6721_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11232/ft1_4FGL_J0608.0+6721_daily_bin8.fits outfile=/scratch/kocevski/11232/ft1_filteredMKT_4FGL_J0608.0+6721_daily_bin8.fits ra=92.0057 dec=67.3512 rad=12.0 tmin=241401601.0 tmax=241660801.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.06
user 1.29
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.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/11232/ft1_filteredMKT_4FGL_J0608.0+6721_daily_bin8.fits evtable="EVENTS" outfile="/scratch/kocevski/11232/ft1_filtered_4FGL_J0608.0+6721_daily_bin8.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 1.03
user 0.33
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/11232/ft1_filtered_4FGL_J0608.0+6721_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/11232/ltcube_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.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/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits
.....................!
real 14.96
user 14.00
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11232/ft1_filtered_4FGL_J0608.0+6721_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/11232/ltcube_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.fits outfile=/scratch/kocevski/11232/expmap_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.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/11232/ltcube_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.fits
.....................!
real 192.89
user 187.45
sys 5.03

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 198 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0608.0+6721 @ 92.0057 67.3512

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/11232/ft1_filtered_4FGL_J0608.0+6721_daily_bin8.fits scfile=/scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits outfile=/scratch/kocevski/11232/cmap_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.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=92.0057 yref=67.3512 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 1.04
user 0.36
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/11232/ft1_filtered_4FGL_J0608.0+6721_daily_bin8.fits scfile=/scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits outfile=/scratch/kocevski/11232/cmap_HighResolution_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.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=92.0057 yref=67.3512 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 1.03
user 0.42
sys 0.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/11232/ft1_filtered_4FGL_J0608.0+6721_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/11232/Model_4FGL_J0608.0+6721_daily_bin8.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 G150.3+4.5
adding source GAL_V02
Working on...
/scratch/kocevski/11232/ft1_filtered_4FGL_J0608.0+6721_daily_bin8.fits.....................!
real 113.49
user 111.26
sys 1.92

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/11232/ft1_filtered_4FGL_J0608.0+6721_daily_bin8.fits', '/scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits', expMap='/scratch/kocevski/11232/expmap_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.fits', expCube='/scratch/kocevski/11232/ltcube_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/11232/Model_4FGL_J0608.0+6721_daily_bin8.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0608.0+6721'

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  8.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/11232/ft1_filtered_4FGL_J0608.0+6721_daily_bin8.fits
Spacecraft file(s): /scratch/kocevski/11232/ft2_4FGL_J0608.0+6721_daily_bin8.fits
Exposure map: /scratch/kocevski/11232/expmap_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.fits
Exposure cube: /scratch/kocevski/11232/ltcube_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/11232/Model_4FGL_J0608.0+6721_daily_bin8.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) = 8792.5228098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    160.91       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.904       1.0000         .10000E-03   10000.    
    15 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0858       1.0000         .10000E-03   10000.    
    18 'Prefactor '    132.00       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3020       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1251       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93312       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8792.492     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2344 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8848       -.97669E-08** at limit **
   2  Prefactor     .10000E-03    22.272        .23795E-04** at limit **
   3  norm          .10000E-03    14.136        .45028E-05** at limit **
   4  norm          .10000E-03    53.423       -.47364E-06** at limit **
   5  Prefactor     .10000E-03    4.5214        .90184E-08** at limit **
   6  Prefactor     .10000E-03    20.444       -.22108E-04** at limit **
   7  norm          .10000E-03    55.129        .98661E-05** at limit **
   8  Prefactor     43.945        48.698       -.49749E-05    .17959E-05
   9  Prefactor     21.105        28.198       -.59284E-05    .39344E-05
  10  Prefactor     .10000E-03    4.5949        .33980E-07** at limit **
  11  Prefactor     .10000E-03    11.278        .30340E-05** at limit **
  12  Prefactor     160.97        47.185        .15897E-04   -.72972E-05
  13  Prefactor     .10000E-03    11.791       -.56301E-05** at limit **
  14  Prefactor     24.913        29.982       -.61735E-05    .68306E-05
  15  norm          .10000E-03    38.187       -.47795E-05** at limit **
  16  Prefactor     .10000E-03    8.5156        .18669E-07** at limit **
  17  norm          2.0870        .83762       -.18084E-06   -.29239E-03
  18  Prefactor     131.91        196.73       -.76620E-04    .65705E-05
  19  Prefactor     6.1664        58.133       -.58761E-05   -.25658E-04
  20  Prefactor     .10000E-03    38.705       -.62836E-05** at limit **
  21  Normalizat    1.1245        .21904        .16806E-05   -.83841E-04
  22  Prefactor     .93334        .72536E-01   -.13912E-06    .16972E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.9455
  Prefactor  = 21.1053
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 160.975
  Prefactor  = 0.0001
  Prefactor  = 24.9127
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08697
  Prefactor  = 131.909
  Prefactor  = 6.16637
  Prefactor  = 0.000100002
  Normalizat = 1.12451
  Prefactor  = 0.933343
 **********
 **   18 **HESSE 
 **********

 FCN=   8792.492     FROM HESSE     STATUS=OK           338 CALLS     2682 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    53.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    55.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.945        48.825        .60481E-04   -1.4381    
   9  Prefactor     21.105        28.218        .87196E-04   -1.4789    
  10  Prefactor     .10000E-03    4.6106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     160.97        47.426        .15895E-03   -1.3164    
  13  Prefactor     .10000E-03    11.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.913        30.004        .80270E-04   -1.4709    
  15  norm          .10000E-03    38.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0870        .83434        .50974E-04   -1.5419    
  18  Prefactor     131.91        197.81        .17524E-03   -1.3406    
  19  Prefactor     6.1664        58.617        .15990E-03   -1.5211    
  20  Prefactor     .10000E-03    38.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1245        .24245        .39484E-03   -.88969    
  22  Prefactor     .93334        .79971E-01    .15748E-03   -.94986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71521e-10
Minuit parameter uncertainties:
  1  6.98054e-06
  2  7.10745e-05
  3  1.3904e-05
  4  1.45231e-05
  5  1.09341e-06
  6  1.0673e-06
  7  8.16943e-07
  8  48.8699
  9  28.2358
  10  3.58844e-06
  11  0.000179263
  12  47.4372
  13  9.6711e-06
  14  30.0221
  15  0.000272832
  16  4.84473e-06
  17  0.834344
  18  198.816
  19  38.0728
  20  0.000500406
  21  0.242692
  22  0.0799809
Done.

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

Extracting fit parameters...

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  4.395e+01  4.887e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.333e-01  7.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.125e+00  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 92.006 67.351
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 6.16e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.81e-05

TS (Fixed Index): 1.03
Ra Dec: 92.006 67.351
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/11232/likelihoodResults_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.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) = 8792.48272002
delta logL = 0.00955759712815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8792.47943023
delta logL = 0.0128473825243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.017       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6226       1.0000          .0000       10.000    
     3 'Normalizat'    1.1188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8792.479     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      232 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.017        1000.3        .15841E-02   -.89451E-04
   2  Index         2.6227        3.5930        .23126        .76444E-04
   3  Normalizat    1.1190        .73587E-01    .89342E-01    .23581E-04
   4  Prefactor     .93438        .25104E-01    .45442E-01   -.60788E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.0168
  Index      = 2.62265
  Normalizat = 1.11902
  Prefactor  = 0.934376
 **********
 **   18 **HESSE 
 **********

 FCN=   8792.479     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.017        55.942        .63364E-04   -1.4442    
   2  Index         2.6227        .89628        .89137E-02   -.49550    
   3  Normalizat    1.1190        .21699        .39568E-03   -.89143    
   4  Prefactor     .93438        .78140E-01    .15740E-03   -.94950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.861e-11
Minuit parameter uncertainties:
  1  56.0152
  2  0.902605
  3  0.217168
  4  0.0781494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11232': 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) = 8792.47942981
delta logL = 0.0128478035676

Extracting fit parameters...

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  4.002e+01  5.602e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.623e+00  9.026e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  8.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.344e-01  7.815e-02  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.119e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 92.006 67.351
Photon Index (Free Index): 2.62 +/- 0.90
Photon Flux (Free Index): 6.13e-08 +/- 7.21e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.79e-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/11232/cmap_HighResolution_241401601_241660801_4FGL_J0608.0+6721_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='1.57e-05', photon_flux_error='6.16e-08', dlogl='1.28e-02', energy_flux='1.63e-05', photon_flux2='6.13e-08', job_status='DONE', time_completed='2021-08-24 07:46:33.908954', photon_index_error2='0.90', photon_index2='2.62', ts='1.03', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.79e-05', EG='1.12', time_epoch_completed='1629816393.91', return_code='0', job_id='11232', GAL2='0.93', EG2='1.12', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='7.21e-08', ts2='1.06', photon_index='2.49' WHERE bin_id='8' AND source_name='4FGL J0608.0+6721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 07:46:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 11232: <4FGL_J0608.0+6721_daily_bin8> in cluster <slac> Done

Job <4FGL_J0608.0+6721_daily_bin8> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 24 07:30:37 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 07:30:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 07:30:38 2021
Terminated at Tue Aug 24 07:46:34 2021
Results reported at Tue Aug 24 07:46:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0608.0+6721_daily_bin8 92.0057 67.3512 241401601 241660801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0608.0+6721 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   897.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             316.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            957 sec.

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

