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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1238
RA = 66.8294, Dec = 5.08
tmin = 560217601, tmax = 560476801
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='455174', job_status='RUN', time_executed='2021-08-20 15:59:53.779659', time_epoch_executed='1629500393.78' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455174/ft1_4FGL_J0427.3+0504_daily_bin1238.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455174/ft2_4FGL_J0427.3+0504_daily_bin1238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455174/ft1_4FGL_J0427.3+0504_daily_bin1238.fits outfile=/scratch/kocevski/455174/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1238.fits ra=66.8294 dec=5.08 rad=12.0 tmin=560217601.0 tmax=560476801.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.75
user 3.40
sys 5.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455174/ft1_filtered_4FGL_J0427.3+0504_daily_bin1238.fits" evtable="EVENTS" scfile=/scratch/kocevski/455174/ft2_4FGL_J0427.3+0504_daily_bin1238.fits sctable="SC_DATA" outfile=/scratch/kocevski/455174/ltcube_560217601_560476801_4FGL_J0427.3+0504_daily_bin1238.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/455174/ft2_4FGL_J0427.3+0504_daily_bin1238.fits
.....................!
real 18.16
user 11.37
sys 6.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455174/ft1_filtered_4FGL_J0427.3+0504_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/455174/ft2_4FGL_J0427.3+0504_daily_bin1238.fits sctable="SC_DATA" expcube=/scratch/kocevski/455174/ltcube_560217601_560476801_4FGL_J0427.3+0504_daily_bin1238.fits outfile=/scratch/kocevski/455174/expmap_560217601_560476801_4FGL_J0427.3+0504_daily_bin1238.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/455174/ltcube_560217601_560476801_4FGL_J0427.3+0504_daily_bin1238.fits
.....................!
real 196.20
user 185.06
sys 10.79

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/455174/ft1_filtered_4FGL_J0427.3+0504_daily_bin1238.fits scfile=/scratch/kocevski/455174/ft2_4FGL_J0427.3+0504_daily_bin1238.fits outfile=/scratch/kocevski/455174/cmap_560217601_560476801_4FGL_J0427.3+0504_daily_bin1238.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 5.51
user 0.38
sys 5.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455174/ft1_filtered_4FGL_J0427.3+0504_daily_bin1238.fits scfile=/scratch/kocevski/455174/ft2_4FGL_J0427.3+0504_daily_bin1238.fits outfile=/scratch/kocevski/455174/cmap_HighResolution_560217601_560476801_4FGL_J0427.3+0504_daily_bin1238.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 5.58
user 0.39
sys 5.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.555       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.347       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.941       1.0000         .10000E-03   10000.    
     7 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    263.53       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.602       1.0000         .10000E-03   10000.    
    15 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.235       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5548       1.0000         .10000E-03   10000.    
    20 'Prefactor '    160.43       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.633       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    30.063       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2742       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93085       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=   4568.904     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3364 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.345        90.900       -.13555E-04    .94626E-04
   2  Prefactor     71.350        36.738        .29119E-05    .55324E-03
   3  norm          .10000E-03    35.852       -.12636E-05** at limit **
   4  Prefactor     .10000E-03    27.471       -.13873E-05** at limit **
   5  norm          12.694        12.568        .15422E-07    .34578E-03
   6  Prefactor     75.919        58.917        .50550E-06    .30023E-03
   7  norm          .10000E-03    81.113        .14164E-05** at limit **
   8  norm          .10000E-03    15.803       -.26569E-06** at limit **
   9  norm          .10000E-03    .92731        .85053E-08** at limit **
  10  Prefactor     .10000E-03    1.2816       -.56459E-08** at limit **
  11  Prefactor     263.52        76.137        .20589E-05    .39073E-03
  12  Prefactor     .10000E-03    42.724        .14710E-05** at limit **
  13  Prefactor     .10000E-03    23.085        .14030E-05** at limit **
  14  Prefactor     17.588        22.127        .50943E-06    .50033E-03
  15  norm          .10000E-03    4.7517       -.41825E-06** at limit **
  16  Prefactor     34.182        66.840       -.58023E-05    .81716E-04
  17  norm          .10000E-03    2.3718        .35858E-08** at limit **
  18  Prefactor     .10000E-03    8.1577       -.22243E-06** at limit **
  19  norm          5.5523        4.2275        .27769E-06    .13516E-02
  20  Prefactor     160.41        109.72        .15090E-05    .19212E-03
  21  norm          .10000E-03    10.377        .91213E-07** at limit **
  22  Prefactor     23.632        88.886        .32625E-05    .77903E-04
  23  norm          .10000E-03    1.0192       -.86617E-07** at limit **
  24  norm          30.062        13.721        .27003E-06    .34160E-03
  25  Prefactor     4.2737        5.1802        .42068E-06    .32764E-03
  26  Normalizat    .10000E-01    .26475       -.10046E-03** at limit **
  27  Prefactor     .93093        .71991E-01    .91539E-05    .14116E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.3446
  Prefactor  = 71.35
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6945
  Prefactor  = 75.9194
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 263.516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.588
  norm       = 0.0001
  Prefactor  = 34.1818
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.5523
  Prefactor  = 160.407
  norm       = 0.0001
  Prefactor  = 23.6317
  norm       = 0.0001
  norm       = 30.0619
  Prefactor  = 4.27371
  Normalizat = 0.01
  Prefactor  = 0.930931
 **********
 **   18 **HESSE 
 **********

 FCN=   4568.904     FROM HESSE     STATUS=OK           470 CALLS     3834 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.345        91.072        .25367E-03   -1.4127    
   2  Prefactor     71.350        36.852        .47527E-04   -1.4017    
   3  norm          .10000E-03    35.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.694        12.570        .56212E-03   -1.4995    
   6  Prefactor     75.919        58.959        .46077E-04   -1.3963    
   7  norm          .10000E-03    81.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .92808        .63567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2827        .74728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     263.52        76.040        .12486E-03   -1.2447    
  12  Prefactor     .10000E-03    42.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.588        22.289        .95463E-04   -1.4869    
  15  norm          .10000E-03    4.8120        .14349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.182        66.859        .68488E-04   -1.4538    
  17  norm          .10000E-03    2.3726        .10167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.1828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5523        4.2426        .11123E-03   -1.5237    
  20  Prefactor     160.41        109.43        .15919E-03   -1.3168    
  21  norm          .10000E-03    10.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.632        88.462        .82396E-04   -1.4735    
  23  norm          .10000E-03    1.0427        .66109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          30.062        13.694        .73073E-04   -1.4611    
  25  Prefactor     4.2737        5.1750        .16373E-03   -1.5294    
  26  Normalizat    .10000E-01    .90054        .18332E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .93093        .74401E-01    .13713E-03   -.95069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01196e-08
