/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 51 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 = 7378
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1314
RA = 66.8294, Dec = 5.08
tmin = 579916801, tmax = 580176001
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='455284', job_status='RUN', time_executed='2021-08-20 15:56:56.182273', time_epoch_executed='1629500216.18' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455284/ft1_4FGL_J0427.3+0504_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455284/ft2_4FGL_J0427.3+0504_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455284/ft1_4FGL_J0427.3+0504_daily_bin1314.fits outfile=/scratch/kocevski/455284/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1314.fits ra=66.8294 dec=5.08 rad=12.0 tmin=579916801.0 tmax=580176001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.97
user 3.21
sys 0.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455284/ft1_filtered_4FGL_J0427.3+0504_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/455284/ft2_4FGL_J0427.3+0504_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/455284/ltcube_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.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/455284/ft2_4FGL_J0427.3+0504_daily_bin1314.fits
.....................!
real 12.52
user 11.44
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455284/ft1_filtered_4FGL_J0427.3+0504_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/455284/ft2_4FGL_J0427.3+0504_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/455284/ltcube_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.fits outfile=/scratch/kocevski/455284/expmap_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.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/455284/ltcube_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.fits
.....................!
real 189.96
user 184.61
sys 5.04

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/455284/ft1_filtered_4FGL_J0427.3+0504_daily_bin1314.fits scfile=/scratch/kocevski/455284/ft2_4FGL_J0427.3+0504_daily_bin1314.fits outfile=/scratch/kocevski/455284/cmap_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.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.07
user 0.37
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455284/ft1_filtered_4FGL_J0427.3+0504_daily_bin1314.fits scfile=/scratch/kocevski/455284/ft2_4FGL_J0427.3+0504_daily_bin1314.fits outfile=/scratch/kocevski/455284/cmap_HighResolution_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.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.16
user 0.37
sys 0.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/455284/ft1_filtered_4FGL_J0427.3+0504_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/455284/ft2_4FGL_J0427.3+0504_daily_bin1314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455284/Model_4FGL_J0427.3+0504_daily_bin1314.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/455284/ft1_filtered_4FGL_J0427.3+0504_daily_bin1314.fits.....................!
real 163.86
user 161.61
sys 1.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455284/ft1_filtered_4FGL_J0427.3+0504_daily_bin1314.fits', '/scratch/kocevski/455284/ft2_4FGL_J0427.3+0504_daily_bin1314.fits', expMap='/scratch/kocevski/455284/expmap_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.fits', expCube='/scratch/kocevski/455284/ltcube_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455284/Model_4FGL_J0427.3+0504_daily_bin1314.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/455284/ft1_filtered_4FGL_J0427.3+0504_daily_bin1314.fits
Spacecraft file(s): /scratch/kocevski/455284/ft2_4FGL_J0427.3+0504_daily_bin1314.fits
Exposure map: /scratch/kocevski/455284/expmap_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.fits
Exposure cube: /scratch/kocevski/455284/ltcube_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455284/Model_4FGL_J0427.3+0504_daily_bin1314.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) = 11359.9002746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.895       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.372       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .71219       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.108       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7393       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8019       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.385       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3132       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5644       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10499E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.528       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0788       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0738       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=   11359.79     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3323 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.118       -.81180E-06** at limit **
   2  Prefactor     18.898        21.673       -.45871E-06   -.89665E-05
   3  norm          .10000E-03    5.1831        .36304E-06** at limit **
   4  Prefactor     .10000E-03    12.440       -.28368E-06** at limit **
   5  norm          .10000E-03    2.4205        .47631E-07** at limit **
   6  Prefactor     .10000E-03    9.4279        .75400E-06** at limit **
   7  norm          .10000E-03    22.866       -.25912E-06** at limit **
   8  norm          18.378        20.296       -.13208E-05   -.39891E-06
   9  norm          .10000E-03    .30140        .19262E-07** at limit **
  10  Prefactor     .71079        1.3489       -.72296E-07   -.51627E-03
  11  Prefactor     47.791        30.484        .44530E-05    .69652E-04
  12  Prefactor     .10000E-03    11.479       -.10273E-05** at limit **
  13  Prefactor     .10000E-03    5.2568       -.33704E-06** at limit **
  14  Prefactor     15.102        16.338        .52958E-06    .10431E-05
  15  norm          3.7438        3.6643        .10716E-05   -.31945E-03
  16  Prefactor     .10000E-03    16.196        .26915E-05** at limit **
  17  norm          1.8027        2.3507        .20712E-06   -.86973E-05
  18  Prefactor     15.385        8.3055       -.13074E-06   -.29149E-04
  19  norm          2.3128        2.4714        .18727E-06   -.23816E-04
  20  Prefactor     .10000E-03    24.117       -.78097E-06** at limit **
  21  norm          2.5650        2.2940        .12405E-06   -.21118E-04
  22  Prefactor     .10000E-03    11.550       -.95957E-06** at limit **
  23  norm          .10000E-03    .30248        .22530E-07** at limit **
  24  norm          12.530        4.6901        .68415E-07   -.17066E-04
  25  Prefactor     .10000E-03    1.5840        .13218E-07** at limit **
  26  Normalizat    1.0784        .24679       -.12184E-05    .10995E-04
  27  Prefactor     1.0740        .74806E-01   -.24791E-06    .18804E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.8976
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.3785
  norm       = 0.0001
  Prefactor  = 0.710785
  Prefactor  = 47.7912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1024
  norm       = 3.74383
  Prefactor  = 0.0001
  norm       = 1.80275
  Prefactor  = 15.385
  norm       = 2.31278
  Prefactor  = 0.0001
  norm       = 2.56495
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.5298
  Prefactor  = 0.0001
  Normalizat = 1.07844
  Prefactor  = 1.07397
 **********
 **   18 **HESSE 
 **********

 FCN=   11359.79     FROM HESSE     STATUS=OK           490 CALLS     3813 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.898        21.663        .92141E-04   -1.4838    
   3  norm          .10000E-03    5.1844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4429        .16187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.378        19.964        .93441E-04   -1.4850    
   9  norm          .10000E-03    .30583        .57044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .71079        1.1092        .15821E-02   -1.5539    
  11  Prefactor     47.791        30.572        .57980E-04   -1.4324    
  12  Prefactor     .10000E-03    11.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.102        16.384        .10304E-03   -1.4931    
  15  norm          3.7438        3.6813        .83718E-03   -1.5321    
  16  Prefactor     .10000E-03    16.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8027        2.3359        .17446E-03   -1.5439    
  18  Prefactor     15.385        8.2961        .51056E-03   -1.4923    
  19  norm          2.3128        2.4610        .16282E-03   -1.5404    
  20  Prefactor     .10000E-03    24.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5650        2.2882        .14537E-03   -1.5388    
  22  Prefactor     .10000E-03    11.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.0733        .11101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.530        4.5881        .11317E-03   -1.5000    
  25  Prefactor     .10000E-03    1.5972        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0784        .26402        .49238E-03   -.90447    
  27  Prefactor     1.0740        .82007E-01    .15891E-03   -.90303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46999e-11
