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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1220
RA = 66.8294, Dec = 5.08
tmin = 555552001, tmax = 555811201
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='455148', job_status='RUN', time_executed='2021-08-20 15:59:34.550538', time_epoch_executed='1629500374.55' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455148

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455148/ft1_4FGL_J0427.3+0504_daily_bin1220.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455148/ft2_4FGL_J0427.3+0504_daily_bin1220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455148/ft1_4FGL_J0427.3+0504_daily_bin1220.fits outfile=/scratch/kocevski/455148/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1220.fits ra=66.8294 dec=5.08 rad=12.0 tmin=555552001.0 tmax=555811201.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 7.66
user 3.39
sys 4.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455148/ft2_4FGL_J0427.3+0504_daily_bin1220.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/455148/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1220.fits evtable="EVENTS" outfile="/scratch/kocevski/455148/ft1_filtered_4FGL_J0427.3+0504_daily_bin1220.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.25
user 0.34
sys 4.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455148/ft1_filtered_4FGL_J0427.3+0504_daily_bin1220.fits" evtable="EVENTS" scfile=/scratch/kocevski/455148/ft2_4FGL_J0427.3+0504_daily_bin1220.fits sctable="SC_DATA" outfile=/scratch/kocevski/455148/ltcube_555552001_555811201_4FGL_J0427.3+0504_daily_bin1220.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/455148/ft2_4FGL_J0427.3+0504_daily_bin1220.fits
.....................!
real 16.72
user 11.41
sys 5.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455148/ft1_filtered_4FGL_J0427.3+0504_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/455148/ft2_4FGL_J0427.3+0504_daily_bin1220.fits sctable="SC_DATA" expcube=/scratch/kocevski/455148/ltcube_555552001_555811201_4FGL_J0427.3+0504_daily_bin1220.fits outfile=/scratch/kocevski/455148/expmap_555552001_555811201_4FGL_J0427.3+0504_daily_bin1220.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/455148/ltcube_555552001_555811201_4FGL_J0427.3+0504_daily_bin1220.fits
.....................!
real 196.29
user 185.41
sys 10.49

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/455148/ft1_filtered_4FGL_J0427.3+0504_daily_bin1220.fits scfile=/scratch/kocevski/455148/ft2_4FGL_J0427.3+0504_daily_bin1220.fits outfile=/scratch/kocevski/455148/cmap_555552001_555811201_4FGL_J0427.3+0504_daily_bin1220.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 4.88
user 0.39
sys 4.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455148/ft1_filtered_4FGL_J0427.3+0504_daily_bin1220.fits scfile=/scratch/kocevski/455148/ft2_4FGL_J0427.3+0504_daily_bin1220.fits outfile=/scratch/kocevski/455148/cmap_HighResolution_555552001_555811201_4FGL_J0427.3+0504_daily_bin1220.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 4.92
user 0.40
sys 4.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23938       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    28.641       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4346       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .69172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    195.22       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.135       1.0000         .10000E-03   10000.    
    15 'norm      '    .11196E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0756       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2182       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9164       1.0000         .10000E-03   10000.    
    21 'norm      '    24.623       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28387E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .64488       1.0000         .10000E-03   10000.    
    24 'norm      '    10.641       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .19687E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .57500       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0848       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=   5971.775     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3891 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24029        75.014        .17647E-05   -.83830E-04
   2  Prefactor     .10000E-03    27.562        .62807E-06** at limit **
   3  norm          .10000E-03    18.907        .32128E-06** at limit **
   4  Prefactor     .10000E-03    23.623       -.51254E-06** at limit **
   5  norm          28.637        20.173        .72761E-06    .27308E-04
   6  Prefactor     2.4495        138.53       -.21460E-05   -.48991E-05
   7  norm          .10000E-03    46.716        .33913E-08** at limit **
   8  norm          .10000E-03    24.793       -.25223E-06** at limit **
   9  norm          .69081        4.5934       -.16180E-05   -.10681E-03
  10  Prefactor     .10000E-03    2.7505        .68340E-06** at limit **
  11  Prefactor     195.19        66.286        .16810E-06   -.31744E-04
  12  Prefactor     .10000E-03    117.18       -.21022E-05** at limit **
  13  Prefactor     36.951        57.274        .98728E-06    .16320E-04
  14  Prefactor     10.135        22.098        .39616E-06    .18281E-04
  15  norm          .10000E-03    6.5265       -.45762E-06** at limit **
  16  Prefactor     .10000E-03    151.45        .22543E-05** at limit **
  17  norm          3.0754        5.4632       -.19682E-07    .20016E-04
  18  Prefactor     .10000E-03    19.651       -.10324E-05** at limit **
  19  norm          3.2169        3.3291        .57482E-08    .43703E-04
  20  Prefactor     9.9100        305.77       -.55442E-05   -.11518E-04
  21  norm          24.623        14.731       -.10072E-07    .61509E-05
  22  Prefactor     .10007E-03    956.87        .44551E-05** at limit **
  23  norm          .64010        2.2182       -.79639E-06   -.21330E-03
  24  norm          10.649        12.366        .13790E-06   -.12204E-04
  25  Prefactor     .10001E-03    4.8221       -.36220E-06** at limit **
  26  Normalizat    .57544        .53692        .13668E-05   -.25077E-04
  27  Prefactor     1.0847        .11690       -.91771E-07   -.13444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.240292
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 28.6372
  Prefactor  = 2.4495
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.690808
  Prefactor  = 0.0001
  Prefactor  = 195.191
  Prefactor  = 0.0001
  Prefactor  = 36.9514
  Prefactor  = 10.1349
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07538
  Prefactor  = 0.0001
  norm       = 3.21686
  Prefactor  = 9.91001
  norm       = 24.6232
  Prefactor  = 0.000100071
  norm       = 0.6401
  norm       = 10.6488
  Prefactor  = 0.000100006
  Normalizat = 0.575438
  Prefactor  = 1.08472
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.775     FROM HESSE     STATUS=OK           498 CALLS     4389 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24029        64.400        .17198       -1.5610    
   2  Prefactor     .10000E-03    27.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          28.637        20.020        .74861E-04   -1.4637    
   6  Prefactor     2.4495        135.17        .26224E-03   -1.5395    
   7  norm          .10000E-03    46.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    24.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .69081        4.8535        .27868E-03   -1.5542    
  10  Prefactor     .10000E-03    4.8878        .23620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     195.19        64.853        .14456E-03   -1.2905    
  12  Prefactor     .10000E-03    116.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.951        56.561        .65942E-04   -1.4491    
  14  Prefactor     10.135        21.861        .62933E-03   -1.5071    
  15  norm          .10000E-03    6.6432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    151.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0754        5.4272        .23123E-03   -1.5357    
  18  Prefactor     .10000E-03    19.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2169        3.3055        .13235E-03   -1.5349    
  20  Prefactor     9.9100        264.19        .12725E-03   -1.5078    
  21  norm          24.623        14.706        .80727E-04   -1.4715    
  22  Prefactor     .10007E-03    986.87        .39775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .64010        1.9758        .14881E-03   -1.5548    
  24  norm          10.649        11.693        .12282E-03   -1.5055    
  25  Prefactor     .10001E-03    12.864        .32285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .57544        .48421        .75424E-03   -1.0904    
  27  Prefactor     1.0847        .11373        .14479E-03   -.89957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47257e-10
