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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1322
RA = 66.8294, Dec = 5.08
tmin = 581990401, tmax = 582249601
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='455296', job_status='RUN', time_executed='2021-08-20 15:58:01.560906', time_epoch_executed='1629500281.56' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455296/ft1_4FGL_J0427.3+0504_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455296/ft2_4FGL_J0427.3+0504_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455296/ft1_4FGL_J0427.3+0504_daily_bin1322.fits outfile=/scratch/kocevski/455296/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1322.fits ra=66.8294 dec=5.08 rad=12.0 tmin=581990401.0 tmax=582249601.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 2.35
user 2.17
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455296/ft2_4FGL_J0427.3+0504_daily_bin1322.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/455296/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/455296/ft1_filtered_4FGL_J0427.3+0504_daily_bin1322.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 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455296/ft1_filtered_4FGL_J0427.3+0504_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/455296/ft2_4FGL_J0427.3+0504_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/455296/ltcube_581990401_582249601_4FGL_J0427.3+0504_daily_bin1322.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/455296/ft2_4FGL_J0427.3+0504_daily_bin1322.fits
.....................!
real 11.87
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455296/ft1_filtered_4FGL_J0427.3+0504_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/455296/ft2_4FGL_J0427.3+0504_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/455296/ltcube_581990401_582249601_4FGL_J0427.3+0504_daily_bin1322.fits outfile=/scratch/kocevski/455296/expmap_581990401_582249601_4FGL_J0427.3+0504_daily_bin1322.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/455296/ltcube_581990401_582249601_4FGL_J0427.3+0504_daily_bin1322.fits
.....................!
real 190.52
user 185.08
sys 5.13

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/455296/ft1_filtered_4FGL_J0427.3+0504_daily_bin1322.fits scfile=/scratch/kocevski/455296/ft2_4FGL_J0427.3+0504_daily_bin1322.fits outfile=/scratch/kocevski/455296/cmap_581990401_582249601_4FGL_J0427.3+0504_daily_bin1322.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 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455296/ft1_filtered_4FGL_J0427.3+0504_daily_bin1322.fits scfile=/scratch/kocevski/455296/ft2_4FGL_J0427.3+0504_daily_bin1322.fits outfile=/scratch/kocevski/455296/cmap_HighResolution_581990401_582249601_4FGL_J0427.3+0504_daily_bin1322.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 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.538       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1787       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2313       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    98.836       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2023       1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.032       1.0000         .10000E-03   10000.    
    17 'norm      '    .19619E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .14995E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .81983       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2755       1.0000         .10000E-03   10000.    
    23 'norm      '    .64275       1.0000         .10000E-03   10000.    
    24 'norm      '    50.293       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.9104       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82560       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=   5888.164     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3399 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.442        89.443        .14705E-06   -.63176E-04
   2  Prefactor     .10000E-03    11.762       -.13652E-06** at limit **
   3  norm          .10000E-03    10.729        .17302E-07** at limit **
   4  Prefactor     .10000E-03    14.543       -.43188E-08** at limit **
   5  norm          .10000E-03    5.0639        .34299E-07** at limit **
   6  Prefactor     25.559        37.749       -.19105E-06   -.27731E-03
   7  norm          .10000E-03    11.088        .38841E-07** at limit **
   8  norm          .10000E-03    11.719       -.16831E-07** at limit **
   9  norm          1.1780        1.8447        .71327E-07    .12414E-05
  10  Prefactor     3.2306        2.8170       -.43958E-07   -.80427E-04
  11  Prefactor     .10000E-03    32.374       -.21507E-06** at limit **
  12  Prefactor     .10000E-03    138.61       -.11601E-07** at limit **
  13  Prefactor     .10000E-03    6.2730        .30707E-07** at limit **
  14  Prefactor     98.803        85.602        .10781E-06   -.16872E-04
  15  norm          5.2023        5.1592        .11088E-05    .32503E-05
  16  Prefactor     61.977        73.304       -.26497E-06    .55605E-04
  17  norm          .10000E-03    1.4012        .54588E-07** at limit **
  18  Prefactor     .10000E-03    5.1737        .16663E-07** at limit **
  19  norm          .10001E-03    3.5828        .53666E-06** at limit **
  20  Prefactor     .10000E-03    33.588        .83381E-07** at limit **
  21  norm          .81912        2.0801        .16235E-06    .62766E-04
  22  Prefactor     .59314        205.89       -.14444E-04    .15798E-03
  23  norm          .65025        1.3977        .99398E-06    .24606E-02
  24  norm          50.297        12.162        .26351E-08    .68823E-03
  25  Prefactor     .10000E-03    5.2149        .28890E-07** at limit **
  26  Normalizat    1.9112        .33968       -.10799E-06    .11947E-03
  27  Prefactor     .82546        .11005       -.24500E-06    .12689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.4422
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.5592
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.17801
  Prefactor  = 3.2306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 98.8031
  norm       = 5.20228
  Prefactor  = 61.9769
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.819119
  Prefactor  = 0.593136
  norm       = 0.650248
  norm       = 50.2971
  Prefactor  = 0.0001
  Normalizat = 1.91117
  Prefactor  = 0.825459
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.164     FROM HESSE     STATUS=OK           484 CALLS     3883 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.442        89.826        .56973E-04   -1.4301    
   2  Prefactor     .10000E-03    11.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1020        .16829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.559        38.835        .79269E-04   -1.4696    
   7  norm          .10000E-03    11.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1780        1.7876        .11327E-03   -1.5491    
  10  Prefactor     3.2306        2.7674        .10777E-03   -1.5348    
  11  Prefactor     .10000E-03    32.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    139.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     98.803        85.781        .40436E-04   -1.3717    
  15  norm          5.2023        5.2148        .82267E-03   -1.5252    
  16  Prefactor     61.977        73.542        .50947E-04   -1.4132    
  17  norm          .10000E-03    5.6571        .17313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1809        .17045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    12.160        .27487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .81912        2.0544        .16749E-03   -1.5527    
  22  Prefactor     .59314        126.68        .16531       -1.5554    
  23  norm          .65025        1.5659        .10452E-03   -1.5547    
  24  norm          50.297        11.830        .28274E-03   -1.4288    
  25  Prefactor     .10000E-03    5.2482        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.9112        .37490        .40126E-03   -.66796    
  27  Prefactor     .82546        .12265        .19487E-03   -.98797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63231e-09
