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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1565
RA = 66.8294, Dec = 5.08
tmin = 644976001, tmax = 645235201
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='459048', job_status='RUN', time_executed='2021-08-20 16:06:28.288718', time_epoch_executed='1629500788.29' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459048

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459048/ft1_4FGL_J0427.3+0504_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459048/ft2_4FGL_J0427.3+0504_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459048/ft1_4FGL_J0427.3+0504_daily_bin1565.fits outfile=/scratch/kocevski/459048/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1565.fits ra=66.8294 dec=5.08 rad=12.0 tmin=644976001.0 tmax=645235201.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.31
user 2.77
sys 0.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459048/ft1_filtered_4FGL_J0427.3+0504_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/459048/ft2_4FGL_J0427.3+0504_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/459048/ltcube_644976001_645235201_4FGL_J0427.3+0504_daily_bin1565.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/459048/ft2_4FGL_J0427.3+0504_daily_bin1565.fits
.....................!
real 13.12
user 12.36
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459048/ft1_filtered_4FGL_J0427.3+0504_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/459048/ft2_4FGL_J0427.3+0504_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/459048/ltcube_644976001_645235201_4FGL_J0427.3+0504_daily_bin1565.fits outfile=/scratch/kocevski/459048/expmap_644976001_645235201_4FGL_J0427.3+0504_daily_bin1565.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/459048/ltcube_644976001_645235201_4FGL_J0427.3+0504_daily_bin1565.fits
.....................!
real 190.23
user 185.19
sys 4.58

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/459048/ft1_filtered_4FGL_J0427.3+0504_daily_bin1565.fits scfile=/scratch/kocevski/459048/ft2_4FGL_J0427.3+0504_daily_bin1565.fits outfile=/scratch/kocevski/459048/cmap_644976001_645235201_4FGL_J0427.3+0504_daily_bin1565.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.87
user 0.37
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459048/ft1_filtered_4FGL_J0427.3+0504_daily_bin1565.fits scfile=/scratch/kocevski/459048/ft2_4FGL_J0427.3+0504_daily_bin1565.fits outfile=/scratch/kocevski/459048/cmap_HighResolution_644976001_645235201_4FGL_J0427.3+0504_daily_bin1565.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.87
user 0.38
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11915E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.3344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    73.634       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .86717       1.0000         .10000E-03   10000.    
     8 'norm      '    .10590E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1103       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    385.62       1.0000         .10000E-03   10000.    
    15 'norm      '    32.962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11617E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27458E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    6.7752       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16279E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    726.68       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10011E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0406       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=   1558.801     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3813 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.792        119.26       -.20846E-06   -.40576E-04
   2  Prefactor     .10000E-03    191.49       -.19818E-05** at limit **
   3  norm          5.3290        35.831        .84729E-06   -.29855E-04
   4  Prefactor     73.568        75.424       -.83442E-06   -.54920E-04
   5  norm          4.9049        13.761       -.29365E-05   -.34278E-03
   6  Prefactor     .10000E-03    77.419       -.84598E-07** at limit **
   7  norm          .87712        30.557        .33169E-05   -.34547E-03
   8  norm          .10000E-03    47.784       -.37471E-06** at limit **
   9  norm          1.1069        3.3081        .83816E-06   -.40418E-03
  10  Prefactor     .10000E-03    2.2913       -.33857E-06** at limit **
  11  Prefactor     .10000E-03    237.47       -.37664E-06** at limit **
  12  Prefactor     .10000E-03    62.475       -.30360E-06** at limit **
  13  Prefactor     .10000E-03    11.955        .31510E-06** at limit **
  14  Prefactor     385.07        477.42       -.36004E-06   -.57687E-05
  15  norm          32.952        26.654       -.49149E-06   -.11251E-03
  16  Prefactor     .10000E-03    312.01       -.22040E-06** at limit **
  17  norm          .10000E-03    4.8266        .78229E-07** at limit **
  18  Prefactor     .10000E-03    157.21        .34239E-06** at limit **
  19  norm         10000.0        6802.8        .17969E-05** at limit **
  20  Prefactor     .10000E-03    267.89       -.75419E-08** at limit **
  21  norm          6.7757        5.8457       -.14451E-06   -.17026E-03
  22  Prefactor     .10000E-03    153.52        .10519E-06** at limit **
  23  norm          .10000E-03    2.7579        .61417E-07** at limit **
  24  norm          .10000E-03    16.270        .19484E-07** at limit **
  25  Prefactor     727.49        741.19        .36958E-06    .30253E-05
  26  Normalizat    .10000E-01    .30304        .99738E-05** at limit **
  27  Prefactor     1.0408        .13134       -.11431E-05   -.56926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.7921
  Prefactor  = 0.0001
  norm       = 5.32899
  Prefactor  = 73.5677
  norm       = 4.90493
  Prefactor  = 0.0001
  norm       = 0.87712
  norm       = 0.0001
  norm       = 1.10689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 385.072
  norm       = 32.9522
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  norm       = 6.77567
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 727.486
  Normalizat = 0.01
  Prefactor  = 1.04075
 **********
 **   18 **HESSE 
 **********

 FCN=   1558.801     FROM HESSE     STATUS=OK           474 CALLS     4287 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.792        120.10        .46413E-04   -1.3976    
   2  Prefactor     .10000E-03    192.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3290        35.710        .17401E-03   -1.5246    
   4  Prefactor     73.568        75.290        .23394E-03   -1.3990    
   5  norm          4.9049        13.278        .18186E-03   -1.5265    
   6  Prefactor     .10000E-03    77.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .87712        116.44        .35223E-02   -1.5521    
   8  norm          .10000E-03    47.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1069        3.1080        .94729E-04   -1.5498    
  10  Prefactor     .10000E-03    2.2779        .58044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    237.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    62.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.959        .13322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     385.07        477.34        .10387E-03   -1.1758    
  15  norm          32.952        26.715        .69794E-04   -1.4559    
  16  Prefactor     .10000E-03    311.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8761        .84684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    157.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        6801.9        .19102E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    267.88        .19922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.7757        5.8527        .86036E-04   -1.5187    
  22  Prefactor     .10000E-03    153.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.7809        .64039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    16.270        .15559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     727.49        741.30        .77044E-04   -1.0246    
  26  Normalizat    .10000E-01    .64499        .11615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0408        .13202        .14362E-03   -.91383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74201e-09
