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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1265
RA = 66.8294, Dec = 5.08
tmin = 567216001, tmax = 567475201
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='455213', job_status='RUN', time_executed='2021-08-20 15:58:10.045479', time_epoch_executed='1629500290.05' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455213/ft1_4FGL_J0427.3+0504_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455213/ft2_4FGL_J0427.3+0504_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455213/ft1_4FGL_J0427.3+0504_daily_bin1265.fits outfile=/scratch/kocevski/455213/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1265.fits ra=66.8294 dec=5.08 rad=12.0 tmin=567216001.0 tmax=567475201.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 7.88
user 2.60
sys 5.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455213/ft2_4FGL_J0427.3+0504_daily_bin1265.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/455213/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1265.fits evtable="EVENTS" outfile="/scratch/kocevski/455213/ft1_filtered_4FGL_J0427.3+0504_daily_bin1265.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 5.59
user 0.34
sys 5.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455213/ft1_filtered_4FGL_J0427.3+0504_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/455213/ft2_4FGL_J0427.3+0504_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/455213/ltcube_567216001_567475201_4FGL_J0427.3+0504_daily_bin1265.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/455213/ft2_4FGL_J0427.3+0504_daily_bin1265.fits
.....................!
real 17.96
user 11.94
sys 5.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455213/ft1_filtered_4FGL_J0427.3+0504_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/455213/ft2_4FGL_J0427.3+0504_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/455213/ltcube_567216001_567475201_4FGL_J0427.3+0504_daily_bin1265.fits outfile=/scratch/kocevski/455213/expmap_567216001_567475201_4FGL_J0427.3+0504_daily_bin1265.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/455213/ltcube_567216001_567475201_4FGL_J0427.3+0504_daily_bin1265.fits
.....................!
real 195.62
user 184.91
sys 10.37

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/455213/ft1_filtered_4FGL_J0427.3+0504_daily_bin1265.fits scfile=/scratch/kocevski/455213/ft2_4FGL_J0427.3+0504_daily_bin1265.fits outfile=/scratch/kocevski/455213/cmap_567216001_567475201_4FGL_J0427.3+0504_daily_bin1265.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 5.49
user 0.39
sys 5.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455213/ft1_filtered_4FGL_J0427.3+0504_daily_bin1265.fits scfile=/scratch/kocevski/455213/ft2_4FGL_J0427.3+0504_daily_bin1265.fits outfile=/scratch/kocevski/455213/cmap_HighResolution_567216001_567475201_4FGL_J0427.3+0504_daily_bin1265.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 5.48
user 0.39
sys 5.07

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10607E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    168.66       1.0000         .10000E-03   10000.    
     3 'norm      '    42.141       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.8606       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .58820E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1874       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17714E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.784       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19053E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .45388       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86313       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=   1094.675     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3243 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    519.02       -.53394E-05** at limit **
   2  Prefactor     168.74        97.397        .82351E-06    .11344E-03
   3  norm          42.127        54.913        .12427E-05    .25886E-04
   4  Prefactor     .10000E-03    319.39       -.50733E-05** at limit **
   5  norm          8.8622        13.545       -.14596E-06    .54214E-04
   6  Prefactor     .10000E-03    94.751       -.12467E-05** at limit **
   7  norm          .10000E-03    160.26       -.17839E-04** at limit **
   8  norm          .10000E-03    63.278        .56682E-06** at limit **
   9  norm          3.1870        3.6916        .17981E-07    .18907E-03
  10  Prefactor     .10000E-03    3.2236        .97125E-07** at limit **
  11  Prefactor     .10000E-03    66.826        .30202E-06** at limit **
  12  Prefactor     .10000E-03    75.258       -.45160E-06** at limit **
  13  Prefactor     19.667        33.981        .51915E-06   -.98499E-04
  14  Prefactor     .10000E-03    40.872        .82914E-06** at limit **
  15  norm          .10000E-03    12.111       -.52951E-08** at limit **
  16  Prefactor     .10000E-03    155.70        .19654E-05** at limit **
  17  norm          .10000E-03    7.4002        .21709E-06** at limit **
  18  Prefactor     .10000E-03    41.662       -.95520E-06** at limit **
  19  norm          .10000E-03    11.036       -.17773E-08** at limit **
  20  Prefactor     .10000E-03    841.83        .40631E-05** at limit **
  21  norm          13.781        11.563        .19158E-06   -.20861E-05
  22  Prefactor     .10000E-03    828.06        .37095E-05** at limit **
  23  norm          .10000E-03    14.391       -.54635E-08** at limit **
  24  norm          .10000E-03    226.81       -.14261E-05** at limit **
  25  Prefactor     .10000E-03    1092.8        .95742E-05** at limit **
  26  Normalizat    .45520        .69319       -.30961E-04   -.36521E-05
  27  Prefactor     .86304        .21692        .42520E-05    .12674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010002
  Prefactor  = 168.735
  norm       = 42.1268
  Prefactor  = 0.000100001
  norm       = 8.86219
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 3.18703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6671
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7808
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.455203
  Prefactor  = 0.863044
 **********
 **   18 **HESSE 
 **********

 FCN=   1094.675     FROM HESSE     STATUS=OK           474 CALLS     3717 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    514.99        .20723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     168.74        97.297        .15532E-03   -1.3103    
   3  norm          42.127        54.966        .61752E-04   -1.4409    
   4  Prefactor     .10000E-03    319.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.8622        13.533        .13465E-03   -1.5112    
   6  Prefactor     .10000E-03    94.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    158.80        .36405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    63.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1870        3.6830        .62082E-04   -1.5351    
  10  Prefactor     .10000E-03    3.2293        .58029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    66.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    75.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.667        33.086        .90326E-04   -1.4821    
  14  Prefactor     .10000E-03    40.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.123        .11249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    155.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.4580        .87939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    41.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.036        .10738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    842.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.781        11.564        .10032E-03   -1.4965    
  22  Prefactor     .10000E-03    828.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.391        .12263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    226.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1094.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .45520        .69158        .61504E-03   -1.1454    
  27  Prefactor     .86304        .21743        .14855E-03   -.97445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97662e-10
