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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1018
RA = 66.8294, Dec = 5.08
tmin = 503193601, tmax = 503452801
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='453662', job_status='RUN', time_executed='2021-08-20 15:52:09.301551', time_epoch_executed='1629499929.3' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453662/ft1_4FGL_J0427.3+0504_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453662/ft2_4FGL_J0427.3+0504_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453662/ft1_4FGL_J0427.3+0504_daily_bin1018.fits outfile=/scratch/kocevski/453662/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1018.fits ra=66.8294 dec=5.08 rad=12.0 tmin=503193601.0 tmax=503452801.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 5.95
user 4.81
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453662/ft2_4FGL_J0427.3+0504_daily_bin1018.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/453662/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1018.fits evtable="EVENTS" outfile="/scratch/kocevski/453662/ft1_filtered_4FGL_J0427.3+0504_daily_bin1018.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 1.38
user 0.33
sys 1.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453662/ft1_filtered_4FGL_J0427.3+0504_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/453662/ft2_4FGL_J0427.3+0504_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/453662/ltcube_503193601_503452801_4FGL_J0427.3+0504_daily_bin1018.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/453662/ft2_4FGL_J0427.3+0504_daily_bin1018.fits
.....................!
real 12.31
user 11.01
sys 1.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453662/ft1_filtered_4FGL_J0427.3+0504_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/453662/ft2_4FGL_J0427.3+0504_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/453662/ltcube_503193601_503452801_4FGL_J0427.3+0504_daily_bin1018.fits outfile=/scratch/kocevski/453662/expmap_503193601_503452801_4FGL_J0427.3+0504_daily_bin1018.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/453662/ltcube_503193601_503452801_4FGL_J0427.3+0504_daily_bin1018.fits
.....................!
real 191.94
user 186.24
sys 5.29

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/453662/ft1_filtered_4FGL_J0427.3+0504_daily_bin1018.fits scfile=/scratch/kocevski/453662/ft2_4FGL_J0427.3+0504_daily_bin1018.fits outfile=/scratch/kocevski/453662/cmap_503193601_503452801_4FGL_J0427.3+0504_daily_bin1018.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 1.40
user 0.37
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453662/ft1_filtered_4FGL_J0427.3+0504_daily_bin1018.fits scfile=/scratch/kocevski/453662/ft2_4FGL_J0427.3+0504_daily_bin1018.fits outfile=/scratch/kocevski/453662/cmap_HighResolution_503193601_503452801_4FGL_J0427.3+0504_daily_bin1018.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 1.41
user 0.38
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3038       1.0000         .10000E-03   10000.    
     3 'norm      '    13.480       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.337       1.0000         .10000E-03   10000.    
     7 'norm      '    6.4917       1.0000         .10000E-03   10000.    
     8 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .21465E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12830E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.026       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7510       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1708       1.0000         .10000E-03   10000.    
    24 'norm      '    .24682E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91766       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0535       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=   8754.557     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3375 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.379        49.621        .19652E-04    .26525E-04
   2  Prefactor     6.2977        18.531       -.19588E-04   -.89777E-04
   3  norm          13.472        20.352        .19598E-04   -.12379E-04
   4  Prefactor     .10000E-03    12.155        .17175E-05** at limit **
   5  norm          .10000E-03    1.5732       -.78768E-07** at limit **
   6  Prefactor     25.333        30.228       -.18053E-06   -.19909E-04
   7  norm          6.4929        10.967        .16173E-06   -.58258E-04
   8  norm          .10000E-03    23.565       -.23381E-04** at limit **
   9  norm          .57899E-02    .47836        .50326E-09    .48984E-03
  10  Prefactor     .10000E-03    1.3719        .10039E-05** at limit **
  11  Prefactor     .10000E-03    26.342        .88712E-05** at limit **
  12  Prefactor     20.668        47.215       -.11286E-04   -.17966E-03
  13  Prefactor     .10000E-03    2.7710        .29272E-07** at limit **
  14  Prefactor     .10000E-03    8.4827       -.76901E-05** at limit **
  15  norm          .10000E-03    1.1306        .10808E-06** at limit **
  16  Prefactor     20.034        41.866       -.14737E-05   -.12379E-04
  17  norm          .10000E-03    1.0470        .20008E-06** at limit **
  18  Prefactor     .10000E-03    5.0146       -.64570E-07** at limit **
  19  norm          3.7519        2.1008       -.63800E-07   -.42103E-03
  20  Prefactor     .10000E-03    8.7591        .99002E-05** at limit **
  21  norm          .10000E-03    .65636        .60553E-09** at limit **
  22  Prefactor     .10000E-03    19.761        .12897E-04** at limit **
  23  norm          2.1713        .74461       -.71950E-09    .49867E-03
  24  norm          .10003E-03    2.5377       -.11603E-05** at limit **
  25  Prefactor     .10000E-03    2.1840       -.76290E-08** at limit **
  26  Normalizat    .91734        .25335        .16195E-05   -.16386E-03
  27  Prefactor     1.0535        .76853E-01   -.10665E-06   -.66651E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3793
  Prefactor  = 6.29771
  norm       = 13.4721
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.3332
  norm       = 6.49288
  norm       = 0.0001
  norm       = 0.0057899
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 20.6679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0335
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.75194
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17132
  norm       = 0.00010003
  Prefactor  = 0.0001
  Normalizat = 0.917336
  Prefactor  = 1.05347
 **********
 **   18 **HESSE 
 **********

 FCN=   8754.557     FROM HESSE     STATUS=OK           498 CALLS     3873 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.379        49.593        .70492E-04   -1.4569    
   2  Prefactor     6.2977        18.493        .15987E-03   -1.5206    
   3  norm          13.472        20.291        .10910E-03   -1.4974    
   4  Prefactor     .10000E-03    12.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5763        .11459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.333        30.122        .79583E-04   -1.4701    
   7  norm          6.4929        10.960        .15752E-03   -1.5198    
   8  norm          .10000E-03    23.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .57899E-02    .82693        .22842E-01   -1.5693    
  10  Prefactor     .10000E-03    2.8238        .19587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.668        44.871        .87883E-04   -1.4798    
  13  Prefactor     .10000E-03    2.7737        .15209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7889        .18984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.034        41.858        .89502E-04   -1.4812    
  17  norm          .10000E-03    1.7306        .18285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7519        2.0979        .96906E-04   -1.5321    
  20  Prefactor     .10000E-03    8.7544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .65974        .74008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1713        .73056        .44540E-04   -1.5413    
  24  norm          .10003E-03    10.711        .28306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.2311        .13497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91734        .26916        .47456E-03   -.95854    
  27  Prefactor     1.0535        .84136E-01    .14582E-03   -.90968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10861e-09
