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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1373
RA = 66.8294, Dec = 5.08
tmin = 595209601, tmax = 595468801
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='456832', job_status='RUN', time_executed='2021-08-20 16:07:03.154103', time_epoch_executed='1629500823.15' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456832/ft1_4FGL_J0427.3+0504_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456832/ft2_4FGL_J0427.3+0504_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456832/ft1_4FGL_J0427.3+0504_daily_bin1373.fits outfile=/scratch/kocevski/456832/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1373.fits ra=66.8294 dec=5.08 rad=12.0 tmin=595209601.0 tmax=595468801.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 12.21
user 2.69
sys 9.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456832/ft1_filtered_4FGL_J0427.3+0504_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/456832/ft2_4FGL_J0427.3+0504_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/456832/ltcube_595209601_595468801_4FGL_J0427.3+0504_daily_bin1373.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/456832/ft2_4FGL_J0427.3+0504_daily_bin1373.fits
.....................!
real 23.09
user 12.32
sys 10.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456832/ft1_filtered_4FGL_J0427.3+0504_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/456832/ft2_4FGL_J0427.3+0504_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/456832/ltcube_595209601_595468801_4FGL_J0427.3+0504_daily_bin1373.fits outfile=/scratch/kocevski/456832/expmap_595209601_595468801_4FGL_J0427.3+0504_daily_bin1373.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/456832/ltcube_595209601_595468801_4FGL_J0427.3+0504_daily_bin1373.fits
.....................!
real 201.91
user 185.95
sys 15.48

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/456832/ft1_filtered_4FGL_J0427.3+0504_daily_bin1373.fits scfile=/scratch/kocevski/456832/ft2_4FGL_J0427.3+0504_daily_bin1373.fits outfile=/scratch/kocevski/456832/cmap_595209601_595468801_4FGL_J0427.3+0504_daily_bin1373.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 9.61
user 0.38
sys 9.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456832/ft1_filtered_4FGL_J0427.3+0504_daily_bin1373.fits scfile=/scratch/kocevski/456832/ft2_4FGL_J0427.3+0504_daily_bin1373.fits outfile=/scratch/kocevski/456832/cmap_HighResolution_595209601_595468801_4FGL_J0427.3+0504_daily_bin1373.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 9.42
user 0.38
sys 8.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.890       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9209       1.0000         .10000E-03   10000.    
     3 'norm      '    .20301E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .83006E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .15660E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .84578E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    16.379       1.0000         .10000E-03   10000.    
     8 'norm      '    .56486E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    6.0656       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12219E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .54357E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89756E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.974       1.0000         .10000E-03   10000.    
    14 'Prefactor '    67.813       1.0000         .10000E-03   10000.    
    15 'norm      '    .20844E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27105E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.369       1.0000         .10000E-03   10000.    
    19 'norm      '    14.145       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14417E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10380E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .97790E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .60758       1.0000         .10000E-03   10000.    
    24 'norm      '    .18539E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.402       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86865       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=   1235.728     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     2613 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     614.38        851.29        .36070E-05   -.19860E-03
   2  Prefactor     .10740E-03    437.43       -.19010E-05** at limit **
   3  norm          .10000E-03    34.494       -.31794E-05** at limit **
   4  Prefactor     .11061E-03    152.57        .51817E-05** at limit **
   5  norm          .10000E-03    5.8353        .34902E-06** at limit **
   6  Prefactor     .11192E-03    64.472        .44694E-05** at limit **
   7  norm          16.198        42.973       -.63578E-06   -.23971E-03
   8  norm          .10000E-03    119.05        .62590E-05** at limit **
   9  norm          6.0784        4.5048       -.88770E-07    .48393E-06
  10  Prefactor     .10000E-03    3.6657        .10186E-06** at limit **
  11  Prefactor     .10000E-03    74.451        .60480E-05** at limit **
  12  Prefactor     .10000E-03    115.21       -.30213E-05** at limit **
  13  Prefactor     47.610        41.837        .15937E-05    .11335E-02
  14  Prefactor     70.913        11.349       -.13375E-06    .16559E-01
  15  norm          .10000E-03    8.3826        .82802E-07** at limit **
  16  Prefactor     .10016E-03    178.38        .87111E-05** at limit **
  17  norm          .10000E-03    3.4820       -.35794E-07** at limit **
  18  Prefactor     53.070        35.267       -.44203E-06    .73372E-03
  19  norm          14.407        9.6660       -.28234E-06   -.10057E-04
  20  Prefactor     .10000E-03    35.337        .22317E-05** at limit **
  21  norm          .10000E-03    2.1450        .32711E-07** at limit **
  22  Prefactor     .10000E-03    106.22        .54900E-06** at limit **
  23  norm          .64268        1.1450        .11157E-05    .91082E-04
  24  norm          .10000E-03    6.1053       -.79354E-07** at limit **
  25  Prefactor     20.082        12.599        .51653E-06    .85722E-04
  26  Normalizat    .10000E-01    6.3276        .11491E-04** at limit **
  27  Prefactor     .84504        .14642       -.17371E-05    .43959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 614.383
  Prefactor  = 0.000107401
  norm       = 0.0001
  Prefactor  = 0.000110607
  norm       = 0.0001
  Prefactor  = 0.000111918
  norm       = 16.1983
  norm       = 0.000100003
  norm       = 6.07841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.6096
  Prefactor  = 70.9135
  norm       = 0.0001
  Prefactor  = 0.00010016
  norm       = 0.0001
  Prefactor  = 53.07
  norm       = 14.4075
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.642677
  norm       = 0.0001
  Prefactor  = 20.0823
  Normalizat = 0.01
  Prefactor  = 0.845038
 **********
 **   18 **HESSE 
 **********

 FCN=   1235.728     FROM HESSE     STATUS=OK           532 CALLS     3145 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     614.38        851.07        .19314E-02   -1.0698    
   2  Prefactor     .10740E-03    440.84        .38125E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    34.628        .10108E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11061E-03    195.60        .92065E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.7786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11192E-03    233.23        .91900E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.198        44.532        .24741E-02   -1.4903    
   8  norm          .10000E-03    120.51        .95147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0784        4.5102        .40756E-02   -1.5215    
  10  Prefactor     .10000E-03    3.6738        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    74.759        .95425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    115.33        .10416E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.610        43.677        .14626E-02   -1.4327    
  14  Prefactor     70.913        82.538        .12185E-02   -1.4022    
  15  norm          .10000E-03    8.4232        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10016E-03    179.53        .91577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5535        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     53.070        36.718        .13856E-02   -1.4250    
  19  norm          14.407        9.6623        .26624E-02   -1.4949    
  20  Prefactor     .10000E-03    35.894        .10251E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    106.39        .95007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .64268        1.2183        .10746E-01   -1.5548    
  24  norm          .10000E-03    6.1727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.082        12.692        .22732E-02   -1.4811    
  26  Normalizat    .10000E-01    .93865        .32152       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .84504        .17309        .44604E-01   -.98089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8064e-06