Minuit parameter uncertainties:
  1  0.00653474
  2  97.3897
  3  55.032
  4  0.0011038
  5  13.5374
  6  0.000147814
  7  0.000662347
  8  8.67418e-05
  9  3.68325
  10  1.31537e-05
  11  8.31957e-05
  12  6.88404e-05
  13  33.1166
  14  4.7701e-07
  15  2.1978e-05
  16  4.52752e-06
  17  1.44641e-05
  18  9.4128e-06
  19  4.94184e-07
  20  6.04847e-05
  21  11.5654
  22  6.30631e-05
  23  1.06218e-06
  24  1.24099e-05
  25  0.000185788
  26  0.705262
  27  0.217645
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  8.320e-05  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:  8.630e-01  2.176e-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:  4.552e-01  7.053e-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: 9.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455213/likelihoodResults_567216001_567475201_4FGL_J0427.3+0504_daily_bin1265.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) = 1094.67530627
delta logL = -7.10757801698e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1094.67523581
delta logL = -6.22708967057e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7779       1.0000          .0000       10.000    
     3 'Normalizat'    .45520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86304       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=   1094.675     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      301 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    470.76        .18142E-01** at limit **
   2  Index         2.4964        5.6351        .50000        .13102E-07
   3  Normalizat    .45520        .45313E-01    .61507E-03   -.18992E-05
   4  Prefactor     .86304        .14983E-01    .14855E-03   -.72897E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Index      = 2.49639
  Normalizat = 0.455204
  Prefactor  = 0.863043
 **********
 **   18 **HESSE 
 **********

 FCN=   1094.675     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      330 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    6335.4        .27392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4964        8.7517        .50000       -.52443    
   3  Normalizat    .45520        .11684        .24603E-04   -1.1454    
   4  Prefactor     .86304        .38651E-01    .59419E-05   -.97445    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.86815e-09
Minuit parameter uncertainties:
  1  0.0136274
  2  3934.01
  3  0.116899
  4  0.038652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455213': 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) = 1094.67523514
delta logL = 5.07241111336e-08

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.363e-02  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.496e+00  3.934e+03  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:  8.630e-01  3.865e-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:  4.552e-01  1.169e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/455213/cmap_HighResolution_567216001_567475201_4FGL_J0427.3+0504_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-02', job_status='DONE', photon_flux_upper_limit='9.39e-07', time_completed='2021-08-20 16:05:31.423933', job_id='455213', GAL2='0.86', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1629500731.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1265' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:05:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 455213: <4FGL_J0427.3+0504_daily_bin1265> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1265> 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) <bullet0264>, 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:33 2021
Results reported at Fri Aug 20 16:05:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1265 66.8294 5.08 567216001 567475201 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 :                                   519.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             235.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            602 sec.

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

