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


Performing analysis on: 4FGL_J0607.4+4739_daily_bin1336
RA = 91.8571, Dec = 47.6635
tmin = 585619201, tmax = 585878401
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='9880', job_status='RUN', time_executed='2021-08-24 07:26:27.294698', time_epoch_executed='1629815187.29' WHERE source_name='4FGL J0607.4+4739' and cadence='daily' and bin_id='1336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9880

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9880/ft1_4FGL_J0607.4+4739_daily_bin1336.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9880/ft2_4FGL_J0607.4+4739_daily_bin1336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9880/ft1_4FGL_J0607.4+4739_daily_bin1336.fits outfile=/scratch/kocevski/9880/ft1_filteredMKT_4FGL_J0607.4+4739_daily_bin1336.fits ra=91.8571 dec=47.6635 rad=12.0 tmin=585619201.0 tmax=585878401.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.36
user 2.49
sys 2.77

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9880/ft1_filtered_4FGL_J0607.4+4739_daily_bin1336.fits" evtable="EVENTS" scfile=/scratch/kocevski/9880/ft2_4FGL_J0607.4+4739_daily_bin1336.fits sctable="SC_DATA" outfile=/scratch/kocevski/9880/ltcube_585619201_585878401_4FGL_J0607.4+4739_daily_bin1336.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/9880/ft2_4FGL_J0607.4+4739_daily_bin1336.fits
.....................!
real 15.81
user 12.13
sys 3.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9880/ft1_filtered_4FGL_J0607.4+4739_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/9880/ft2_4FGL_J0607.4+4739_daily_bin1336.fits sctable="SC_DATA" expcube=/scratch/kocevski/9880/ltcube_585619201_585878401_4FGL_J0607.4+4739_daily_bin1336.fits outfile=/scratch/kocevski/9880/expmap_585619201_585878401_4FGL_J0607.4+4739_daily_bin1336.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/9880/ltcube_585619201_585878401_4FGL_J0607.4+4739_daily_bin1336.fits
.....................!
real 194.57
user 185.98
sys 7.78

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/9880/ft1_filtered_4FGL_J0607.4+4739_daily_bin1336.fits scfile=/scratch/kocevski/9880/ft2_4FGL_J0607.4+4739_daily_bin1336.fits outfile=/scratch/kocevski/9880/cmap_585619201_585878401_4FGL_J0607.4+4739_daily_bin1336.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 3.14
user 0.37
sys 2.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9880/ft1_filtered_4FGL_J0607.4+4739_daily_bin1336.fits scfile=/scratch/kocevski/9880/ft2_4FGL_J0607.4+4739_daily_bin1336.fits outfile=/scratch/kocevski/9880/cmap_HighResolution_585619201_585878401_4FGL_J0607.4+4739_daily_bin1336.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 2.98
user 0.38
sys 2.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.822       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3405       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2777       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.3379       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3050.1       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16642E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10000.       1.0000         .10000E-03   10000.    
    12 'norm      '    4420.2       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13620E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98368       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=   4649.248     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     2078 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.809        31.322        .10185E-06   -.56068E-04
   2  norm          1.3381        2.0193        .35500E-06   -.31942E-03
   3  Prefactor     .10000E-03    75.623        .42751E-06** at limit **
   4  norm          1.2710        5.0514        .24469E-05   -.19618E-03
   5  Prefactor     .10000E-03    30.723       -.31336E-07** at limit **
   6  norm          .10000E-03    2.1054        .10979E-06** at limit **
   7  norm          8.3372        6.7351       -.78973E-07   -.38338E-04
   8  Prefactor     3049.4        1080.5       -.66699E-06   -.13266E-04
   9  Prefactor     .10000E-03    11.634        .52698E-06** at limit **
  10  Prefactor     .10000E-03    429.47       -.46006E-06** at limit **
  11  norm          10000.        238.06       -.20910E-06** at limit **
  12  norm          4422.3        2059.2       -.11930E-04   -.80872E-05
  13  Prefactor     .10000E-03    277.30        .15431E-06** at limit **
  14  norm          .10001E-03    8631.1        .76334E-05** at limit **
  15  Prefactor     .10000E-03    1221.2        .33473E-06** at limit **
  16  Prefactor     .10000E-03    182.98        .18270E-06** at limit **
  17  Normalizat    .10000E-01    .10895        .53363E-05** at limit **
  18  Prefactor     .98356        .59376E-01   -.97430E-06   -.51450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.8086
  norm       = 1.33814
  Prefactor  = 0.0001
  norm       = 1.27103
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.33717
  Prefactor  = 3049.43
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 4422.27
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.983559
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.248     FROM HESSE     STATUS=OK           236 CALLS     2314 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.809        31.399        .69942E-04   -1.4562    
   2  norm          1.3381        1.9753        .10769E-03   -1.5477    
   3  Prefactor     .10000E-03    77.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2710        4.8642        .27058E-03   -1.5482    
   5  Prefactor     .10000E-03    30.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1055        .96620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.3372        6.7350        .13883E-03   -1.5130    
   8  Prefactor     3049.4        1080.0        .43439E-04   -.40076    
   9  Prefactor     .10000E-03    11.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    429.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10000.        238.07        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4422.3        2071.1        .40272E-04   -.11580    
  13  Prefactor     .10000E-03    277.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    8627.0        .18182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1219.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    182.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .10000E-01    .12348        .13324E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .98356        .60933E-01    .11906E-03   -.93280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42225e-10
