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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1264
RA = 66.8294, Dec = 5.08
tmin = 566956801, tmax = 567216001
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='455211', job_status='RUN', time_executed='2021-08-20 15:59:57.371228', time_epoch_executed='1629500397.37' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455211/ft1_4FGL_J0427.3+0504_daily_bin1264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455211/ft2_4FGL_J0427.3+0504_daily_bin1264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455211/ft1_4FGL_J0427.3+0504_daily_bin1264.fits outfile=/scratch/kocevski/455211/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1264.fits ra=66.8294 dec=5.08 rad=12.0 tmin=566956801.0 tmax=567216001.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.56
user 2.18
sys 5.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455211/ft2_4FGL_J0427.3+0504_daily_bin1264.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/455211/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1264.fits evtable="EVENTS" outfile="/scratch/kocevski/455211/ft1_filtered_4FGL_J0427.3+0504_daily_bin1264.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 6.47
user 0.31
sys 5.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455211/ft1_filtered_4FGL_J0427.3+0504_daily_bin1264.fits" evtable="EVENTS" scfile=/scratch/kocevski/455211/ft2_4FGL_J0427.3+0504_daily_bin1264.fits sctable="SC_DATA" outfile=/scratch/kocevski/455211/ltcube_566956801_567216001_4FGL_J0427.3+0504_daily_bin1264.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/455211/ft2_4FGL_J0427.3+0504_daily_bin1264.fits
.....................!
real 19.61
user 12.17
sys 6.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455211/ft1_filtered_4FGL_J0427.3+0504_daily_bin1264.fits evtable="EVENTS" scfile=/scratch/kocevski/455211/ft2_4FGL_J0427.3+0504_daily_bin1264.fits sctable="SC_DATA" expcube=/scratch/kocevski/455211/ltcube_566956801_567216001_4FGL_J0427.3+0504_daily_bin1264.fits outfile=/scratch/kocevski/455211/expmap_566956801_567216001_4FGL_J0427.3+0504_daily_bin1264.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/455211/ltcube_566956801_567216001_4FGL_J0427.3+0504_daily_bin1264.fits
.....................!
real 198.41
user 185.02
sys 12.62

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/455211/ft1_filtered_4FGL_J0427.3+0504_daily_bin1264.fits scfile=/scratch/kocevski/455211/ft2_4FGL_J0427.3+0504_daily_bin1264.fits outfile=/scratch/kocevski/455211/cmap_566956801_567216001_4FGL_J0427.3+0504_daily_bin1264.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 6.39
user 0.37
sys 5.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455211/ft1_filtered_4FGL_J0427.3+0504_daily_bin1264.fits scfile=/scratch/kocevski/455211/ft2_4FGL_J0427.3+0504_daily_bin1264.fits outfile=/scratch/kocevski/455211/cmap_HighResolution_566956801_567216001_4FGL_J0427.3+0504_daily_bin1264.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 6.39
user 0.39
sys 5.96

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    134.69       1.0000         .10000E-03   10000.    
     3 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11271E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    153.35       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4736       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.980       1.0000         .10000E-03   10000.    
    17 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.858       1.0000         .10000E-03   10000.    
    19 'norm      '    .10584E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    166.09       1.0000         .10000E-03   10000.    
    23 'norm      '    .22809       1.0000         .10000E-03   10000.    
    24 'norm      '    .10448E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .75231       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0344       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=   2696.038     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3344 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.156        .23137E-06** at limit **
   2  Prefactor     134.77        62.550        .45409E-06    .54322E-05
   3  norm          .10000E-03    10.226        .18735E-06** at limit **
   4  Prefactor     .10000E-03    30.837        .32318E-06** at limit **
   5  norm          2.8150        4.3615       -.14055E-06    .20365E-04
   6  Prefactor     .10000E-03    90.126        .78979E-07** at limit **
   7  norm          .10000E-03    8.1168        .31744E-06** at limit **
   8  norm          .10000E-03    36.024        .45408E-06** at limit **
   9  norm          .10000E-03    .73701        .23789E-07** at limit **
  10  Prefactor     .10000E-03    2.5363        .89537E-07** at limit **
  11  Prefactor     .10000E-03    24.653        .27914E-06** at limit **
  12  Prefactor     153.45        135.10       -.46046E-05    .21363E-04
  13  Prefactor     1.4785        56.165        .41768E-05    .22160E-04
  14  Prefactor     .10000E-03    207.14        .14481E-05** at limit **
  15  norm          .10000E-03    5.7641        .48968E-06** at limit **
  16  Prefactor     20.163        470.67        .24132E-05    .19254E-06
  17  norm          .10000E-03    3.5789        .35862E-06** at limit **
  18  Prefactor     28.854        36.678       -.14722E-06    .23217E-04
  19  norm          .10000E-03    11.872        .81781E-07** at limit **
  20  Prefactor     .10000E-03    77.085       -.99292E-06** at limit **
  21  norm          .10000E-03    3.9010        .91305E-06** at limit **
  22  Prefactor     167.07        180.38        .58489E-05    .21688E-04
  23  norm          .19625        16.942       -.15339E-05    .27424E-04
  24  norm          .10000E-03    10.974       -.49369E-06** at limit **
  25  Prefactor     .10000E-03    17.534       -.17891E-07** at limit **
  26  Normalizat    .75262        .46898       -.56818E-05    .23758E-04
  27  Prefactor     1.0344        .15057        .29541E-06    .14407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 134.769
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81503
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 153.452
  Prefactor  = 1.47852
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.1628
  norm       = 0.0001
  Prefactor  = 28.8539
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 167.071
  norm       = 0.19625
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.752621
  Prefactor  = 1.03443
 **********
 **   18 **HESSE 
 **********

 FCN=   2696.038     FROM HESSE     STATUS=OK           478 CALLS     3822 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     134.77        62.580        .17350E-03   -1.3381    
   3  norm          .10000E-03    10.234        .16220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8150        4.3409        .13051E-03   -1.5372    
   6  Prefactor     .10000E-03    90.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.1241        .14449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    36.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .74265        .43487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5712        .80755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     153.45        134.99        .16276E-03   -1.3224    
  13  Prefactor     1.4785        56.370        .35387E-03   -1.5465    
  14  Prefactor     .10000E-03    207.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8201        .12193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.163        465.40        .89605E-04   -1.4810    
  17  norm          .10000E-03    3.6603        .96233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.854        36.585        .74580E-04   -1.4633    
  19  norm          .10000E-03    12.026        .17469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    77.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.9899        .10025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     167.07        189.97        .15649E-03   -1.3116    
  23  norm          .19625        18.972        .15609E-02   -1.5619    
  24  norm          .10000E-03    10.998        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .75262        .49144        .52317E-03   -1.0185    
  27  Prefactor     1.0344        .16144        .15904E-03   -.91591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91594e-11
