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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1495
RA = 66.8294, Dec = 5.08
tmin = 626832001, tmax = 627091201
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='458935', job_status='RUN', time_executed='2021-08-20 16:09:01.226422', time_epoch_executed='1629500941.23' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458935/ft1_4FGL_J0427.3+0504_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458935/ft2_4FGL_J0427.3+0504_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458935/ft1_4FGL_J0427.3+0504_daily_bin1495.fits outfile=/scratch/kocevski/458935/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1495.fits ra=66.8294 dec=5.08 rad=12.0 tmin=626832001.0 tmax=627091201.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 12.53
user 2.73
sys 9.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458935/ft1_filtered_4FGL_J0427.3+0504_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/458935/ft2_4FGL_J0427.3+0504_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/458935/ltcube_626832001_627091201_4FGL_J0427.3+0504_daily_bin1495.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/458935/ft2_4FGL_J0427.3+0504_daily_bin1495.fits
.....................!
real 23.73
user 13.20
sys 10.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458935/ft1_filtered_4FGL_J0427.3+0504_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/458935/ft2_4FGL_J0427.3+0504_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/458935/ltcube_626832001_627091201_4FGL_J0427.3+0504_daily_bin1495.fits outfile=/scratch/kocevski/458935/expmap_626832001_627091201_4FGL_J0427.3+0504_daily_bin1495.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/458935/ltcube_626832001_627091201_4FGL_J0427.3+0504_daily_bin1495.fits
.....................!
real 203.82
user 186.30
sys 16.54

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/458935/ft1_filtered_4FGL_J0427.3+0504_daily_bin1495.fits scfile=/scratch/kocevski/458935/ft2_4FGL_J0427.3+0504_daily_bin1495.fits outfile=/scratch/kocevski/458935/cmap_626832001_627091201_4FGL_J0427.3+0504_daily_bin1495.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 9.43
user 0.39
sys 8.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458935/ft1_filtered_4FGL_J0427.3+0504_daily_bin1495.fits scfile=/scratch/kocevski/458935/ft2_4FGL_J0427.3+0504_daily_bin1495.fits outfile=/scratch/kocevski/458935/cmap_HighResolution_626832001_627091201_4FGL_J0427.3+0504_daily_bin1495.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 9.46
user 0.37
sys 9.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13137E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    215.40       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    121.30       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    173.17       1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    315.01       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.175       1.0000         .10000E-03   10000.    
    19 'norm      '    12.333       1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.423       1.0000         .10000E-03   10000.    
    21 'norm      '    .36239       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .55279       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70016       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=   699.4068     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3320 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1677.3       -.13180E-02** at limit **
   2  Prefactor     .10000E-03    374.01       -.37941E-04** at limit **
   3  norm          .10000E-03    317.16        .88016E-04** at limit **
   4  Prefactor     .10000E-03    113.31        .62209E-04** at limit **
   5  norm          .10000E-03    27.321       -.14686E-04** at limit **
   6  Prefactor     215.43        372.01        .18659E-04    .21543E-04
   7  norm          .10000E-03    27.161        .13688E-04** at limit **
   8  norm          121.31        156.65        .14299E-04   -.18313E-05
   9  norm          .10000E-03    1.8876       -.67137E-07** at limit **
  10  Prefactor     .10000E-03    3.4808        .11767E-07** at limit **
  11  Prefactor     .10000E-03    84.116       -.42387E-04** at limit **
  12  Prefactor     .10000E-03    88.523       -.36064E-04** at limit **
  13  Prefactor     .10000E-03    12.895       -.22919E-06** at limit **
  14  Prefactor     173.19        177.64        .12547E-04    .16782E-05
  15  norm          .10000E-03    10.210       -.31929E-06** at limit **
  16  Prefactor     315.00        340.18       -.22600E-05    .38651E-05
  17  norm          .10000E-03    7.5562        .31770E-07** at limit **
  18  Prefactor     25.209        51.701        .10666E-04    .60384E-05
  19  norm          12.334        13.065       -.60757E-06   -.36301E-04
  20  Prefactor     68.420        100.13       -.55423E-05   -.14421E-04
  21  norm          .36451        6.7131        .56947E-08   -.20934E-03
  22  Prefactor     .10000E-03    64.794        .27165E-04** at limit **
  23  norm          .10000E-03    .83707        .22344E-07** at limit **
  24  norm          .10000E-03    7.2906        .12634E-06** at limit **
  25  Prefactor     .10000E-03    8.5012        .84765E-07** at limit **
  26  Normalizat    .55302        .61429       -.54630E-05   -.45315E-04
  27  Prefactor     .70004        .25229       -.21597E-05   -.24525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 215.431
  norm       = 0.0001
  norm       = 121.313
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 173.192
  norm       = 0.0001
  Prefactor  = 315.003
  norm       = 0.0001
  Prefactor  = 25.2089
  norm       = 12.3342
  Prefactor  = 68.4201
  norm       = 0.36451
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.553025
  Prefactor  = 0.70004
 **********
 **   18 **HESSE 
 **********

 FCN=   699.4068     FROM HESSE     STATUS=OK           470 CALLS     3790 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1676.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    374.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    319.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    113.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    27.667        .13498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     215.43        371.94        .13776E-03   -1.2762    
   7  norm          .10000E-03    27.199        .13468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          121.31        156.82        .18271E-03   -1.3501    
   9  norm          .10000E-03    1.8889        .35491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4815        .48199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    84.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    88.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.898        .92787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     173.19        178.05        .15331E-03   -1.3068    
  15  norm          .10000E-03    10.237        .82470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     315.00        340.90        .11450E-03   -1.2139    
  17  norm          .10000E-03    7.6408        .70920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.209        51.506        .79838E-04   -1.4703    
  19  norm          12.334        13.149        .90142E-04   -1.5005    
  20  Prefactor     68.420        100.02        .48525E-04   -1.4052    
  21  norm          .36451        6.9323        .12946E-03   -1.5587    
  22  Prefactor     .10000E-03    64.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .85180        .23579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.3457        .69729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.5468        .75308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .55302        .65827        .45352E-03   -1.1002    
  27  Prefactor     .70004        .27779        .15781E-03   -1.0353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29876e-10