Minuit parameter uncertainties:
  1  31.415
  2  1.97537
  3  6.55177e-05
  4  4.86576
  5  2.90927e-06
  6  9.83237e-07
  7  6.73558
  8  1090.12
  9  1.31461e-05
  10  0.000701304
  11  2.47652e-05
  12  2136.34
  13  0.000145346
  14  0.0200711
  15  0.00331302
  16  0.000230794
  17  5.72085e-07
  18  0.0609369
Done.

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

Extracting fit parameters...

4FGL J0607.4+4739
   Spectrum: LogParabola
254         norm:  1.000e-04  9.832e-07  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.836e-01  6.094e-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.000e-02  5.721e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/9880/likelihoodResults_585619201_585878401_4FGL_J0607.4+4739_daily_bin1336.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) = 4649.24975861
delta logL = -0.00219971039223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4649.24755868
delta logL = 2.1950017981e-07

Fit tolerance = 1e-08

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

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

 FCN=   4649.248     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      242 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    115.43        .97534E-02** at limit **
   2  alpha         1.5378        4.0116        .17052        .13467E-07
   3  Normalizat    .10000E-01    .13137E-01    .13336E-01** at limit **
   4  Prefactor     .98356        .17339E-01    .11906E-03    .42364E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.53779
  Normalizat = 0.01
  Prefactor  = 0.98356
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.248     FROM HESSE     STATUS=OK            27 CALLS      269 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8581        .10346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5378        2.5035        .68210E-01   -.39508    
   3  Normalizat    .10000E-01    .12349        .26672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98356        .53245E-01    .23812E-04   -.93280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06171e-11
Minuit parameter uncertainties:
  1  1.91362e-05
  2  173.968
  3  7.62619e-07
  4  0.0532481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9880': 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) = 4649.24755586
delta logL = 3.03283741232e-06

Extracting fit parameters...

4FGL J0607.4+4739
   Spectrum: LogParabola
254         norm:  1.000e-04  1.914e-05  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  1.538e+00  1.740e+02  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.836e-01  5.325e-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.000e-02  7.626e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/9880/cmap_HighResolution_585619201_585878401_4FGL_J0607.4+4739_daily_bin1336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-05', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-08-24 07:37:11.876253', job_id='9880', GAL2='0.98', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629815831.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1336' AND source_name='4FGL J0607.4+4739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 07:37:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 9880: <4FGL_J0607.4+4739_daily_bin1336> in cluster <slac> Done

Job <4FGL_J0607.4+4739_daily_bin1336> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 24 07:25:36 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 07:25:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 07:25:37 2021
Terminated at Tue Aug 24 07:37:13 2021
Results reported at Tue Aug 24 07:37:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0607.4+4739_daily_bin1336 91.8571 47.6635 585619201 585878401 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 :                                   674.52 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             367.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            697 sec.

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

