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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1394
RA = 66.8294, Dec = 5.08
tmin = 600652801, tmax = 600912001
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='456872', job_status='RUN', time_executed='2021-08-20 16:03:03.681463', time_epoch_executed='1629500583.68' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456872/ft1_4FGL_J0427.3+0504_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456872/ft2_4FGL_J0427.3+0504_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456872/ft1_4FGL_J0427.3+0504_daily_bin1394.fits outfile=/scratch/kocevski/456872/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1394.fits ra=66.8294 dec=5.08 rad=12.0 tmin=600652801.0 tmax=600912001.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 3.96
user 3.40
sys 0.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456872/ft1_filtered_4FGL_J0427.3+0504_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/456872/ft2_4FGL_J0427.3+0504_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/456872/ltcube_600652801_600912001_4FGL_J0427.3+0504_daily_bin1394.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/456872/ft2_4FGL_J0427.3+0504_daily_bin1394.fits
.....................!
real 12.26
user 11.53
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456872/ft1_filtered_4FGL_J0427.3+0504_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/456872/ft2_4FGL_J0427.3+0504_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/456872/ltcube_600652801_600912001_4FGL_J0427.3+0504_daily_bin1394.fits outfile=/scratch/kocevski/456872/expmap_600652801_600912001_4FGL_J0427.3+0504_daily_bin1394.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/456872/ltcube_600652801_600912001_4FGL_J0427.3+0504_daily_bin1394.fits
.....................!
real 191.99
user 186.36
sys 5.18

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/456872/ft1_filtered_4FGL_J0427.3+0504_daily_bin1394.fits scfile=/scratch/kocevski/456872/ft2_4FGL_J0427.3+0504_daily_bin1394.fits outfile=/scratch/kocevski/456872/cmap_600652801_600912001_4FGL_J0427.3+0504_daily_bin1394.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.87
user 0.37
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456872/ft1_filtered_4FGL_J0427.3+0504_daily_bin1394.fits scfile=/scratch/kocevski/456872/ft2_4FGL_J0427.3+0504_daily_bin1394.fits outfile=/scratch/kocevski/456872/cmap_HighResolution_600652801_600912001_4FGL_J0427.3+0504_daily_bin1394.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.88
user 0.41
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0462       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47162E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0920       1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.999       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11804E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.503       1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.423       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8120       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4478       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4791       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.2615       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3206       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5217       1.0000         .10000E-03   10000.    
    24 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5478       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3792       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86247       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=   9918.611     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3385 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0371        72.340       -.17258E-05   -.69434E-05
   2  Prefactor     .10000E-03    6.2456        .12894E-06** at limit **
   3  norm          .10000E-03    8.4304       -.15813E-07** at limit **
   4  Prefactor     .10000E-03    9.9601       -.12219E-06** at limit **
   5  norm          .10000E-03    4.8877        .24830E-07** at limit **
   6  Prefactor     .10000E-03    19.128       -.48846E-06** at limit **
   7  norm          .10000E-03    3.3419       -.22041E-08** at limit **
   8  norm          .10000E-03    28.982        .62672E-06** at limit **
   9  norm          .10000E-03    .40924       -.18506E-08** at limit **
  10  Prefactor     1.0916        1.3352       -.53051E-07   -.22800E-03
  11  Prefactor     52.998        26.332        .55337E-06    .11987E-03
  12  Prefactor     .10000E-03    84.154       -.15947E-06** at limit **
  13  Prefactor     .10000E-03    7.9918        .58260E-07** at limit **
  14  Prefactor     16.508        14.163        .21904E-05    .23234E-03
  15  norm          .10000E-03    1.3382       -.57699E-07** at limit **
  16  Prefactor     38.458        36.704       -.98410E-07    .11646E-04
  17  norm          1.8121        1.8413       -.25643E-07   -.18969E-03
  18  Prefactor     6.4477        4.3846        .58567E-06   -.13680E-02
  19  norm          3.4786        2.0478       -.24981E-07   -.48919E-04
  20  Prefactor     .10000E-03    13.815        .43716E-08** at limit **
  21  norm          5.2615        2.8489       -.17729E-07   -.12350E-03
  22  Prefactor     2.3201        129.02       -.14627E-05   -.12728E-04
  23  norm          1.5222        .80003        .11399E-07   -.69819E-04
  24  norm          .10000E-03    1.7957        .11391E-07** at limit **
  25  Prefactor     2.5491        4.0875        .50376E-07   -.28897E-03
  26  Normalizat    1.3792        .24888        .10203E-06    .94587E-04
  27  Prefactor     .86249        .71206E-01    .70152E-07    .29073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.0371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.09156
  Prefactor  = 52.9979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5078
  norm       = 0.0001
  Prefactor  = 38.4577
  norm       = 1.81206
  Prefactor  = 6.44767
  norm       = 3.47859
  Prefactor  = 0.0001
  norm       = 5.26145
  Prefactor  = 2.3201
  norm       = 1.52217
  norm       = 0.0001
  Prefactor  = 2.54912
  Normalizat = 1.37922
  Prefactor  = 0.862494
 **********
 **   18 **HESSE 
 **********

 FCN=   9918.611     FROM HESSE     STATUS=OK           494 CALLS     3879 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0371        72.826        .16329E-03   -1.5217    
   2  Prefactor     .10000E-03    6.2548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.4383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.0005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.500        .12071       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.3429        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .60760        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0916        1.2986        .12120E-03   -1.5499    
  11  Prefactor     52.998        26.541        .55093E-04   -1.4251    
  12  Prefactor     .10000E-03    84.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.508        14.339        .98591E-04   -1.4895    
  15  norm          .10000E-03    1.3666        .22444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.458        36.732        .64660E-04   -1.4467    
  17  norm          1.8121        1.8361        .13046E-03   -1.5439    
  18  Prefactor     6.4477        6.5827        .79029E-03   -1.5200    
  19  norm          3.4786        2.0464        .10462E-03   -1.5335    
  20  Prefactor     .10000E-03    13.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.2615        2.8705        .11711E-03   -1.5249    
  22  Prefactor     2.3201        124.21        .26927E-03   -1.5403    
  23  norm          1.5222        .78181        .52616E-04   -1.5461    
  24  norm          .10000E-03    1.8061        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.5491        4.1185        .24606E-03   -1.5389    
  26  Normalizat    1.3792        .28081        .41893E-03   -.81232    
  27  Prefactor     .86249        .80956E-01    .15869E-03   -.97464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51512e-09