Minuit parameter uncertainties:
  1  0.000675156
  2  0.000592441
  3  0.000391511
  4  9.13027e-05
  5  5.52793e-05
  6  376.131
  7  3.25661e-05
  8  157.36
  9  2.42219e-07
  10  7.87132e-06
  11  0.00020512
  12  2.01401e-05
  13  6.64901e-06
  14  178.612
  15  0.000114271
  16  343.107
  17  7.2508e-06
  18  51.5971
  19  13.1521
  20  100.271
  21  3.17924
  22  3.50494e-06
  23  2.10714e-06
  24  1.62405e-05
  25  1.24441e-05
  26  0.66791
  27  0.278341
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  2.051e-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:  7.000e-01  2.783e-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:  5.530e-01  6.679e-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.26e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458935/likelihoodResults_626832001_627091201_4FGL_J0427.3+0504_daily_bin1495.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) = 699.40686862
delta logL = -5.56017297413e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 699.40686772
delta logL = -5.47024644675e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93297E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8625       1.0000          .0000       10.000    
     3 'Normalizat'    .55308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70002       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.

 FCN=   699.4068     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      199 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9249.2        .91013E-02** at limit **
   2  Index         2.8624        6.0287        .50000        .13705E-07
   3  Normalizat    .55303        .29586        .10223        .32357E-05
   4  Prefactor     .70004        .11625        .42402E-01   -.22805E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.8624
  Normalizat = 0.553032
  Prefactor  = 0.700038
 **********
 **   18 **HESSE 
 **********

 FCN=   699.4068     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.142        .18203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8624        8.5431        .50000       -.44175    
   3  Normalizat    .55303        .64346        .45352E-03   -1.1002    
   4  Prefactor     .70004        .25635        .15781E-03   -1.0353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56322e-11
Minuit parameter uncertainties:
  1  1.15478e-05
  2  1296.66
  3  0.652449
  4  0.256783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458935': 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) = 699.406813018
delta logL = 6.38920027995e-11

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.155e-05  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.862e+00  1.297e+03  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.000e-01  2.568e-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:  5.530e-01  6.524e-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/458935/cmap_HighResolution_626832001_627091201_4FGL_J0427.3+0504_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-01', job_status='DONE', photon_flux_upper_limit='1.26e-06', time_completed='2021-08-20 16:17:11.127954', job_id='458935', GAL2='0.70', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1629501431.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='6.39e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1495' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:17:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 458935: <4FGL_J0427.3+0504_daily_bin1495> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1495> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 16:05:18 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:05:20 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:05:20 2021
Terminated at Fri Aug 20 16:17:13 2021
Results reported at Fri Aug 20 16:17:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1495 66.8294 5.08 626832001 627091201 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 :                                   628.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             227.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            715 sec.

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

