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


Performing analysis on: 4FGL_J0607.4+4739_daily_bin79
RA = 91.8571, Dec = 47.6635
tmin = 259804801, tmax = 260064001
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='998953', job_status='RUN', time_executed='2021-08-24 06:46:14.168368', time_epoch_executed='1629812774.17' WHERE source_name='4FGL J0607.4+4739' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998953/ft1_4FGL_J0607.4+4739_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998953/ft2_4FGL_J0607.4+4739_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998953/ft1_4FGL_J0607.4+4739_daily_bin79.fits outfile=/scratch/kocevski/998953/ft1_filteredMKT_4FGL_J0607.4+4739_daily_bin79.fits ra=91.8571 dec=47.6635 rad=12.0 tmin=259804801.0 tmax=260064001.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 4.10
user 2.49
sys 1.58

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998953/ft2_4FGL_J0607.4+4739_daily_bin79.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/998953/ft1_filteredMKT_4FGL_J0607.4+4739_daily_bin79.fits evtable="EVENTS" outfile="/scratch/kocevski/998953/ft1_filtered_4FGL_J0607.4+4739_daily_bin79.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998953/ft1_filtered_4FGL_J0607.4+4739_daily_bin79.fits" evtable="EVENTS" scfile=/scratch/kocevski/998953/ft2_4FGL_J0607.4+4739_daily_bin79.fits sctable="SC_DATA" outfile=/scratch/kocevski/998953/ltcube_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.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/998953/ft2_4FGL_J0607.4+4739_daily_bin79.fits
.....................!
real 13.63
user 11.89
sys 1.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998953/ft1_filtered_4FGL_J0607.4+4739_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/998953/ft2_4FGL_J0607.4+4739_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/998953/ltcube_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.fits outfile=/scratch/kocevski/998953/expmap_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.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/998953/ltcube_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.fits
.....................!
real 192.43
user 186.07
sys 5.88

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/998953/ft1_filtered_4FGL_J0607.4+4739_daily_bin79.fits scfile=/scratch/kocevski/998953/ft2_4FGL_J0607.4+4739_daily_bin79.fits outfile=/scratch/kocevski/998953/cmap_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.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 1.90
user 0.38
sys 1.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998953/ft1_filtered_4FGL_J0607.4+4739_daily_bin79.fits scfile=/scratch/kocevski/998953/ft2_4FGL_J0607.4+4739_daily_bin79.fits outfile=/scratch/kocevski/998953/cmap_HighResolution_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.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 1.93
user 0.37
sys 1.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998953/ft1_filtered_4FGL_J0607.4+4739_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/998953/ft2_4FGL_J0607.4+4739_daily_bin79.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998953/Model_4FGL_J0607.4+4739_daily_bin79.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/998953/ft1_filtered_4FGL_J0607.4+4739_daily_bin79.fits.....................!
real 252.56
user 249.20
sys 2.83

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/998953/ft1_filtered_4FGL_J0607.4+4739_daily_bin79.fits', '/scratch/kocevski/998953/ft2_4FGL_J0607.4+4739_daily_bin79.fits', expMap='/scratch/kocevski/998953/expmap_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.fits', expCube='/scratch/kocevski/998953/ltcube_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/998953/Model_4FGL_J0607.4+4739_daily_bin79.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/998953/ft1_filtered_4FGL_J0607.4+4739_daily_bin79.fits
Spacecraft file(s): /scratch/kocevski/998953/ft2_4FGL_J0607.4+4739_daily_bin79.fits
Exposure map: /scratch/kocevski/998953/expmap_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.fits
Exposure cube: /scratch/kocevski/998953/ltcube_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/998953/Model_4FGL_J0607.4+4739_daily_bin79.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) = 11096.0226906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11870E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4678       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3129       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0588       1.0000         .10000E-03   10000.    
     7 'norm      '    .89771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2500       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2995       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9609       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.7642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .33416       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1190       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97831       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=   11095.09     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1532 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.811        .48852E-06** at limit **
   2  norm          1.4676        1.1152        .25887E-06   -.22901E-03
   3  Prefactor     8.3181        20.082        .15360E-05   -.81644E-05
   4  norm          .10000E-03    .82108        .32282E-06** at limit **
   5  Prefactor     .10000E-03    15.558        .15379E-07** at limit **
   6  norm          1.0583        2.9315        .18769E-05   -.49002E-04
   7  norm          .89747        2.1297        .13437E-05   -.33318E-04
   8  Prefactor     5.2557        9.0973        .26220E-05   -.47541E-04
   9  Prefactor     5.2995        9.6716       -.13782E-06   -.85594E-04
  10  Prefactor     8.8816        48.615       -.65398E-05   -.16405E-03
  11  norm          .10000E-03    2.0489       -.20255E-07** at limit **
  12  norm          8.7644        4.7669       -.10314E-06   -.12174E-03
  13  Prefactor     .10000E-03    15.491        .27294E-06** at limit **
  14  norm          .33391        4.4767        .58682E-05   -.26400E-03
  15  Prefactor     .10000E-03    1.8985       -.54694E-07** at limit **
  16  Prefactor     6.1156        13.400       -.12282E-05   -.78116E-04
  17  Normalizat    1.2635        .25169        .29133E-05   -.30247E-03
  18  Prefactor     .97834        .60758E-01   -.15671E-05   -.21755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.46764
  Prefactor  = 8.31809
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0583
  norm       = 0.89747
  Prefactor  = 5.25567
  Prefactor  = 5.29948
  Prefactor  = 8.88165
  norm       = 0.0001
  norm       = 8.76441
  Prefactor  = 0.0001
  norm       = 0.333907
  Prefactor  = 0.0001
  Prefactor  = 6.11556
  Normalizat = 1.26355
  Prefactor  = 0.978343
 **********
 **   18 **HESSE 
 **********

 FCN=   11095.09     FROM HESSE     STATUS=OK           250 CALLS     1782 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4676        1.1157        .17741E-03   -1.5466    
   3  Prefactor     8.3181        20.124        .13904E-03   -1.5131    
   4  norm          .10000E-03    1.7319        .18454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0583        2.9084        .29008E-03   -1.5502    
   7  norm          .89747        2.1036        .23013E-03   -1.5519    
   8  Prefactor     5.2557        9.1205        .87714E-03   -1.5249    
   9  Prefactor     5.2995        9.6666        .17459E-03   -1.5248    
  10  Prefactor     8.8816        49.698        .13389E-03   -1.5112    
  11  norm          .10000E-03    2.0589        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.7644        4.7695        .13540E-03   -1.5116    
  13  Prefactor     .10000E-03    15.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .33391        4.5618        .42295E-03   -1.5592    
  15  Prefactor     .10000E-03    1.9118        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1156        13.395        .16230E-03   -1.5213    
  17  Normalizat    1.2635        .26473        .49782E-03   -.84661    
  18  Prefactor     .97834        .64163E-01    .13859E-03   -.93455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83541e-10