Minuit parameter uncertainties:
  1  90.073
  2  2.46964e-05
  3  2.05076e-05
  4  1.35863e-06
  5  2.67556e-07
  6  38.8735
  7  6.30976e-05
  8  3.38688e-05
  9  1.78767
  10  2.76754
  11  5.05577e-05
  12  0.000229407
  13  1.78379e-06
  14  85.8884
  15  5.21526
  16  73.6501
  17  8.31313e-05
  18  8.80024e-06
  19  0.000520305
  20  3.93626e-05
  21  2.05458
  22  17.3723
  23  1.56598
  24  11.831
  25  9.18794e-06
  26  0.375472
  27  0.122695
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.911e+00  3.755e-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.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455296/likelihoodResults_581990401_582249601_4FGL_J0427.3+0504_daily_bin1322.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) = 5888.16371594
delta logL = -0.000146506019519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5888.1635703
delta logL = -8.65824404173e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5199       1.0000          .0000       10.000    
     3 'Normalizat'    1.9112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82546       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=   5888.164     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      295 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    391.80        .18142E-01** at limit **
   2  Index         2.4940        6.2385        .50000       -.13483E-07
   3  Normalizat    1.9112        .31543E-01    .40126E-03   -.43065E-04
   4  Prefactor     .82546        .10762E-01    .19487E-03   -.84185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Index      = 2.49401
  Normalizat = 1.91117
  Prefactor  = 0.82546
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.164     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      324 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    1920.3        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4940        5.6601        .50000       -.52498    
   3  Normalizat    1.9112        .75390E-01    .16050E-04   -.66796    
   4  Prefactor     .82546        .25724E-01    .77947E-05   -.98797    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.43791e-08
Minuit parameter uncertainties:
  1  0.0148413
  2  1856.15
  3  0.0753942
  4  0.025724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455296': 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) = 5888.16356928
delta logL = 1.55504494614e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.255e-01  2.572e-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.911e+00  7.539e-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/455296/cmap_HighResolution_581990401_582249601_4FGL_J0427.3+0504_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', job_status='DONE', photon_flux_upper_limit='2.55e-07', time_completed='2021-08-20 16:09:02.544173', job_id='455296', GAL2='0.83', fit_tolerance='1e-08', EG2='1.91', EG='1.91', time_epoch_completed='1629500942.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1322' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:09:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 455296: <4FGL_J0427.3+0504_daily_bin1322> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1322 66.8294 5.08 581990401 582249601 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 :                                   659.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

