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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1266
RA = 66.8294, Dec = 5.08
tmin = 567475201, tmax = 567734401
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='455214', job_status='RUN', time_executed='2021-08-20 15:58:14.294075', time_epoch_executed='1629500294.29' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455214

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455214/ft1_4FGL_J0427.3+0504_daily_bin1266.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455214/ft2_4FGL_J0427.3+0504_daily_bin1266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455214/ft1_4FGL_J0427.3+0504_daily_bin1266.fits outfile=/scratch/kocevski/455214/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1266.fits ra=66.8294 dec=5.08 rad=12.0 tmin=567475201.0 tmax=567734401.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.74
user 2.27
sys 2.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455214/ft2_4FGL_J0427.3+0504_daily_bin1266.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/455214/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1266.fits evtable="EVENTS" outfile="/scratch/kocevski/455214/ft1_filtered_4FGL_J0427.3+0504_daily_bin1266.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 2.77
user 0.32
sys 2.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455214/ft1_filtered_4FGL_J0427.3+0504_daily_bin1266.fits" evtable="EVENTS" scfile=/scratch/kocevski/455214/ft2_4FGL_J0427.3+0504_daily_bin1266.fits sctable="SC_DATA" outfile=/scratch/kocevski/455214/ltcube_567475201_567734401_4FGL_J0427.3+0504_daily_bin1266.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/455214/ft2_4FGL_J0427.3+0504_daily_bin1266.fits
.....................!
real 14.50
user 11.64
sys 2.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455214/ft1_filtered_4FGL_J0427.3+0504_daily_bin1266.fits evtable="EVENTS" scfile=/scratch/kocevski/455214/ft2_4FGL_J0427.3+0504_daily_bin1266.fits sctable="SC_DATA" expcube=/scratch/kocevski/455214/ltcube_567475201_567734401_4FGL_J0427.3+0504_daily_bin1266.fits outfile=/scratch/kocevski/455214/expmap_567475201_567734401_4FGL_J0427.3+0504_daily_bin1266.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/455214/ltcube_567475201_567734401_4FGL_J0427.3+0504_daily_bin1266.fits
.....................!
real 193.03
user 185.52
sys 7.20

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/455214/ft1_filtered_4FGL_J0427.3+0504_daily_bin1266.fits scfile=/scratch/kocevski/455214/ft2_4FGL_J0427.3+0504_daily_bin1266.fits outfile=/scratch/kocevski/455214/cmap_567475201_567734401_4FGL_J0427.3+0504_daily_bin1266.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 2.75
user 0.38
sys 2.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455214/ft1_filtered_4FGL_J0427.3+0504_daily_bin1266.fits scfile=/scratch/kocevski/455214/ft2_4FGL_J0427.3+0504_daily_bin1266.fits outfile=/scratch/kocevski/455214/cmap_HighResolution_567475201_567734401_4FGL_J0427.3+0504_daily_bin1266.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 2.80
user 0.38
sys 2.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14675E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11865E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .24530E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7270       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4014       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.401       1.0000         .10000E-03   10000.    
     7 'norm      '    .50185E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .45864E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.708       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .56074E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    189.40       1.0000         .10000E-03   10000.    
    15 'norm      '    4.3450       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26460E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10758E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .18772E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .44794E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    11.806       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .43286       1.0000         .10000E-03   10000.    
    23 'norm      '    .37599E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    14.708       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .12082       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1687       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=   1509.801     FROM MIGRAD    STATUS=CONVERGED   1237 CALLS     3402 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.626        .20488E-02** at limit **
   2  Prefactor     .10000E-03    54.634        .18165E-02** at limit **
   3  norm          .10000E-03    27.517        .19912E-02** at limit **
   4  Prefactor     8.9616        170.59        .12849E-03   -.22784E-05
   5  norm          3.5502        9.5031        .18920E-03    .29789E-04
   6  Prefactor     31.016        117.69        .75176E-04    .14450E-04
   7  norm          .10000E-03    16.544        .15436E-02** at limit **
   8  norm          .10000E-03    29.661        .19319E-02** at limit **
   9  norm          .10000E-03    1.0389        .38634E-03** at limit **
  10  Prefactor     .10000E-03    1.6782        .49146E-03** at limit **
  11  Prefactor     44.115        62.787        .57457E-04    .14345E-04
  12  Prefactor     .10000E-03    38.433        .21099E-02** at limit **
  13  Prefactor     53.093        43.621        .53167E-04    .35474E-04
  14  Prefactor     190.99        144.93        .14672E-03    .49784E-05
  15  norm          4.5703        12.431        .19324E-03    .39564E-04
  16  Prefactor     .10000E-03    136.49        .18309E-02** at limit **
  17  norm          .10000E-03    3.0597        .66374E-03** at limit **
  18  Prefactor     .10000E-03    18.380        .16273E-02** at limit **
  19  norm          .10000E-03    6.1010        .93711E-03** at limit **
  20  Prefactor     .10000E-03    185.39        .18489E-02** at limit **
  21  norm          11.978        11.743        .11659E-03    .44441E-04
  22  Prefactor     .10000E-03    779.03        .21987E-02** at limit **
  23  norm          .10001E-03    26.838        .25267E-02** at limit **
  24  norm          14.769        70.684        .10444E-03    .40016E-04
  25  Prefactor     .10000E-03    60.830        .18142E-02** at limit **
  26  Normalizat    .14730        .87412        .10807E-01    .15177E-04
  27  Prefactor     1.1630        .22811        .14414E-03    .12817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.96156
  norm       = 3.55025
  Prefactor  = 31.0158
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.1149
  Prefactor  = 0.0001
  Prefactor  = 53.0926
  Prefactor  = 190.987
  norm       = 4.57034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9775
  Prefactor  = 0.0001
  norm       = 0.000100006
  norm       = 14.7685
  Prefactor  = 0.0001
  Normalizat = 0.147302
  Prefactor  = 1.16296
 **********
 **   18 **HESSE 
 **********

 FCN=   1509.801     FROM HESSE     STATUS=OK           462 CALLS     3864 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.626        .40976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.639        .36329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    27.517        .39825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9616        170.60        .51395E-05   -1.5109    
   5  norm          3.5502        9.5021        .75680E-05   -1.5331    
   6  Prefactor     31.016        117.68        .15035E-04   -1.4594    
   7  norm          .10000E-03    16.545        .30872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.661        .38638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0389        .77267E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6782        .98293E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.115        62.784        .11491E-04   -1.4379    
  12  Prefactor     .10000E-03    38.433        .42199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     53.093        43.047        .10633E-04   -1.4249    
  14  Prefactor     190.99        144.93        .58689E-05   -1.2935    
  15  norm          4.5703        12.430        .77296E-05   -1.5280    
  16  Prefactor     .10000E-03    136.49        .36618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.0597        .13275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.380        .32547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.1011        .18742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    185.39        .36979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.978        11.740        .46635E-05   -1.5016    
  22  Prefactor     .10000E-03    779.04        .43974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    26.853        .50534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.769        69.832        .20887E-04   -1.4939    
  25  Prefactor     .10000E-03    60.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .14730        .79666        .43227E-03   -1.3358    
  27  Prefactor     1.1630        .21926        .57655E-05   -.87479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09307e-10