Minuit parameter uncertainties:
  1  7.97728e-06
  2  62.6104
  3  4.92544e-07
  4  3.31405e-05
  5  4.34141
  6  5.29106e-05
  7  2.76197e-06
  8  5.08403e-05
  9  6.14053e-06
  10  2.80627e-05
  11  7.17698e-06
  12  135.267
  13  18.2765
  14  0.000257931
  15  7.11957e-06
  16  195.478
  17  1.95248e-05
  18  36.6133
  19  7.99622e-06
  20  4.60747e-05
  21  2.30406e-06
  22  190.675
  23  3.85944
  24  1.51183e-05
  25  5.28255e-07
  26  0.494364
  27  0.161512
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  7.177e-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:  1.034e+00  1.615e-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:  7.526e-01  4.944e-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: 3.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455211/likelihoodResults_566956801_567216001_4FGL_J0427.3+0504_daily_bin1264.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) = 2696.03829374
delta logL = -0.000192957704712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2696.03810246
delta logL = -1.6753183445e-06

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     '    3.6323       1.0000          .0000       10.000    
     3 'Normalizat'    .75262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0344       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=   2696.038     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      291 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    172.76        .18142E-01** at limit **
   2  Index         2.4312        5.9952        .50000        .13943E-06
   3  Normalizat    .75262        .30159E-01    .52319E-03    .32306E-03
   4  Prefactor     1.0344        .10702E-01    .15905E-03    .10695E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.43121
  Normalizat = 0.752625
  Prefactor  = 1.03443
 **********
 **   18 **HESSE 
 **********

 FCN=   2696.038     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1062.7        .26824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4312        5.7742        .50000       -.53956    
   3  Normalizat    .75262        .78764E-01    .10464E-03   -1.0185    
   4  Prefactor     1.0344        .27953E-01    .31809E-04   -.91590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.06765e-10
Minuit parameter uncertainties:
  1  0.00220919
  2  1915.49
  3  0.0787755
  4  0.0279539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455211': 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) = 2696.03810054
delta logL = 2.40261215367e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  2.209e-03  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.431e+00  1.915e+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.034e+00  2.795e-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:  7.526e-01  7.878e-02  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/455211/cmap_HighResolution_566956801_567216001_4FGL_J0427.3+0504_daily_bin1264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-02', job_status='DONE', photon_flux_upper_limit='3.55e-07', time_completed='2021-08-20 16:09:14.115899', job_id='455211', GAL2='1.03', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1629500954.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1264' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:09:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 455211: <4FGL_J0427.3+0504_daily_bin1264> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1264> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 15:55:31 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:55:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 15:55:32 2021
Terminated at Fri Aug 20 16:09:16 2021
Results reported at Fri Aug 20 16:09:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1264 66.8294 5.08 566956801 567216001 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 :                                   644.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             193.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

