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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1199
RA = 66.8294, Dec = 5.08
tmin = 550108801, tmax = 550368001
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='455119', job_status='RUN', time_executed='2021-08-20 15:57:07.465362', time_epoch_executed='1629500227.47' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455119

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455119/ft1_4FGL_J0427.3+0504_daily_bin1199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455119/ft2_4FGL_J0427.3+0504_daily_bin1199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455119/ft1_4FGL_J0427.3+0504_daily_bin1199.fits outfile=/scratch/kocevski/455119/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1199.fits ra=66.8294 dec=5.08 rad=12.0 tmin=550108801.0 tmax=550368001.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 8.05
user 2.69
sys 5.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455119/ft1_filtered_4FGL_J0427.3+0504_daily_bin1199.fits" evtable="EVENTS" scfile=/scratch/kocevski/455119/ft2_4FGL_J0427.3+0504_daily_bin1199.fits sctable="SC_DATA" outfile=/scratch/kocevski/455119/ltcube_550108801_550368001_4FGL_J0427.3+0504_daily_bin1199.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/455119/ft2_4FGL_J0427.3+0504_daily_bin1199.fits
.....................!
real 18.11
user 11.88
sys 6.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455119/ft1_filtered_4FGL_J0427.3+0504_daily_bin1199.fits evtable="EVENTS" scfile=/scratch/kocevski/455119/ft2_4FGL_J0427.3+0504_daily_bin1199.fits sctable="SC_DATA" expcube=/scratch/kocevski/455119/ltcube_550108801_550368001_4FGL_J0427.3+0504_daily_bin1199.fits outfile=/scratch/kocevski/455119/expmap_550108801_550368001_4FGL_J0427.3+0504_daily_bin1199.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/455119/ltcube_550108801_550368001_4FGL_J0427.3+0504_daily_bin1199.fits
.....................!
real 195.79
user 184.86
sys 10.59

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/455119/ft1_filtered_4FGL_J0427.3+0504_daily_bin1199.fits scfile=/scratch/kocevski/455119/ft2_4FGL_J0427.3+0504_daily_bin1199.fits outfile=/scratch/kocevski/455119/cmap_550108801_550368001_4FGL_J0427.3+0504_daily_bin1199.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 5.57
user 0.36
sys 5.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455119/ft1_filtered_4FGL_J0427.3+0504_daily_bin1199.fits scfile=/scratch/kocevski/455119/ft2_4FGL_J0427.3+0504_daily_bin1199.fits outfile=/scratch/kocevski/455119/cmap_HighResolution_550108801_550368001_4FGL_J0427.3+0504_daily_bin1199.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 5.14
user 0.40
sys 4.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22223E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11522       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5604       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20030E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .12535E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9841       1.0000         .10000E-03   10000.    
     7 'norm      '    10.469       1.0000         .10000E-03   10000.    
     8 'norm      '    .11624E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11675E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    86.178       1.0000         .10000E-03   10000.    
    12 'Prefactor '    99.855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58578E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26382E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    102.49       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7142       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.598       1.0000         .10000E-03   10000.    
    19 'norm      '    .10945E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .75408E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    10.707       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .86598E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1041       1.0000         .10000E-03   10000.    
    24 'norm      '    13.140       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.4112       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .29543       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1418       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=   4768.411     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     2985 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.809       -.18376E-06** at limit **
   2  Prefactor     .10000E-03    85.305        .93807E-06** at limit **
   3  norm          2.3468        61.894        .10695E-05   -.13996E-05
   4  Prefactor     .10000E-03    12.138        .76654E-07** at limit **
   5  norm          .10000E-03    3.8682       -.52182E-07** at limit **
   6  Prefactor     1.8585        229.81       -.13140E-05    .50390E-05
   7  norm          10.589        14.763        .26100E-06   -.11102E-04
   8  norm          .10000E-03    16.693        .40592E-06** at limit **
   9  norm          .10000E-03    .67465       -.52718E-07** at limit **
  10  Prefactor     .10000E-03    2.0665        .18278E-06** at limit **
  11  Prefactor     85.842        48.524       -.10809E-05   -.13831E-04
  12  Prefactor     104.07        79.114       -.19870E-07   -.73143E-04
  13  Prefactor     .10000E-03    7.7555       -.20276E-07** at limit **
  14  Prefactor     .10000E-03    58.345        .15060E-08** at limit **
  15  norm          .10000E-03    2.7405        .10419E-05** at limit **
  16  Prefactor     107.43        98.577        .11442E-06   -.11198E-05
  17  norm          1.6976        2.4992        .21438E-06   -.52265E-04
  18  Prefactor     36.366        18.420        .25783E-06   -.57482E-04
  19  norm          .10000E-03    5.3000       -.25021E-06** at limit **
  20  Prefactor     .10000E-03    407.04       -.18347E-05** at limit **
  21  norm          10.718        3.5142        .10171E-06   -.60031E-04
  22  Prefactor     .10000E-03    32.982       -.18738E-06** at limit **
  23  norm          2.1076        1.1805       -.55738E-07   -.42354E-04
  24  norm          13.153        7.7632        .24356E-06   -.26624E-04
  25  Prefactor     9.2829        12.000        .14431E-05   -.18845E-04
  26  Normalizat    .29067        .39013       -.65993E-06   -.25509E-04
  27  Prefactor     1.1422        .13727       -.64084E-07   -.78414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34676
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.85847
  norm       = 10.5886
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.842
  Prefactor  = 104.074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 107.432
  norm       = 1.6976
  Prefactor  = 36.3657
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.7181
  Prefactor  = 0.0001
  norm       = 2.10762
  norm       = 13.1525
  Prefactor  = 9.28291
  Normalizat = 0.290671
  Prefactor  = 1.14225
 **********
 **   18 **HESSE 
 **********

 FCN=   4768.411     FROM HESSE     STATUS=OK           486 CALLS     3471 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.841        .18267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    87.256        .19167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3468        62.048        .25514E-03   -1.5402    
   4  Prefactor     .10000E-03    12.139        .20228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.9006        .13247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8585        223.68        .29421E-03   -1.5435    
   7  norm          10.589        14.741        .12383E-03   -1.5057    
   8  norm          .10000E-03    16.705        .18162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .69175        .11012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9612        .16396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     85.842        48.187        .21638E-03   -1.3852    
  12  Prefactor     104.07        69.714        .40231E-04   -1.3664    
  13  Prefactor     .10000E-03    7.8640        .18772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.374        .19964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7807        .11187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     107.43        98.600        .39715E-04   -1.3631    
  17  norm          1.6976        2.4664        .12361E-03   -1.5447    
  18  Prefactor     36.366        18.367        .66247E-04   -1.4501    
  19  norm          .10000E-03    5.4422        .31049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    420.31        .37155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.718        3.5121        .34747E-03   -1.5053    
  22  Prefactor     .10000E-03    33.032        .20854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1076        1.1823        .49268E-04   -1.5418    
  24  norm          13.153        7.7950        .55251E-03   -1.4982    
  25  Prefactor     9.2829        11.928        .65318E-03   -1.5099    
  26  Normalizat    .29067        .38929        .81509E-03   -1.2340    
  27  Prefactor     1.1422        .13775        .16221E-03   -.88128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44204e-11
