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


Performing analysis on: 4FGL_J0607.4+4739_daily_bin1670
RA = 91.8571, Dec = 47.6635
tmin = 672192001, tmax = 672451201
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='863040', job_status='RUN', time_executed='2022-04-24 00:17:50.923839', time_epoch_executed='1650784670.92' WHERE source_name='4FGL J0607.4+4739' and cadence='daily' and bin_id='1670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/863040

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/863040/ft1_4FGL_J0607.4+4739_daily_bin1670.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/863040/ft1_4FGL_J0607.4+4739_daily_bin1670.fits outfile=/scratch/kocevski/863040/ft1_filteredMKT_4FGL_J0607.4+4739_daily_bin1670.fits ra=91.8571 dec=47.6635 rad=12.0 tmin=672192001.0 tmax=672451201.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 5.09
user 4.86
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.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/863040/ft1_filteredMKT_4FGL_J0607.4+4739_daily_bin1670.fits evtable="EVENTS" outfile="/scratch/kocevski/863040/ft1_filtered_4FGL_J0607.4+4739_daily_bin1670.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 1546

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/863040/ft1_filtered_4FGL_J0607.4+4739_daily_bin1670.fits" evtable="EVENTS" scfile=/scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits sctable="SC_DATA" outfile=/scratch/kocevski/863040/ltcube_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.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/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits
.....................!
real 12.23
user 11.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/863040/ft1_filtered_4FGL_J0607.4+4739_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits sctable="SC_DATA" expcube=/scratch/kocevski/863040/ltcube_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.fits outfile=/scratch/kocevski/863040/expmap_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.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/863040/ltcube_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.fits
.....................!
real 190.15
user 185.59
sys 4.19

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 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.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 162 point sources and 3 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 J0607.4+4739 @ 91.8571 47.6635

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/863040/ft1_filtered_4FGL_J0607.4+4739_daily_bin1670.fits scfile=/scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits outfile=/scratch/kocevski/863040/cmap_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.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=91.8571 yref=47.6635 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/863040/ft1_filtered_4FGL_J0607.4+4739_daily_bin1670.fits scfile=/scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits outfile=/scratch/kocevski/863040/cmap_HighResolution_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.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=91.8571 yref=47.6635 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/863040/ft1_filtered_4FGL_J0607.4+4739_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/863040/Model_4FGL_J0607.4+4739_daily_bin1670.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
adding source S 147
Working on...
/scratch/kocevski/863040/ft1_filtered_4FGL_J0607.4+4739_daily_bin1670.fits.....................!
real 356.93
user 355.08
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/863040/ft1_filtered_4FGL_J0607.4+4739_daily_bin1670.fits', '/scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits', expMap='/scratch/kocevski/863040/expmap_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.fits', expCube='/scratch/kocevski/863040/ltcube_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/863040/Model_4FGL_J0607.4+4739_daily_bin1670.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0607.4+4739'

4FGL J0607.4+4739
   Spectrum: LogParabola
254         norm:  2.235e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  1.938e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  7.395e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  1.214e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/863040/ft1_filtered_4FGL_J0607.4+4739_daily_bin1670.fits
Spacecraft file(s): /scratch/kocevski/863040/ft2_4FGL_J0607.4+4739_daily_bin1670.fits
Exposure map: /scratch/kocevski/863040/expmap_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.fits
Exposure cube: /scratch/kocevski/863040/ltcube_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/863040/Model_4FGL_J0607.4+4739_daily_bin1670.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) = 15404.5037085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.338       1.0000         .10000E-03   10000.    
     2 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10738E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2732       1.0000         .10000E-03   10000.    
     6 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7852       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5552       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1142       1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.580       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3317       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60161       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.435       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .85312       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0410       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15404.50     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1857 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.330        22.342        .14647E-04   -.42240E-04
   2  norm          .10000E-03    .19999       -.86357E-07** at limit **
   3  Prefactor     .10000E-03    15.298       -.51926E-06** at limit **
   4  norm          .10000E-03    .49374       -.23841E-06** at limit **
   5  Prefactor     9.1840        59.639       -.56293E-04   -.54331E-05
   6  norm          .10000E-03    .78234        .88268E-07** at limit **
   7  norm          2.7851        1.9133        .10722E-07    .16218E-03
   8  Prefactor     9.5570        10.966        .11415E-06   -.28046E-04
   9  Prefactor     9.1143        6.7720       -.78479E-05   -.86326E-04
  10  Prefactor     64.581        41.137       -.24958E-05    .57934E-04
  11  norm          .10000E-03    1.5519       -.73625E-08** at limit **
  12  norm          .10000E-03    .98342       -.35897E-07** at limit **
  13  Prefactor     9.3319        14.940       -.47919E-05   -.92753E-05
  14  norm          .10000E-03    1.5544        .11197E-06** at limit **
  15  Prefactor     .60609        2.8087       -.10437E-05   -.38095E-03
  16  Prefactor     21.438        15.288       -.11517E-04    .10976E-03
  17  Normalizat    .85306        .20269        .11420E-04    .11943E-04
  18  Prefactor     1.0410        .49367E-01   -.12486E-05    .10967E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.33
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.18397
  norm       = 0.0001
  norm       = 2.7851
  Prefactor  = 9.55705
  Prefactor  = 9.11426
  Prefactor  = 64.5811
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.33189
  norm       = 0.0001
  Prefactor  = 0.606092
  Prefactor  = 21.4377
  Normalizat = 0.853056
  Prefactor  = 1.041
 **********
 **   18 **HESSE 
 **********

 FCN=   15404.50     FROM HESSE     STATUS=OK           252 CALLS     2109 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.330        22.323        .71576E-04   -1.4588    
   2  norm          .10000E-03    .31181        .10766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.3997        .16809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1840        59.864        .13161E-03   -1.5102    
   6  norm          .10000E-03    1.5785        .21364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7851        1.9143        .13858E-03   -1.5374    
   8  Prefactor     9.5570        10.953        .12964E-03   -1.5090    
   9  Prefactor     9.1143        6.7828        .13276E-03   -1.5104    
  10  Prefactor     64.581        41.330        .49938E-04   -1.4099    
  11  norm          .10000E-03    1.5848        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .99707        .12015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3319        14.938        .13119E-03   -1.5097    
  14  norm          .10000E-03    1.5700        .15098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .60609        8.8374        .38201E-02   -1.5552    
  16  Prefactor     21.438        15.228        .86514E-04   -1.4782    
  17  Normalizat    .85306        .20987        .54078E-03   -.98130    
  18  Prefactor     1.0410        .51349E-01    .13132E-03   -.91375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88904e-08
