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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1187
RA = 66.8294, Dec = 5.08
tmin = 546998401, tmax = 547257601
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='455101', job_status='RUN', time_executed='2021-08-20 15:59:49.664698', time_epoch_executed='1629500389.66' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455101

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455101/ft1_4FGL_J0427.3+0504_daily_bin1187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455101/ft2_4FGL_J0427.3+0504_daily_bin1187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455101/ft1_4FGL_J0427.3+0504_daily_bin1187.fits outfile=/scratch/kocevski/455101/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1187.fits ra=66.8294 dec=5.08 rad=12.0 tmin=546998401.0 tmax=547257601.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 13.62
user 3.40
sys 10.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455101/ft1_filtered_4FGL_J0427.3+0504_daily_bin1187.fits" evtable="EVENTS" scfile=/scratch/kocevski/455101/ft2_4FGL_J0427.3+0504_daily_bin1187.fits sctable="SC_DATA" outfile=/scratch/kocevski/455101/ltcube_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.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/455101/ft2_4FGL_J0427.3+0504_daily_bin1187.fits
.....................!
real 24.08
user 12.51
sys 11.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455101/ft1_filtered_4FGL_J0427.3+0504_daily_bin1187.fits evtable="EVENTS" scfile=/scratch/kocevski/455101/ft2_4FGL_J0427.3+0504_daily_bin1187.fits sctable="SC_DATA" expcube=/scratch/kocevski/455101/ltcube_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.fits outfile=/scratch/kocevski/455101/expmap_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.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/455101/ltcube_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.fits
.....................!
real 202.77
user 185.40
sys 16.92

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/455101/ft1_filtered_4FGL_J0427.3+0504_daily_bin1187.fits scfile=/scratch/kocevski/455101/ft2_4FGL_J0427.3+0504_daily_bin1187.fits outfile=/scratch/kocevski/455101/cmap_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.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 10.36
user 0.40
sys 9.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455101/ft1_filtered_4FGL_J0427.3+0504_daily_bin1187.fits scfile=/scratch/kocevski/455101/ft2_4FGL_J0427.3+0504_daily_bin1187.fits outfile=/scratch/kocevski/455101/cmap_HighResolution_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.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 10.25
user 0.40
sys 9.77

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455101/ft1_filtered_4FGL_J0427.3+0504_daily_bin1187.fits', '/scratch/kocevski/455101/ft2_4FGL_J0427.3+0504_daily_bin1187.fits', expMap='/scratch/kocevski/455101/expmap_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.fits', expCube='/scratch/kocevski/455101/ltcube_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455101/Model_4FGL_J0427.3+0504_daily_bin1187.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/455101/ft1_filtered_4FGL_J0427.3+0504_daily_bin1187.fits
Spacecraft file(s): /scratch/kocevski/455101/ft2_4FGL_J0427.3+0504_daily_bin1187.fits
Exposure map: /scratch/kocevski/455101/expmap_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.fits
Exposure cube: /scratch/kocevski/455101/ltcube_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455101/Model_4FGL_J0427.3+0504_daily_bin1187.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2563.86511479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2560.66633565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.421       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4618       1.0000         .10000E-03   10000.    
     3 'norm      '    .41892       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28902E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .39456E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21489       1.0000         .10000E-03   10000.    
     7 'norm      '    8.0151       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3819       1.0000         .10000E-03   10000.    
     9 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8439       1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.254       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7106       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0343       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.846       1.0000         .10000E-03   10000.    
    15 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    157.75       1.0000         .10000E-03   10000.    
    17 'norm      '    .13405E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.096       1.0000         .10000E-03   10000.    
    19 'norm      '    6.3311       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.302       1.0000         .10000E-03   10000.    
    21 'norm      '    .21668E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .97383E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.561       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.7622       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2560.643     FROM MIGRAD    STATUS=CONVERGED    263 CALLS      612 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.372        197.63        .13144E-04    .69783E-03
   2  Prefactor     .10005E-03    271.35       -.15552E-04** at limit **
   3  norm          .10001E-03    768.16       -.23554E-05** at limit **
   4  Prefactor     .10000E-03    106.67       -.41077E-05** at limit **
   5  norm          .10000E-03    59.334        .31908E-05** at limit **
   6  Prefactor     .10000E-03    66.599        .43585E-05** at limit **
   7  norm          8.0151        1.0020         .0000         .0000    
   8  norm          .10002E-03    278.15       -.16385E-04** at limit **
   9  norm          .10000E-03    11.898        .26748E-06** at limit **
  10  Prefactor     7.0595        12.694        .34432E-05    .31166E-04
  11  Prefactor     60.167        64.789       -.40973E-05    .29963E-02
  12  Prefactor     .17782E-03    1181.0        .52520E-04** at limit **
  13  Prefactor     1.0343        1.2623         .0000         .0000    
  14  Prefactor     17.141        25.261        .19642E-06    .36460E-05
  15  norm          .10000E-03    5.1929       -.38169E-06** at limit **
  16  Prefactor     158.33        59.520        .25243E-05   -.76502E-02
  17  norm          .10000E-03    8.4343       -.20722E-06** at limit **
  18  Prefactor     23.949        30.734        .19125E-05    .44059E-03
  19  norm          6.3747        5.4277        .48926E-06    .32739E-04
  20  Prefactor     42.009        91.856       -.95955E-05   -.40440E-02
  21  norm          .10000E-03    19.350        .86910E-06** at limit **
  22  Prefactor     .10000E-03    87.177        .61565E-06** at limit **
  23  norm          .10000E-03    4.1845       -.67184E-06** at limit **
  24  norm          12.497        12.674        .11151E-05    .52898E-04
  25  Prefactor     7.7804        8.6599        .27089E-06    .12501E-04
  26  Normalizat    .10000E-01    .39355        .29766E-04** at limit **
  27  Prefactor     .98658        .97420E-01    .63394E-07    .66468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.3718
  Prefactor  = 0.000100046
  norm       = 0.000100014
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.01505
  norm       = 0.000100019
  norm       = 0.0001
  Prefactor  = 7.05945
  Prefactor  = 60.1667
  Prefactor  = 0.000177822
  Prefactor  = 1.03433
  Prefactor  = 17.1409
  norm       = 0.0001
  Prefactor  = 158.332
  norm       = 0.0001
  Prefactor  = 23.9486
  norm       = 6.37466
  Prefactor  = 42.0091
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.4967
  Prefactor  = 7.78039
  Normalizat = 0.01
  Prefactor  = 0.986581
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2560.643     FROM HESSE     STATUS=FAILED        35 CALLS      647 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.372        183.83        .24709E-02   -1.4273    
   2  Prefactor     .10005E-03    267.72        .65164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    767.39        .10935E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    106.39        .91666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    58.917        .92185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    66.195        .10045E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          505.12        497.08         .0000       -1.5142    
   8  norm          .10002E-03    .21412       -.16385E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571        .26748E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0595        1.0183        .34432E-05   -1.5177    
  11  Prefactor     60.167        .96050       -.40973E-05   -1.4155    
  12  Prefactor     .17782E-03    .16141        .52520E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0343        1.2623         .0000       -1.5505    
  14  Prefactor     17.141        1.0091        .19642E-06   -1.4880    
  15  norm          .10000E-03    .20571       -.38169E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     158.33        1.0018        .25243E-05   -1.3185    
  17  norm          .10000E-03    .20571       -.20722E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.949        .99715        .19125E-05   -1.4729    
  19  norm          6.3747        1.0066        .48926E-06   -1.5203    
  20  Prefactor     42.009        1.0611       -.95955E-05   -1.4411    
  21  norm          .10000E-03    .25390        .86910E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20574        .61565E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .20571       -.67184E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.497        .99822        .11151E-05   -1.5001    
  25  Prefactor     7.7804        1.0033        .27089E-06   -1.5150    
  26  Normalizat    .10000E-01    .25505        .29766E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .98658        1.3278        .63394E-07   -.93178    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.42967e-11
