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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1317
RA = 66.8294, Dec = 5.08
tmin = 580694401, tmax = 580953601
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='455289', job_status='RUN', time_executed='2021-08-20 15:59:36.508548', time_epoch_executed='1629500376.51' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455289/ft1_4FGL_J0427.3+0504_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455289/ft2_4FGL_J0427.3+0504_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455289/ft1_4FGL_J0427.3+0504_daily_bin1317.fits outfile=/scratch/kocevski/455289/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1317.fits ra=66.8294 dec=5.08 rad=12.0 tmin=580694401.0 tmax=580953601.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.59
user 2.59
sys 2.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455289/ft2_4FGL_J0427.3+0504_daily_bin1317.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/455289/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1317.fits evtable="EVENTS" outfile="/scratch/kocevski/455289/ft1_filtered_4FGL_J0427.3+0504_daily_bin1317.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455289/ft1_filtered_4FGL_J0427.3+0504_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/455289/ft2_4FGL_J0427.3+0504_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/455289/ltcube_580694401_580953601_4FGL_J0427.3+0504_daily_bin1317.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/455289/ft2_4FGL_J0427.3+0504_daily_bin1317.fits
.....................!
real 15.34
user 11.82
sys 3.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455289/ft1_filtered_4FGL_J0427.3+0504_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/455289/ft2_4FGL_J0427.3+0504_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/455289/ltcube_580694401_580953601_4FGL_J0427.3+0504_daily_bin1317.fits outfile=/scratch/kocevski/455289/expmap_580694401_580953601_4FGL_J0427.3+0504_daily_bin1317.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/455289/ltcube_580694401_580953601_4FGL_J0427.3+0504_daily_bin1317.fits
.....................!
real 194.64
user 186.59
sys 7.61

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/455289/ft1_filtered_4FGL_J0427.3+0504_daily_bin1317.fits scfile=/scratch/kocevski/455289/ft2_4FGL_J0427.3+0504_daily_bin1317.fits outfile=/scratch/kocevski/455289/cmap_580694401_580953601_4FGL_J0427.3+0504_daily_bin1317.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 3.31
user 0.37
sys 2.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455289/ft1_filtered_4FGL_J0427.3+0504_daily_bin1317.fits scfile=/scratch/kocevski/455289/ft2_4FGL_J0427.3+0504_daily_bin1317.fits outfile=/scratch/kocevski/455289/cmap_HighResolution_580694401_580953601_4FGL_J0427.3+0504_daily_bin1317.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 3.26
user 0.39
sys 2.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.046       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.772       1.0000         .10000E-03   10000.    
     5 'norm      '    .30420E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10304E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39717E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.350       1.0000         .10000E-03   10000.    
    12 'Prefactor '    183.76       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15332E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8285       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3105       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.635       1.0000         .10000E-03   10000.    
    19 'norm      '    25.623       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.745       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    32.949       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86276       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0084       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=   3194.439     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3413 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.819        143.83       -.20444E-06    .15819E-04
   2  Prefactor     .10000E-03    54.598        .37705E-05** at limit **
   3  norm          10.048        17.670       -.21678E-06   -.39622E-04
   4  Prefactor     24.787        49.526        .11440E-05    .53955E-05
   5  norm          .10014E-03    4.0554        .84984E-06** at limit **
   6  Prefactor     .10000E-03    156.36        .49859E-05** at limit **
   7  norm          .10000E-03    13.584        .69372E-06** at limit **
   8  norm          .10000E-03    89.506        .18398E-05** at limit **
   9  norm          .10000E-03    .90881        .23728E-06** at limit **
  10  Prefactor     .10000E-03    8.3918        .51688E-05** at limit **
  11  Prefactor     26.317        135.53       -.56642E-05   -.34197E-04
  12  Prefactor     184.01        114.80        .10466E-05   -.59742E-05
  13  Prefactor     .10000E-03    21.240        .12963E-05** at limit **
  14  Prefactor     .10000E-03    378.59       -.10120E-05** at limit **
  15  norm          3.8302        15.355        .25312E-05    .48599E-05
  16  Prefactor     .10000E-03    65.810       -.13851E-06** at limit **
  17  norm          1.3071        5.1518       -.62649E-07   -.51659E-04
  18  Prefactor     26.630        28.348       -.22500E-06   -.57063E-04
  19  norm          25.621        17.245        .27272E-06   -.65819E-04
  20  Prefactor     .10000E-03    27.286        .10896E-06** at limit **
  21  norm          18.745        6.3561        .25611E-07   -.80813E-04
  22  Prefactor     .10000E-03    38.287       -.23285E-07** at limit **
  23  norm          .10000E-03    1.6606        .55074E-06** at limit **
  24  norm          32.949        14.001       -.71188E-06   -.68893E-03
  25  Prefactor     .10000E-03    6.1364        .47087E-07** at limit **
  26  Normalizat    .86301        .47054        .31914E-05   -.10438E-03
  27  Prefactor     1.0084        .16710       -.30399E-05   -.69626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.8193
  Prefactor  = 0.0001
  norm       = 10.0476
  Prefactor  = 24.7874
  norm       = 0.000100135
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3174
  Prefactor  = 184.012
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.83018
  Prefactor  = 0.0001
  norm       = 1.30714
  Prefactor  = 26.6304
  norm       = 25.6212
  Prefactor  = 0.0001
  norm       = 18.7447
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.9495
  Prefactor  = 0.0001
  Normalizat = 0.863012
  Prefactor  = 1.00841
 **********
 **   18 **HESSE 
 **********

 FCN=   3194.439     FROM HESSE     STATUS=OK           490 CALLS     3903 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.819        142.94        .20615E-03   -1.3757    
   2  Prefactor     .10000E-03    54.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.048        17.654        .63210E-03   -1.5074    
   4  Prefactor     24.787        49.350        .80483E-04   -1.4712    
   5  norm          .10014E-03    57.035        .21311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    156.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    13.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    89.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3348        .99402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.5152        .16704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.317        124.53        .78040E-04   -1.4682    
  12  Prefactor     184.01        114.39        .14891E-03   -1.2987    
  13  Prefactor     .10000E-03    21.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    378.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8302        14.628        .20627E-03   -1.5317    
  16  Prefactor     .10000E-03    65.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3071        5.0892        .22267E-03   -1.5479    
  18  Prefactor     26.630        28.250        .77623E-04   -1.4675    
  19  norm          25.621        17.245        .79139E-04   -1.4695    
  20  Prefactor     .10000E-03    27.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.745        6.3367        .76614E-04   -1.4842    
  22  Prefactor     .10000E-03    38.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.0152        .13208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          32.949        13.289        .34904E-03   -1.4559    
  25  Prefactor     .10000E-03    6.1408        .13675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86301        .48125        .52431E-03   -.97772    
  27  Prefactor     1.0084        .17177        .18040E-03   -.92450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94724e-09