Minuit parameter uncertainties:
  1  3.13224e-05
  2  4.93999e-05
  3  24.1614
  4  3.18266e-08
  5  1.92282e-06
  6  40.9344
  7  14.7456
  8  4.45596e-06
  9  6.99756e-08
  10  4.82667e-05
  11  48.2086
  12  69.7689
  13  4.55992e-06
  14  2.30214e-07
  15  3.1116e-06
  16  98.7506
  17  2.46651
  18  18.3695
  19  6.432e-06
  20  0.00115072
  21  3.51212
  22  2.5866e-05
  23  1.18235
  24  7.79562
  25  11.9306
  26  0.39299
  27  0.137789
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.584e+01  4.821e+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.142e+00  1.378e-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:  2.907e-01  3.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.75
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 2.69e-07 +/- 1.51e-07
Energy Flux (Fixed Index): 5.78e-05 +/- 3.24e-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) = 4768.36731172
delta logL = 0.0434573284647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4768.36601619
delta logL = 0.0447528540562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.280       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6661       1.0000          .0000       10.000    
     3 'Normalizat'    .31024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1362       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=   4768.366     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      289 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.260        54.905        .41611E-04    .56829E-05
   2  Index         2.6656        .63321        .74435E-02    .72298E-04
   3  Normalizat    .31020        .35049        .79148E-03   -.10213E-04
   4  Prefactor     1.1363        .13292        .16257E-03    .28252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.2597
  Index      = 2.66561
  Normalizat = 0.310202
  Prefactor  = 1.13629
 **********
 **   18 **HESSE 
 **********

 FCN=   4768.366     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.260        54.377        .83222E-05   -1.3774    
   2  Index         2.6656        .62690        .14887E-02   -.48576    
   3  Normalizat    .31020        .35012        .31659E-04   -1.2223    
   4  Prefactor     1.1363        .13275        .65028E-05   -.88315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.83229e-12
Minuit parameter uncertainties:
  1  54.4056
  2  0.629016
  3  0.35263
  4  0.132785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455119': 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) = 4768.36601568
delta logL = 0.0447533701399

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  9.326e+01  5.441e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.666e+00  6.290e-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.136e+00  1.328e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  3.102e-01  3.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.67 +/- 0.63
Photon Flux (Free Index): 2.47e-07 +/- 1.59e-07
Energy Flux (Free Index): 6.10e-05 +/- 3.58e-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/455119/cmap_HighResolution_550108801_550368001_4FGL_J0427.3+0504_daily_bin1199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-07', energy_flux2='6.10e-05', photon_flux_error='1.51e-07', dlogl='4.48e-02', energy_flux='5.78e-05', photon_flux2='2.47e-07', job_status='DONE', time_completed='2021-08-20 16:07:10.504824', photon_index_error2='0.63', photon_index2='2.67', ts='4.75', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.58e-05', EG='0.29', time_epoch_completed='1629500830.5', return_code='0', job_id='455119', GAL2='1.14', EG2='0.31', return_code2='0', energy_flux_error='3.24e-05', photon_flux_error2='1.59e-07', ts2='4.81', photon_index='2.86' WHERE bin_id='1199' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:07:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 455119: <4FGL_J0427.3+0504_daily_bin1199> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1199 66.8294 5.08 550108801 550368001 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 :                                   681.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