Minuit parameter uncertainties:
  1  185.921
  2  0.0070239
  3  0.00659458
  4  2.22497e-05
  5  5.94058e-05
  6  4.8539e-05
  7  1.00196
  8  0.000127093
  9  7.52414e-07
  10  1.01835
  11  0.960502
  12  0.00708828
  13  1.26229
  14  1.00914
  15  1.03876e-06
  16  1.00183
  17  3.15854e-07
  18  0.997149
  19  1.0066
  20  1.06106
  21  1.12928e-06
  22  9.64502e-06
  23  2.02618e-06
  24  0.998218
  25  1.00326
  26  1.18858e-06
  27  1.37609
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2560.64325367

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.866e-01  1.376e+00  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.000e-02  1.189e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455101/likelihoodResults_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.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) = 2560.57840824
delta logL = 0.064845428391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2560.56637355
delta logL = 0.0768801185709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.525       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5360       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98708       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=   2560.566     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      312 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.563        6024.7        .93055E-04    .17356E-03
   2  Index         4.5338        7.5436        .10991E-01    .51662E-04
   3  Normalizat    .10000E-01    .32414        .14258E-01** at limit **
   4  Prefactor     .98705        .95335E-01    .13248E-03   -.81326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5631
  Index      = 4.53378
  Normalizat = 0.01
  Prefactor  = 0.987053
 **********
 **   18 **HESSE 
 **********

 FCN=   2560.566     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.563        143.89        .18611E-04   -1.4846    
   2  Index         4.5338        4.1570        .43965E-03   -.93379E-01
   3  Normalizat    .10000E-01    .33638        .28515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98705        .82336E-01    .26496E-04   -.93162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85573e-10
Minuit parameter uncertainties:
  1  103.709
  2  4.91942
  3  1.06156e-05
  4  0.0823464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455101': 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) = 2560.56637329
delta logL = 0.0768803854262

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.856e+01  1.037e+02  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  4.534e+00  4.919e+00  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.871e-01  8.235e-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.000e-02  1.062e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
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/455101/cmap_HighResolution_546998401_547257601_4FGL_J0427.3+0504_daily_bin1187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-02', job_status='DONE', photon_flux_upper_limit='9.74e-07', time_completed='2021-08-20 16:08:28.949204', job_id='455101', GAL2='0.99', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629500908.95', return_code2='0', ts='0.34', comment='SUCCESS', return_code='101', GAL='0.99', dlogl='7.69e-02', ts2='0.50', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1187' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:08:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 455101: <4FGL_J0427.3+0504_daily_bin1187> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1187 66.8294 5.08 546998401 547257601 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 :                                   674.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             234.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            787 sec.

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

