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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1204
RA = 66.8294, Dec = 5.08
tmin = 551404801, tmax = 551664001
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='455126', job_status='RUN', time_executed='2021-08-20 15:59:32.192956', time_epoch_executed='1629500372.19' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455126/ft1_4FGL_J0427.3+0504_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455126/ft2_4FGL_J0427.3+0504_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455126/ft1_4FGL_J0427.3+0504_daily_bin1204.fits outfile=/scratch/kocevski/455126/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1204.fits ra=66.8294 dec=5.08 rad=12.0 tmin=551404801.0 tmax=551664001.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.64
user 3.37
sys 9.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455126/ft1_filtered_4FGL_J0427.3+0504_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/455126/ft2_4FGL_J0427.3+0504_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/455126/ltcube_551404801_551664001_4FGL_J0427.3+0504_daily_bin1204.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/455126/ft2_4FGL_J0427.3+0504_daily_bin1204.fits
.....................!
real 22.60
user 11.17
sys 11.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455126/ft1_filtered_4FGL_J0427.3+0504_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/455126/ft2_4FGL_J0427.3+0504_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/455126/ltcube_551404801_551664001_4FGL_J0427.3+0504_daily_bin1204.fits outfile=/scratch/kocevski/455126/expmap_551404801_551664001_4FGL_J0427.3+0504_daily_bin1204.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/455126/ltcube_551404801_551664001_4FGL_J0427.3+0504_daily_bin1204.fits
.....................!
real 201.88
user 184.98
sys 16.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/455126/ft1_filtered_4FGL_J0427.3+0504_daily_bin1204.fits scfile=/scratch/kocevski/455126/ft2_4FGL_J0427.3+0504_daily_bin1204.fits outfile=/scratch/kocevski/455126/cmap_551404801_551664001_4FGL_J0427.3+0504_daily_bin1204.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.48
user 0.39
sys 9.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455126/ft1_filtered_4FGL_J0427.3+0504_daily_bin1204.fits scfile=/scratch/kocevski/455126/ft2_4FGL_J0427.3+0504_daily_bin1204.fits outfile=/scratch/kocevski/455126/cmap_HighResolution_551404801_551664001_4FGL_J0427.3+0504_daily_bin1204.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.46
user 0.39
sys 9.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10294       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22372E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .37651E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25570E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .11008E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .59587E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.0151       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1268       1.0000         .10000E-03   10000.    
     9 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    179.16       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55374E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .92685E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.385       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5089       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16473E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .61072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13063E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0825       1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.601       1.0000         .10000E-03   10000.    
    21 'norm      '    .25420E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8350       1.0000         .10000E-03   10000.    
    23 'norm      '    .11217E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    46.750       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0201       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=   2766.766     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      595 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.507        .87389E-05** at limit **
   2  Prefactor     .10000E-03    11.801       -.36016E-05** at limit **
   3  norm          .10906E-03    147.83       -.40766E-05** at limit **
   4  Prefactor     .10000E-03    56.230        .98940E-05** at limit **
   5  norm          .10000E-03    36.821        .91227E-06** at limit **
   6  Prefactor     .10000E-03    20.836        .19360E-05** at limit **
   7  norm          8.0151        1.0020         .0000         .0000    
   8  norm          .12840E-03    482.12        .63865E-04** at limit **
   9  norm          .10000E-03    3.7183       -.28503E-06** at limit **
  10  Prefactor     .10000E-03    4.0436       -.15132E-05** at limit **
  11  Prefactor     179.51        17.612       -.51270E-06   -.15830E-01
  12  Prefactor     .10029E-03    135.01       -.63666E-05** at limit **
  13  Prefactor     .55716E-03    25.300        .90483E-06** at limit **
  14  Prefactor     14.566        17.273        .10412E-05   -.94041E-02
  15  norm          1.4952        19.032        .23507E-04   -.74611E-06
  16  Prefactor     .10000E-03    31.730       -.13311E-05** at limit **
  17  norm          .10000E-03    15.733       -.45454E-05** at limit **
  18  Prefactor     .10000E-03    24.058       -.13297E-05** at limit **
  19  norm          3.0564        4.5260        .26630E-05   -.85013E-04
  20  Prefactor     54.322        103.26       -.10135E-04   -.10836E-03
  21  norm          .10000E-03    27.985        .62624E-05** at limit **
  22  Prefactor     .10504E-03    196.92        .53068E-04** at limit **
  23  norm          .10000E-03    4.4878       -.16913E-05** at limit **
  24  norm          46.911        19.753       -.72448E-06   -.14156E-02
  25  Prefactor     .10000E-03    2.3600       -.55863E-06** at limit **
  26  Normalizat    .10000E-01    .36544        .19010E-04** at limit **
  27  Prefactor     1.0204        .84383E-01   -.52470E-05    .13871E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000109058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.01505
  norm       = 0.000128402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 179.505
  Prefactor  = 0.000100286
  Prefactor  = 0.000557159
  Prefactor  = 14.5663
  norm       = 1.49517
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.0564
  Prefactor  = 54.3221
  norm       = 0.0001
  Prefactor  = 0.00010504
  norm       = 0.0001
  norm       = 46.9112
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.02036
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2766.766     FROM HESSE     STATUS=FAILED        35 CALLS      630 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.588        .95252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.819        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10906E-03    218.99        .92096E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    56.278        .99976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    36.817        .10349E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.830        .10534E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          505.12        497.08         .0000       -1.5142    
   8  norm          .12840E-03    .12491        .63865E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571       -.28503E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .20571       -.15132E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     179.51        1.0009       -.51270E-06   -1.3020    
  12  Prefactor     .10029E-03    .21605       -.63666E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55716E-03    .20736        .90483E-06   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.566        1.0069        .10412E-05   -1.4944    
  15  norm          1.4952        1.0645        .23507E-04   -1.5463    
  16  Prefactor     .10000E-03    .20726       -.13311E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .27706       -.45454E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571       -.13297E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0564        1.0095        .26630E-05   -1.5358    
  20  Prefactor     54.322        1.0259       -.10135E-04   -1.4233    
  21  norm          .10000E-03    .25003        .62624E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10504E-03    .91139E-01    .53068E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .20571       -.16913E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          46.911        1.0018       -.72448E-06   -1.4337    
  25  Prefactor     .10000E-03    .20571       -.55863E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .25692        .19010E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0204        1.2378       -.52470E-05   -.92054    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.34456e-09