Minuit parameter uncertainties:
  1  120.488
  2  0.000565474
  3  27.6134
  4  75.3881
  5  13.2857
  6  3.67869e-06
  7  20.2515
  8  5.13192e-05
  9  3.10846
  10  2.31197e-06
  11  0.000132557
  12  3.10062e-05
  13  2.42347e-05
  14  482.378
  15  26.7244
  16  0.000433452
  17  2.78835e-07
  18  0.00017353
  19  0.0068886
  20  2.81565e-05
  21  5.85321
  22  0.000117102
  23  1.27269e-07
  24  6.47887e-07
  25  751.751
  26  1.36817e-05
  27  0.132063
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.326e-04  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.041e+00  1.321e-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:  1.000e-02  1.368e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 1.03e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/459048/likelihoodResults_644976001_645235201_4FGL_J0427.3+0504_daily_bin1565.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): 102
logL (Free Index) = 1558.80086811
delta logL = -2.50213297477e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1558.80084686
delta logL = -3.7721906665e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3382       1.0000          .0000       10.000    
     3 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0408       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1558.801     FROM MIGRAD    STATUS=FAILED        96 CALLS      284 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23663E-03    1244.8        .18142E-01** at limit **
   2  Index         2.5972        7.6925        .50000        .23713E-05
   3  Normalizat    .10000E-01    .46564E-02    .11602E-01** at limit **
   4  Prefactor     1.0408        .95690E-02    .14362E-03    .10152E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1558.801     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      402 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23663E-03    1244.8        .30989E-02** at limit **
   2  Index         2.5972        7.6925        .12916E-03    .23713E-05
   3  Normalizat    .10000E-01    .46564E-02    .22448E-02** at limit **
   4  Prefactor     1.0408        .95690E-02    .24920E-06    .10152E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1558.801     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      442 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10503E-03    244.81        .36285E-01** at limit **
   2  Index         2.7999        5.6767        .50000        .14874E-05
   3  Normalizat    .10000E-01    .12854E-02    .23204E-02** at limit **
   4  Prefactor     1.0408        .50205E-02    .57449E-05    .73220E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105032
  Index      = 2.79992
  Normalizat = 0.01
  Prefactor  = 1.04075
 **********
 **   18 **HESSE 
 **********

 FCN=   1558.801     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      471 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10503E-03    7704.9        .12280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7999        5.2745        .50000       -.45562    
   3  Normalizat    .10000E-01    .35627E-01    .46408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0408        .26446E-01    .11490E-05   -.91383    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.06592e-07
Minuit parameter uncertainties:
  1  0.370797
  2  3470.54
  3  2.32337e-07
  4  0.0264464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459048': 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): 102
logL (Free Index) = 1558.80084308
delta logL = 1.138278094e-08

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.050e-04  3.708e-01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.800e+00  3.471e+03  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.041e+00  2.645e-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.000e-02  2.323e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/459048/cmap_HighResolution_644976001_645235201_4FGL_J0427.3+0504_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-02', job_status='DONE', photon_flux_upper_limit='1.03e-06', time_completed='2021-08-20 16:13:11.943855', job_id='459048', GAL2='1.04', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629501191.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1565' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:13:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 459048: <4FGL_J0427.3+0504_daily_bin1565> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1565> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 16:05:26 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:05:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:05:28 2021
Terminated at Fri Aug 20 16:13:12 2021
Results reported at Fri Aug 20 16:13:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1565 66.8294 5.08 644976001 645235201 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 :                                   407.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            466 sec.

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