Minuit parameter uncertainties:
  1  143.459
  2  0.000109739
  3  17.6629
  4  49.4314
  5  0.00555905
  6  0.000329013
  7  5.84351e-06
  8  0.000695576
  9  3.57574e-05
  10  0.000102229
  11  114.886
  12  114.533
  13  1.79465e-05
  14  0.000935496
  15  14.6413
  16  0.000105819
  17  5.09084
  18  28.2641
  19  17.2485
  20  6.16951e-06
  21  6.33689
  22  6.84703e-05
  23  1.67251e-05
  24  13.2901
  25  5.06964e-06
  26  0.483668
  27  0.171866
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.632e+01  1.149e+02  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.008e+00  1.719e-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:  8.630e-01  4.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455289/likelihoodResults_580694401_580953601_4FGL_J0427.3+0504_daily_bin1317.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) = 3194.26749864
delta logL = 0.171045106575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3194.1684945
delta logL = 0.27004924164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.581       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0711       1.0000          .0000       10.000    
     3 'Normalizat'    .90436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98204       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=   3194.168     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      257 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.787        82.364        .25775E-03    .73218E-05
   2  Index         2.0711        .69311        .74647E-02   -.66912E-05
   3  Normalizat    .90395        .43853        .51345E-03    .85091E-04
   4  Prefactor     .98201        .16716        .18226E-03    .96707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.7874
  Index      = 2.07114
  Normalizat = 0.903946
  Prefactor  = 0.982009
 **********
 **   18 **HESSE 
 **********

 FCN=   3194.168     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.787        82.993        .10310E-04   -1.4147    
   2  Index         2.0711        .69857        .29859E-03   -.62583    
   3  Normalizat    .90395        .43860        .20538E-04   -.96322    
   4  Prefactor     .98201        .16716        .36452E-04   -.93332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92205e-11
Minuit parameter uncertainties:
  1  83.1516
  2  0.702078
  3  0.440347
  4  0.167249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455289': 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) = 3194.16849034
delta logL = 0.270053401418

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  6.079e+01  8.315e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.071e+00  7.021e-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.820e-01  1.672e-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:  9.039e-01  4.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 66.829 5.080

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/455289/cmap_HighResolution_580694401_580953601_4FGL_J0427.3+0504_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-02', job_status='DONE', photon_flux_upper_limit='6.21e-07', time_completed='2021-08-20 16:08:31.176541', job_id='455289', GAL2='0.98', fit_tolerance='1e-08', EG2='0.90', EG='0.86', time_epoch_completed='1629500911.18', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.70e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1317' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:08:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 455289: <4FGL_J0427.3+0504_daily_bin1317> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1317> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 15:55:37 2021
Job was executed on host(s) <bullet0230>, 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:08:32 2021
Results reported at Fri Aug 20 16:08:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1317 66.8294 5.08 580694401 580953601 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 :                                   576.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             249.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            775 sec.

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