Minuit parameter uncertainties:
  1  0.000238164
  2  9.41909e-08
  3  0.0894041
  4  0.000248438
  5  6.05708e-05
  6  2.4805e-06
  7  1.00196
  8  0.00376713
  9  5.18906e-08
  10  4.1914e-08
  11  1.00094
  12  0.000497332
  13  0.0194728
  14  1.00688
  15  1.06452
  16  5.76095e-07
  17  6.3564e-07
  18  8.0039e-07
  19  1.0095
  20  1.02594
  21  2.63412e-07
  22  0.00135544
  23  6.79448e-07
  24  1.00177
  25  6.99282e-08
  26  7.26243e-08
  27  1.27519
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.795e+02  1.001e+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

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.020e+00  1.275e+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  7.262e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 5.62e-07 +/- 3.13e-09
Energy Flux (Fixed Index): 1.21e-04 +/- 6.73e-07

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) = 2766.40035673
delta logL = 0.366033626618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2766.36857817
delta logL = 0.397812190022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    206.26       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4241       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0193       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=   2766.369     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     206.38        109.64        .84326E-05   -.77004E-04
   2  Index         2.4237        .45910        .34082E-04   -.47492E-04
   3  Normalizat    .10000E-01    .29170        .10214E-04** at limit **
   4  Prefactor     1.0197        .89622E-01   -.22233E-05   -.11097E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 206.377
  Index      = 2.4237
  Normalizat = 0.01
  Prefactor  = 1.01966
 **********
 **   18 **HESSE 
 **********

 FCN=   2766.369     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     206.38        109.61        .14072E-03   -1.2825    
   2  Index         2.4237        .45376        .52490E-02   -.54131    
   3  Normalizat    .10000E-01    .40152        .14910E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0197        .77157E-01    .12896E-03   -.92077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99726e-10
Minuit parameter uncertainties:
  1  109.724
  2  0.454614
  3  2.48584e-06
  4  0.0771654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455126': 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) = 2766.36856031
delta logL = 0.397830050987

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.020e+00  7.717e-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.486e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.42 +/- 0.45
Photon Flux (Free Index): 4.53e-07 +/- 2.80e-07
Energy Flux (Free Index): 1.44e-04 +/- 8.52e-05

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/455126/cmap_HighResolution_551404801_551664001_4FGL_J0427.3+0504_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.62e-07', energy_flux2='1.44e-04', photon_flux_error='3.13e-09', dlogl='3.98e-01', energy_flux='1.21e-04', photon_flux2='4.53e-07', job_status='DONE', time_completed='2021-08-20 16:07:53.951918', photon_index_error2='0.45', photon_index2='2.42', ts='5.20', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='8.52e-05', EG='0.01', time_epoch_completed='1629500873.95', return_code='101', job_id='455126', GAL2='1.02', EG2='0.01', return_code2='0', energy_flux_error='6.73e-07', photon_flux_error2='2.80e-07', ts2='6.01', photon_index='2.86' WHERE bin_id='1204' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:07:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 455126: <4FGL_J0427.3+0504_daily_bin1204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1204 66.8294 5.08 551404801 551664001 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