Minuit parameter uncertainties:
  1  869.974
  2  0.115098
  3  3.01528e-05
  4  0.0913982
  5  4.66781e-07
  6  0.10586
  7  44.6237
  8  0.00111676
  9  4.51045
  10  7.31425e-07
  11  1.12836e-06
  12  0.000211645
  13  43.706
  14  82.6718
  15  8.31339e-07
  16  0.0107541
  17  6.28901e-07
  18  36.734
  19  9.66332
  20  7.4864e-06
  21  3.52672e-07
  22  0.000945615
  23  1.2183
  24  6.01938e-06
  25  12.694
  26  2.59133e-06
  27  0.173202
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.128e-06  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.450e-01  1.732e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.000e-02  2.591e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456832/likelihoodResults_595209601_595468801_4FGL_J0427.3+0504_daily_bin1373.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) = 1235.72773944
delta logL = -6.52438072848e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1235.72767653
delta logL = -2.33499235947e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12416E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5053       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84504       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=   1235.728     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      280 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11059E-03    115.19        .18142E-01** at limit **
   2  Index         3.2449        8.2739        .50000        .38607E-05
   3  Normalizat    .10000E-01    .11270E-01    .14328E-01** at limit **
   4  Prefactor     .84504        .78116E-02    .15264E-03    .13974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110588
  Index      = 3.24494
  Normalizat = 0.01
  Prefactor  = 0.845039
 **********
 **   18 **HESSE 
 **********

 FCN=   1235.728     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11059E-03    738.23        .26166E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2449        6.5740        .50000       -.35865    
   3  Normalizat    .10000E-01    .75983E-01    .28656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84504        .20188E-01    .30527E-04   -.98089    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.85666e-09
Minuit parameter uncertainties:
  1  0.179075
  2  1859.87
  3  2.21966e-06
  4  0.020188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456832': 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) = 1235.72767447
delta logL = -2.82878318103e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.106e-04  1.791e-01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.245e+00  1.860e+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.450e-01  2.019e-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  2.220e-06  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/456832/cmap_HighResolution_595209601_595468801_4FGL_J0427.3+0504_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-02', job_status='DONE', photon_flux_upper_limit='8.33e-07', time_completed='2021-08-20 16:15:39.233235', job_id='456832', GAL2='0.85', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629501339.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-2.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1373' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:15:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 456832: <4FGL_J0427.3+0504_daily_bin1373> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1373> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 16:00:37 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:00:40 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:40 2021
Terminated at Fri Aug 20 16:15:41 2021
Results reported at Fri Aug 20 16:15:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1373 66.8294 5.08 595209601 595468801 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 :                                   651.00 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             204.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            904 sec.

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

