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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1320
RA = 66.8294, Dec = 5.08
tmin = 581472001, tmax = 581731201
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='455294', job_status='RUN', time_executed='2021-08-20 15:57:18.027752', time_epoch_executed='1629500238.03' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455294

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455294/ft1_4FGL_J0427.3+0504_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455294/ft2_4FGL_J0427.3+0504_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455294/ft1_4FGL_J0427.3+0504_daily_bin1320.fits outfile=/scratch/kocevski/455294/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1320.fits ra=66.8294 dec=5.08 rad=12.0 tmin=581472001.0 tmax=581731201.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 4.77
user 2.60
sys 2.12

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455294/ft2_4FGL_J0427.3+0504_daily_bin1320.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/455294/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1320.fits evtable="EVENTS" outfile="/scratch/kocevski/455294/ft1_filtered_4FGL_J0427.3+0504_daily_bin1320.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 2.39
user 0.31
sys 2.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455294/ft1_filtered_4FGL_J0427.3+0504_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/455294/ft2_4FGL_J0427.3+0504_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/455294/ltcube_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.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/455294/ft2_4FGL_J0427.3+0504_daily_bin1320.fits
.....................!
real 14.31
user 11.75
sys 2.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455294/ft1_filtered_4FGL_J0427.3+0504_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/455294/ft2_4FGL_J0427.3+0504_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/455294/ltcube_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.fits outfile=/scratch/kocevski/455294/expmap_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.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/455294/ltcube_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.fits
.....................!
real 193.77
user 185.97
sys 7.40

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/455294/ft1_filtered_4FGL_J0427.3+0504_daily_bin1320.fits scfile=/scratch/kocevski/455294/ft2_4FGL_J0427.3+0504_daily_bin1320.fits outfile=/scratch/kocevski/455294/cmap_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.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 2.41
user 0.36
sys 2.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455294/ft1_filtered_4FGL_J0427.3+0504_daily_bin1320.fits scfile=/scratch/kocevski/455294/ft2_4FGL_J0427.3+0504_daily_bin1320.fits outfile=/scratch/kocevski/455294/cmap_HighResolution_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.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 2.41
user 0.37
sys 2.03

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455294/ft1_filtered_4FGL_J0427.3+0504_daily_bin1320.fits', '/scratch/kocevski/455294/ft2_4FGL_J0427.3+0504_daily_bin1320.fits', expMap='/scratch/kocevski/455294/expmap_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.fits', expCube='/scratch/kocevski/455294/ltcube_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455294/Model_4FGL_J0427.3+0504_daily_bin1320.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/455294/ft1_filtered_4FGL_J0427.3+0504_daily_bin1320.fits
Spacecraft file(s): /scratch/kocevski/455294/ft2_4FGL_J0427.3+0504_daily_bin1320.fits
Exposure map: /scratch/kocevski/455294/expmap_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.fits
Exposure cube: /scratch/kocevski/455294/ltcube_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455294/Model_4FGL_J0427.3+0504_daily_bin1320.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1229.7704182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31883       1.0000         .10000E-03   10000.    
     3 'norm      '    .10946E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11054E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7050       1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.452       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    282.42       1.0000         .10000E-03   10000.    
    12 'Prefactor '    257.71       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.893       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'norm      '    .17038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15440E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12306E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3092       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10997E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    22.678       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .66363       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71357       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=   1226.164     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3820 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.85        .11235E-05** at limit **
   2  Prefactor     .11261E-03    259.44        .22936E-04** at limit **
   3  norm          .10000E-03    84.747       -.10677E-05** at limit **
   4  Prefactor     .10000E-03    33.586       -.20206E-06** at limit **
   5  norm          5.6760        13.896        .11311E-05   -.70141E-04
   6  Prefactor     49.685        174.70       -.49321E-05   -.53318E-04
   7  norm          .10000E-03    37.070       -.10101E-05** at limit **
   8  norm          .10000E-03    52.848        .14474E-05** at limit **
   9  norm          .10000E-03    2.3434        .77870E-06** at limit **
  10  Prefactor     .10000E-03    2.9148        .83755E-06** at limit **
  11  Prefactor     282.50        204.32        .16055E-05   -.71014E-04
  12  Prefactor     257.85        202.47        .40784E-05   -.36057E-04
  13  Prefactor     22.855        29.492       -.31149E-06   -.74357E-04
  14  Prefactor    10000.0        6571.4        .13610E-04** at limit **
  15  norm          .10000E-03    32.130        .36105E-05** at limit **
  16  Prefactor     .10000E-03    424.49        .21212E-04** at limit **
  17  norm          .10000E-03    3.7726        .47089E-06** at limit **
  18  Prefactor     .10000E-03    42.490       -.24909E-07** at limit **
  19  norm          .10000E-03    181.96       -.39326E-05** at limit **
  20  Prefactor     .10000E-03    92.621        .19610E-05** at limit **
  21  norm          2.3074        5.6044        .10422E-05   -.54975E-04
  22  Prefactor     .10000E-03    83.110       -.15634E-05** at limit **
  23  norm          .10000E-03    1.0017       -.41373E-07** at limit **
  24  norm          22.648        18.156        .90063E-07   -.22142E-04
  25  Prefactor     .10000E-03    35.949        .75653E-06** at limit **
  26  Normalizat    .66301        .59404        .33574E-05   -.14943E-03
  27  Prefactor     .71426        .19644       -.78814E-05   -.33054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000112606
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.67597
  Prefactor  = 49.6846
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 282.503
  Prefactor  = 257.849
  Prefactor  = 22.8546
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30742
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.6481
  Prefactor  = 0.0001
  Normalizat = 0.663006
  Prefactor  = 0.714262
 **********
 **   18 **HESSE 
 **********

 FCN=   1226.164     FROM HESSE     STATUS=OK           480 CALLS     4300 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11261E-03    268.81        .12816       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    85.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.6760        13.768        .16817E-03   -1.5231    
   6  Prefactor     49.685        181.47        .28513E-03   -1.4297    
   7  norm          .10000E-03    37.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    52.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3629        .51960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9083        .58224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     282.50        203.71        .12073E-03   -1.2330    
  12  Prefactor     257.85        202.74        .12622E-03   -1.2482    
  13  Prefactor     22.855        29.573        .83716E-04   -1.4751    
  14  Prefactor    10000.0        6572.0        .20997E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    32.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    425.96        .20448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.7890        .66366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    182.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    92.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3074        5.6012        .11593E-03   -1.5404    
  22  Prefactor     .10000E-03    83.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.0018        .34195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          22.648        18.149        .84111E-04   -1.4756    
  25  Prefactor     .10000E-03    35.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .66301        .63824        .45624E-03   -1.0537    
  27  Prefactor     .71426        .21624        .16132E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07927e-09
