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


Performing analysis on: 4FGL_J0608.0+6721_monthly_bin118
RA = 92.0057, Dec = 67.3512
tmin = 542851201, tmax = 545443201
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='906990', job_status='RUN', time_executed='2021-10-15 18:13:42.962898', time_epoch_executed='1634346822.96' WHERE source_name='4FGL J0608.0+6721' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906990

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906990/ft1_4FGL_J0608.0+6721_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906990/ft2_4FGL_J0608.0+6721_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906990/ft1_4FGL_J0608.0+6721_monthly_bin118.fits outfile=/scratch/kocevski/906990/ft1_filteredMKT_4FGL_J0608.0+6721_monthly_bin118.fits ra=92.0057 dec=67.3512 rad=12.0 tmin=542851201.0 tmax=545443201.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 19.04
user 17.91
sys 0.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906990/ft2_4FGL_J0608.0+6721_monthly_bin118.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/906990/ft1_filteredMKT_4FGL_J0608.0+6721_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/906990/ft1_filtered_4FGL_J0608.0+6721_monthly_bin118.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.59
user 0.43
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906990/ft1_filtered_4FGL_J0608.0+6721_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/906990/ft2_4FGL_J0608.0+6721_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/906990/ltcube_542851201_545443201_4FGL_J0608.0+6721_monthly_bin118.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/906990/ft2_4FGL_J0608.0+6721_monthly_bin118.fits
.....................!
real 40.08
user 39.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906990/ft1_filtered_4FGL_J0608.0+6721_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/906990/ft2_4FGL_J0608.0+6721_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/906990/ltcube_542851201_545443201_4FGL_J0608.0+6721_monthly_bin118.fits outfile=/scratch/kocevski/906990/expmap_542851201_545443201_4FGL_J0608.0+6721_monthly_bin118.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/906990/ltcube_542851201_545443201_4FGL_J0608.0+6721_monthly_bin118.fits
.....................!
real 192.34
user 186.86
sys 4.86

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/906990/ft1_filtered_4FGL_J0608.0+6721_monthly_bin118.fits scfile=/scratch/kocevski/906990/ft2_4FGL_J0608.0+6721_monthly_bin118.fits outfile=/scratch/kocevski/906990/cmap_542851201_545443201_4FGL_J0608.0+6721_monthly_bin118.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 0.61
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906990/ft1_filtered_4FGL_J0608.0+6721_monthly_bin118.fits scfile=/scratch/kocevski/906990/ft2_4FGL_J0608.0+6721_monthly_bin118.fits outfile=/scratch/kocevski/906990/cmap_HighResolution_542851201_545443201_4FGL_J0608.0+6721_monthly_bin118.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 0.62
user 0.45
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.879       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13866E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    216.78       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11238E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.483       1.0000         .10000E-03   10000.    
    15 'norm      '    .12188E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.438       1.0000         .10000E-03   10000.    
    17 'norm      '    9.5300       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19699E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11085E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .37080       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2392       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=   1499.058     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2608 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.878        33.452        .19932E-05   -.26306E-04
   2  Prefactor     .10000E-03    70.335       -.17053E-05** at limit **
   3  norm          .10000E-03    20.137        .20668E-05** at limit **
   4  norm          .10000E-03    27.190        .15331E-05** at limit **
   5  Prefactor     .10000E-03    20.339       -.22074E-05** at limit **
   6  Prefactor     .10000E-03    40.416       -.30587E-04** at limit **
   7  norm          .10000E-03    242.01        .45224E-04** at limit **
   8  Prefactor     216.71        174.89       -.45701E-04   -.18510E-04
   9  Prefactor     .10001E-03    82.806       -.27108E-04** at limit **
  10  Prefactor     .10000E-03    41.755        .49339E-06** at limit **
  11  Prefactor     .10000E-03    43.706        .31344E-04** at limit **
  12  Prefactor     .10000E-03    42.114        .45634E-05** at limit **
  13  Prefactor     .10001E-03    89.445       -.22988E-04** at limit **
  14  Prefactor     13.743        321.19        .60669E-03    .64110E-04
  15  norm          .10000E-03    118.32        .49925E-04** at limit **
  16  Prefactor     43.325        97.558       -.13550E-03   -.22579E-04
  17  norm          9.5293        4.1942        .28129E-06   -.11336E-03
  18  Prefactor     .10000E-03    275.74       -.25977E-04** at limit **
  19  Prefactor     .10000E-03    68.751        .47210E-05** at limit **
  20  Prefactor     .10000E-03    493.51       -.88298E-04** at limit **
  21  Normalizat    .37105        .59800        .22227E-05   -.12872E-05
  22  Prefactor     1.2390        .20514       -.50040E-05    .20895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.8777
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 216.706
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 13.7433
  norm       = 0.0001
  Prefactor  = 43.3245
  norm       = 9.52934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.371046
  Prefactor  = 1.23903
 **********
 **   18 **HESSE 
 **********

 FCN=   1499.058     FROM HESSE     STATUS=OK           326 CALLS     2934 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.878        33.514        .64281E-04   -1.4460    
   2  Prefactor     .10000E-03    70.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    20.152        .16975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    27.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.340        .17061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    242.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     216.71        170.93        .13734E-03   -1.2753    
   9  Prefactor     .10001E-03    82.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    89.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.743        313.40        .10909E-03   -1.4966    
  15  norm          .10000E-03    118.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.325        96.577        .60827E-04   -1.4391    
  17  norm          9.5293        4.1683        .50063E-04   -1.5090    
  18  Prefactor     .10000E-03    275.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    68.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    497.44        .20693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .37105        .54623        .69688E-03   -1.1883    
  22  Prefactor     1.2390        .19402        .14961E-03   -.85138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97558e-10
