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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1019
RA = 66.8294, Dec = 5.08
tmin = 503452801, tmax = 503712001
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='453663', job_status='RUN', time_executed='2021-08-20 15:53:23.091948', time_epoch_executed='1629500003.09' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453663/ft1_4FGL_J0427.3+0504_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453663/ft1_4FGL_J0427.3+0504_daily_bin1019.fits outfile=/scratch/kocevski/453663/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1019.fits ra=66.8294 dec=5.08 rad=12.0 tmin=503452801.0 tmax=503712001.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 8.28
user 7.37
sys 0.88

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.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/453663/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/453663/ft1_filtered_4FGL_J0427.3+0504_daily_bin1019.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.01
user 0.33
sys 0.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453663/ft1_filtered_4FGL_J0427.3+0504_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/453663/ltcube_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.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/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits
.....................!
real 12.37
user 11.38
sys 0.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453663/ft1_filtered_4FGL_J0427.3+0504_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/453663/ltcube_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.fits outfile=/scratch/kocevski/453663/expmap_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.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/453663/ltcube_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.fits
.....................!
real 191.18
user 185.61
sys 5.14

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
Added 139 point sources and 0 extended sources

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/453663/ft1_filtered_4FGL_J0427.3+0504_daily_bin1019.fits scfile=/scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits outfile=/scratch/kocevski/453663/cmap_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.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=66.8294 yref=5.08 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.08
user 0.36
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453663/ft1_filtered_4FGL_J0427.3+0504_daily_bin1019.fits scfile=/scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits outfile=/scratch/kocevski/453663/cmap_HighResolution_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.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=66.8294 yref=5.08 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.03
user 0.38
sys 0.64

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/453663/ft1_filtered_4FGL_J0427.3+0504_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/453663/Model_4FGL_J0427.3+0504_daily_bin1019.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 GAL_V02
Working on...
/scratch/kocevski/453663/ft1_filtered_4FGL_J0427.3+0504_daily_bin1019.fits.....................!
real 102.20
user 100.01
sys 1.93

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/453663/ft1_filtered_4FGL_J0427.3+0504_daily_bin1019.fits', '/scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits', expMap='/scratch/kocevski/453663/expmap_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.fits', expCube='/scratch/kocevski/453663/ltcube_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/453663/Model_4FGL_J0427.3+0504_daily_bin1019.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/453663/ft1_filtered_4FGL_J0427.3+0504_daily_bin1019.fits
Spacecraft file(s): /scratch/kocevski/453663/ft2_4FGL_J0427.3+0504_daily_bin1019.fits
Exposure map: /scratch/kocevski/453663/expmap_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.fits
Exposure cube: /scratch/kocevski/453663/ltcube_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/453663/Model_4FGL_J0427.3+0504_daily_bin1019.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) = 6980.67000923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.827       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.482       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.308       1.0000         .10000E-03   10000.    
     5 'norm      '    .96552E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6845       1.0000         .10000E-03   10000.    
     7 'norm      '    .12830E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5530       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3404       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.043       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9445       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.7557       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.786       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0712       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.2000       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6996       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2247       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6980.645     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3350 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.953        58.818       -.66233E-06   -.35366E-04
   2  Prefactor     13.475        18.701        .47282E-07    .10517E-03
   3  norm          .10000E-03    9.0037        .10333E-07** at limit **
   4  Prefactor     21.307        46.055        .28275E-06   -.16993E-04
   5  norm          .86968E-01    5.8812        .21273E-05   -.32701E-03
   6  Prefactor     3.6783        38.208        .14399E-06    .25712E-04
   7  norm          .10000E-03    38.584        .11093E-04** at limit **
   8  norm          1.5448        201.99       -.79644E-05    .88432E-05
   9  norm          1.3399        1.3991       -.43901E-06   -.58484E-03
  10  Prefactor     .10000E-03    1.1066        .34286E-06** at limit **
  11  Prefactor     18.275        24.258        .33502E-06    .11962E-04
  12  Prefactor     .10000E-03    71.222        .87931E-06** at limit **
  13  Prefactor     .10000E-03    4.6636        .15533E-06** at limit **
  14  Prefactor     .10000E-03    4.7147        .29798E-07** at limit **
  15  norm          .10000E-03    1.4544        .54903E-07** at limit **
  16  Prefactor     20.037        29.136        .30614E-07    .11403E-05
  17  norm          1.9446        1.9287       -.33504E-07   -.55069E-04
  18  Prefactor     .10000E-03    6.2577        .17186E-06** at limit **
  19  norm          4.7554        2.6783        .12089E-08    .73468E-04
  20  Prefactor     32.792        30.538       -.23478E-06   -.17729E-04
  21  norm          1.0672        2.1048        .55952E-06    .62264E-03
  22  Prefactor     .10000E-03    26.763        .13619E-06** at limit **
  23  norm          .10000E-03    .25592       -.10750E-06** at limit **
  24  norm          9.2026        4.5063       -.12431E-06   -.50236E-04
  25  Prefactor     6.6998        4.2843        .50855E-08    .43799E-04
  26  Normalizat    1.2250        .29756       -.14456E-05   -.20148E-03
  27  Prefactor     .99299        .90595E-01    .21709E-06    .13846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9531
  Prefactor  = 13.4753
  norm       = 0.0001
  Prefactor  = 21.3073
  norm       = 0.086968
  Prefactor  = 3.67834
  norm       = 0.0001
  norm       = 1.54484
  norm       = 1.3399
  Prefactor  = 0.0001
  Prefactor  = 18.275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0373
  norm       = 1.94456
  Prefactor  = 0.0001
  norm       = 4.75537
  Prefactor  = 32.7915
  norm       = 1.06722
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.20255
  Prefactor  = 6.69981
  Normalizat = 1.22495
  Prefactor  = 0.992989
 **********
 **   18 **HESSE 
 **********

 FCN=   6980.645     FROM HESSE     STATUS=OK           506 CALLS     3856 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.953        58.680        .83837E-04   -1.4749    
   2  Prefactor     13.475        18.669        .10909E-03   -1.4974    
   3  norm          .10000E-03    9.0072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.307        45.422        .86770E-04   -1.4784    
   5  norm          .86968E-01    5.3927        .55730E-01   -1.5649    
   6  Prefactor     3.6783        38.047        .21041E-03   -1.5324    
   7  norm          .10000E-03    38.989        .49662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5448        188.90        .34171E-03   -1.5459    
   9  norm          1.3399        1.3823        .93382E-04   -1.5476    
  10  Prefactor     .10000E-03    7.8100        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.275        24.091        .93713E-04   -1.4853    
  12  Prefactor     .10000E-03    71.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6719        .17619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7177        .17718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4695        .97999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.037        29.140        .89465E-04   -1.4812    
  17  norm          1.9446        1.9350        .11102E-03   -1.5429    
  18  Prefactor     .10000E-03    6.4218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7554        2.6761        .97467E-04   -1.5272    
  20  Prefactor     32.792        30.434        .69981E-04   -1.4562    
  21  norm          1.0672        1.8193        .16875E-02   -1.5501    
  22  Prefactor     .10000E-03    26.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .42558        .79941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.2026        4.4490        .11877E-03   -1.5101    
  25  Prefactor     6.6998        4.2827        .13359E-03   -1.5190    
  26  Normalizat    1.2250        .32430        .43826E-03   -.85835    
  27  Prefactor     .99299        .99708E-01    .15528E-03   -.92964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08547e-09