Minuit parameter uncertainties:
  1  2.8033e-05
  2  0.000244321
  3  9.1282e-06
  4  78.4594
  5  9.50612
  6  118.576
  7  1.07842e-05
  8  8.30996e-05
  9  2.17107e-06
  10  1.07278e-05
  11  62.8785
  12  1.14742e-05
  13  43.0727
  14  145.201
  15  12.4366
  16  2.4892e-05
  17  4.62546e-07
  18  2.30456e-06
  19  6.06593e-06
  20  5.46692e-05
  21  11.7422
  22  0.000816303
  23  0.000797038
  24  64.3506
  25  3.98372e-05
  26  0.675576
  27  0.219433
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  4.411e+01  6.288e+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.163e+00  2.194e-01  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.473e-01  6.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455214/likelihoodResults_567475201_567734401_4FGL_J0427.3+0504_daily_bin1266.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) = 1508.80377551
delta logL = 0.997256156144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1508.77758277
delta logL = 1.02344889746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.958       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6937       1.0000          .0000       10.000    
     3 'Normalizat'    .18174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1494       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=   1508.778     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      253 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.916        71.459        .26125E-03   -.71367E-05
   2  Index         1.6939        .62986        .51733E-02   -.10059E-04
   3  Normalizat    .18165        .58409        .10025E-01   -.77841E-05
   4  Prefactor     1.1494        .20678        .14456E-03   -.53479E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.9156
  Index      = 1.69392
  Normalizat = 0.181652
  Prefactor  = 1.14943
 **********
 **   18 **HESSE 
 **********

 FCN=   1508.778     FROM HESSE     STATUS=OK            27 CALLS      280 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.916        72.306        .10450E-04   -1.4171    
   2  Index         1.6939        .63736        .20693E-03   -.72244    
   3  Normalizat    .18165        .57069        .40101E-03   -1.3079    
   4  Prefactor     1.1494        .20169        .57823E-05   -.87902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25679e-11
Minuit parameter uncertainties:
  1  72.4142
  2  0.640467
  3  0.590878
  4  0.201823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455214': 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) = 1508.77758236
delta logL = 1.02344930856

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  5.892e+01  7.241e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  1.694e+00  6.405e-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.149e+00  2.018e-01  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.817e-01  5.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 66.829 5.080
Photon Index (Free Index): 1.69 +/- 0.64
Photon Flux (Free Index): 9.33e-08 +/- 1.16e-07
Energy Flux (Free Index): 1.55e-04 +/- 2.72e-04

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/455214/cmap_HighResolution_567475201_567734401_4FGL_J0427.3+0504_daily_bin1266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-02', comment='SUCCESS', energy_flux2='1.55e-04', dlogl='1.02e+00', photon_flux2='9.33e-08', job_status='DONE', time_completed='2021-08-20 16:05:26.194802', photon_index_error2='0.64', photon_index2='1.69', ts='1.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='7.51e-07', energy_flux_error2='2.72e-04', EG='0.15', time_epoch_completed='1629500726.19', return_code='0', job_id='455214', GAL2='1.15', EG2='0.18', return_code2='0', photon_flux_error2='1.16e-07', ts2='3.05', photon_index='2.86' WHERE bin_id='1266' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:05:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 455214: <4FGL_J0427.3+0504_daily_bin1266> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1266 66.8294 5.08 567475201 567734401 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 :                                   465.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            596 sec.

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

