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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1253
RA = 66.8294, Dec = 5.08
tmin = 564105601, tmax = 564364801
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='455196', job_status='RUN', time_executed='2021-08-20 15:56:03.712650', time_epoch_executed='1629500163.71' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455196

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455196/ft1_4FGL_J0427.3+0504_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455196/ft2_4FGL_J0427.3+0504_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455196/ft1_4FGL_J0427.3+0504_daily_bin1253.fits outfile=/scratch/kocevski/455196/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1253.fits ra=66.8294 dec=5.08 rad=12.0 tmin=564105601.0 tmax=564364801.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.26
user 3.04
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455196/ft1_filtered_4FGL_J0427.3+0504_daily_bin1253.fits" evtable="EVENTS" scfile=/scratch/kocevski/455196/ft2_4FGL_J0427.3+0504_daily_bin1253.fits sctable="SC_DATA" outfile=/scratch/kocevski/455196/ltcube_564105601_564364801_4FGL_J0427.3+0504_daily_bin1253.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/455196/ft2_4FGL_J0427.3+0504_daily_bin1253.fits
.....................!
real 11.91
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455196/ft1_filtered_4FGL_J0427.3+0504_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/455196/ft2_4FGL_J0427.3+0504_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/455196/ltcube_564105601_564364801_4FGL_J0427.3+0504_daily_bin1253.fits outfile=/scratch/kocevski/455196/expmap_564105601_564364801_4FGL_J0427.3+0504_daily_bin1253.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/455196/ltcube_564105601_564364801_4FGL_J0427.3+0504_daily_bin1253.fits
.....................!
real 190.75
user 186.15
sys 4.29

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/455196/ft1_filtered_4FGL_J0427.3+0504_daily_bin1253.fits scfile=/scratch/kocevski/455196/ft2_4FGL_J0427.3+0504_daily_bin1253.fits outfile=/scratch/kocevski/455196/cmap_564105601_564364801_4FGL_J0427.3+0504_daily_bin1253.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455196/ft1_filtered_4FGL_J0427.3+0504_daily_bin1253.fits scfile=/scratch/kocevski/455196/ft2_4FGL_J0427.3+0504_daily_bin1253.fits outfile=/scratch/kocevski/455196/cmap_HighResolution_564105601_564364801_4FGL_J0427.3+0504_daily_bin1253.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24632E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.937       1.0000         .10000E-03   10000.    
     3 'norm      '    18.423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .41673       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13155E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.953       1.0000         .10000E-03   10000.    
     8 'norm      '    .47956E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .12159       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    212.58       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.704       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9928       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8465       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37800E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4583       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2382       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.686       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9379       1.0000         .10000E-03   10000.    
    23 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.925       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .55082       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1930       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=   11197.83     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3068 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.945        .11959E-05** at limit **
   2  Prefactor     11.934        17.427        .76574E-06    .31729E-04
   3  norm          18.442        23.114       -.29591E-06   -.13855E-03
   4  Prefactor     .10000E-03    12.680       -.16091E-08** at limit **
   5  norm          .39650        6.3192        .20702E-05   -.60848E-03
   6  Prefactor     .10000E-03    29.812        .19098E-06** at limit **
   7  norm          14.962        14.496       -.18600E-07   -.98662E-04
   8  norm          .10330E-03    27.011       -.14888E-05** at limit **
   9  norm          .12550        .66838       -.77569E-07   -.52233E-04
  10  Prefactor     2.1312        1.8389       -.14658E-06   -.23961E-03
  11  Prefactor     212.63        45.506       -.34038E-06    .26601E-04
  12  Prefactor     .10000E-03    65.766       -.54412E-06** at limit **
  13  Prefactor     12.683        13.919       -.26955E-06   -.23449E-03
  14  Prefactor     1.9941        30.395        .24369E-05    .32504E-04
  15  norm          2.8462        3.5766        .40120E-06    .17479E-03
  16  Prefactor     .10000E-03    46.117        .25804E-06** at limit **
  17  norm          .10000E-03    1.6019        .10500E-06** at limit **
  18  Prefactor     4.4505        9.0711        .37529E-06   -.13991E-03
  19  norm          1.2403        2.3322        .97186E-06    .37953E-03
  20  Prefactor     .10000E-03    11.274       -.69949E-07** at limit **
  21  norm          14.686        3.9966        .86502E-07   -.82474E-04
  22  Prefactor     1.9218        90.128       -.51740E-06   -.23062E-04
  23  norm          .10000E-03    .31178        .14557E-06** at limit **
  24  norm          10.922        5.1933       -.21093E-07   -.35617E-03
  25  Prefactor     .10000E-03    1.4265       -.14325E-07** at limit **
  26  Normalizat    .55053        .32896       -.42872E-05   -.23209E-03
  27  Prefactor     1.1930        .91686E-01    .17758E-06   -.45995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 11.9344
  norm       = 18.4416
  Prefactor  = 0.0001
  norm       = 0.3965
  Prefactor  = 0.0001
  norm       = 14.962
  norm       = 0.000103295
  norm       = 0.125495
  Prefactor  = 2.13122
  Prefactor  = 212.629
  Prefactor  = 0.000100001
  Prefactor  = 12.6833
  Prefactor  = 1.99414
  norm       = 2.8462
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.45048
  norm       = 1.24026
  Prefactor  = 0.0001
  norm       = 14.6859
  Prefactor  = 1.92176
  norm       = 0.0001
  norm       = 10.9219
  Prefactor  = 0.0001
  Normalizat = 0.550528
  Prefactor  = 1.193
 **********
 **   18 **HESSE 
 **********

 FCN=   11197.83     FROM HESSE     STATUS=OK           504 CALLS     3572 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.934        17.427        .11595E-03   -1.5017    
   3  norm          18.442        23.032        .93313E-04   -1.4849    
   4  Prefactor     .10000E-03    12.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .39650        23.099        .39442E-02   -1.5582    
   6  Prefactor     .10000E-03    29.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.962        14.477        .10358E-03   -1.4934    
   8  norm          .10330E-03    25.980        .13759       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .12550        2.6757        .14551E-02   -1.5637    
  10  Prefactor     2.1312        1.8303        .12230E-03   -1.5416    
  11  Prefactor     212.63        44.679        .27731E-04   -1.2781    
  12  Prefactor     .10000E-03    65.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.683        13.655        .11239E-03   -1.4996    
  14  Prefactor     1.9941        30.734        .29347E-03   -1.5426    
  15  norm          2.8462        3.5227        .19477E-03   -1.5371    
  16  Prefactor     .10000E-03    46.385        .21289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6830        .26172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4505        8.9275        .19070E-03   -1.5286    
  19  norm          1.2403        2.3236        .20614E-03   -1.5485    
  20  Prefactor     .10000E-03    11.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.686        3.9762        .10430E-03   -1.4941    
  22  Prefactor     1.9218        80.193        .29827E-03   -1.5431    
  23  norm          .10000E-03    2.1183        .10230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.922        5.0147        .12121E-03   -1.5047    
  25  Prefactor     .10000E-03    1.4372        .12339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .55053        .31441        .70661E-03   -1.1013    
  27  Prefactor     1.1930        .88744E-01    .15460E-03   -.86547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61785e-08