Minuit parameter uncertainties:
  1  7.24431e-05
  2  1.11569
  3  20.1405
  4  3.31303e-05
  5  1.85858e-06
  6  2.90875
  7  2.10378
  8  9.12294
  9  9.66945
  10  42.0726
  11  6.78706e-06
  12  4.76975
  13  6.24565e-06
  14  2.46822
  15  1.0381e-05
  16  13.4013
  17  0.265014
  18  0.0641678
Done.

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

Extracting fit parameters...

4FGL J0607.4+4739
   Spectrum: LogParabola
254         norm:  1.058e+00  2.909e+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

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  9.783e-01  6.417e-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:  1.264e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/998953/likelihoodResults_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.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) = 11094.6369868
delta logL = 0.457033770572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11094.6187373
delta logL = 0.475283239046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2754       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8465       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98010       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.

 FCN=   11094.62     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2743        20.201        .98377E-02    .17072E-02
   2  alpha         2.8474        3.6893        .41662        .87986E-04
   3  Normalizat    1.2228        .59425E-01    .11376        .67703E-04
   4  Prefactor     .98017        .14692E-01    .31325E-01   -.32595E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27435
  alpha      = 2.84738
  Normalizat = 1.2228
  Prefactor  = 0.980166
 **********
 **   18 **HESSE 
 **********

 FCN=   11094.62     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2743        2.4481        .12074E-03   -1.5482    
   2  alpha         2.8474        .98772        .14601E-01    .13940    
   3  Normalizat    1.2228        .25019        .50448E-03   -.85901    
   4  Prefactor     .98017        .61594E-01    .13842E-03   -.93394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22757e-11
Minuit parameter uncertainties:
  1  2.44832
  2  1.016
  3  0.250432
  4  0.0615985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998953': 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) = 11094.6187362
delta logL = 0.475284359511

Extracting fit parameters...

4FGL J0607.4+4739
   Spectrum: LogParabola
254         norm:  1.274e+00  2.448e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.847e+00  1.016e+00  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:  9.802e-01  6.160e-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:  1.223e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 91.857 47.663
Photon Index (Free Index): 2.85 +/- 1.02
Photon Flux (Free Index): 6.27e-08 +/- 6.98e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/998953/cmap_HighResolution_259804801_260064001_4FGL_J0607.4+4739_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-05', comment='SUCCESS', energy_flux2='1.48e-05', dlogl='4.75e-01', photon_flux2='6.27e-08', job_status='DONE', time_completed='2021-08-24 07:01:15.743438', photon_index_error2='1.02', photon_index2='2.85', ts='0.16', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='9.58e-08', energy_flux_error2='1.65e-05', EG='1.26', time_epoch_completed='1629813675.74', return_code='0', job_id='998953', GAL2='0.98', EG2='1.22', return_code2='0', photon_flux_error2='6.98e-08', ts2='1.13', photon_index='1.94' WHERE bin_id='79' AND source_name='4FGL J0607.4+4739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 07:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 998953: <4FGL_J0607.4+4739_daily_bin79> in cluster <slac> Done

Job <4FGL_J0607.4+4739_daily_bin79> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 24 06:45:33 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 06:45:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 06:45:34 2021
Terminated at Tue Aug 24 07:01:16 2021
Results reported at Tue Aug 24 07:01:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0607.4+4739_daily_bin79 91.8571 47.6635 259804801 260064001 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 :                                   920.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