Minuit parameter uncertainties:
  1  58.8285
  2  18.677
  3  6.8107e-06
  4  45.4959
  5  1.369
  6  23.6791
  7  0.000249442
  8  34.2755
  9  1.3823
  10  3.63163e-05
  11  24.1039
  12  7.0821e-05
  13  1.49395e-05
  14  7.95438e-06
  15  6.00085e-06
  16  29.1607
  17  1.93503
  18  4.31083e-05
  19  2.67621
  20  30.4481
  21  1.81936
  22  1.89129e-05
  23  1.03057e-05
  24  4.4492
  25  4.28286
  26  0.324832
  27  0.0997266
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.828e+01  2.410e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.930e-01  9.973e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.225e+00  3.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 2.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453663/likelihoodResults_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.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) = 6980.47178641
delta logL = 0.173135316483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6980.47175166
delta logL = 0.1731700729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.406       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98829       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   6980.472     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      306 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.422        28.231        .79475E-04   -.75815E-05
   2  Index         2.3513        .73358        .11492E-01   -.89352E-04
   3  Normalizat    1.2389        .30138        .43607E-03    .13661E-04
   4  Prefactor     .98829        .97601E-01    .15556E-03    .10750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4218
  Index      = 2.35134
  Normalizat = 1.23888
  Prefactor  = 0.988289
 **********
 **   18 **HESSE 
 **********

 FCN=   6980.472     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.422        28.174        .31790E-05   -1.4699    
   2  Index         2.3513        .73223        .22983E-02   -.55828    
   3  Normalizat    1.2389        .30153        .17443E-04   -.85410    
   4  Prefactor     .98829        .97629E-01    .31113E-04   -.93121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38013e-12
Minuit parameter uncertainties:
  1  28.1883
  2  0.735921
  3  0.301956
  4  0.0976468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453663': 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) = 6980.47175134
delta logL = 0.173170387229

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.542e+01  2.819e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.351e+00  7.359e-01  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.883e-01  9.765e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.239e+00  3.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.35 +/- 0.74
Photon Flux (Free Index): 5.30e-08 +/- 6.35e-08
Energy Flux (Free Index): 1.86e-05 +/- 2.34e-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/453663/cmap_HighResolution_503452801_503712001_4FGL_J0427.3+0504_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', comment='SUCCESS', energy_flux2='1.86e-05', dlogl='1.73e-01', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-08-20 16:06:23.594493', photon_index_error2='0.74', photon_index2='2.35', ts='0.73', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.16e-07', energy_flux_error2='2.34e-05', EG='1.22', time_epoch_completed='1629500783.59', return_code='0', job_id='453663', GAL2='0.99', EG2='1.24', return_code2='0', photon_flux_error2='6.35e-08', ts2='1.07', photon_index='2.86' WHERE bin_id='1019' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:06:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 453663: <4FGL_J0427.3+0504_daily_bin1019> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1019> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 15:50:27 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:50:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 15:50:28 2021
Terminated at Fri Aug 20 16:06:24 2021
Results reported at Fri Aug 20 16:06:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1019 66.8294 5.08 503452801 503712001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3+0504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   786.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            957 sec.

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