Minuit parameter uncertainties:
  1  33.5299
  2  5.24545e-05
  3  4.78128e-05
  4  2.6097e-05
  5  1.8262e-05
  6  3.72753e-05
  7  4.03979e-05
  8  171.326
  9  0.0014398
  10  0.000584957
  11  0.000139324
  12  7.47942e-05
  13  0.00140407
  14  132.045
  15  2.96451e-05
  16  96.9282
  17  4.16842
  18  8.93367e-05
  19  4.06508e-05
  20  0.0026664
  21  0.554361
  22  0.194128
Done.

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

Extracting fit parameters...

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  2.167e+02  1.713e+02  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.239e+00  1.941e-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:  3.710e-01  5.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.65
Ra Dec: 92.006 67.351
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 2.74e-07 +/- 2.16e-07
Energy Flux (Fixed Index): 8.03e-05 +/- 6.34e-05

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

Saving results to:
/scratch/kocevski/906990/likelihoodResults_542851201_545443201_4FGL_J0608.0+6721_monthly_bin118.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) = 1497.32333854
delta logL = 1.73439900769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1496.57647884
delta logL = 2.48125870122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19180E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9477       1.0000          .0000       10.000    
     3 'Normalizat'    .13275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3019       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=   1496.576     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      366 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18787E-01    .23634        .63869E-03    .73606E-02
   2  Index         7.9588        3.1097        .58044E-01    .92093E-04
   3  Normalizat    .13233        .28395        .26232        .37284E-04
   4  Prefactor     1.3022        .11707        .32576E-01    .47144E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0187867
  Index      = 7.95875
  Normalizat = 0.132333
  Prefactor  = 1.30216
 **********
 **   18 **HESSE 
 **********

 FCN=   1496.576     FROM HESSE     STATUS=OK            31 CALLS      397 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18787E-01    .89549        .28165E-05   -1.5681    
   2  Index         7.9588        8.6972        .25479E-03    .63323    
   3  Normalizat    .13233        .59343        .10663E-01   -1.3490    
   4  Prefactor     1.3022        .19975        .14601E-03   -.83243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60069e-10
Minuit parameter uncertainties:
  1  0.258723
  2  6.95008
  3  0.547906
  4  0.199872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906990': 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) = 1496.57647055
delta logL = 2.48126699087

Extracting fit parameters...

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  1.879e-02  2.587e-01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  7.959e+00  6.950e+00  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.302e+00  1.999e-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:  1.323e-01  5.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.45
Ra Dec: 92.006 67.351
Photon Index (Free Index): 7.96 +/- 6.95
Photon Flux (Free Index): 5.09e-07 +/- 2.95e-07
Energy Flux (Free Index): 5.92e-05 +/- 3.80e-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/906990/cmap_HighResolution_542851201_545443201_4FGL_J0608.0+6721_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-02', comment='SUCCESS', photon_flux='2.74e-07', energy_flux2='5.92e-05', photon_flux_error='2.16e-07', dlogl='2.48e+00', energy_flux='8.03e-05', photon_flux2='5.09e-07', job_status='DONE', time_completed='2021-10-15 18:23:31.677492', photon_index_error2='6.95', photon_index2='7.96', ts='2.65', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='7.26e-07', energy_flux_error2='3.80e-05', EG='0.37', time_epoch_completed='1634347411.68', return_code='0', job_id='906990', GAL2='1.30', EG2='0.13', return_code2='0', energy_flux_error='6.34e-05', photon_flux_error2='2.95e-07', ts2='8.45', photon_index='2.49' WHERE bin_id='118' AND source_name='4FGL J0608.0+6721' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 15 18:23:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 906990: <4FGL_J0608.0+6721_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0608.0+6721_monthly_bin118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Oct 15 18:10:13 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 15 18:10:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 15 18:10:15 2021
Terminated at Fri Oct 15 18:23:34 2021
Results reported at Fri Oct 15 18:23:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0608.0+6721_monthly_bin118 92.0057 67.3512 542851201 545443201 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 :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            801 sec.

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