Minuit parameter uncertainties:
  1  49.6566
  2  18.5096
  3  20.3009
  4  6.7943e-06
  5  5.65272e-06
  6  30.1403
  7  10.9632
  8  9.8523e-05
  9  0.13719
  10  0.000179212
  11  5.70318e-05
  12  44.9439
  13  2.93617e-06
  14  9.51792e-06
  15  2.27398e-05
  16  41.9189
  17  2.67505e-05
  18  3.3192e-06
  19  2.09794
  20  5.67851e-06
  21  3.83778e-07
  22  3.87012e-05
  23  0.730568
  24  0.00114129
  25  2.10155e-06
  26  0.269555
  27  0.0841462
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  5.703e-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:  1.053e+00  8.415e-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:  9.173e-01  2.696e-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: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453662/likelihoodResults_503193601_503452801_4FGL_J0427.3+0504_daily_bin1018.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) = 8754.55692164
delta logL = -0.000178938827958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8754.55674299
delta logL = -2.87142029265e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7620       1.0000          .0000       10.000    
     3 'Normalizat'    .91734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0535       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=   8754.528     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      381 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60003E-03    .72634E-01    .18142E-02** at limit **
   2  Index        10.0000        7.9140        .50000    ** at limit **
   3  Normalizat    .90528        .47584E-01    .47456E-03   -.23947E-03
   4  Prefactor     1.0557        .15622E-01    .14582E-03   -.14891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000600029
  Index      = 10
  Normalizat = 0.905285
  Prefactor  = 1.05573
 **********
 **   18 **HESSE 
 **********

 FCN=   8754.528     FROM HESSE     STATUS=OK            33 CALLS      414 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60003E-03    .55074E-02    .72776E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        8.1799        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90528        .25614        .18982E-04   -.96275    
   4  Prefactor     1.0557        .83255E-01    .58327E-05   -.90894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40183e-09
Minuit parameter uncertainties:
  1  0.00331895
  2  0.00279407
  3  0.256481
  4  0.083265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453662': 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) = 8754.52770398
delta logL = 0.0290387216228

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  6.000e-04  3.319e-03  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  1.000e+01  2.794e-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:  1.056e+00  8.326e-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:  9.053e-01  2.565e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/453662/cmap_HighResolution_503193601_503452801_4FGL_J0427.3+0504_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-08-20 16:06:53.766708', job_id='453662', GAL2='1.06', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1629500813.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.90e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1018' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:06:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 453662: <4FGL_J0427.3+0504_daily_bin1018> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1018> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 15:50:27 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:50:28 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:50:28 2021
Terminated at Fri Aug 20 16:06:54 2021
Results reported at Fri Aug 20 16:06:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1018 66.8294 5.08 503193601 503452801 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 :                                   896.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

