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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1140
RA = 66.8294, Dec = 5.08
tmin = 534816001, tmax = 535075201
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='453839', job_status='RUN', time_executed='2021-08-20 15:52:05.746983', time_epoch_executed='1629499925.75' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453839/ft1_4FGL_J0427.3+0504_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453839/ft2_4FGL_J0427.3+0504_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453839/ft1_4FGL_J0427.3+0504_daily_bin1140.fits outfile=/scratch/kocevski/453839/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1140.fits ra=66.8294 dec=5.08 rad=12.0 tmin=534816001.0 tmax=535075201.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 6.49
user 3.37
sys 3.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453839/ft1_filtered_4FGL_J0427.3+0504_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/453839/ft2_4FGL_J0427.3+0504_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/453839/ltcube_534816001_535075201_4FGL_J0427.3+0504_daily_bin1140.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/453839/ft2_4FGL_J0427.3+0504_daily_bin1140.fits
.....................!
real 15.01
user 11.37
sys 3.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453839/ft1_filtered_4FGL_J0427.3+0504_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/453839/ft2_4FGL_J0427.3+0504_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/453839/ltcube_534816001_535075201_4FGL_J0427.3+0504_daily_bin1140.fits outfile=/scratch/kocevski/453839/expmap_534816001_535075201_4FGL_J0427.3+0504_daily_bin1140.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/453839/ltcube_534816001_535075201_4FGL_J0427.3+0504_daily_bin1140.fits
.....................!
real 195.84
user 186.99
sys 8.46

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/453839/ft1_filtered_4FGL_J0427.3+0504_daily_bin1140.fits scfile=/scratch/kocevski/453839/ft2_4FGL_J0427.3+0504_daily_bin1140.fits outfile=/scratch/kocevski/453839/cmap_534816001_535075201_4FGL_J0427.3+0504_daily_bin1140.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 3.09
user 0.38
sys 2.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453839/ft1_filtered_4FGL_J0427.3+0504_daily_bin1140.fits scfile=/scratch/kocevski/453839/ft2_4FGL_J0427.3+0504_daily_bin1140.fits outfile=/scratch/kocevski/453839/cmap_HighResolution_534816001_535075201_4FGL_J0427.3+0504_daily_bin1140.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 3.12
user 0.38
sys 2.70

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    52.849       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6297       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.807       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4502       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18413E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14643       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .65201E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.0994       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .51491       1.0000         .10000E-03   10000.    
    24 'norm      '    29.287       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.7068       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3034       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93463       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=   8359.793     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3366 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.640       -.84129E-06** at limit **
   2  Prefactor     .10000E-03    4.1037       -.93681E-07** at limit **
   3  norm          .10000E-03    26.190       -.55762E-06** at limit **
   4  Prefactor     .10000E-03    12.133       -.45232E-06** at limit **
   5  norm          5.7827        5.8855        .15267E-06    .68340E-04
   6  Prefactor     .10000E-03    15.495        .53351E-06** at limit **
   7  norm          .10000E-03    16.610       -.31455E-06** at limit **
   8  norm          52.842        35.948        .41212E-06    .23446E-04
   9  norm          2.6291        2.3006        .38125E-06    .70557E-03
  10  Prefactor     .10000E-03    1.9019        .32937E-07** at limit **
  11  Prefactor     11.762        23.694       -.41655E-05   -.31981E-03
  12  Prefactor     3.4304        386.31        .60251E-05    .14077E-05
  13  Prefactor     .10009E-03    11.190       -.22372E-05** at limit **
  14  Prefactor     .10000E-03    9.8219       -.25882E-06** at limit **
  15  norm          .14826        9.4235        .37583E-05   -.17140E-03
  16  Prefactor     .10000E-03    35.944        .70720E-06** at limit **
  17  norm          .10000E-03    1.2815        .38866E-07** at limit **
  18  Prefactor     .10003E-03    7.0352       -.18201E-05** at limit **
  19  norm          .11938E-03    3.5123       -.24474E-05** at limit **
  20  Prefactor     .10000E-03    36.910       -.28901E-06** at limit **
  21  norm          7.0999        3.1410        .66165E-07    .16920E-04
  22  Prefactor     .10000E-03    27.296       -.12094E-05** at limit **
  23  norm          .51452        .84175       -.53103E-07   -.87839E-03
  24  norm          29.286        7.7359       -.14124E-06   -.22017E-03
  25  Prefactor     4.7068        3.8264       -.16938E-06   -.44402E-04
  26  Normalizat    1.3035        .29184       -.21525E-05    .13080E-03
  27  Prefactor     .93459        .82927E-01    .14777E-05    .74038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.78274
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 52.8416
  norm       = 2.6291
  Prefactor  = 0.0001
  Prefactor  = 11.7618
  Prefactor  = 3.43037
  Prefactor  = 0.000100089
  Prefactor  = 0.0001
  norm       = 0.148257
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100034
  norm       = 0.000119382
  Prefactor  = 0.0001
  norm       = 7.09989
  Prefactor  = 0.0001
  norm       = 0.514518
  norm       = 29.2862
  Prefactor  = 4.70678
  Normalizat = 1.30351
  Prefactor  = 0.934593
 **********
 **   18 **HESSE 
 **********

 FCN=   8359.793     FROM HESSE     STATUS=OK           500 CALLS     3866 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1066        .18090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    26.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7827        5.8586        .16702E-03   -1.5227    
   6  Prefactor     .10000E-03    15.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    16.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          52.842        35.747        .55171E-04   -1.4253    
   9  norm          2.6291        2.2177        .95236E-04   -1.5384    
  10  Prefactor     .10000E-03    1.9522        .24488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.762        24.581        .11659E-03   -1.5022    
  12  Prefactor     3.4304        361.90        .21774E-03   -1.5338    
  13  Prefactor     .10009E-03    22.701        .42602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.9303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .14826        16.627        .19394E-02   -1.5631    
  16  Prefactor     .10000E-03    35.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1936        .19616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    24.518        .34591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11938E-03    3.2067        .26454E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.0999        3.1428        .10352E-03   -1.5175    
  22  Prefactor     .10000E-03    27.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .51452        .77668        .92290E-03   -1.5565    
  24  norm          29.286        7.5069        .74033E-04   -1.4625    
  25  Prefactor     4.7068        3.8189        .15603E-03   -1.5274    
  26  Normalizat    1.3035        .30705        .43608E-03   -.83462    
  27  Prefactor     .93459        .88771E-01    .15691E-03   -.94943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59647e-09