Minuit parameter uncertainties:
  1  7.87456
  2  7.40507e-05
  3  1.76634e-05
  4  3.59552e-05
  5  20.025
  6  36.478
  7  4.04262e-06
  8  1.11739e-05
  9  3.66232
  10  1.75222e-05
  11  64.8768
  12  0.000396437
  13  56.6433
  14  21.8784
  15  4.79827e-07
  16  0.000386773
  17  5.42804
  18  0.000115732
  19  3.30572
  20  102.843
  21  14.7086
  22  0.0170301
  23  1.97596
  24  11.6957
  25  0.000563914
  26  0.487833
  27  0.11375
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.952e+02  6.488e+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.085e+00  1.138e-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:  5.754e-01  4.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.61
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 6.11e-07 +/- 2.03e-07
Energy Flux (Fixed Index): 1.31e-04 +/- 4.37e-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) = 5969.97361906
delta logL = 1.80128045031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5969.88858914
delta logL = 1.88631037317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    225.73       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2434       1.0000          .0000       10.000    
     3 'Normalizat'    .73069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0536       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=   5969.889     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      221 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     225.66        75.516       -.60559E-05    .24519E-04
   2  Index         2.2435        .28161       -.22336E-04    .32162E-04
   3  Normalizat    .73060        .41613        .12403E-04    .10600E-03
   4  Prefactor     1.0536        .10436       -.12054E-05    .37169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 225.658
  Index      = 2.24354
  Normalizat = 0.730602
  Prefactor  = 1.05358
 **********
 **   18 **HESSE 
 **********

 FCN=   5969.889     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     225.66        75.223        .13465E-03   -1.2692    
   2  Index         2.2435        .28059        .46657E-02   -.58391    
   3  Normalizat    .73060        .43283        .67463E-03   -1.0270    
   4  Prefactor     1.0536        .10962        .14650E-03   -.90964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24845e-11
Minuit parameter uncertainties:
  1  75.2547
  2  0.280802
  3  0.43488
  4  0.109641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455148': 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) = 5969.88858832
delta logL = 1.88631119234

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.257e+02  7.525e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.244e+00  2.808e-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.054e+00  1.096e-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:  7.306e-01  4.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.78
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.24 +/- 0.28
Photon Flux (Free Index): 4.39e-07 +/- 1.79e-07
Energy Flux (Free Index): 1.82e-04 +/- 7.36e-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/455148/cmap_HighResolution_555552001_555811201_4FGL_J0427.3+0504_daily_bin1220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.11e-07', energy_flux2='1.82e-04', photon_flux_error='2.03e-07', dlogl='1.89e+00', energy_flux='1.31e-04', photon_flux2='4.39e-07', job_status='DONE', time_completed='2021-08-20 16:11:12.447923', photon_index_error2='0.28', photon_index2='2.24', ts='16.61', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='7.36e-05', EG='0.58', time_epoch_completed='1629501072.45', return_code='0', job_id='455148', GAL2='1.05', EG2='0.73', return_code2='0', energy_flux_error='4.37e-05', photon_flux_error2='1.79e-07', ts2='19.78', photon_index='2.86' WHERE bin_id='1220' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:11:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 455148: <4FGL_J0427.3+0504_daily_bin1220> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1220 66.8294 5.08 555552001 555811201 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 :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

