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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1221
RA = 66.8294, Dec = 5.08
tmin = 555811201, tmax = 556070401
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='455149', job_status='RUN', time_executed='2021-08-20 15:58:08.298930', time_epoch_executed='1629500288.3' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455149/ft1_4FGL_J0427.3+0504_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455149/ft2_4FGL_J0427.3+0504_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455149/ft1_4FGL_J0427.3+0504_daily_bin1221.fits outfile=/scratch/kocevski/455149/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1221.fits ra=66.8294 dec=5.08 rad=12.0 tmin=555811201.0 tmax=556070401.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 9.19
user 3.38
sys 5.77

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455149/ft1_filtered_4FGL_J0427.3+0504_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/455149/ft2_4FGL_J0427.3+0504_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/455149/ltcube_555811201_556070401_4FGL_J0427.3+0504_daily_bin1221.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/455149/ft2_4FGL_J0427.3+0504_daily_bin1221.fits
.....................!
real 18.02
user 11.36
sys 6.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455149/ft1_filtered_4FGL_J0427.3+0504_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/455149/ft2_4FGL_J0427.3+0504_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/455149/ltcube_555811201_556070401_4FGL_J0427.3+0504_daily_bin1221.fits outfile=/scratch/kocevski/455149/expmap_555811201_556070401_4FGL_J0427.3+0504_daily_bin1221.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/455149/ltcube_555811201_556070401_4FGL_J0427.3+0504_daily_bin1221.fits
.....................!
real 198.27
user 185.55
sys 12.38

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/455149/ft1_filtered_4FGL_J0427.3+0504_daily_bin1221.fits scfile=/scratch/kocevski/455149/ft2_4FGL_J0427.3+0504_daily_bin1221.fits outfile=/scratch/kocevski/455149/cmap_555811201_556070401_4FGL_J0427.3+0504_daily_bin1221.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 6.00
user 0.36
sys 5.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455149/ft1_filtered_4FGL_J0427.3+0504_daily_bin1221.fits scfile=/scratch/kocevski/455149/ft2_4FGL_J0427.3+0504_daily_bin1221.fits outfile=/scratch/kocevski/455149/cmap_HighResolution_555811201_556070401_4FGL_J0427.3+0504_daily_bin1221.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 6.07
user 0.37
sys 5.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.046       1.0000         .10000E-03   10000.    
     3 'norm      '    42.325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.221       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    56.501       1.0000         .10000E-03   10000.    
     8 'norm      '    27.614       1.0000         .10000E-03   10000.    
     9 'norm      '    .10459E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35646E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.954       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2560       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4536       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6240       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52118E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.5612       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    29.414       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.784       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    15.968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .44480       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1386       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=   6161.342     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2788 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    38.336        .13929E-04** at limit **
   2  Prefactor     24.048        1.0194       -.22066E-06   -.25247E-03
   3  norm          42.325        1.0060       -.12211E-06    .77693E-04
   4  Prefactor     .10000E-03    55.582        .82067E-04** at limit **
   5  norm          13.223        1.5288        .18805E-05    .29352E-02
   6  Prefactor     .10003E-03    54.942        .78593E-04** at limit **
   7  norm          56.508        1.3258        .74197E-06    .79483E-04
   8  norm          27.613        1.0805        .67566E-06   -.32371E-03
   9  norm          .10000E-03    2.5819       -.22474E-06** at limit **
  10  Prefactor     .10000E-03    22.074        .76148E-06** at limit **
  11  Prefactor     14.943        3.1973       -.64455E-05    .79024E-03
  12  Prefactor     .10012E-03    216.38       -.19451E-03** at limit **
  13  Prefactor     9.2574        1.0414       -.84940E-07   -.27418E-04
  14  Prefactor     3.4546        1.0279       -.80318E-06   -.12414E-03
  15  norm          3.6250        5.0530        .10597E-05   -.64046E-03
  16  Prefactor     .10003E-03    60.524       -.53088E-04** at limit **
  17  norm          .10000E-03    7.2690       -.14516E-06** at limit **
  18  Prefactor     .10007E-03    3.6722       -.19826E-04** at limit **
  19  norm          2.5615        3.3456        .41937E-06   -.20579E-03
  20  Prefactor     .10001E-03    23.052       -.74949E-06** at limit **
  21  norm          29.413        4.5840        .23231E-06   -.89059E-02
  22  Prefactor     10.783        1.0388       -.15377E-06    .10640E-03
  23  norm          .10000E-03    .32107       -.23950E-06** at limit **
  24  norm          15.969        5.9159        .51073E-05    .48029E-02
  25  Prefactor     .10000E-03    2.1490        .26733E-06** at limit **
  26  Normalizat    .44464        .35469       -.15394E-04   -.35644E-03
  27  Prefactor     1.1386        .10345        .13881E-05   -.98583E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 24.0483
  norm       = 42.3248
  Prefactor  = 0.0001
  norm       = 13.2229
  Prefactor  = 0.000100033
  norm       = 56.5078
  norm       = 27.6134
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.9426
  Prefactor  = 0.000100119
  Prefactor  = 9.25742
  Prefactor  = 3.45462
  norm       = 3.62497
  Prefactor  = 0.000100032
  norm       = 0.0001
  Prefactor  = 0.000100066
  norm       = 2.56147
  Prefactor  = 0.00010001
  norm       = 29.4133
  Prefactor  = 10.7829
  norm       = 0.0001
  norm       = 15.9686
  Prefactor  = 0.0001
  Normalizat = 0.444639
  Prefactor  = 1.13861
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.342     FROM HESSE     STATUS=OK           568 CALLS     3356 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    38.361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.048        19.615        .20422E-02   -1.4727    
   3  norm          42.325        33.985        .15405E-02   -1.4406    
   4  Prefactor     .10000E-03    110.30        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.223        9.7191        .27540E-02   -1.4981    
   6  Prefactor     .10003E-03    111.17        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          56.508        33.005        .13342E-02   -1.4203    
   8  norm          27.613        46.200        .19059E-02   -1.4657    
   9  norm          .10000E-03    1.3451        .31341E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7909        .60464E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.943        56.773        .25893E-02   -1.4935    
  12  Prefactor     .10012E-03    220.01        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.2574        18.519        .32933E-02   -1.5099    
  14  Prefactor     3.4546        13.360        .54406E-02   -1.5336    
  15  norm          3.6250        6.6870        .53057E-02   -1.5327    
  16  Prefactor     .10003E-03    63.396        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6644        .45272E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    8.0304        .80498E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.5615        3.3928        .63773E-02   -1.5388    
  20  Prefactor     .10001E-03    23.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          29.413        7.6807        .18468E-02   -1.4623    
  22  Prefactor     10.783        33.491        .30501E-02   -1.5051    
  23  norm          .10000E-03    .31798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          15.969        7.4135        .25057E-02   -1.4909    
  25  Prefactor     .10000E-03    2.1435        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .44464        .48292        .17333       -1.1505    
  27  Prefactor     1.1386        .12028        .36275E-01   -.88242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2135e-07
