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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1214
RA = 66.8294, Dec = 5.08
tmin = 553996801, tmax = 554256001
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='455140', job_status='RUN', time_executed='2021-08-20 15:57:07.926001', time_epoch_executed='1629500227.93' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455140

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455140/ft1_4FGL_J0427.3+0504_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455140/ft2_4FGL_J0427.3+0504_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455140/ft1_4FGL_J0427.3+0504_daily_bin1214.fits outfile=/scratch/kocevski/455140/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1214.fits ra=66.8294 dec=5.08 rad=12.0 tmin=553996801.0 tmax=554256001.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.38
user 2.49
sys 0.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455140/ft1_filtered_4FGL_J0427.3+0504_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/455140/ft2_4FGL_J0427.3+0504_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/455140/ltcube_553996801_554256001_4FGL_J0427.3+0504_daily_bin1214.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/455140/ft2_4FGL_J0427.3+0504_daily_bin1214.fits
.....................!
real 12.88
user 11.83
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455140/ft1_filtered_4FGL_J0427.3+0504_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/455140/ft2_4FGL_J0427.3+0504_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/455140/ltcube_553996801_554256001_4FGL_J0427.3+0504_daily_bin1214.fits outfile=/scratch/kocevski/455140/expmap_553996801_554256001_4FGL_J0427.3+0504_daily_bin1214.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/455140/ltcube_553996801_554256001_4FGL_J0427.3+0504_daily_bin1214.fits
.....................!
real 190.07
user 184.87
sys 4.81

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/455140/ft1_filtered_4FGL_J0427.3+0504_daily_bin1214.fits scfile=/scratch/kocevski/455140/ft2_4FGL_J0427.3+0504_daily_bin1214.fits outfile=/scratch/kocevski/455140/cmap_553996801_554256001_4FGL_J0427.3+0504_daily_bin1214.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.23
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455140/ft1_filtered_4FGL_J0427.3+0504_daily_bin1214.fits scfile=/scratch/kocevski/455140/ft2_4FGL_J0427.3+0504_daily_bin1214.fits outfile=/scratch/kocevski/455140/cmap_HighResolution_553996801_554256001_4FGL_J0427.3+0504_daily_bin1214.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.15
user 0.38
sys 0.76

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7120       1.0000         .10000E-03   10000.    
     5 'norm      '    .24486E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8968       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18782E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11863E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11330E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7407       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .57997       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2766       1.0000         .10000E-03   10000.    
    19 'norm      '    .11853E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.9695       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5017       1.0000         .10000E-03   10000.    
    24 'norm      '    12.892       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.1505       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0008       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97929       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=   8981.443     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     2888 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.040       -.35466E-06** at limit **
   2  Prefactor     .10000E-03    90.706        .20418E-04** at limit **
   3  norm          .10000E-03    8.8377       -.59838E-06** at limit **
   4  Prefactor     3.7117        18.023       -.31310E-06   -.97714E-05
   5  norm          .10000E-03    2.0874        .17440E-06** at limit **
   6  Prefactor     .10000E-03    24.535       -.68019E-06** at limit **
   7  norm          .10000E-03    17.261        .20885E-05** at limit **
   8  norm          .10000E-03    10.721        .34577E-06** at limit **
   9  norm          1.8971        1.1806        .12655E-06    .38417E-03
  10  Prefactor     .10000E-03    .64072       -.61696E-07** at limit **
  11  Prefactor     .10000E-03    37.654        .22580E-06** at limit **
  12  Prefactor     .10000E-03    121.02       -.98118E-05** at limit **
  13  Prefactor     8.7475        11.937       -.20621E-05   -.12345E-03
  14  Prefactor     .10000E-03    5.2065        .52601E-07** at limit **
  15  norm          .58194        2.4032       -.68196E-06    .13681E-03
  16  Prefactor     .10000E-03    23.743       -.22178E-06** at limit **
  17  norm          .10000E-03    .87956        .11123E-06** at limit **
  18  Prefactor     2.2798        7.1546       -.80630E-06   -.45225E-04
  19  norm          .10000E-03    .90216        .23121E-06** at limit **
  20  Prefactor     .10000E-03    9.9251        .12529E-05** at limit **
  21  norm          8.9704        3.2569       -.22833E-06   -.81221E-04
  22  Prefactor     .10000E-03    13.061       -.17916E-05** at limit **
  23  norm          1.5018        .77483        .22931E-07    .22960E-03
  24  norm          12.890        5.6555        .24602E-08    .32064E-04
  25  Prefactor     9.1523        5.5245       -.63741E-06   -.16627E-03
  26  Normalizat    1.0006        .25711        .15761E-05   -.22544E-03
  27  Prefactor     .97927        .76276E-01   -.52320E-06   -.44693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.71168
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.89705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 8.74749
  Prefactor  = 0.0001
  norm       = 0.581937
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.27977
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.97044
  Prefactor  = 0.0001
  norm       = 1.50178
  norm       = 12.8903
  Prefactor  = 9.15233
  Normalizat = 1.00055
  Prefactor  = 0.97927
 **********
 **   18 **HESSE 
 **********

 FCN=   8981.443     FROM HESSE     STATUS=OK           490 CALLS     3378 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    88.485        .62094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.8502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7117        17.877        .20960E-03   -1.5323    
   5  norm          .10000E-03    4.7121        .26367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8971        1.1506        .74715E-04   -1.5432    
  10  Prefactor     .10000E-03    4.2507        .14351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    119.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.7475        11.990        .67790E-03   -1.5116    
  14  Prefactor     .10000E-03    5.2156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .58194        2.4198        .27380E-03   -1.5555    
  16  Prefactor     .10000E-03    23.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .89708        .86776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2798        7.0593        .27215E-03   -1.5406    
  19  norm          .10000E-03    6.1756        .17222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.9397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.9704        3.2563        .48968E-03   -1.5109    
  22  Prefactor     .10000E-03    13.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5018        .77466        .55142E-04   -1.5463    
  24  norm          12.890        5.6754        .11156E-03   -1.4990    
  25  Prefactor     9.1523        5.5287        .66246E-03   -1.5103    
  26  Normalizat    1.0006        .27408        .44711E-03   -.93012    
  27  Prefactor     .97927        .83536E-01    .14849E-03   -.93424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88565e-10
