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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1438
RA = 66.8294, Dec = 5.08
tmin = 612057601, tmax = 612316801
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='456943', job_status='RUN', time_executed='2021-08-20 16:01:43.565826', time_epoch_executed='1629500503.57' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456943

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456943/ft1_4FGL_J0427.3+0504_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456943/ft2_4FGL_J0427.3+0504_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456943/ft1_4FGL_J0427.3+0504_daily_bin1438.fits outfile=/scratch/kocevski/456943/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1438.fits ra=66.8294 dec=5.08 rad=12.0 tmin=612057601.0 tmax=612316801.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.45
user 4.25
sys 1.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456943/ft1_filtered_4FGL_J0427.3+0504_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/456943/ft2_4FGL_J0427.3+0504_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/456943/ltcube_612057601_612316801_4FGL_J0427.3+0504_daily_bin1438.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/456943/ft2_4FGL_J0427.3+0504_daily_bin1438.fits
.....................!
real 13.65
user 12.26
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456943/ft1_filtered_4FGL_J0427.3+0504_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/456943/ft2_4FGL_J0427.3+0504_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/456943/ltcube_612057601_612316801_4FGL_J0427.3+0504_daily_bin1438.fits outfile=/scratch/kocevski/456943/expmap_612057601_612316801_4FGL_J0427.3+0504_daily_bin1438.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/456943/ltcube_612057601_612316801_4FGL_J0427.3+0504_daily_bin1438.fits
.....................!
real 192.10
user 185.57
sys 6.06

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/456943/ft1_filtered_4FGL_J0427.3+0504_daily_bin1438.fits scfile=/scratch/kocevski/456943/ft2_4FGL_J0427.3+0504_daily_bin1438.fits outfile=/scratch/kocevski/456943/cmap_612057601_612316801_4FGL_J0427.3+0504_daily_bin1438.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.43
user 0.37
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456943/ft1_filtered_4FGL_J0427.3+0504_daily_bin1438.fits scfile=/scratch/kocevski/456943/ft2_4FGL_J0427.3+0504_daily_bin1438.fits outfile=/scratch/kocevski/456943/cmap_HighResolution_612057601_612316801_4FGL_J0427.3+0504_daily_bin1438.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.44
user 0.37
sys 1.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.242       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.632       1.0000         .10000E-03   10000.    
     9 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.488       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17183E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    86.200       1.0000         .10000E-03   10000.    
    17 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6906       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1470       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11362E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.6577       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2175       1.0000         .10000E-03   10000.    
    23 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.7990       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.8877       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90622       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=   9483.479     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3323 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.796        .32416E-05** at limit **
   2  Prefactor     .10000E-03    6.1491       -.36367E-06** at limit **
   3  norm          .10000E-03    11.566        .21037E-06** at limit **
   4  Prefactor     47.248        41.375       -.94792E-06    .95778E-04
   5  norm          .10000E-03    1.3262       -.37572E-07** at limit **
   6  Prefactor     .10000E-03    59.114       -.26681E-05** at limit **
   7  norm          .10000E-03    19.646       -.36897E-06** at limit **
   8  norm          16.610        34.584        .53533E-06    .10127E-03
   9  norm          .10000E-03    .38243       -.66277E-06** at limit **
  10  Prefactor     .10000E-03    .99362       -.13159E-05** at limit **
  11  Prefactor     .10000E-03    64.000       -.28198E-05** at limit **
  12  Prefactor     10.395        63.851        .22113E-04    .49274E-04
  13  Prefactor     .10016E-03    4.9408       -.26940E-05** at limit **
  14  Prefactor     .10000E-03    5.4623        .25387E-07** at limit **
  15  norm          .10001E-03    1.5901       -.17426E-05** at limit **
  16  Prefactor     86.169        64.239        .20690E-05   -.73769E-05
  17  norm          .10000E-03    1.4441       -.49426E-06** at limit **
  18  Prefactor     1.6839        12.922        .11210E-04    .54413E-04
  19  norm          1.1483        2.7450        .41620E-06    .78983E-04
  20  Prefactor     .10000E-03    45.973       -.55559E-06** at limit **
  21  norm          5.6560        3.2758        .33234E-08    .93147E-04
  22  Prefactor     1.1372        137.96        .97929E-05    .22059E-04
  23  norm          .10000E-03    .22795       -.31207E-06** at limit **
  24  norm          4.7994        4.0153       -.26286E-06    .14801E-04
  25  Prefactor     .10000E-03    1.1578        .18464E-07** at limit **
  26  Normalizat    1.8888        .27930       -.69981E-06    .53790E-03
  27  Prefactor     .90595        .77534E-01   -.15102E-05    .35435E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.2477
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 16.6103
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3953
  Prefactor  = 0.000100159
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 86.1689
  norm       = 0.0001
  Prefactor  = 1.68395
  norm       = 1.1483
  Prefactor  = 0.0001
  norm       = 5.65604
  Prefactor  = 1.13715
  norm       = 0.0001
  norm       = 4.79943
  Prefactor  = 0.0001
  Normalizat = 1.88878
  Prefactor  = 0.905946
 **********
 **   18 **HESSE 
 **********

 FCN=   9483.479     FROM HESSE     STATUS=OK           484 CALLS     3807 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     47.248        41.285        .58338E-04   -1.4332    
   5  norm          .10000E-03    1.3278        .10951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    59.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.610        34.324        .98209E-04   -1.4893    
   9  norm          .10000E-03    .39517        .11798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0229        .95210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    64.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.395        64.858        .12372E-03   -1.5063    
  13  Prefactor     .10016E-03    26.985        .39905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    6.0541        .22220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     86.169        64.091        .21635E-03   -1.3849    
  17  norm          .10000E-03    1.4834        .22847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6839        13.631        .16188E-02   -1.5448    
  19  norm          1.1483        2.7198        .23026E-03   -1.5494    
  20  Prefactor     .10000E-03    46.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.6560        3.2881        .12816E-03   -1.5232    
  22  Prefactor     1.1372        136.18        .40916E-02   -1.5495    
  23  norm          .10000E-03    .30142        .86981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.7994        3.9607        .16738E-03   -1.5270    
  25  Prefactor     .10000E-03    1.1604        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.8888        .31045        .40910E-03   -.67368    
  27  Prefactor     .90595        .87526E-01    .16883E-03   -.95934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8071e-09
