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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1192
RA = 66.8294, Dec = 5.08
tmin = 548294401, tmax = 548553601
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='455108', job_status='RUN', time_executed='2021-08-20 15:56:58.781296', time_epoch_executed='1629500218.78' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455108

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455108/ft1_4FGL_J0427.3+0504_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455108/ft2_4FGL_J0427.3+0504_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455108/ft1_4FGL_J0427.3+0504_daily_bin1192.fits outfile=/scratch/kocevski/455108/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1192.fits ra=66.8294 dec=5.08 rad=12.0 tmin=548294401.0 tmax=548553601.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 8.80
user 3.68
sys 5.06

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455108/ft2_4FGL_J0427.3+0504_daily_bin1192.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/455108/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/455108/ft1_filtered_4FGL_J0427.3+0504_daily_bin1192.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.40
user 0.35
sys 5.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455108/ft1_filtered_4FGL_J0427.3+0504_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/455108/ft2_4FGL_J0427.3+0504_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/455108/ltcube_548294401_548553601_4FGL_J0427.3+0504_daily_bin1192.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/455108/ft2_4FGL_J0427.3+0504_daily_bin1192.fits
.....................!
real 17.17
user 11.37
sys 5.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455108/ft1_filtered_4FGL_J0427.3+0504_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/455108/ft2_4FGL_J0427.3+0504_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/455108/ltcube_548294401_548553601_4FGL_J0427.3+0504_daily_bin1192.fits outfile=/scratch/kocevski/455108/expmap_548294401_548553601_4FGL_J0427.3+0504_daily_bin1192.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/455108/ltcube_548294401_548553601_4FGL_J0427.3+0504_daily_bin1192.fits
.....................!
real 195.61
user 184.58
sys 10.65

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/455108/ft1_filtered_4FGL_J0427.3+0504_daily_bin1192.fits scfile=/scratch/kocevski/455108/ft2_4FGL_J0427.3+0504_daily_bin1192.fits outfile=/scratch/kocevski/455108/cmap_548294401_548553601_4FGL_J0427.3+0504_daily_bin1192.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.23
user 0.36
sys 4.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455108/ft1_filtered_4FGL_J0427.3+0504_daily_bin1192.fits scfile=/scratch/kocevski/455108/ft2_4FGL_J0427.3+0504_daily_bin1192.fits outfile=/scratch/kocevski/455108/cmap_HighResolution_548294401_548553601_4FGL_J0427.3+0504_daily_bin1192.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.24
user 0.36
sys 4.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    154.77       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8425       1.0000         .10000E-03   10000.    
     3 'norm      '    21.460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11626E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.968       1.0000         .10000E-03   10000.    
     7 'norm      '    8.1158       1.0000         .10000E-03   10000.    
     8 'norm      '    40.244       1.0000         .10000E-03   10000.    
     9 'norm      '    .72015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50994E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    67.530       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.777       1.0000         .10000E-03   10000.    
    14 'Prefactor '    102.15       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0659       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7522       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .23183E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    24.738       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12424E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.2762       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87744       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1640       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=   6039.775     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3336 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     154.82        80.952       -.20907E-06    .25514E-04
   2  Prefactor     7.8379        20.651        .51408E-06   -.15355E-04
   3  norm          21.460        16.308       -.13333E-07    .38696E-05
   4  Prefactor     .10000E-03    103.14       -.18156E-05** at limit **
   5  norm          .10000E-03    2.2075       -.80222E-07** at limit **
   6  Prefactor     16.046        46.955       -.19187E-06    .31207E-04
   7  norm          8.1146        11.967       -.22689E-06    .25852E-04
   8  norm          40.219        38.642        .15070E-05    .77634E-04
   9  norm          .71956        1.2559       -.44127E-06   -.42167E-03
  10  Prefactor     .10001E-03    1.3606       -.64777E-06** at limit **
  11  Prefactor     .10000E-03    61.525       -.26158E-06** at limit **
  12  Prefactor     67.513        56.920        .20520E-05    .94076E-04
  13  Prefactor     10.776        11.869        .58716E-07    .78294E-04
  14  Prefactor     102.20        100.69        .40141E-06    .89409E-05
  15  norm          5.0664        5.4774        .21151E-06   -.18195E-04
  16  Prefactor     .10000E-03    104.35        .20872E-06** at limit **
  17  norm          4.7522        3.6277        .19239E-08    .10568E-03
  18  Prefactor     .10000E-03    13.940       -.11319E-06** at limit **
  19  norm          .10000E-03    4.4301        .11518E-06** at limit **
  20  Prefactor     .10000E-03    62.671       -.16747E-06** at limit **
  21  norm          24.738        5.7149       -.94426E-07    .39678E-04
  22  Prefactor     .10000E-03    91.480        .12055E-06** at limit **
  23  norm          .10000E-03    .57176       -.77026E-07** at limit **
  24  norm          .10000E-03    3.2623       -.41158E-07** at limit **
  25  Prefactor     9.2830        15.520        .14113E-06   -.13442E-04
  26  Normalizat    .87730        .40127        .70516E-05    .54536E-04
  27  Prefactor     1.1640        .12958       -.15225E-05    .32649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 154.816
  Prefactor  = 7.83793
  norm       = 21.4598
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.046
  norm       = 8.11458
  norm       = 40.2191
  norm       = 0.719561
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 67.5135
  Prefactor  = 10.7765
  Prefactor  = 102.196
  norm       = 5.06641
  Prefactor  = 0.0001
  norm       = 4.75217
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 24.7379
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.28296
  Normalizat = 0.877298
  Prefactor  = 1.16401
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.775     FROM HESSE     STATUS=OK           492 CALLS     3828 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     154.82        80.817        .16202E-03   -1.3213    
   2  Prefactor     7.8379        20.588        .14318E-03   -1.5148    
   3  norm          21.460        16.307        .86464E-04   -1.4781    
   4  Prefactor     .10000E-03    104.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.2180        .11266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.046        46.737        .10023E-03   -1.4907    
   7  norm          8.1146        11.974        .14074E-03   -1.5138    
   8  norm          40.219        38.412        .63186E-04   -1.4439    
   9  norm          .71956        1.1520        .10761E-02   -1.5538    
  10  Prefactor     .10001E-03    7.7799        .16017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    62.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     67.513        57.192        .48842E-04   -1.4063    
  13  Prefactor     10.776        11.854        .12204E-03   -1.5051    
  14  Prefactor     102.20        100.62        .19891E-03   -1.3683    
  15  norm          5.0664        5.4483        .17739E-03   -1.5258    
  16  Prefactor     .10000E-03    104.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7522        3.6179        .12005E-03   -1.5272    
  18  Prefactor     .10000E-03    14.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.554        .31491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    62.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          24.738        5.7110        .80539E-04   -1.4713    
  22  Prefactor     .10000E-03    92.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .59130        .11476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.2718        .13708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.2830        15.460        .13159E-03   -1.5099    
  26  Normalizat    .87730        .40646        .56909E-03   -.97263    
  27  Prefactor     1.1640        .13228        .17703E-03   -.87446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11783e-09
