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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1619
RA = 66.8294, Dec = 5.08
tmin = 658972801, tmax = 659232001
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='189643', job_status='RUN', time_executed='2021-12-07 14:58:26.376414', time_epoch_executed='1638917906.38' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189643/ft1_4FGL_J0427.3+0504_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189643/ft2_4FGL_J0427.3+0504_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189643/ft1_4FGL_J0427.3+0504_daily_bin1619.fits outfile=/scratch/kocevski/189643/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1619.fits ra=66.8294 dec=5.08 rad=12.0 tmin=658972801.0 tmax=659232001.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 2.95
user 2.71
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189643/ft1_filtered_4FGL_J0427.3+0504_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/189643/ft2_4FGL_J0427.3+0504_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/189643/ltcube_658972801_659232001_4FGL_J0427.3+0504_daily_bin1619.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/189643/ft2_4FGL_J0427.3+0504_daily_bin1619.fits
.....................!
real 13.93
user 13.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189643/ft1_filtered_4FGL_J0427.3+0504_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/189643/ft2_4FGL_J0427.3+0504_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/189643/ltcube_658972801_659232001_4FGL_J0427.3+0504_daily_bin1619.fits outfile=/scratch/kocevski/189643/expmap_658972801_659232001_4FGL_J0427.3+0504_daily_bin1619.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/189643/ltcube_658972801_659232001_4FGL_J0427.3+0504_daily_bin1619.fits
.....................!
real 192.02
user 185.72
sys 5.59

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 380.57661192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 377.822091102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0193       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2964       1.0000         .10000E-03   10000.    
     3 'norm      '    .10111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39025E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .89840       1.0000         .10000E-03   10000.    
     7 'norm      '    17.262       1.0000         .10000E-03   10000.    
     8 'norm      '    .96374E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6632       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12885       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    253.07       1.0000         .10000E-03   10000.    
    15 'norm      '    .88328E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0329       1.0000         .10000E-03   10000.    
    17 'norm      '    .12404E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    75.861       1.0000         .10000E-03   10000.    
    19 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30792       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2162       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4681       1.0000         .10000E-03   10000.    
    23 'norm      '    .10640E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    20.500       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79574       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   377.8134     FROM MIGRAD    STATUS=CONVERGED    218 CALLS      505 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0193        1.0020         .0000         .0000    
   2  Prefactor     4.4660        37.364       -.48109E-05    .56546E-02
   3  norm          .10004E-03    103.78       -.95030E-05** at limit **
   4  Prefactor     .10070E-03    25.812        .36880E-06** at limit **
   5  norm          .10000E-03    14.525       -.22784E-05** at limit **
   6  Prefactor     .14527E-03    1239.6       -.20513E-04** at limit **
   7  norm          17.084        18.771       -.20365E-06   -.56946E-02
   8  norm          .14741E-03    138.54        .18104E-06** at limit **
   9  norm          .10000E-03    4.3438        .24229E-06** at limit **
  10  Prefactor     .10000E-03    7.2338       -.61977E-07** at limit **
  11  Prefactor     .11028E-03    424.57       -.55488E-05** at limit **
  12  Prefactor     .10809E-03    207.56        .11000E-05** at limit **
  13  Prefactor     24.667        15.651        .81875E-06    .43895E-02
  14  Prefactor     253.50        13.200        .32921E-06   -.16593E-01
  15  norm          .10000E-03    19.191        .24591E-05** at limit **
  16  Prefactor     .10743E-03    296.90        .63281E-05** at limit **
  17  norm          .10000E-03    9.1612       -.55926E-06** at limit **
  18  Prefactor     76.171        9.2680       -.18811E-07    .56236E-02
  19  norm          .10000E-03    7.6258       -.91072E-07** at limit **
  20  Prefactor     .10000E-03    121.11       -.57019E-06** at limit **
  21  norm          5.2180        6.6564        .91332E-07   -.12238E-04
  22  Prefactor     .73382E-03    1482.0       -.26280E-04** at limit **
  23  norm          .10000E-03    69.508       -.24574E-05** at limit **
  24  norm          20.699        18.070        .18067E-06   -.17906E-04
  25  Prefactor     .10000E-03    11.869        .62593E-06** at limit **
  26  Normalizat    .10000E-01    .73621       -.12167E-05** at limit **
  27  Prefactor     .79670        .22332       -.12467E-05   -.42644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.01926
  Prefactor  = 4.46596
  norm       = 0.000100036
  Prefactor  = 0.000100701
  norm       = 0.000100001
  Prefactor  = 0.00014527
  norm       = 17.0837
  norm       = 0.000147414
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000110283
  Prefactor  = 0.000108086
  Prefactor  = 24.6673
  Prefactor  = 253.497
  norm       = 0.000100001
  Prefactor  = 0.000107428
  norm       = 0.0001
  Prefactor  = 76.1706
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.21797
  Prefactor  = 0.000733822
  norm       = 0.000100001
  norm       = 20.699
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.796696
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   377.8134     FROM HESSE     STATUS=FAILED        11 CALLS      516 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     505.09        497.04         .0000       -1.5142    
   2  Prefactor     4.4660        .92245       -.48109E-05   -1.5285    
   3  norm          .10004E-03    .22641       -.95030E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10070E-03    .23826        .36880E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .20571       -.22784E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14527E-03    .40971       -.20513E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.084        .99525       -.20365E-06   -1.4881    
   8  norm          .14741E-03    .22534        .18104E-06   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571        .24229E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .20571       -.61977E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11028E-03    .97466E-01   -.55488E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10809E-03    .23270        .11000E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.667        1.0031        .81875E-06   -1.4714    
  14  Prefactor     253.50        1.0008        .32921E-06   -1.2510    
  15  norm          .10000E-03    .27149        .24591E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10743E-03    .38730        .63281E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571       -.55926E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     76.171        1.0020       -.18811E-07   -1.3960    
  19  norm          .10000E-03    .20571       -.91072E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .27351       -.57019E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.2180        1.0048        .91332E-07   -1.5251    
  22  Prefactor     .73382E-03    .73676E-01   -.26280E-04   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .20571       -.24574E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          20.699        1.0051        .18067E-06   -1.4798    
  25  Prefactor     .10000E-03    .20571        .62593E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .25505       -.12167E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .79670        1.1451       -.12467E-05   -.99850    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.22401e-09
