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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1371
RA = 66.8294, Dec = 5.08
tmin = 594691201, tmax = 594950401
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='456829', job_status='RUN', time_executed='2021-08-20 16:03:27.817918', time_epoch_executed='1629500607.82' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456829/ft1_4FGL_J0427.3+0504_daily_bin1371.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456829/ft2_4FGL_J0427.3+0504_daily_bin1371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456829/ft1_4FGL_J0427.3+0504_daily_bin1371.fits outfile=/scratch/kocevski/456829/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1371.fits ra=66.8294 dec=5.08 rad=12.0 tmin=594691201.0 tmax=594950401.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.65
user 2.74
sys 0.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456829/ft1_filtered_4FGL_J0427.3+0504_daily_bin1371.fits" evtable="EVENTS" scfile=/scratch/kocevski/456829/ft2_4FGL_J0427.3+0504_daily_bin1371.fits sctable="SC_DATA" outfile=/scratch/kocevski/456829/ltcube_594691201_594950401_4FGL_J0427.3+0504_daily_bin1371.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/456829/ft2_4FGL_J0427.3+0504_daily_bin1371.fits
.....................!
real 13.86
user 12.66
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456829/ft1_filtered_4FGL_J0427.3+0504_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/456829/ft2_4FGL_J0427.3+0504_daily_bin1371.fits sctable="SC_DATA" expcube=/scratch/kocevski/456829/ltcube_594691201_594950401_4FGL_J0427.3+0504_daily_bin1371.fits outfile=/scratch/kocevski/456829/expmap_594691201_594950401_4FGL_J0427.3+0504_daily_bin1371.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/456829/ltcube_594691201_594950401_4FGL_J0427.3+0504_daily_bin1371.fits
.....................!
real 190.39
user 185.01
sys 4.86

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/456829/ft1_filtered_4FGL_J0427.3+0504_daily_bin1371.fits scfile=/scratch/kocevski/456829/ft2_4FGL_J0427.3+0504_daily_bin1371.fits outfile=/scratch/kocevski/456829/cmap_594691201_594950401_4FGL_J0427.3+0504_daily_bin1371.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 1.29
user 0.38
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456829/ft1_filtered_4FGL_J0427.3+0504_daily_bin1371.fits scfile=/scratch/kocevski/456829/ft2_4FGL_J0427.3+0504_daily_bin1371.fits outfile=/scratch/kocevski/456829/cmap_HighResolution_594691201_594950401_4FGL_J0427.3+0504_daily_bin1371.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 1.23
user 0.38
sys 0.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    157.14       1.0000         .10000E-03   10000.    
     3 'norm      '    .13074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.013       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    35.523       1.0000         .10000E-03   10000.    
     8 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3272       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2895       1.0000         .10000E-03   10000.    
    11 'Prefactor '    75.389       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32560E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    425.33       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3664       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.807       1.0000         .10000E-03   10000.    
    19 'norm      '    .14362E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4702       1.0000         .10000E-03   10000.    
    22 'Prefactor '    65.223       1.0000         .10000E-03   10000.    
    23 'norm      '    .34260       1.0000         .10000E-03   10000.    
    24 'norm      '    .34182E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0727       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=   1090.521     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3923 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    394.06       -.45025E-05** at limit **
   2  Prefactor     157.08        204.10       -.11719E-05   -.83755E-05
   3  norm          .10000E-03    388.56       -.38283E-05** at limit **
   4  Prefactor     15.053        222.22       -.74488E-06    .31931E-05
   5  norm          .10000E-03    10.072        .39011E-07** at limit **
   6  Prefactor     .10000E-03    200.06        .40427E-05** at limit **
   7  norm          35.545        41.260       -.11946E-05   -.61183E-05
   8  norm          .10000E-03    79.450       -.16359E-05** at limit **
   9  norm          1.3274        3.1996       -.17945E-06   -.78710E-05
  10  Prefactor     1.2906        4.3358       -.86087E-07    .26243E-05
  11  Prefactor     75.374        118.88       -.92925E-06   -.51487E-05
  12  Prefactor     .10000E-03    108.63       -.22049E-06** at limit **
  13  Prefactor     .10000E-03    11.937        .63509E-07** at limit **
  14  Prefactor     .10000E-03    678.12       -.19300E-05** at limit **
  15  norm          .10000E-03    6.7970       -.10036E-06** at limit **
  16  Prefactor     425.10        389.89       -.87745E-06   -.26519E-04
  17  norm          3.3675        4.1903       -.92517E-07    .43615E-05
  18  Prefactor     11.814        35.940        .30250E-06   -.77353E-05
  19  norm          .10132E-03    11.986        .76693E-06** at limit **
  20  Prefactor     .10000E-03    70.566        .38076E-06** at limit **
  21  norm          1.4723        3.6092       -.14168E-06   -.13877E-05
  22  Prefactor     65.101        126.48        .55344E-05    .12083E-03
  23  norm          .34429        2.5698       -.17270E-06    .48819E-03
  24  norm          .10000E-03    11.100       -.26694E-05** at limit **
  25  Prefactor     .10000E-03    4.7124       -.13155E-06** at limit **
  26  Normalizat    .10000E-01    .39104        .18305E-05** at limit **
  27  Prefactor     1.0726        .18965        .12831E-05    .52574E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 157.08
  norm       = 0.000100003
  Prefactor  = 15.0526
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 35.5446
  norm       = 0.0001
  norm       = 1.32743
  Prefactor  = 1.29058
  Prefactor  = 75.3741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 425.097
  norm       = 3.36751
  Prefactor  = 11.8135
  norm       = 0.000101317
  Prefactor  = 0.0001
  norm       = 1.47234
  Prefactor  = 65.1009
  norm       = 0.344293
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.07264
 **********
 **   18 **HESSE 
 **********

 FCN=   1090.521     FROM HESSE     STATUS=OK           488 CALLS     4411 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    393.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     157.08        204.22        .16082E-03   -1.3195    
   3  norm          .10000E-03    391.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.053        220.80        .10337E-03   -1.4932    
   5  norm          .10000E-03    10.086        .10230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    200.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          35.545        40.797        .67239E-04   -1.4515    
   8  norm          .10000E-03    79.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3274        3.1244        .84678E-04   -1.5478    
  10  Prefactor     1.2906        4.2403        .11802E-03   -1.5481    
  11  Prefactor     75.374        118.86        .46244E-04   -1.3969    
  12  Prefactor     .10000E-03    108.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.946        .11145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    682.66        .21355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8030        .84011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     425.10        385.21        .99108E-04   -1.1555    
  17  norm          3.3675        4.1824        .73054E-04   -1.5341    
  18  Prefactor     11.814        35.678        .11658E-03   -1.5020    
  19  norm          .10132E-03    159.14        .20458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    70.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4723        3.5710        .93287E-04   -1.5465    
  22  Prefactor     65.101        125.45        .24846E-03   -1.4093    
  23  norm          .34429        2.7252        .71816E-04   -1.5591    
  24  norm          .10000E-03    17.332        .20282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7252        .70047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .45043        .11539E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0726        .18505        .15198E-03   -.90346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4592e-09
