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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1374
RA = 66.8294, Dec = 5.08
tmin = 595468801, tmax = 595728001
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='456834', job_status='RUN', time_executed='2021-08-20 16:05:12.251213', time_epoch_executed='1629500712.25' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456834/ft1_4FGL_J0427.3+0504_daily_bin1374.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456834/ft2_4FGL_J0427.3+0504_daily_bin1374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456834/ft1_4FGL_J0427.3+0504_daily_bin1374.fits outfile=/scratch/kocevski/456834/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1374.fits ra=66.8294 dec=5.08 rad=12.0 tmin=595468801.0 tmax=595728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 9.01
user 2.51
sys 6.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456834/ft2_4FGL_J0427.3+0504_daily_bin1374.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/456834/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1374.fits evtable="EVENTS" outfile="/scratch/kocevski/456834/ft1_filtered_4FGL_J0427.3+0504_daily_bin1374.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 6.91
user 0.34
sys 6.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456834/ft1_filtered_4FGL_J0427.3+0504_daily_bin1374.fits" evtable="EVENTS" scfile=/scratch/kocevski/456834/ft2_4FGL_J0427.3+0504_daily_bin1374.fits sctable="SC_DATA" outfile=/scratch/kocevski/456834/ltcube_595468801_595728001_4FGL_J0427.3+0504_daily_bin1374.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/456834/ft2_4FGL_J0427.3+0504_daily_bin1374.fits
.....................!
real 22.51
user 13.61
sys 7.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456834/ft1_filtered_4FGL_J0427.3+0504_daily_bin1374.fits evtable="EVENTS" scfile=/scratch/kocevski/456834/ft2_4FGL_J0427.3+0504_daily_bin1374.fits sctable="SC_DATA" expcube=/scratch/kocevski/456834/ltcube_595468801_595728001_4FGL_J0427.3+0504_daily_bin1374.fits outfile=/scratch/kocevski/456834/expmap_595468801_595728001_4FGL_J0427.3+0504_daily_bin1374.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/456834/ltcube_595468801_595728001_4FGL_J0427.3+0504_daily_bin1374.fits
.....................!
real 200.57
user 186.13
sys 13.45

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/456834/ft1_filtered_4FGL_J0427.3+0504_daily_bin1374.fits scfile=/scratch/kocevski/456834/ft2_4FGL_J0427.3+0504_daily_bin1374.fits outfile=/scratch/kocevski/456834/cmap_595468801_595728001_4FGL_J0427.3+0504_daily_bin1374.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=66.8294 yref=5.08 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 6.68
user 0.38
sys 6.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456834/ft1_filtered_4FGL_J0427.3+0504_daily_bin1374.fits scfile=/scratch/kocevski/456834/ft2_4FGL_J0427.3+0504_daily_bin1374.fits outfile=/scratch/kocevski/456834/cmap_HighResolution_595468801_595728001_4FGL_J0427.3+0504_daily_bin1374.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=66.8294 yref=5.08 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 6.69
user 0.39
sys 6.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11612E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10741E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21313E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11188E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .29988       1.0000         .10000E-03   10000.    
    18 'Prefactor '    89.331       1.0000         .10000E-03   10000.    
    19 'norm      '    12.426       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4536       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.829       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0121       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .60296       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=   944.4021     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     4062 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    672.64       -.32573E-03** at limit **
   2  Prefactor     .10000E-03    165.60       -.59542E-04** at limit **
   3  norm          .10000E-03    44.329        .26564E-05** at limit **
   4  Prefactor     .10000E-03    63.229        .10639E-04** at limit **
   5  norm          .10000E-03    4.1755       -.12504E-07** at limit **
   6  Prefactor     .10000E-03    205.75        .61229E-04** at limit **
   7  norm          .10000E-03    12.088        .28466E-08** at limit **
   8  norm          .10000E-03    369.00        .10259E-03** at limit **
   9  norm          .10000E-03    1.0242       -.44995E-08** at limit **
  10  Prefactor     .10000E-03    2.1474       -.31331E-07** at limit **
  11  Prefactor     .10000E-03    436.87        .17197E-04** at limit **
  12  Prefactor     .10000E-03    74.389       -.66965E-05** at limit **
  13  Prefactor     .10000E-03    13.512        .80428E-08** at limit **
  14  Prefactor     .10000E-03    63.221        .10643E-04** at limit **
  15  norm          .10000E-03    8.0455        .24719E-07** at limit **
  16  Prefactor     .10000E-03    429.97        .28926E-04** at limit **
  17  norm          .30555        10.183        .39749E-07   -.12541E-03
  18  Prefactor     89.308        56.358       -.32932E-05   -.41728E-04
  19  norm          12.421        15.292       -.19972E-06   -.32623E-04
  20  Prefactor     .10000E-03    62.869        .97424E-05** at limit **
  21  norm          1.2955        3.5128       -.13879E-06   -.12890E-03
  22  Prefactor     .10000E-03    56.668       -.23582E-04** at limit **
  23  norm          1.4535        1.3504        .33551E-07    .98153E-04
  24  norm          .10000E-03    3.6693       -.86045E-09** at limit **
  25  Prefactor     21.826        17.940        .20197E-07    .35591E-05
  26  Normalizat    1.0112        .62765        .21955E-06   -.36186E-04
  27  Prefactor     .60323        .23753        .35761E-06   -.10943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.305547
  Prefactor  = 89.3084
  norm       = 12.4214
  Prefactor  = 0.0001
  norm       = 1.29547
  Prefactor  = 0.0001
  norm       = 1.45355
  norm       = 0.0001
  Prefactor  = 21.8263
  Normalizat = 1.01124
  Prefactor  = 0.603233
 **********
 **   18 **HESSE 
 **********

 FCN=   944.4021     FROM HESSE     STATUS=OK           474 CALLS     4536 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    672.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    165.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    44.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1783        .61342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    205.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.095        .10438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    371.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0254        .30373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1489        .43984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    438.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    74.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.534        .11032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    63.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.0573        .85136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    430.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .30555        40.914        .16108E-02   -1.5597    
  18  Prefactor     89.308        56.401        .42512E-04   -1.3815    
  19  norm          12.421        15.417        .11364E-03   -1.5003    
  20  Prefactor     .10000E-03    62.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2955        3.4312        .87889E-04   -1.5480    
  22  Prefactor     .10000E-03    56.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4535        1.3514        .32966E-04   -1.5467    
  24  norm          .10000E-03    3.6728        .57491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.826        18.020        .85730E-04   -1.4773    
  26  Normalizat    1.0112        .74809        .35526E-03   -.92655    
  27  Prefactor     .60323        .28467        .17692E-03   -1.0745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26927e-10