Minuit parameter uncertainties:
  1  3.0336e-07
  2  2.06699e-05
  3  1.31707e-05
  4  41.3096
  5  1.37978e-07
  6  0.000396317
  7  0.000112401
  8  34.3645
  9  1.26376e-05
  10  4.16142e-05
  11  0.000254327
  12  52.0149
  13  0.00414183
  14  7.99184e-06
  15  0.000465353
  16  64.1422
  17  1.89684e-05
  18  9.58457
  19  2.72013
  20  0.000197046
  21  3.28823
  22  24.946
  23  3.03872e-06
  24  3.96093
  25  9.61152e-08
  26  0.310783
  27  0.0875391
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  2.543e-04  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.059e-01  8.754e-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.889e+00  3.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456943/likelihoodResults_612057601_612316801_4FGL_J0427.3+0504_daily_bin1438.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) = 9483.47903901
delta logL = -7.36049223633e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9483.47896506
delta logL = 3.46421074937e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11514E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2056       1.0000          .0000       10.000    
     3 'Normalizat'    1.8888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90595       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.

 FCN=   9483.479     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      262 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.0830        .11462    ** at limit **
   2  Index         3.2598        5.6026        .50000       -.34220E-05
   3  Normalizat    1.8888        .19477E-02    .92403E-01    .67518E-04
   4  Prefactor     .90595        .59104E-03    .45081E-01    .55999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 3.25976
  Normalizat = 1.88876
  Prefactor  = 0.905949
 **********
 **   18 **HESSE 
 **********

 FCN=   9483.479     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      297 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    614.83        .76271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2598        6.5791        .50000       -.35549    
   3  Normalizat    1.8888        .15513E-01    .40909E-03   -.67369    
   4  Prefactor     .90595        .47140E-02    .16884E-03   -.95934    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.58407e-07
Minuit parameter uncertainties:
  1  0.00411626
  2  801.839
  3  0.0155131
  4  0.00471403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456943': 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): 102
logL (Free Index) = 9483.47896496
delta logL = 4.4805710786e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  4.116e-03  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.260e+00  8.018e+02  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.059e-01  4.714e-03  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.889e+00  1.551e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.829 5.080

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/456943/cmap_HighResolution_612057601_612316801_4FGL_J0427.3+0504_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', job_status='DONE', photon_flux_upper_limit='1.94e-07', time_completed='2021-08-20 16:16:56.272043', job_id='456943', GAL2='0.91', fit_tolerance='1e-08', EG2='1.89', EG='1.89', time_epoch_completed='1629501416.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1438' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:16:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 456943: <4FGL_J0427.3+0504_daily_bin1438> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1438> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 16:00:47 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:00:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:00:48 2021
Terminated at Fri Aug 20 16:16:57 2021
Results reported at Fri Aug 20 16:16:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1438 66.8294 5.08 612057601 612316801 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 :                                   923.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