Minuit parameter uncertainties:
  1  22.3293
  2  4.22615e-06
  3  0.000125235
  4  3.99003e-05
  5  46.9634
  6  6.28412e-06
  7  1.91436
  8  10.9558
  9  6.78332
  10  41.3487
  11  9.00236e-06
  12  8.54684e-07
  13  14.944
  14  1.78478e-05
  15  4.62916
  16  15.2305
  17  0.210069
  18  0.0513516
Done.

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

Extracting fit parameters...

4FGL J0607.4+4739
   Spectrum: LogParabola
254         norm:  1.000e-04  6.284e-06  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  1.938e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  7.395e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  1.214e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  1.041e+00  5.135e-02  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.531e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 91.857 47.663
Photon Flux Upper Limit: 4.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/863040/likelihoodResults_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.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) = 15404.5050231
delta logL = -0.00301727352962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15404.5020055
delta logL = 3.35270669893e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9180       1.0000          .0000       5.0000    
     3 'Normalizat'    .85308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0410       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15404.50     FROM MIGRAD    STATUS=FAILED        93 CALLS      262 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10131E-03    57.952        .21554E-02** at limit **
   2  alpha         1.8025        3.3499        .50000        .19585E-04
   3  Normalizat    .85306        .33446E-01    .54077E-03   -.23782E-03
   4  Prefactor     1.0410        .89743E-02    .13132E-03   -.49375E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15404.50     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      386 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10131E-03    57.952        .25177E-03** at limit **
   2  alpha         1.8025        3.3499        .28387E-03    .19585E-04
   3  Normalizat    .85306        .33446E-01    .73319E-05   -.23782E-03
   4  Prefactor     1.0410        .89743E-02    .15383E-05   -.49375E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15404.50     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      429 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    257.47        .43108E-03** at limit **
   2  alpha         1.7378        3.5789        .50000       -.13420E-06
   3  Normalizat    .85306        .85445E-01    .21631E-04    .48291E-03
   4  Prefactor     1.0410        .22929E-01    .26263E-04    .21197E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.73784
  Normalizat = 0.85306
  Prefactor  = 1.041
 **********
 **   18 **HESSE 
 **********

 FCN=   15404.50     FROM HESSE     STATUS=OK            29 CALLS      458 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1908        .86217E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7378        3.1977        .50000       -.30979    
   3  Normalizat    .85306        .18312        .43261E-05   -.98130    
   4  Prefactor     1.0410        .49165E-01    .52527E-05   -.91375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99985e-10
Minuit parameter uncertainties:
  1  5.46956e-06
  2  79.0645
  3  0.183248
  4  0.0491672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/863040': 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) = 15404.5020033
delta logL = 2.46817762672e-06

Extracting fit parameters...

4FGL J0607.4+4739
   Spectrum: LogParabola
254         norm:  1.000e-04  5.470e-06  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  1.738e+00  7.906e+01  0.000e+00  5.000e+00 ( 1.000e+00)
256         beta:  7.395e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  1.214e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  1.041e+00  4.917e-02  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.531e-01  1.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 91.857 47.663

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/863040/cmap_HighResolution_672192001_672451201_4FGL_J0607.4+4739_daily_bin1670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='4.35e-08', time_completed='2022-04-24 00:38:37.725463', job_id='863040', GAL2='1.04', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1650785917.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1670' AND source_name='4FGL J0607.4+4739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr 24 00:38:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 863040: <4FGL_J0607.4+4739_daily_bin1670> in cluster <slac> Done

Job <4FGL_J0607.4+4739_daily_bin1670> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:59 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:16:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:16:47 2022
Terminated at Sun Apr 24 00:38:38 2022
Results reported at Sun Apr 24 00:38:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0607.4+4739_daily_bin1670 91.8571 47.6635 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0607.4+4739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1248.11 sec.
    Max Memory :                                 935 MB
    Average Memory :                             389.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1311 sec.
    Turnaround time :                            1779 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 863039: <4FGL_J0607.4+4739_daily_bin1670> in cluster <slac> Exited

Job <4FGL_J0607.4+4739_daily_bin1670> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:59 2022
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:16:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:16:46 2022
Terminated at Sun Apr 24 08:41:10 2022
Results reported at Sun Apr 24 08:41:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0607.4+4739_daily_bin1670 91.8571 47.6635 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0607.4+4739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

TERM_RUNLIMIT: job killed after reaching LSF run time limit.
Exited with exit code 140.

Resource usage summary:

    CPU time :                                   11.01 sec.
    Max Memory :                                 3 MB
    Average Memory :                             3.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              3
    Max Threads :                                4
    Run time :                                   30263 sec.
    Turnaround time :                            30731 sec.

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