Minuit parameter uncertainties:
  1  41.9996
  2  3.85269e-06
  3  1.44318e-06
  4  6.4066e-06
  5  2.64542e-06
  6  8.8666e-05
  7  4.33424e-07
  8  1.52006e-05
  9  1.59395e-06
  10  1.29859
  11  26.5465
  12  4.25663e-05
  13  2.41461e-06
  14  14.3417
  15  6.13722e-06
  16  36.754
  17  1.83617
  18  6.58344
  19  2.04649
  20  8.11179e-07
  21  2.87062
  22  34.0256
  23  0.781811
  24  5.46214e-07
  25  4.11897
  26  0.281121
  27  0.0809673
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  5.300e+01  2.655e+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:  8.625e-01  8.097e-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.379e+00  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.09
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 1.66e-07 +/- 8.29e-08
Energy Flux (Fixed Index): 3.57e-05 +/- 1.79e-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) = 9918.38747079
delta logL = 0.223698839915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9918.38341804
delta logL = 0.227751591467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.778       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2461       1.0000          .0000       10.000    
     3 'Normalizat'    1.3474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86919       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=   9918.383     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      298 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.777        29.490        .60592E-04    .27716E-03
   2  Index         3.2462        .65085        .75789E-02    .85313E-04
   3  Normalizat    1.3471        .26333        .42299E-03   -.97296E-04
   4  Prefactor     .86926        .79463E-01    .15814E-03   -.24221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.7773
  Index      = 3.24618
  Normalizat = 1.34715
  Prefactor  = 0.869265
 **********
 **   18 **HESSE 
 **********

 FCN=   9918.383     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.777        27.932        .12118E-04   -1.4384    
   2  Index         3.2462        .61599        .30316E-03   -.35839    
   3  Normalizat    1.3471        .26343        .16919E-04   -.82170    
   4  Prefactor     .86926        .79440E-01    .31628E-04   -.97223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18008e-10
Minuit parameter uncertainties:
  1  27.9405
  2  0.617783
  3  0.26369
  4  0.0794507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456872': 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) = 9918.38341745
delta logL = 0.227752179526

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  4.378e+01  2.794e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.246e+00  6.178e-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:  8.693e-01  7.945e-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.347e+00  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.63
Ra Dec: 66.829 5.080
Photon Index (Free Index): 3.25 +/- 0.62
Photon Flux (Free Index): 1.96e-07 +/- 9.75e-08
Energy Flux (Free Index): 3.53e-05 +/- 1.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/456872/cmap_HighResolution_600652801_600912001_4FGL_J0427.3+0504_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-07', energy_flux2='3.53e-05', photon_flux_error='8.29e-08', dlogl='2.28e-01', energy_flux='3.57e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-08-20 16:17:09.080667', photon_index_error2='0.62', photon_index2='3.25', ts='6.09', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='1.38', time_epoch_completed='1629501429.08', return_code='0', job_id='456872', GAL2='0.87', EG2='1.35', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='9.75e-08', ts2='6.63', photon_index='2.86' WHERE bin_id='1394' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 456872: <4FGL_J0427.3+0504_daily_bin1394> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1394> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 16:00:41 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:00:42 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:42 2021
Terminated at Fri Aug 20 16:17:09 2021
Results reported at Fri Aug 20 16:17:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1394 66.8294 5.08 600652801 600912001 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 :                                   841.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            988 sec.

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

