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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1182
RA = 66.8294, Dec = 5.08
tmin = 545702401, tmax = 545961601
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='455094', job_status='RUN', time_executed='2021-08-20 15:58:04.448017', time_epoch_executed='1629500284.45' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455094/ft1_4FGL_J0427.3+0504_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455094/ft2_4FGL_J0427.3+0504_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455094/ft1_4FGL_J0427.3+0504_daily_bin1182.fits outfile=/scratch/kocevski/455094/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1182.fits ra=66.8294 dec=5.08 rad=12.0 tmin=545702401.0 tmax=545961601.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 13.17
user 3.82
sys 9.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455094/ft2_4FGL_J0427.3+0504_daily_bin1182.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/455094/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1182.fits evtable="EVENTS" outfile="/scratch/kocevski/455094/ft1_filtered_4FGL_J0427.3+0504_daily_bin1182.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.56
user 0.36
sys 9.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455094/ft1_filtered_4FGL_J0427.3+0504_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/455094/ft2_4FGL_J0427.3+0504_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/455094/ltcube_545702401_545961601_4FGL_J0427.3+0504_daily_bin1182.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/455094/ft2_4FGL_J0427.3+0504_daily_bin1182.fits
.....................!
real 23.65
user 13.11
sys 10.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455094/ft1_filtered_4FGL_J0427.3+0504_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/455094/ft2_4FGL_J0427.3+0504_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/455094/ltcube_545702401_545961601_4FGL_J0427.3+0504_daily_bin1182.fits outfile=/scratch/kocevski/455094/expmap_545702401_545961601_4FGL_J0427.3+0504_daily_bin1182.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/455094/ltcube_545702401_545961601_4FGL_J0427.3+0504_daily_bin1182.fits
.....................!
real 201.88
user 185.09
sys 16.08

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/455094/ft1_filtered_4FGL_J0427.3+0504_daily_bin1182.fits scfile=/scratch/kocevski/455094/ft2_4FGL_J0427.3+0504_daily_bin1182.fits outfile=/scratch/kocevski/455094/cmap_545702401_545961601_4FGL_J0427.3+0504_daily_bin1182.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.46
user 0.40
sys 8.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455094/ft1_filtered_4FGL_J0427.3+0504_daily_bin1182.fits scfile=/scratch/kocevski/455094/ft2_4FGL_J0427.3+0504_daily_bin1182.fits outfile=/scratch/kocevski/455094/cmap_HighResolution_545702401_545961601_4FGL_J0427.3+0504_daily_bin1182.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.67
user 0.38
sys 8.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5648.3659699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95964       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11755E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11955E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50088E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .81011E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    19.396       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6165       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .91138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.027       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8064       1.0000         .10000E-03   10000.    
    15 'norm      '    .41629       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17216E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.2712       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.171       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4683       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28726E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    30.278       1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.136       1.0000         .10000E-03   10000.    
    23 'norm      '    .12493       1.0000         .10000E-03   10000.    
    24 'norm      '    11.200       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .36384       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1327       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5648.353     FROM MIGRAD    STATUS=CONVERGED    228 CALLS     2484 TOTAL
                     EDM=   .69E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    552.75        .19417E-04** at limit **
   2  Prefactor     .10000E-03    57.507       -.53854E-06** at limit **
   3  norm          .10000E-03    30.428       -.76331E-05** at limit **
   4  Prefactor     .10000E-03    91.875       -.32013E-06** at limit **
   5  norm          .10000E-03    13.783       -.35027E-05** at limit **
   6  Prefactor     .10000E-03    22.191       -.24161E-05** at limit **
   7  norm          1.2780        29.619       -.51627E-05    .44391E-05
   8  norm          20.268        38.095        .20777E-06   -.13443E-04
   9  norm          2.6822        2.1597       -.20983E-05   -.19396E-03
  10  Prefactor     1.0332        3.1965        .37206E-06   -.20372E-04
  11  Prefactor     74.172        9.8951       -.23594E-06    .16401E-03
  12  Prefactor     17.788        70.133        .53475E-05   -.17932E-04
  13  Prefactor     .10000E-03    3.6724        .23954E-06** at limit **
  14  Prefactor     4.0913        7.9706        .10492E-05    .73709E-04
  15  norm          .37994        19.102        .10847E-05   -.48222E-05
  16  Prefactor     .10000E-03    33.850       -.70128E-05** at limit **
  17  norm          4.3179        2.8974       -.56586E-06    .31782E-04
  18  Prefactor     37.019        17.303        .67934E-06   -.82249E-06
  19  norm          1.4197        5.3575       -.18864E-05   -.32083E-04
  20  Prefactor     .10000E-03    16.948       -.94472E-06** at limit **
  21  norm          30.316        4.6536       -.12280E-06   -.32061E-04
  22  Prefactor     38.422        58.347        .14145E-05    .34677E-04
  23  norm          .15014        2.3997       -.10378E-05    .60142E-04
  24  norm          11.196        7.7345        .53872E-06    .30970E-04
  25  Prefactor     .10000E-03    3.7157       -.60703E-06** at limit **
  26  Normalizat    .35182        .41093        .42967E-05    .28543E-05
  27  Prefactor     1.1345        .13809        .82108E-06    .96181E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27796
  norm       = 20.2683
  norm       = 2.68216
  Prefactor  = 1.03321
  Prefactor  = 74.1723
  Prefactor  = 17.7882
  Prefactor  = 0.0001
  Prefactor  = 4.09128
  norm       = 0.379944
  Prefactor  = 0.0001
  norm       = 4.31786
  Prefactor  = 37.0193
  norm       = 1.41975
  Prefactor  = 0.0001
  norm       = 30.3157
  Prefactor  = 38.4222
  norm       = 0.150139
  norm       = 11.1964
  Prefactor  = 0.0001
  Normalizat = 0.351824
  Prefactor  = 1.13452
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.353     FROM HESSE     STATUS=OK           562 CALLS     3046 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    539.67        .13022E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.979        .10326E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    30.059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    91.115        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.9218        .56900E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.190        .10578E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2780        37.833        .94203E-02   -1.5482    
   8  norm          20.268        40.945        .22736E-02   -1.4807    
   9  norm          2.6822        2.4389        .63039E-02   -1.5380    
  10  Prefactor     1.0332        3.6337        .12849E-01   -1.5505    
  11  Prefactor     74.172        58.609        .11707E-02   -1.3983    
  12  Prefactor     17.788        80.491        .20018E-02   -1.4864    
  13  Prefactor     .10000E-03    3.6793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0913        333.37        .45876E-02   -1.5303    
  15  norm          .37994        4.6370        .75788E-01   -1.5585    
  16  Prefactor     .10000E-03    33.832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3179        3.0528        .48737E-02   -1.5292    
  18  Prefactor     37.019        17.982        .16659E-02   -1.4490    
  19  norm          1.4197        5.4229        .88684E-02   -1.5470    
  20  Prefactor     .10000E-03    16.897        .99375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          30.316        4.9577        .18204E-02   -1.4606    
  22  Prefactor     38.422        66.391        .15818E-02   -1.4467    
  23  norm          .15014        2.1242        .20080E-01   -1.5630    
  24  norm          11.196        8.6312        .29927E-02   -1.5039    
  25  Prefactor     .10000E-03    3.7019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .35182        .66421        .18334       -1.1987    
  27  Prefactor     1.1345        .18958        .36459E-01   -.88371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96728e-09
