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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1444
RA = 66.8294, Dec = 5.08
tmin = 613612801, tmax = 613872001
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='456953', job_status='RUN', time_executed='2021-08-20 16:05:32.470526', time_epoch_executed='1629500732.47' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456953

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456953/ft1_4FGL_J0427.3+0504_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456953/ft2_4FGL_J0427.3+0504_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456953/ft1_4FGL_J0427.3+0504_daily_bin1444.fits outfile=/scratch/kocevski/456953/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1444.fits ra=66.8294 dec=5.08 rad=12.0 tmin=613612801.0 tmax=613872001.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 11.98
user 2.33
sys 9.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456953/ft2_4FGL_J0427.3+0504_daily_bin1444.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/456953/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1444.fits evtable="EVENTS" outfile="/scratch/kocevski/456953/ft1_filtered_4FGL_J0427.3+0504_daily_bin1444.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 9.92
user 0.34
sys 9.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456953/ft1_filtered_4FGL_J0427.3+0504_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/456953/ft2_4FGL_J0427.3+0504_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/456953/ltcube_613612801_613872001_4FGL_J0427.3+0504_daily_bin1444.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/456953/ft2_4FGL_J0427.3+0504_daily_bin1444.fits
.....................!
real 23.57
user 12.67
sys 10.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456953/ft1_filtered_4FGL_J0427.3+0504_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/456953/ft2_4FGL_J0427.3+0504_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/456953/ltcube_613612801_613872001_4FGL_J0427.3+0504_daily_bin1444.fits outfile=/scratch/kocevski/456953/expmap_613612801_613872001_4FGL_J0427.3+0504_daily_bin1444.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/456953/ltcube_613612801_613872001_4FGL_J0427.3+0504_daily_bin1444.fits
.....................!
real 202.25
user 185.23
sys 16.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/456953/ft1_filtered_4FGL_J0427.3+0504_daily_bin1444.fits scfile=/scratch/kocevski/456953/ft2_4FGL_J0427.3+0504_daily_bin1444.fits outfile=/scratch/kocevski/456953/cmap_613612801_613872001_4FGL_J0427.3+0504_daily_bin1444.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=66.8294 yref=5.08 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 9.49
user 0.38
sys 8.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456953/ft1_filtered_4FGL_J0427.3+0504_daily_bin1444.fits scfile=/scratch/kocevski/456953/ft2_4FGL_J0427.3+0504_daily_bin1444.fits outfile=/scratch/kocevski/456953/cmap_HighResolution_613612801_613872001_4FGL_J0427.3+0504_daily_bin1444.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=66.8294 yref=5.08 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 9.94
user 0.40
sys 8.97

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.012       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.198       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10370E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7627       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .77165E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.767       1.0000         .10000E-03   10000.    
    15 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    126.03       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9905       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6145       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    78.409       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5324       1.0000         .10000E-03   10000.    
    22 'Prefactor '    94.297       1.0000         .10000E-03   10000.    
    23 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.2339       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1031       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79214       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=   2882.155     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3341 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.366        .36254E-06** at limit **
   2  Prefactor     .10000E-03    18.831        .58659E-06** at limit **
   3  norm          .10000E-03    10.246        .79699E-06** at limit **
   4  Prefactor     13.995        94.446       -.31633E-05   -.53223E-04
   5  norm          .10000E-03    10.353       -.82670E-06** at limit **
   6  Prefactor     75.208        78.807        .15047E-05    .35348E-04
   7  norm          .10000E-03    14.820        .81099E-07** at limit **
   8  norm          .10000E-03    53.098        .16350E-05** at limit **
   9  norm          .10000E-03    1.5086        .61120E-06** at limit **
  10  Prefactor     5.7635        4.9312       -.45713E-06   -.50182E-04
  11  Prefactor     .10000E-03    33.835       -.10649E-05** at limit **
  12  Prefactor     .10014E-03    370.00       -.36822E-04** at limit **
  13  Prefactor     12.112        18.641       -.14251E-06   -.39906E-04
  14  Prefactor     84.736        143.33       -.39870E-05   -.38517E-04
  15  norm          .10000E-03    6.8410        .15803E-06** at limit **
  16  Prefactor     126.04        179.35        .16554E-05    .13328E-04
  17  norm          3.9891        4.5121        .77271E-08    .53800E-04
  18  Prefactor     5.6123        33.521        .90554E-06   -.54775E-05
  19  norm          .10000E-03    3.8525       -.36279E-07** at limit **
  20  Prefactor     78.297        175.22       -.10865E-04   -.10475E-03
  21  norm          3.5331        3.2122        .24084E-07   -.51261E-05
  22  Prefactor     94.356        171.24       -.33081E-06   -.23182E-04
  23  norm          .10000E-03    1.2284       -.20876E-06** at limit **
  24  norm          3.2323        8.0354        .76443E-05   -.47118E-03
  25  Prefactor     .10000E-03    19.956       -.47402E-06** at limit **
  26  Normalizat    1.1031        .41121       -.11207E-05   -.31208E-04
  27  Prefactor     .79219        .12906       -.41255E-07   -.82412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9947
  norm       = 0.0001
  Prefactor  = 75.2077
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.7635
  Prefactor  = 0.0001
  Prefactor  = 0.000100143
  Prefactor  = 12.1122
  Prefactor  = 84.7357
  norm       = 0.0001
  Prefactor  = 126.043
  norm       = 3.98914
  Prefactor  = 5.61228
  norm       = 0.0001
  Prefactor  = 78.2968
  norm       = 3.53305
  Prefactor  = 94.3565
  norm       = 0.0001
  norm       = 3.23231
  Prefactor  = 0.0001
  Normalizat = 1.10308
  Prefactor  = 0.792185
 **********
 **   18 **HESSE 
 **********

 FCN=   2882.155     FROM HESSE     STATUS=OK           476 CALLS     3817 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.259        .16794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.995        94.435        .10700E-03   -1.4960    
   5  norm          .10000E-03    10.581        .33663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     75.208        78.889        .46303E-04   -1.3971    
   7  norm          .10000E-03    14.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    53.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.998        .11408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7635        4.7026        .88446E-04   -1.5228    
  11  Prefactor     .10000E-03    33.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10014E-03    389.09        .20924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.112        18.813        .11512E-03   -1.5012    
  14  Prefactor     84.736        144.05        .43632E-04   -1.3864    
  15  norm          .10000E-03    6.9709        .13693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     126.04        179.23        .35857E-04   -1.3458    
  17  norm          3.9891        4.5150        .11296E-03   -1.5308    
  18  Prefactor     5.6123        33.177        .16954E-03   -1.5234    
  19  norm          .10000E-03    3.8556        .10291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     78.297        179.96        .22676E-03   -1.3936    
  21  norm          3.5331        3.2056        .88361E-04   -1.5332    
  22  Prefactor     94.356        173.04        .41388E-04   -1.3762    
  23  norm          .10000E-03    1.2573        .11523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.2323        8.3209        .11262E-02   -1.5348    
  25  Prefactor     .10000E-03    20.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1031        .45539        .41356E-03   -.89653    
  27  Prefactor     .79219        .14393        .16425E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.512e-09