Minuit parameter uncertainties:
  1  9.4131e-05
  2  6.24344e-06
  3  0.000110194
  4  3.66373e-05
  5  5.85914
  6  4.84158e-05
  7  0.000114727
  8  35.7613
  9  2.21775
  10  1.44865e-05
  11  24.6022
  12  70.9118
  13  0.00284961
  14  4.64398e-05
  15  3.13991
  16  9.07643e-06
  17  5.78036e-05
  18  0.0018202
  19  0.0157681
  20  0.000170151
  21  3.14284
  22  0.000171456
  23  0.7767
  24  7.50716
  25  3.8191
  26  0.307481
  27  0.0887851
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.176e+01  2.460e+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:  9.346e-01  8.879e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.304e+00  3.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/453839/likelihoodResults_534816001_535075201_4FGL_J0427.3+0504_daily_bin1140.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) = 8359.79330045
delta logL = 7.92641330918e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8359.79322792
delta logL = 0.000151794687554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.638       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8862       1.0000          .0000       10.000    
     3 'Normalizat'    1.3029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93463       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=   8359.793     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      272 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.635        23.507        .11743E-03    .14077E-03
   2  Index         2.8877        1.4552        .12917E-01    .64004E-04
   3  Normalizat    1.3030        .27955        .43615E-03   -.12407E-02
   4  Prefactor     .93470        .86147E-01    .15690E-03   -.32776E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6349
  Index      = 2.8877
  Normalizat = 1.30297
  Prefactor  = 0.934705
 **********
 **   18 **HESSE 
 **********

 FCN=   8359.793     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.635        22.847        .46972E-05   -1.5026    
   2  Index         2.8877        1.4151        .51668E-03   -.43616    
   3  Normalizat    1.3030        .27979        .87230E-04   -.83478    
   4  Prefactor     .93470        .86166E-01    .31380E-04   -.94939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85519e-09
Minuit parameter uncertainties:
  1  22.8637
  2  1.43919
  3  0.280111
  4  0.086179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453839': 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) = 8359.79322481
delta logL = 0.000154897403263

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.163e+01  2.286e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.888e+00  1.439e+00  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:  9.347e-01  8.618e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.303e+00  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/453839/cmap_HighResolution_534816001_535075201_4FGL_J0427.3+0504_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', job_status='DONE', photon_flux_upper_limit='1.88e-07', time_completed='2021-08-20 16:06:41.612982', job_id='453839', GAL2='0.93', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1629500801.61', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.55e-04', ts2='0.34', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1140' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:06:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 453839: <4FGL_J0427.3+0504_daily_bin1140> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1140> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 15:50:40 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:50:41 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:50:41 2021
Terminated at Fri Aug 20 16:06:42 2021
Results reported at Fri Aug 20 16:06:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1140 66.8294 5.08 534816001 535075201 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 :                                   920.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            962 sec.

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