Minuit parameter uncertainties:
  1  80.8744
  2  20.6068
  3  16.3099
  4  6.06176e-05
  5  7.74197e-07
  6  46.8437
  7  11.9779
  8  38.4355
  9  1.15206
  10  0.000480004
  11  0.000201437
  12  57.2385
  13  11.8567
  14  100.786
  15  5.44884
  16  6.09486e-05
  17  3.61802
  18  3.09215e-05
  19  0.000140295
  20  3.90607e-05
  21  5.71114
  22  7.49044e-05
  23  1.23476e-06
  24  1.05092e-06
  25  15.4663
  26  0.407892
  27  0.132322
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.164e+00  1.323e-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.773e-01  4.079e-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: 2.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455108/likelihoodResults_548294401_548553601_4FGL_J0427.3+0504_daily_bin1192.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) = 6039.77510562
delta logL = -7.66314869907e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6039.77502936
delta logL = -3.64570951206e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9215       1.0000          .0000       10.000    
     3 'Normalizat'    .87731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1640       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=   6039.775     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      289 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    321.28        .18142E-02** at limit **
   2  Index         2.7965        6.0706        .50000        .28730E-04
   3  Normalizat    .87731        .34846        .56908E-03    .23074E-03
   4  Prefactor     1.1640        .12477        .17703E-03    .56128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100129
  Index      = 2.79648
  Normalizat = 0.877308
  Prefactor  = 1.16401
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.775     FROM HESSE     STATUS=OK            29 CALLS      318 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    124.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7965        6.3855        .50000       -.45638    
   3  Normalizat    .87731        .34854        .22763E-04   -.97262    
   4  Prefactor     1.1640        .12480        .70811E-05   -.87446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25768e-09
Minuit parameter uncertainties:
  1  0.00804194
  2  4.54914
  3  0.34944
  4  0.124829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455108': 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) = 6039.77502858
delta logL = 4.12620465795e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.001e-04  8.042e-03  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.796e+00  4.549e+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:  1.164e+00  1.248e-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.773e-01  3.494e-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/455108/cmap_HighResolution_548294401_548553601_4FGL_J0427.3+0504_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-02', job_status='DONE', photon_flux_upper_limit='2.50e-07', time_completed='2021-08-20 16:09:18.719142', job_id='455108', GAL2='1.16', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1629500958.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1192' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 455108: <4FGL_J0427.3+0504_daily_bin1192> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1192> 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) <bullet0228>, 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:09:20 2021
Results reported at Fri Aug 20 16:09:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1192 66.8294 5.08 548294401 548553601 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 :                                   812.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

