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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1321
RA = 66.8294, Dec = 5.08
tmin = 581731201, tmax = 581990401
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='455295', job_status='RUN', time_executed='2021-08-20 15:59:46.317121', time_epoch_executed='1629500386.32' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455295

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455295/ft1_4FGL_J0427.3+0504_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455295/ft2_4FGL_J0427.3+0504_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455295/ft1_4FGL_J0427.3+0504_daily_bin1321.fits outfile=/scratch/kocevski/455295/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1321.fits ra=66.8294 dec=5.08 rad=12.0 tmin=581731201.0 tmax=581990401.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.53
user 2.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455295/ft2_4FGL_J0427.3+0504_daily_bin1321.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/455295/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/455295/ft1_filtered_4FGL_J0427.3+0504_daily_bin1321.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455295/ft1_filtered_4FGL_J0427.3+0504_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/455295/ft2_4FGL_J0427.3+0504_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/455295/ltcube_581731201_581990401_4FGL_J0427.3+0504_daily_bin1321.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/455295/ft2_4FGL_J0427.3+0504_daily_bin1321.fits
.....................!
real 12.10
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455295/ft1_filtered_4FGL_J0427.3+0504_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/455295/ft2_4FGL_J0427.3+0504_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/455295/ltcube_581731201_581990401_4FGL_J0427.3+0504_daily_bin1321.fits outfile=/scratch/kocevski/455295/expmap_581731201_581990401_4FGL_J0427.3+0504_daily_bin1321.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/455295/ltcube_581731201_581990401_4FGL_J0427.3+0504_daily_bin1321.fits
.....................!
real 190.26
user 185.41
sys 4.52

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/455295/ft1_filtered_4FGL_J0427.3+0504_daily_bin1321.fits scfile=/scratch/kocevski/455295/ft2_4FGL_J0427.3+0504_daily_bin1321.fits outfile=/scratch/kocevski/455295/cmap_581731201_581990401_4FGL_J0427.3+0504_daily_bin1321.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455295/ft1_filtered_4FGL_J0427.3+0504_daily_bin1321.fits scfile=/scratch/kocevski/455295/ft2_4FGL_J0427.3+0504_daily_bin1321.fits outfile=/scratch/kocevski/455295/cmap_HighResolution_581731201_581990401_4FGL_J0427.3+0504_daily_bin1321.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.597       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2444       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.362       1.0000         .10000E-03   10000.    
     8 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    78.815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14366E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9415       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10546E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1515       1.0000         .10000E-03   10000.    
    24 'norm      '    19.637       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .29152       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3175       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=   2340.960     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3286 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.592        103.78        .15479E-05   -.79659E-07
   2  Prefactor     .10000E-03    24.169        .89685E-07** at limit **
   3  norm          .10000E-03    22.414        .24083E-07** at limit **
   4  Prefactor     .10000E-03    22.504       -.37992E-07** at limit **
   5  norm          5.2439        8.9265        .11976E-05   -.29310E-04
   6  Prefactor     .10000E-03    68.811        .96592E-07** at limit **
   7  norm          13.363        21.587        .22173E-05    .74574E-06
   8  norm          .10000E-03    61.046       -.40376E-07** at limit **
   9  norm          .10000E-03    1.3490       -.20130E-06** at limit **
  10  Prefactor     .10000E-03    2.1181       -.49275E-06** at limit **
  11  Prefactor     .10000E-03    46.200       -.81208E-07** at limit **
  12  Prefactor     78.770        121.74        .72667E-05   -.19778E-04
  13  Prefactor     .10000E-03    5.9282       -.42585E-07** at limit **
  14  Prefactor     .10009E-03    1313.4       -.58271E-05** at limit **
  15  norm          .10000E-03    4.6143       -.28616E-07** at limit **
  16  Prefactor     .10000E-03    90.912       -.26160E-07** at limit **
  17  norm          1.9632        4.4351        .95091E-06   -.16607E-04
  18  Prefactor     5.9275        17.410        .21492E-06   -.10151E-04
  19  norm          .10000E-03    4.9526        .35164E-08** at limit **
  20  Prefactor     .10000E-03    38.109       -.56628E-07** at limit **
  21  norm          .10000E-03    2.7402        .14015E-05** at limit **
  22  Prefactor     .10000E-03    29.979        .66029E-07** at limit **
  23  norm          1.1516        1.5624        .13673E-06   -.12146E-03
  24  norm          19.635        13.313        .30125E-07    .32757E-05
  25  Prefactor     .10000E-03    6.8859       -.99575E-08** at limit **
  26  Normalizat    .29155        .50122       -.39739E-04   -.36828E-04
  27  Prefactor     1.3175        .19617        .58891E-05   -.10782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5918
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.24389
  Prefactor  = 0.0001
  norm       = 13.3625
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.7701
  Prefactor  = 0.0001
  Prefactor  = 0.000100086
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96318
  Prefactor  = 5.9275
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15159
  norm       = 19.6349
  Prefactor  = 0.0001
  Normalizat = 0.291546
  Prefactor  = 1.31752
 **********
 **   18 **HESSE 
 **********

 FCN=   2340.960     FROM HESSE     STATUS=OK           478 CALLS     3764 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.592        104.02        .72435E-04   -1.4601    
   2  Prefactor     .10000E-03    24.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2439        8.9258        .17552E-03   -1.5250    
   6  Prefactor     .10000E-03    68.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.363        21.624        .10958E-03   -1.4977    
   8  norm          .10000E-03    61.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3633        .10877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1232        .68319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     78.770        121.42        .45236E-04   -1.3931    
  13  Prefactor     .10000E-03    5.9312        .11501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10009E-03    1311.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.6446        .10149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    90.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9632        4.3478        .13707E-03   -1.5428    
  18  Prefactor     5.9275        17.407        .16474E-03   -1.5221    
  19  norm          .10000E-03    4.9530        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.1062        .15338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1516        1.5291        .61431E-04   -1.5493    
  24  norm          19.635        13.365        .90384E-04   -1.4821    
  25  Prefactor     .10000E-03    6.8941        .12401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .29155        .50970        .77940E-03   -1.2334    
  27  Prefactor     1.3175        .19622        .16103E-03   -.82788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00953e-10