Minuit parameter uncertainties:
  1  1.00196
  2  0.922452
  3  0.000181728
  4  0.000817145
  5  3.15029e-05
  6  0.00861343
  7  0.995256
  8  0.00653729
  9  3.16634e-06
  10  7.84682e-07
  11  0.00200226
  12  0.00274344
  13  1.00308
  14  1.00083
  15  3.93708e-05
  16  0.00339225
  17  7.65241e-06
  18  1.00204
  19  1.15093e-06
  20  1.25624e-05
  21  1.00484
  22  0.0136671
  23  3.48355e-05
  24  1.00512
  25  8.81757e-06
  26  6.26048e-07
  27  1.18228
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 377.813442421

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.103e-04  2.002e-03  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.967e-01  1.182e+00  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  6.260e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189643/likelihoodResults_658972801_659232001_4FGL_J0427.3+0504_daily_bin1619.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) = 377.813453884
delta logL = -1.14623910008e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 377.81344279
delta logL = -3.68952441931e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.3435       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79658       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=   377.7924     FROM MIGRAD    STATUS=CONVERGED    163 CALLS      358 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9230        6404.7        .18142E-01    .39188E-04
   2  Index         7.0186        8.1364        .31234       -.74227E-05
   3  Normalizat    .10000E-01    .28734        .90491E-02** at limit **
   4  Prefactor     .78927        .14096        .14790E-03   -.31198E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92304
  Index      = 7.01863
  Normalizat = 0.01
  Prefactor  = 0.789268
 **********
 **   18 **HESSE 
 **********

 FCN=   377.7924     FROM HESSE     STATUS=OK            29 CALLS      387 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9230        249.32        .16667E-03   -1.6050    
   2  Index         7.0186        7.2231        .11862E-01    .41559    
   3  Normalizat    .10000E-01    .64330        .18098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .78927        .21268        .29580E-04   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44635e-10
Minuit parameter uncertainties:
  1  54.2261
  2  13.953
  3  3.64545e-06
  4  0.212897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189643': 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) = 377.79241248
delta logL = 0.0210299412589

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.923e+00  5.423e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  7.019e+00  1.395e+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:  7.893e-01  2.129e-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  3.645e-06  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/189643/cmap_HighResolution_658972801_659232001_4FGL_J0427.3+0504_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-01', job_status='DONE', photon_flux_upper_limit='6.41e-06', time_completed='2021-12-07 15:03:41.978355', job_id='189643', GAL2='0.79', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1638918221.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.80', dlogl='2.10e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1619' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 15:03:42 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 189643: <4FGL_J0427.3+0504_daily_bin1619> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1619> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 14:55:18 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 14:55:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 14:55:27 2021
Terminated at Tue Dec  7 15:03:42 2021
Results reported at Tue Dec  7 15:03:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1619 66.8294 5.08 658972801 659232001 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 :                                   314.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             287.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   495 sec.
    Turnaround time :                            504 sec.

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