Minuit parameter uncertainties:
  1  4.76623e-05
  2  4.73949e-05
  3  5.88632e-05
  4  72.8733
  5  3.94521e-05
  6  78.9988
  7  1.21823e-05
  8  0.000457939
  9  5.05947e-05
  10  4.70293
  11  0.000141774
  12  0.0150208
  13  18.8227
  14  144.646
  15  8.0943e-06
  16  180.013
  17  4.51534
  18  27.3134
  19  4.53346e-06
  20  181.232
  21  3.20575
  22  173.975
  23  2.11724e-05
  24  8.32392
  25  1.09354e-05
  26  0.457022
  27  0.143998
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.418e-04  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:  7.922e-01  1.440e-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.103e+00  4.570e-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.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456953/likelihoodResults_613612801_613872001_4FGL_J0427.3+0504_daily_bin1444.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): 0
logL (Free Index) = 2882.15489955
delta logL = -0.000140552308039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2882.1547593
delta logL = -3.08643848257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6860       1.0000          .0000       10.000    
     3 'Normalizat'    1.1031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79219       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2882.155     FROM MIGRAD    STATUS=FAILED        96 CALLS      270 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1299.7        .18142E-01** at limit **
   2  Index         3.0421        5.4296        .83662E-01   -.49463E-07
   3  Normalizat    1.1031        .72215E-01    .41356E-03    .42196E-05
   4  Prefactor     .79219        .24887E-01    .16425E-03    .11718E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2882.155     FROM SIMPLEX   STATUS=UNCHANGED    163 CALLS      433 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1299.7        .94064E-03** at limit **
   2  Index         3.0421        5.4296        .16586E-05   -.49463E-07
   3  Normalizat    1.1031        .72215E-01    .22217E-06    .42196E-05
   4  Prefactor     .79219        .24887E-01    .28888E-07    .11718E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2882.155     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      461 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.903        .30695E-02** at limit **
   2  Index         3.0536        7.4742        .33465E-02    .19704E-07
   3  Normalizat    1.1031        .39522        .16543E-04    .48794E-05
   4  Prefactor     .79219        .13657        .32850E-04    .13359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.05362
  Normalizat = 1.10308
  Prefactor  = 0.792185
 **********
 **   18 **HESSE 
 **********

 FCN=   2882.155     FROM HESSE     STATUS=OK            23 CALLS      484 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.442        .61390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0536        7.2155        .66930E-03   -.39984    
   3  Normalizat    1.1031        .39507        .33085E-05   -.89653    
   4  Prefactor     .79219        .13654        .65700E-05   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8461e-11
Minuit parameter uncertainties:
  1  0.000257518
  2  863.9
  3  0.396133
  4  0.136594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456953': 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) = 2882.15475897
delta logL = 2.39028850046e-08

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  2.575e-04  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.054e+00  8.639e+02  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:  7.922e-01  1.366e-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.103e+00  3.961e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/456953/cmap_HighResolution_613612801_613872001_4FGL_J0427.3+0504_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-02', job_status='DONE', photon_flux_upper_limit='3.61e-07', time_completed='2021-08-20 16:15:48.866930', job_id='456953', GAL2='0.79', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1629501348.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1444' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:15:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 456953: <4FGL_J0427.3+0504_daily_bin1444> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1444> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 16:00:48 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:00:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:00:50 2021
Terminated at Fri Aug 20 16:15:51 2021
Results reported at Fri Aug 20 16:15:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1444 66.8294 5.08 613612801 613872001 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 :                                   758.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             227.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

