aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 85 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 = 7326
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0614.8+6136_daily_bin1667
RA = 93.7213, Dec = 61.6079
tmin = 671414401, tmax = 671673601
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='476595', job_status='RUN', time_executed='2022-04-15 03:14:15.031836', time_epoch_executed='1650017655.03' WHERE source_name='4FGL J0614.8+6136' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476595

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476595/ft1_4FGL_J0614.8+6136_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476595/ft1_4FGL_J0614.8+6136_daily_bin1667.fits outfile=/scratch/kocevski/476595/ft1_filteredMKT_4FGL_J0614.8+6136_daily_bin1667.fits ra=93.7213 dec=61.6079 rad=12.0 tmin=671414401.0 tmax=671673601.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.53
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.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/476595/ft1_filteredMKT_4FGL_J0614.8+6136_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/476595/ft1_filtered_4FGL_J0614.8+6136_daily_bin1667.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 1266

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476595/ft1_filtered_4FGL_J0614.8+6136_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/476595/ltcube_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.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/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits
.....................!
real 13.14
user 12.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476595/ft1_filtered_4FGL_J0614.8+6136_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/476595/ltcube_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.fits outfile=/scratch/kocevski/476595/expmap_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.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/476595/ltcube_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.fits
.....................!
real 191.76
user 186.59
sys 4.58

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.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 185 point sources and 2 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 J0614.8+6136 @ 93.7213 61.6079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/476595/ft1_filtered_4FGL_J0614.8+6136_daily_bin1667.fits scfile=/scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits outfile=/scratch/kocevski/476595/cmap_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.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=93.7213 yref=61.6079 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476595/ft1_filtered_4FGL_J0614.8+6136_daily_bin1667.fits scfile=/scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits outfile=/scratch/kocevski/476595/cmap_HighResolution_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.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=93.7213 yref=61.6079 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.60
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476595/ft1_filtered_4FGL_J0614.8+6136_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476595/Model_4FGL_J0614.8+6136_daily_bin1667.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
adding source HB 9
Working on...
/scratch/kocevski/476595/ft1_filtered_4FGL_J0614.8+6136_daily_bin1667.fits.....................!
real 210.73
user 209.08
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/476595/ft1_filtered_4FGL_J0614.8+6136_daily_bin1667.fits', '/scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits', expMap='/scratch/kocevski/476595/expmap_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.fits', expCube='/scratch/kocevski/476595/ltcube_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/476595/Model_4FGL_J0614.8+6136_daily_bin1667.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0614.8+6136'

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  3.640e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/476595/ft1_filtered_4FGL_J0614.8+6136_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/476595/ft2_4FGL_J0614.8+6136_daily_bin1667.fits
Exposure map: /scratch/kocevski/476595/expmap_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.fits
Exposure cube: /scratch/kocevski/476595/ltcube_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/476595/Model_4FGL_J0614.8+6136_daily_bin1667.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) = 13031.9564588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.817       1.0000         .10000E-03   10000.    
     2 'norm      '    31.517       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.626       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.231       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2902       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0071       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2577       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.970       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.887       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80355       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0623       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13031.81     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1766 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.817        11.405        .29133E-02    .14856E-02
   2  norm          31.513        24.091        .17843E-02    .11225E-03
   3  Prefactor     7.7402        7.4879        .36034E-02   -.11997E-03
   4  Prefactor     .10000E-03    11.867        .90712E-02** at limit **
   5  norm          14.625        77.520        .26182E-02    .23718E-03
   6  Prefactor     .10000E-03    108.35        .90712E-02** at limit **
   7  Prefactor     23.229        25.393        .20777E-02    .11946E-03
   8  Prefactor     .10000E-03    31.744        .90712E-02** at limit **
   9  Prefactor     16.325        10.345        .24782E-02    .11114E-03
  10  Prefactor     .10000E-03    38.262        .90712E-02** at limit **
  11  Prefactor     8.2898        28.346        .34809E-02   -.52269E-04
  12  Prefactor     .10000E-03    17.139        .90712E-02** at limit **
  13  Prefactor     .10000E-03    11.716        .90712E-02** at limit **
  14  Prefactor     11.796        10.924        .29161E-02    .75688E-04
  15  Prefactor     6.0072        9.9908        .40956E-02    .13808E-02
  16  norm          1.2577        .60701        .99504E-02   -.21860E-03
  17  Prefactor     14.970        14.547        .25880E-02   -.15401E-04
  18  Prefactor     27.888        154.01        .18966E-02   -.39935E-03
  19  Normalizat    .80349        .16627        .98900E-01    .52293E-04
  20  Prefactor     1.0623        .58822E-01    .39238E-01   -.28274E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8173
  norm       = 31.5133
  Prefactor  = 7.74018
  Prefactor  = 0.0001
  norm       = 14.6254
  Prefactor  = 0.0001
  Prefactor  = 23.229
  Prefactor  = 0.0001
  Prefactor  = 16.3251
  Prefactor  = 0.0001
  Prefactor  = 8.28984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7956
  Prefactor  = 6.00719
  norm       = 1.25771
  Prefactor  = 14.9698
  Prefactor  = 27.8877
  Normalizat = 0.803493
  Prefactor  = 1.06232
 **********
 **   18 **HESSE 
 **********

 FCN=   13031.81     FROM HESSE     STATUS=OK           293 CALLS     2059 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.817        11.426        .58266E-03   -1.5020    
   2  norm          31.513        24.097        .71373E-04   -1.4585    
   3  Prefactor     7.7402        7.4916        .14413E-03   -1.5151    
   4  Prefactor     .10000E-03    11.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.625        77.573        .10473E-03   -1.4943    
   6  Prefactor     .10000E-03    109.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.229        25.412        .83107E-04   -1.4744    
   8  Prefactor     .10000E-03    32.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.325        10.351        .99127E-04   -1.4900    
  10  Prefactor     .10000E-03    38.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2898        28.338        .13924E-03   -1.5132    
  12  Prefactor     .10000E-03    17.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.796        10.926        .11664E-03   -1.5021    
  15  Prefactor     6.0072        9.9858        .81912E-03   -1.5218    
  16  norm          1.2577        .61056        .59978E-04   -1.5484    
  17  Prefactor     14.970        14.556        .10352E-03   -1.4934    
  18  Prefactor     27.888        154.98        .75864E-04   -1.4651    
  19  Normalizat    .80349        .17812        .43832E-03   -.99939    
  20  Prefactor     1.0623        .63400E-01    .14285E-03   -.90680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18397e-08