Minuit parameter uncertainties:
  1  0.00189442
  2  205.148
  3  0.00209106
  4  115.818
  5  5.23424e-06
  6  0.00136027
  7  40.8286
  8  0.000318278
  9  3.12476
  10  4.24131
  11  119.242
  12  3.34818e-05
  13  1.51761e-06
  14  0.00202137
  15  3.98229e-06
  16  387.591
  17  4.18278
  18  35.7421
  19  0.0290351
  20  1.99635e-05
  21  3.57148
  22  125.965
  23  1.93714
  24  8.93541e-05
  25  1.10838e-05
  26  1.23956e-05
  27  0.185165
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  7.537e+01  1.192e+02  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.073e+00  1.852e-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.240e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456829/likelihoodResults_594691201_594950401_4FGL_J0427.3+0504_daily_bin1371.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) = 1090.15429362
delta logL = 0.366330062046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1090.0903142
delta logL = 0.430309486862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    120.26       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0786       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0623       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=   1090.090     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     120.24        132.63       -.20502E-04    .81530E-04
   2  Index         2.0764        .59956        .45577E-05    .35755E-03
   3  Normalizat    .10000E-01    .40799       -.79347E-06** at limit **
   4  Prefactor     1.0619        .16351        .14425E-05   -.86111E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 120.239
  Index      = 2.07643
  Normalizat = 0.01
  Prefactor  = 1.06194
 **********
 **   18 **HESSE 
 **********

 FCN=   1090.090     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     120.24        134.36        .18348E-03   -1.3510    
   2  Index         2.0764        .69898        .52168E-02   -.62453    
   3  Normalizat    .10000E-01    .48961        .11827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0619        .14800        .15223E-03   -.90692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15609e-09
Minuit parameter uncertainties:
  1  134.704
  2  0.702482
  3  1.86895e-06
  4  0.148052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456829': 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) = 1090.09030634
delta logL = 0.430317342614

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.202e+02  1.347e+02  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.076e+00  7.025e-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.062e+00  1.481e-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.869e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.08 +/- 0.70
Photon Flux (Free Index): 2.13e-07 +/- 2.63e-07
Energy Flux (Free Index): 1.23e-04 +/- 1.83e-04

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/456829/cmap_HighResolution_594691201_594950401_4FGL_J0427.3+0504_daily_bin1371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-02', comment='SUCCESS', energy_flux2='1.23e-04', dlogl='4.30e-01', photon_flux2='2.13e-07', job_status='DONE', time_completed='2021-08-20 16:10:00.120527', photon_index_error2='0.70', photon_index2='2.08', ts='0.55', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.21e-06', energy_flux_error2='1.83e-04', EG='0.01', time_epoch_completed='1629501000.12', return_code='0', job_id='456829', GAL2='1.06', EG2='0.01', return_code2='0', photon_flux_error2='2.63e-07', ts2='1.41', photon_index='2.86' WHERE bin_id='1371' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:10:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 456829: <4FGL_J0427.3+0504_daily_bin1371> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1371> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 16:00:37 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:00:40 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:00:40 2021
Terminated at Fri Aug 20 16:10:01 2021
Results reported at Fri Aug 20 16:10:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1371 66.8294 5.08 594691201 594950401 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 :                                   397.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             257.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            564 sec.

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