Minuit parameter uncertainties:
  1  91.2767
  2  36.8635
  3  0.000100174
  4  8.92811e-05
  5  12.5729
  6  59.0041
  7  0.000117216
  8  4.90214e-06
  9  4.37855e-08
  10  8.01145e-07
  11  76.0687
  12  0.000100618
  13  6.62021e-05
  14  22.2998
  15  2.57504e-05
  16  67.0058
  17  2.04329e-07
  18  2.07325e-05
  19  4.24286
  20  109.57
  21  4.81295e-05
  22  88.9585
  23  5.92307e-06
  24  13.6956
  25  5.17549
  26  0.000172308
  27  0.0744095
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.635e+02  7.607e+01  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:  9.309e-01  7.441e-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.000e-02  1.723e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.16
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 8.24e-07 +/- 2.38e-07
Energy Flux (Fixed Index): 1.77e-04 +/- 5.12e-05

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) = 4567.48139324
delta logL = 1.42273644455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4567.36661108
delta logL = 1.53751860403

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    298.15       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2985       1.0000          .0000       10.000    
     3 'Normalizat'    .85937E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91721       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=   4567.367     FROM MIGRAD    STATUS=FAILED        91 CALLS      333 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     298.19        87.306        .11759E-03   -.81306E-04
   2  Index         2.2992        .29405        .42383E-02   -.16496E-04
   3  Normalizat    .85098E-01    .83234        .14189E-01    .27181E-03
   4  Prefactor     .91722        .12431        .13808E-03   -.24352E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4567.367     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      416 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     298.19        87.306        .22125E-03   -1.2237    
   2  Index         2.2992        .29405        .24924E-03   -.57062    
   3  Normalizat    .85098E-01    .83234        .16823E-02   -1.3972    
   4  Prefactor     .91722        .12431        .14102E-03   -.95542    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4567.367     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      446 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     298.19        87.061        .23519E-04   -.96677E-07
   2  Index         2.2992        .29231        .16953E-03   -.60353E-06
   3  Normalizat    .85098E-01    .70205        .28378E-02    .10822E-04
   4  Prefactor     .91722        .11413        .27615E-04    .13997E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 298.188
  Index      = 2.29923
  Normalizat = 0.0850978
  Prefactor  = 0.91722
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.367     FROM HESSE     STATUS=OK            25 CALLS      471 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     298.19        86.993        .47038E-05   -1.2237    
   2  Index         2.2992        .29191        .67813E-05   -.57062    
   3  Normalizat    .85098E-01    .68041        .56756E-03   -1.3972    
   4  Prefactor     .91722        .11238        .55231E-05   -.95542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6681e-13
Minuit parameter uncertainties:
  1  87.0314
  2  0.292148
  3  0.459217
  4  0.11241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455174': 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) = 4567.36660333
delta logL = 1.53752635441

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.982e+02  8.703e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.299e+00  2.921e-01  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:  9.172e-01  1.124e-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:  8.510e-02  4.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.23
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.30 +/- 0.29
Photon Flux (Free Index): 6.01e-07 +/- 2.25e-07
Energy Flux (Free Index): 2.28e-04 +/- 8.24e-05

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/455174/cmap_HighResolution_560217601_560476801_4FGL_J0427.3+0504_daily_bin1238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.24e-07', energy_flux2='2.28e-04', photon_flux_error='2.38e-07', dlogl='1.54e+00', energy_flux='1.77e-04', photon_flux2='6.01e-07', job_status='DONE', time_completed='2021-08-20 16:10:09.864160', photon_index_error2='0.29', photon_index2='2.30', ts='26.16', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='8.24e-05', EG='0.01', time_epoch_completed='1629501009.86', return_code='0', job_id='455174', GAL2='0.92', EG2='0.09', return_code2='0', energy_flux_error='5.12e-05', photon_flux_error2='2.25e-07', ts2='29.23', photon_index='2.86' WHERE bin_id='1238' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:10:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 455174: <4FGL_J0427.3+0504_daily_bin1238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1238 66.8294 5.08 560217601 560476801 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 :                                   695.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             211.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