Minuit parameter uncertainties:
  1  3.0983e-05
  2  2.08256e-05
  3  2.86925e-05
  4  2.84234e-05
  5  4.81519e-06
  6  6.79069e-06
  7  13.9158
  8  41.0016
  9  2.43902
  10  3.63447
  11  58.6544
  12  75.8478
  13  7.01425e-07
  14  74.2936
  15  2.65455
  16  1.98859e-06
  17  3.05288
  18  17.9848
  19  5.42477
  20  1.83103e-06
  21  4.95773
  22  66.5194
  23  1.12915
  24  8.63214
  25  1.07296e-06
  26  0.679993
  27  0.189694
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  7.417e+01  5.865e+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:  1.135e+00  1.897e-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:  3.518e-01  6.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.07
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 2.32e-07 +/- 1.83e-07
Energy Flux (Fixed Index): 4.99e-05 +/- 3.95e-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) = 5648.29158153
delta logL = 0.0613538523185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5648.29005734
delta logL = 0.0628780355373

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.439       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6549       1.0000          .0000       10.000    
     3 'Normalizat'    .36617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1296       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=   5648.290     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      290 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.425        51.930        .44239E-04    .10639E-04
   2  Index         2.6546        .57087        .75261E-02    .12161E-03
   3  Normalizat    .36644        .35580        .79462E-03    .91565E-06
   4  Prefactor     1.1295        .13322        .17390E-03    .14383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.4253
  Index      = 2.65465
  Normalizat = 0.366439
  Prefactor  = 1.1295
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.290     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.425        51.437        .88477E-05   -1.3890    
   2  Index         2.6546        .56539        .15052E-02   -.48824    
   3  Normalizat    .36644        .35550        .31785E-04   -1.1907    
   4  Prefactor     1.1295        .13308        .69560E-05   -.88529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33789e-13
Minuit parameter uncertainties:
  1  51.4651
  2  0.566949
  3  0.357719
  4  0.133121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455094': 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) = 5648.29005696
delta logL = 0.0628784220116

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.243e+01  5.147e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.655e+00  5.669e-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:  1.129e+00  1.331e-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:  3.664e-01  3.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.65 +/- 0.57
Photon Flux (Free Index): 2.16e-07 +/- 1.39e-07
Energy Flux (Free Index): 5.40e-05 +/- 3.40e-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/455094/cmap_HighResolution_545702401_545961601_4FGL_J0427.3+0504_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.32e-07', energy_flux2='5.40e-05', photon_flux_error='1.83e-07', dlogl='6.29e-02', energy_flux='4.99e-05', photon_flux2='2.16e-07', job_status='DONE', time_completed='2021-08-20 16:09:52.347249', photon_index_error2='0.57', photon_index2='2.65', ts='4.07', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='3.40e-05', EG='0.35', time_epoch_completed='1629500992.35', return_code='0', job_id='455094', GAL2='1.13', EG2='0.37', return_code2='0', energy_flux_error='3.95e-05', photon_flux_error2='1.39e-07', ts2='4.15', photon_index='2.86' WHERE bin_id='1182' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:09:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 455094: <4FGL_J0427.3+0504_daily_bin1182> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1182 66.8294 5.08 545702401 545961601 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 :                                   844.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