Minuit parameter uncertainties:
  1  11.4276
  2  24.1042
  3  7.49246
  4  2.40322e-06
  5  67.5026
  6  7.17883e-05
  7  25.4234
  8  8.9454e-06
  9  10.3524
  10  8.86388e-06
  11  28.3838
  12  8.80676e-07
  13  2.06958e-06
  14  10.9275
  15  9.98852
  16  0.610562
  17  14.5591
  18  132.015
  19  0.178247
  20  0.0634042
Done.

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

Extracting fit parameters...

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  8.945e-06  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.062e+00  6.340e-02  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  8.035e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 93.721 61.608
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476595/likelihoodResults_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.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) = 13031.8054061
delta logL = -0.00014877708054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13031.8052576
delta logL = -2.82838300336e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4222       1.0000          .0000       10.000    
     3 'Normalizat'    .80350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0623       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   13031.81     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      278 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6978.4        .18142E-02** at limit **
   2  Index         2.4686        5.1404        .50000       -.16050E-04
   3  Normalizat    .80349        .76015E-01    .43832E-03   -.37043E-03
   4  Prefactor     1.0623        .28360E-01    .14285E-03   -.41459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.46859
  Normalizat = 0.803491
  Prefactor  = 1.06232
 **********
 **   18 **HESSE 
 **********

 FCN=   13031.81     FROM HESSE     STATUS=OK            29 CALLS      307 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    37.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4686        6.2264        .50000       -.53087    
   3  Normalizat    .80349        .16445        .17533E-04   -.99939    
   4  Prefactor     1.0623        .61419E-01    .28571E-04   -.90680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47834e-10
Minuit parameter uncertainties:
  1  0.00107595
  2  4.82604
  3  0.164549
  4  0.0614233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476595': 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) = 13031.8052574
delta logL = -1.08981112135e-07

Extracting fit parameters...

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.076e-03  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.469e+00  4.826e+00  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.062e+00  6.142e-02  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  8.035e-01  1.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 93.721 61.608

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/476595/cmap_HighResolution_671414401_671673601_4FGL_J0614.8+6136_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', job_status='DONE', photon_flux_upper_limit='8.09e-08', time_completed='2022-04-15 03:31:47.394402', job_id='476595', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1650018707.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-1.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1667' AND source_name='4FGL J0614.8+6136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:31:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 476530: <4FGL_J0614.8+6136_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0614.8+6136_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:06:16 2022
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:12:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:12:20 2022
Terminated at Fri Apr 15 03:30:09 2022
Results reported at Fri Apr 15 03:30:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0614.8+6136_daily_bin1667 93.7213 61.6079 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0614.8+6136 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1050.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             404.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1071 sec.
    Turnaround time :                            12233 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 476595: <4FGL_J0614.8+6136_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0614.8+6136_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:06:19 2022
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:12:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:12:36 2022
Terminated at Fri Apr 15 03:31:48 2022
Results reported at Fri Apr 15 03:31:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0614.8+6136_daily_bin1667 93.7213 61.6079 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0614.8+6136 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1048.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             369.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1151 sec.
    Turnaround time :                            12329 sec.

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