Minuit parameter uncertainties:
  1  0.000883075
  2  19.6199
  3  34.0005
  4  0.00016462
  5  9.72027
  6  0.00385125
  7  33.0153
  8  46.2596
  9  4.02924e-06
  10  0.000130083
  11  56.9799
  12  0.0102862
  13  18.5302
  14  13.3717
  15  6.68843
  16  0.00285446
  17  6.70781e-05
  18  0.00145304
  19  3.39305
  20  0.00096732
  21  7.68096
  22  33.5495
  23  1.28253e-05
  24  7.41392
  25  8.04436e-06
  26  0.487558
  27  0.120306
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.494e+01  5.698e+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.139e+00  1.203e-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:  4.446e-01  4.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 3.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455149/likelihoodResults_555811201_556070401_4FGL_J0427.3+0504_daily_bin1221.txt

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) = 6161.15620446
delta logL = 0.186020026114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6161.04747163
delta logL = 0.294752851298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.210       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1243       1.0000          .0000       10.000    
     3 'Normalizat'    .45451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1311       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=   6161.047     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      254 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.158        46.614        .67537E-04    .10437E-04
   2  Index         2.1240        .69090        .94968E-02   -.11592E-04
   3  Normalizat    .45446        .34754        .75989E-03   -.59844E-06
   4  Prefactor     1.1311        .10210        .14470E-03    .19225E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.1577
  Index      = 2.124
  Normalizat = 0.454457
  Prefactor  = 1.13114
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.047     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.158        47.052        .27015E-05   -1.4521    
   2  Index         2.1240        .69736        .37987E-03   -.61285    
   3  Normalizat    .45446        .34747        .30396E-04   -1.1458    
   4  Prefactor     1.1311        .10204        .57882E-05   -.88477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94273e-11
Minuit parameter uncertainties:
  1  47.1021
  2  0.700779
  3  0.349143
  4  0.102055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455149': 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) = 6161.04747061
delta logL = 0.294753873994

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.516e+01  4.710e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.124e+00  7.008e-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.131e+00  1.021e-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:  4.545e-01  3.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 66.829 5.080

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/455149/cmap_HighResolution_555811201_556070401_4FGL_J0427.3+0504_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-02', job_status='DONE', photon_flux_upper_limit='3.35e-07', time_completed='2021-08-20 16:10:26.268610', job_id='455149', GAL2='1.13', fit_tolerance='1e-08', EG2='0.45', EG='0.44', time_epoch_completed='1629501026.27', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.95e-01', ts2='0.72', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1221' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:10:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 455149: <4FGL_J0427.3+0504_daily_bin1221> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1221> 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) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:55:30 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:30 2021
Terminated at Fri Aug 20 16:10:27 2021
Results reported at Fri Aug 20 16:10:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1221 66.8294 5.08 555811201 556070401 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 :                                   822.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            901 sec.

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