Minuit parameter uncertainties:
  1  104.647
  2  3.21216e-05
  3  4.08906e-05
  4  3.47226e-06
  5  8.92806
  6  6.6797e-05
  7  21.6364
  8  0.00011946
  9  3.58986e-05
  10  6.25064e-05
  11  8.59002e-07
  12  121.809
  13  4.11979e-05
  14  0.0217655
  15  5.99625e-06
  16  2.76154e-05
  17  4.34852
  18  17.4219
  19  1.93828e-07
  20  5.86088e-05
  21  7.45945e-05
  22  1.65505e-05
  23  1.52915
  24  13.3666
  25  2.40268e-06
  26  0.518136
  27  0.196332
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  8.590e-07  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.318e+00  1.963e-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:  2.915e-01  5.181e-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: 4.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455295/likelihoodResults_581731201_581990401_4FGL_J0427.3+0504_daily_bin1321.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) = 2340.96051024
delta logL = -0.000102858518403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2340.96040886
delta logL = -1.48385970533e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12392E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4969       1.0000          .0000       10.000    
     3 'Normalizat'    .29155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3175       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=   2340.960     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      288 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    370.04        .18142E-01** at limit **
   2  Index         2.3689        8.4455        .50000       -.19406E-07
   3  Normalizat    .29155        .30802E-01    .77933E-03   -.23202E-04
   4  Prefactor     1.3175        .12995E-01    .16104E-03   -.11561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3689
  Normalizat = 0.291548
  Prefactor  = 1.31752
 **********
 **   18 **HESSE 
 **********

 FCN=   2340.960     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1694.5        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3689        7.6580        .50000       -.55415    
   3  Normalizat    .29155        .69065E-01    .31173E-04   -1.2334    
   4  Prefactor     1.3175        .29144E-01    .32207E-04   -.82788    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13005e-11
Minuit parameter uncertainties:
  1  0.000610957
  2  1785.11
  3  0.0690854
  4  0.0291445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455295': 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) = 2340.96040713
delta logL = 2.45711817115e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  6.110e-04  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.369e+00  1.785e+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.318e+00  2.914e-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:  2.915e-01  6.909e-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/455295/cmap_HighResolution_581731201_581990401_4FGL_J0427.3+0504_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-02', job_status='DONE', photon_flux_upper_limit='4.69e-07', time_completed='2021-08-20 16:07:03.206863', job_id='455295', GAL2='1.32', fit_tolerance='1e-08', EG2='0.29', EG='0.29', time_epoch_completed='1629500823.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1321' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:07:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 455295: <4FGL_J0427.3+0504_daily_bin1321> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1321> 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) <bullet0084>, 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:07:04 2021
Results reported at Fri Aug 20 16:07:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1321 66.8294 5.08 581731201 581990401 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 :                                   436.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             284.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            687 sec.

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