Minuit parameter uncertainties:
  1  9.33797e-08
  2  21.6717
  3  2.30167e-06
  4  1.32706e-06
  5  3.37076e-06
  6  1.56857e-05
  7  4.4273e-05
  8  19.9711
  9  3.80284e-07
  10  1.10926
  11  30.5816
  12  9.63903e-06
  13  4.02047e-06
  14  16.3884
  15  3.6815
  16  9.29803e-06
  17  2.33601
  18  8.29674
  19  2.46115
  20  7.06985e-06
  21  2.2883
  22  5.72224e-06
  23  3.31035e-06
  24  4.58822
  25  7.28714e-07
  26  0.264346
  27  0.0820164
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  4.779e+01  3.058e+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:  1.074e+00  8.202e-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.078e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 9.55e-08
Energy Flux (Fixed Index): 3.22e-05 +/- 2.06e-05

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) = 11359.7880249
delta logL = 0.00263818076746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11359.7872708
delta logL = 0.00339232874467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.806       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8169       1.0000          .0000       10.000    
     3 'Normalizat'    1.0816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0732       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=   11359.79     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      269 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.817        30.071        .57400E-04    .63380E-04
   2  Index         2.8169        .55943        .93864E-02    .23463E-03
   3  Normalizat    1.0814        .24955        .49181E-03    .88719E-04
   4  Prefactor     1.0733        .79578E-01    .15895E-03   -.19972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.8166
  Index      = 2.81686
  Normalizat = 1.08135
  Prefactor  = 1.07329
 **********
 **   18 **HESSE 
 **********

 FCN=   11359.79     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.817        29.552        .22960E-05   -1.4309    
   2  Index         2.8169        .54957        .18773E-02   -.45185    
   3  Normalizat    1.0814        .24964        .19672E-04   -.90353    
   4  Prefactor     1.0733        .79578E-01    .31790E-04   -.90325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44696e-10
Minuit parameter uncertainties:
  1  29.5605
  2  0.550951
  3  0.249907
  4  0.0795871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455284': 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) = 11359.7872697
delta logL = 0.00339342470033

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  4.882e+01  2.956e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.817e+00  5.510e-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:  1.073e+00  7.959e-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.081e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.82 +/- 0.55
Photon Flux (Free Index): 1.47e-07 +/- 8.83e-08
Energy Flux (Free Index): 3.25e-05 +/- 1.84e-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/455284/cmap_HighResolution_579916801_580176001_4FGL_J0427.3+0504_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='3.25e-05', photon_flux_error='9.55e-08', dlogl='3.39e-03', energy_flux='3.22e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-08-20 16:11:54.821437', photon_index_error2='0.55', photon_index2='2.82', ts='4.35', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='1.08', time_epoch_completed='1629501114.82', return_code='0', job_id='455284', GAL2='1.07', EG2='1.08', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='8.83e-08', ts2='4.42', photon_index='2.86' WHERE bin_id='1314' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:11:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 455284: <4FGL_J0427.3+0504_daily_bin1314> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1314> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 15:55:36 2021
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:55:37 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:55:37 2021
Terminated at Fri Aug 20 16:11:55 2021
Results reported at Fri Aug 20 16:11:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1314 66.8294 5.08 579916801 580176001 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 :                                   905.84 sec.
    Max Memory :                                 638 MB
    Average Memory :                             314.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            979 sec.

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

