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


Performing analysis on: 4FGL_J0608.0+6721_daily_bin1494
RA = 92.0057, Dec = 67.3512
tmin = 626572801, tmax = 626832001
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='21992', job_status='RUN', time_executed='2021-08-24 08:01:46.487904', time_epoch_executed='1629817306.49' WHERE source_name='4FGL J0608.0+6721' and cadence='daily' and bin_id='1494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21992

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21992/ft1_4FGL_J0608.0+6721_daily_bin1494.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21992/ft2_4FGL_J0608.0+6721_daily_bin1494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21992/ft1_4FGL_J0608.0+6721_daily_bin1494.fits outfile=/scratch/kocevski/21992/ft1_filteredMKT_4FGL_J0608.0+6721_daily_bin1494.fits ra=92.0057 dec=67.3512 rad=12.0 tmin=626572801.0 tmax=626832001.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 6.10
user 2.74
sys 3.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21992/ft1_filtered_4FGL_J0608.0+6721_daily_bin1494.fits" evtable="EVENTS" scfile=/scratch/kocevski/21992/ft2_4FGL_J0608.0+6721_daily_bin1494.fits sctable="SC_DATA" outfile=/scratch/kocevski/21992/ltcube_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.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/21992/ft2_4FGL_J0608.0+6721_daily_bin1494.fits
.....................!
real 16.01
user 12.11
sys 3.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21992/ft1_filtered_4FGL_J0608.0+6721_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/21992/ft2_4FGL_J0608.0+6721_daily_bin1494.fits sctable="SC_DATA" expcube=/scratch/kocevski/21992/ltcube_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.fits outfile=/scratch/kocevski/21992/expmap_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.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/21992/ltcube_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.fits
.....................!
real 195.04
user 186.08
sys 8.50

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/21992/ft1_filtered_4FGL_J0608.0+6721_daily_bin1494.fits scfile=/scratch/kocevski/21992/ft2_4FGL_J0608.0+6721_daily_bin1494.fits outfile=/scratch/kocevski/21992/cmap_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.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 3.64
user 0.37
sys 3.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21992/ft1_filtered_4FGL_J0608.0+6721_daily_bin1494.fits scfile=/scratch/kocevski/21992/ft2_4FGL_J0608.0+6721_daily_bin1494.fits outfile=/scratch/kocevski/21992/cmap_HighResolution_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.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 3.66
user 0.38
sys 3.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/21992/ft1_filtered_4FGL_J0608.0+6721_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/21992/ft2_4FGL_J0608.0+6721_daily_bin1494.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/21992/Model_4FGL_J0608.0+6721_daily_bin1494.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/21992/ft1_filtered_4FGL_J0608.0+6721_daily_bin1494.fits.....................!
real 97.11
user 91.31
sys 5.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/21992/ft1_filtered_4FGL_J0608.0+6721_daily_bin1494.fits', '/scratch/kocevski/21992/ft2_4FGL_J0608.0+6721_daily_bin1494.fits', expMap='/scratch/kocevski/21992/expmap_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.fits', expCube='/scratch/kocevski/21992/ltcube_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/21992/Model_4FGL_J0608.0+6721_daily_bin1494.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/21992/ft1_filtered_4FGL_J0608.0+6721_daily_bin1494.fits
Spacecraft file(s): /scratch/kocevski/21992/ft2_4FGL_J0608.0+6721_daily_bin1494.fits
Exposure map: /scratch/kocevski/21992/expmap_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.fits
Exposure cube: /scratch/kocevski/21992/ltcube_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/21992/Model_4FGL_J0608.0+6721_daily_bin1494.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) = 7563.11849305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.367       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.540       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.284       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15488E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.439       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1579       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.604       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7679       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.070       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0886       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55225       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0720       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=   7563.050     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2442 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.367        12.432       -.72083E-06   -.23413E-04
   2  Prefactor     38.539        30.230        .29038E-06    .46745E-06
   3  norm          .10000E-03    32.049        .18680E-04** at limit **
   4  norm          .10000E-03    44.957        .23770E-04** at limit **
   5  Prefactor     15.284        19.173       -.14664E-06   -.17735E-05
   6  Prefactor    10000.0        210.58       -.17252E-03** at limit **
   7  norm          .10000E-03    817.10       -.87465E-03** at limit **
   8  Prefactor     .10000E-03    33.693       -.29096E-04** at limit **
   9  Prefactor     .10000E-03    114.58       -.40055E-04** at limit **
  10  Prefactor     18.427        30.601        .61712E-05    .22062E-04
  11  Prefactor     4.0743        17.203       -.23083E-04   -.53859E-04
  12  Prefactor     .10000E-03    9.9630        .26287E-06** at limit **
  13  Prefactor     7.8657        98.349       -.23225E-04   -.31611E-05
  14  Prefactor     .10000E-03    16.884        .62867E-08** at limit **
  15  norm          14.603        14.050       -.62652E-06   -.17111E-04
  16  Prefactor     .10000E-03    4.5758        .18503E-08** at limit **
  17  norm          3.7680        .75887        .42889E-07    .52514E-03
  18  Prefactor     .10000E-03    38.864        .13581E-05** at limit **
  19  Prefactor     32.066        29.880        .36989E-07    .33883E-04
  20  Prefactor     8.0802        27.316        .27081E-05   -.15515E-04
  21  Normalizat    .55249        .22463        .31285E-05    .14152E-03
  22  Prefactor     1.0719        .10708        .45188E-06    .28038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3672
  Prefactor  = 38.5393
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2841
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4266
  Prefactor  = 4.07431
  Prefactor  = 0.0001
  Prefactor  = 7.86569
  Prefactor  = 0.0001
  norm       = 14.6033
  Prefactor  = 0.0001
  norm       = 3.76804
  Prefactor  = 0.0001
  Prefactor  = 32.066
  Prefactor  = 8.08021
  Normalizat = 0.552488
  Prefactor  = 1.07194
 **********
 **   18 **HESSE 
 **********

 FCN=   7563.050     FROM HESSE     STATUS=OK           338 CALLS     2780 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.367        12.464        .10567E-03   -1.4950    
   2  Prefactor     38.539        30.240        .64562E-04   -1.4466    
   3  norm          .10000E-03    32.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    44.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.284        19.176        .10245E-03   -1.4926    
   6  Prefactor    10000.0        210.62        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    816.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    115.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.427        30.555        .93273E-04   -1.4849    
  11  Prefactor     4.0743        17.131        .19766E-03   -1.5304    
  12  Prefactor     .10000E-03    9.9844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8657        98.052        .14278E-03   -1.5147    
  14  Prefactor     .10000E-03    16.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.603        14.049        .10481E-03   -1.4943    
  16  Prefactor     .10000E-03    4.5778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7680        .75837        .31663E-04   -1.5320    
  18  Prefactor     .10000E-03    38.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.066        29.951        .70756E-04   -1.4575    
  20  Prefactor     8.0802        27.278        .14097E-03   -1.5139    
  21  Normalizat    .55249        .23371        .45880E-03   -1.1004    
  22  Prefactor     1.0719        .11335        .17431E-03   -.90368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51777e-10