Minuit parameter uncertainties:
  1  0.000845822
  2  17.4346
  3  23.0426
  4  3.8143e-06
  5  6.05434
  6  5.08688e-05
  7  14.4802
  8  0.0185131
  9  1.15853
  10  1.83033
  11  44.6861
  12  0.000419459
  13  13.6585
  14  15.6665
  15  3.52292
  16  0.000296419
  17  1.01199e-05
  18  8.93013
  19  2.32381
  20  1.23151e-07
  21  3.97631
  22  24.8635
  23  3.9152e-05
  24  5.0149
  25  3.15646e-07
  26  0.315431
  27  0.0887548
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.126e+02  4.469e+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.193e+00  8.875e-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:  5.505e-01  3.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 53.90
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 6.65e-07 +/- 1.40e-07
Energy Flux (Fixed Index): 1.43e-04 +/- 3.01e-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) = 11195.6702134
delta logL = 2.15969940385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11195.194133
delta logL = 2.63577980046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    259.22       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4085       1.0000          .0000       10.000    
     3 'Normalizat'    .66512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1648       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=   11195.19     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      221 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     259.24        49.646        .84611E-06   -.42453E-04
   2  Index         2.4085        .17982        .30908E-05   -.14515E-04
   3  Normalizat    .66515        .27430       -.18464E-05   -.49333E-04
   4  Prefactor     1.1648        .83677E-01    .93315E-07   -.97847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 259.236
  Index      = 2.40846
  Normalizat = 0.665151
  Prefactor  = 1.16481
 **********
 **   18 **HESSE 
 **********

 FCN=   11195.19     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     259.24        49.759        .12586E-03   -1.2474    
   2  Index         2.4085        .18008        .40563E-02   -.54487    
   3  Normalizat    .66515        .27745        .64804E-03   -1.0529    
   4  Prefactor     1.1648        .84896E-01    .15603E-03   -.87421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29621e-11
Minuit parameter uncertainties:
  1  49.767
  2  0.180135
  3  0.278032
  4  0.0849059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455196': 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) = 11195.194133
delta logL = 2.63577985589

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.592e+02  4.977e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.408e+00  1.801e-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.165e+00  8.491e-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:  6.652e-01  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 58.61
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.41 +/- 0.18
Photon Flux (Free Index): 5.63e-07 +/- 1.22e-07
Energy Flux (Free Index): 1.82e-04 +/- 4.22e-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/455196/cmap_HighResolution_564105601_564364801_4FGL_J0427.3+0504_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.65e-07', energy_flux2='1.82e-04', photon_flux_error='1.40e-07', dlogl='2.64e+00', energy_flux='1.43e-04', photon_flux2='5.63e-07', job_status='DONE', time_completed='2021-08-20 16:10:27.409270', photon_index_error2='0.18', photon_index2='2.41', ts='53.90', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='4.22e-05', EG='0.55', time_epoch_completed='1629501027.41', return_code='0', job_id='455196', GAL2='1.16', EG2='0.67', return_code2='0', energy_flux_error='3.01e-05', photon_flux_error2='1.22e-07', ts2='58.61', photon_index='2.86' WHERE bin_id='1253' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:10:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 455196: <4FGL_J0427.3+0504_daily_bin1253> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1253 66.8294 5.08 564105601 564364801 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 :                                   862.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             359.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