Minuit parameter uncertainties:
  1  3.35646e-05
  2  7.77763e-07
  3  8.56616e-06
  4  1.73503e-05
  5  7.04178e-07
  6  7.24348e-06
  7  1.71784e-06
  8  0.00140904
  9  4.65543e-07
  10  1.82286e-06
  11  0.000518962
  12  8.69166e-06
  13  3.46235e-06
  14  2.29644e-06
  15  4.70365e-06
  16  0.000357606
  17  7.07521
  18  56.435
  19  15.4217
  20  3.76135e-05
  21  3.43172
  22  2.19915e-05
  23  1.35141
  24  7.79267e-07
  25  18.0241
  26  0.756073
  27  0.285355
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  5.190e-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:  6.032e-01  2.854e-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.011e+00  7.561e-01  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.29e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456834/likelihoodResults_595468801_595728001_4FGL_J0427.3+0504_daily_bin1374.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) = 944.402109138
delta logL = -1.07202765776e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 944.402098615
delta logL = -1.97472104446e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16151E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2498       1.0000          .0000       10.000    
     3 'Normalizat'    1.0112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60324       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=   944.3698     FROM MIGRAD    STATUS=CONVERGED    161 CALLS      341 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33297        64.487        .16497E-01    .32920E-03
   2  Index         7.1527        6.5416        .32705        .12507E-04
   3  Normalizat    .98053        .10436        .35526E-03   -.16200E-05
   4  Prefactor     .61027        .41335E-01    .17692E-03   -.19680E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.332966
  Index      = 7.15268
  Normalizat = 0.980529
  Prefactor  = 0.610273
 **********
 **   18 **HESSE 
 **********

 FCN=   944.3698     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      372 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33297        315.67        .76473E-03   -1.5593    
   2  Index         7.1527        5.5258        .16169E-01    .44509    
   3  Normalizat    .98053        .44997        .14211E-04   -.93686    
   4  Prefactor     .61027        .17598        .70766E-05   -1.0716    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.218e-11
Minuit parameter uncertainties:
  1  20.6111
  2  47.6805
  3  0.451726
  4  0.176135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456834': 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) = 944.369826766
delta logL = 0.0322716510918

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.330e-01  2.061e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  7.153e+00  4.768e+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:  6.103e-01  1.761e-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:  9.805e-01  4.517e-01  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/456834/cmap_HighResolution_595468801_595728001_4FGL_J0427.3+0504_daily_bin1374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-01', job_status='DONE', photon_flux_upper_limit='1.29e-06', time_completed='2021-08-20 16:13:03.721768', job_id='456834', GAL2='0.61', fit_tolerance='1e-08', EG2='0.98', EG='1.01', time_epoch_completed='1629501183.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='3.23e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1374' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:13:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 456834: <4FGL_J0427.3+0504_daily_bin1374> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1374> 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) <bullet0216>, 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:13:05 2021
Results reported at Fri Aug 20 16:13:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1374 66.8294 5.08 595468801 595728001 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 :                                   562.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             202.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            748 sec.

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