Minuit parameter uncertainties:
  1  2.67661e-05
  2  0.000127814
  3  5.91175e-06
  4  16.2992
  5  7.71716e-06
  6  7.74317e-05
  7  3.4176e-05
  8  2.02367e-05
  9  1.15066
  10  3.50257e-05
  11  0.000253703
  12  0.00117128
  13  11.9933
  14  6.49757e-06
  15  2.3733
  16  3.38108e-05
  17  5.55907e-06
  18  7.06186
  19  1.91534e-05
  20  1.23143e-05
  21  3.25636
  22  1.50033e-05
  23  0.774663
  24  5.6756
  25  5.52899
  26  0.274464
  27  0.0835467
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  2.537e-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:  9.793e-01  8.355e-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.001e+00  2.745e-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.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455140/likelihoodResults_553996801_554256001_4FGL_J0427.3+0504_daily_bin1214.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) = 8981.4427277
delta logL = -0.000124698573927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8981.4426029
delta logL = 9.81199264061e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7840       1.0000          .0000       10.000    
     3 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97925       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=   8980.923     FROM MIGRAD    STATUS=CONVERGED    193 CALLS      355 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.825        14.003        .72455E-02    .18678E-03
   2  Index         1.5754        .33854        .20000       -.13360E-03
   3  Normalizat    1.0072        .24294        .44711E-03    .56397E-04
   4  Prefactor     .97130        .80865E-01    .14849E-03    .65524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8251
  Index      = 1.57535
  Normalizat = 1.00719
  Prefactor  = 0.971299
 **********
 **   18 **HESSE 
 **********

 FCN=   8980.923     FROM HESSE     STATUS=OK            29 CALLS      384 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.825        17.328        .28982E-03   -1.5020    
   2  Index         1.5754        .54386        .86047E-02   -.75451    
   3  Normalizat    1.0072        .24304        .17885E-04   -.92790    
   4  Prefactor     .97130        .80858E-01    .29698E-04   -.93692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0447e-09
Minuit parameter uncertainties:
  1  17.335
  2  0.545897
  3  0.243308
  4  0.0808682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455140': 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) = 8980.92330967
delta logL = 0.519293333757

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.183e+01  1.733e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  1.575e+00  5.459e-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:  9.713e-01  8.087e-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.007e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 66.829 5.080
Photon Index (Free Index): 1.58 +/- 0.55
Photon Flux (Free Index): 1.89e-08 +/- 2.66e-08
Energy Flux (Free Index): 4.64e-05 +/- 7.35e-05

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/455140/cmap_HighResolution_553996801_554256001_4FGL_J0427.3+0504_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='4.64e-05', dlogl='5.19e-01', photon_flux2='1.89e-08', job_status='DONE', time_completed='2021-08-20 16:11:00.838192', photon_index_error2='0.55', photon_index2='1.58', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='7.35e-05', EG='1.00', time_epoch_completed='1629501060.84', return_code='0', job_id='455140', GAL2='0.97', EG2='1.01', return_code2='0', photon_flux_error2='2.66e-08', ts2='1.04', photon_index='2.86' WHERE bin_id='1214' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:11:00 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1214 66.8294 5.08 553996801 554256001 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 :                                   843.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