Minuit parameter uncertainties:
  1  12.4666
  2  30.2521
  3  1.03604e-05
  4  2.82653e-06
  5  19.1841
  6  8.44955e-05
  7  2.02721e-05
  8  0.000101353
  9  5.15758e-05
  10  30.5812
  11  16.7166
  12  9.80752e-05
  13  55.6556
  14  7.88044e-07
  15  14.052
  16  6.93503e-07
  17  0.758368
  18  3.35185e-05
  19  29.9646
  20  27.3203
  21  0.234122
  22  0.113372
Done.

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

Extracting fit parameters...

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.014e-04  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:  1.072e+00  1.134e-01  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:  5.525e-01  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 92.006 67.351
Photon Flux Upper Limit: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21992/likelihoodResults_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.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): 102
logL (Free Index) = 7563.04969247
delta logL = -0.00014079533139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7563.04955279
delta logL = -1.12120051199e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2698       1.0000          .0000       10.000    
     3 'Normalizat'    .55248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0719       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7563.050     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      286 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7620.1        .18142E-01** at limit **
   2  Index         2.0956        6.6160        .86213E-02   -.15824E-08
   3  Normalizat    .55249        .98893E-01    .45880E-03   -.12861E-04
   4  Prefactor     1.0719        .51801E-01    .17431E-03   -.35741E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0956
  Normalizat = 0.552487
  Prefactor  = 1.07194
 **********
 **   18 **HESSE 
 **********

 FCN=   7563.050     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.295        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0956        7.0450        .17243E-02   -.61981    
   3  Normalizat    .55249        .20775        .18352E-04   -1.1004    
   4  Prefactor     1.0719        .10837        .69725E-05   -.90368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7208e-12
Minuit parameter uncertainties:
  1  0.000218254
  2  610.236
  3  0.208045
  4  0.108392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21992': 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) = 7563.0495515
delta logL = 1.67532562045e-07

Extracting fit parameters...

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.183e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.096e+00  6.102e+02  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:  1.072e+00  1.084e-01  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:  5.525e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 92.006 67.351

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/21992/cmap_HighResolution_626572801_626832001_4FGL_J0608.0+6721_daily_bin1494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-08-24 08:16:20.256030', job_id='21992', GAL2='1.07', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1629818180.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1494' AND source_name='4FGL J0608.0+6721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 08:16:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 21992: <4FGL_J0608.0+6721_daily_bin1494> in cluster <slac> Done

Job <4FGL_J0608.0+6721_daily_bin1494> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 24 08:00:43 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 08:00:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 08:00:44 2021
Terminated at Tue Aug 24 08:16:23 2021
Results reported at Tue Aug 24 08:16:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0608.0+6721_daily_bin1494 92.0057 67.3512 626572801 626832001 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 :                                   895.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            940 sec.

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