Minuit parameter uncertainties:
  1  0.000182781
  2  0.11695
  3  8.8255e-05
  4  2.18229e-05
  5  13.7752
  6  183.547
  7  0.000184487
  8  4.24172e-05
  9  1.70658e-05
  10  2.04382e-05
  11  204.225
  12  203.294
  13  29.5919
  14  0.00496093
  15  0.000186882
  16  0.0026725
  17  1.0339e-05
  18  3.53466e-05
  19  0.000337458
  20  0.000113885
  21  5.60244
  22  8.49983e-05
  23  1.20284e-06
  24  18.1537
  25  3.75458e-05
  26  0.645567
  27  0.216494
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.825e+02  2.042e+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:  7.143e-01  2.165e-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:  6.630e-01  6.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.28
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 8.84e-07 +/- 6.38e-07
Energy Flux (Fixed Index): 1.90e-04 +/- 1.37e-04

TS (Fixed Index): 3.28
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 2.21e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455294/likelihoodResults_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.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) = 1225.58181265
delta logL = 0.582557526678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1225.55025647
delta logL = 0.614113707215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    245.36       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0610       1.0000          .0000       10.000    
     3 'Normalizat'    .77297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68898       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=   1225.550     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .94E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     244.90        219.74       -.40145E-04    .45050E-05
   2  Index         2.0609        .65981       -.12126E-03    .94880E-06
   3  Normalizat    .77244        .49892        .11357E-04    .30911E-04
   4  Prefactor     .68912        .18244        .74357E-07    .78086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 244.899
  Index      = 2.06085
  Normalizat = 0.772444
  Prefactor  = 0.689119
 **********
 **   18 **HESSE 
 **********

 FCN=   1225.550     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     244.90        216.70        .12928E-03   -1.2565    
   2  Index         2.0609        .65075        .42152E-02   -.62837    
   3  Normalizat    .77244        .54036        .42771E-03   -1.0110    
   4  Prefactor     .68912        .19856        .16364E-03   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35907e-10
Minuit parameter uncertainties:
  1  217.416
  2  0.653585
  3  0.544172
  4  0.198766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455294': 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) = 1225.55025247
delta logL = 0.614117709751

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.449e+02  2.174e+02  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.061e+00  6.536e-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.891e-01  1.988e-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:  7.724e-01  5.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.60
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.06 +/- 0.65
Photon Flux (Free Index): 4.30e-07 +/- 4.77e-07
Energy Flux (Free Index): 2.58e-04 +/- 2.43e-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/455294/cmap_HighResolution_581472001_581731201_4FGL_J0427.3+0504_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-01', comment='SUCCESS', photon_flux='8.84e-07', energy_flux2='2.58e-04', photon_flux_error='6.38e-07', dlogl='6.14e-01', energy_flux='1.90e-04', photon_flux2='4.30e-07', job_status='DONE', time_completed='2021-08-20 16:04:06.754417', photon_index_error2='0.65', photon_index2='2.06', ts='3.28', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='2.21e-06', energy_flux_error2='2.43e-04', EG='0.66', time_epoch_completed='1629500646.75', return_code='0', job_id='455294', GAL2='0.69', EG2='0.77', return_code2='0', energy_flux_error='1.37e-04', photon_flux_error2='4.77e-07', ts2='4.60', photon_index='2.86' WHERE bin_id='1320' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:04:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 455294: <4FGL_J0427.3+0504_daily_bin1320> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1320 66.8294 5.08 581472001 581731201 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 :                                   437.46 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             292.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            510 sec.

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

