aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 101 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0035.2+1514_daily_bin1762
RA = 8.8123, Dec = 15.2405
tmin = 696038401, tmax = 696297601
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='95751', job_status='RUN', time_executed='2023-01-25 00:10:00.596062', time_epoch_executed='1674634200.6' WHERE source_name='4FGL J0035.2+1514' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95751/ft1_4FGL_J0035.2+1514_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95751/ft1_4FGL_J0035.2+1514_daily_bin1762.fits outfile=/scratch/kocevski/95751/ft1_filteredMKT_4FGL_J0035.2+1514_daily_bin1762.fits ra=8.8123 dec=15.2405 rad=12.0 tmin=696038401.0 tmax=696297601.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.71
user 3.50
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.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/95751/ft1_filteredMKT_4FGL_J0035.2+1514_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/95751/ft1_filtered_4FGL_J0035.2+1514_daily_bin1762.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.52
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 599

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95751/ft1_filtered_4FGL_J0035.2+1514_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/95751/ltcube_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.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/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits
.....................!
real 14.28
user 13.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95751/ft1_filtered_4FGL_J0035.2+1514_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/95751/ltcube_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.fits outfile=/scratch/kocevski/95751/expmap_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.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/95751/ltcube_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.fits
.....................!
real 191.99
user 186.86
sys 4.72

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J0035.2+1514 @ 8.8123 15.2405

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/95751/ft1_filtered_4FGL_J0035.2+1514_daily_bin1762.fits scfile=/scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits outfile=/scratch/kocevski/95751/cmap_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.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=8.8123 yref=15.2405 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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95751/ft1_filtered_4FGL_J0035.2+1514_daily_bin1762.fits scfile=/scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits outfile=/scratch/kocevski/95751/cmap_HighResolution_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.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=8.8123 yref=15.2405 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95751/ft1_filtered_4FGL_J0035.2+1514_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95751/Model_4FGL_J0035.2+1514_daily_bin1762.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/95751/ft1_filtered_4FGL_J0035.2+1514_daily_bin1762.fits.....................!
real 72.39
user 70.25
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95751/ft1_filtered_4FGL_J0035.2+1514_daily_bin1762.fits', '/scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits', expMap='/scratch/kocevski/95751/expmap_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.fits', expCube='/scratch/kocevski/95751/ltcube_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95751/Model_4FGL_J0035.2+1514_daily_bin1762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0035.2+1514'

4FGL J0035.2+1514
   Spectrum: LogParabola
144         norm:  3.038e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
145        alpha:  1.718e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
146         beta:  8.107e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
147           Eb:  1.944e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/95751/ft1_filtered_4FGL_J0035.2+1514_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/95751/ft2_4FGL_J0035.2+1514_daily_bin1762.fits
Exposure map: /scratch/kocevski/95751/expmap_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.fits
Exposure cube: /scratch/kocevski/95751/ltcube_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95751/Model_4FGL_J0035.2+1514_daily_bin1762.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) = 6389.83989384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13652E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    12.973       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27059E-03   1.0000          .0000       .10000E+07
     4 'norm      '    1.3534       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13141E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.450       1.0000          .0000       .10000E+07
     7 'norm      '    8.1614       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.968       1.0000          .0000       .10000E+07
     9 'Prefactor '    31.166       1.0000          .0000       .10000E+07
    10 'norm      '    .31969E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .43518E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .19597E-01   1.0000          .0000       .10000E+07
    13 'norm      '    6.7513       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17007E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .37143       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.202       1.0000          .0000       .10000E+07
    17 'Prefactor '    .25415E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1246       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6389.762     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1355 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.5366       -.11747E-06** at limit **
   2  Prefactor     12.939        8.4699       -.12828E-06    .22250E-01
   3  Prefactor     .92426E-07    1.1892        .13328E-06** at limit **
   4  norm          1.3522        3.0856        .34267E-06    .20118E-02
   5  Prefactor     .14988E-08    15.218        .56880E-06** at limit **
   6  Prefactor     19.424        5.4250        .38363E-07    .83647E-02
   7  norm          8.2022        1.0530        .39149E-08    .25552E-02
   8  Prefactor     15.359        2.7874       -.40853E-08   -.38538E-01
   9  Prefactor     30.581        3.6347        .11426E-07    .31564E-01
  10  norm          .49127E-07    2.0517       -.42145E-07** at limit **
  11  Prefactor     .37748E-08    2.2629       -.98551E-07** at limit **
  12  Prefactor     .49960E-09    13.998       -.17207E-05** at limit **
  13  norm          6.7446        1.1550        .59919E-09    .32160E-01
  14  Prefactor     .67168E-08    16.344        .34562E-06** at limit **
  15  norm          .37058        .52435        .33362E-07    .18473E-02
  16  Prefactor     11.168        2.6429       -.22986E-08    .13423    
  17  Prefactor     .20262E-07    2.1671        .28853E-06** at limit **
  18  Normalizat    1.1255        .21970        .73215E-05    .10144E-03
  19  Prefactor     .88818        .15744       -.33734E-05    .61202E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 12.939
  Prefactor  = 9.24261e-08
  norm       = 1.35217
  Prefactor  = 1.4988e-09
  Prefactor  = 19.4237
  norm       = 8.20224
  Prefactor  = 15.3593
  Prefactor  = 30.5811
  norm       = 4.91274e-08
  Prefactor  = 3.77476e-09
  Prefactor  = 4.996e-10
  norm       = 6.74465
  Prefactor  = 6.71685e-09
  norm       = 0.370582
  Prefactor  = 11.1677
  Prefactor  = 2.02616e-08
  Normalizat = 1.12551
  Prefactor  = 0.88818
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.762     FROM HESSE     STATUS=OK           314 CALLS     1669 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.5412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.939        8.7740        .27785E-03   -1.5636    
   3  Prefactor     .92426E-07    2.6625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3522        3.1287        .93962E-03   -1.5685    
   5  Prefactor     .14988E-08    15.289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.424        5.5131        .22682E-03   -1.5620    
   7  norm          8.2022        9.9314        .35070E-03   -1.5651    
   8  Prefactor     15.359        21.246        .25862E-03   -1.5630    
   9  Prefactor     30.581        19.973        .17915E-03   -1.5597    
  10  norm          .49127E-07    2.4560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .37748E-08    2.2984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .49960E-09    6.8496        .71621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.7446        13.613        .38593E-03   -1.5656    
  14  Prefactor     .67168E-08    17.094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .37058        .58170        .15791E-02   -1.5696    
  16  Prefactor     11.168        10.028        .29908E-03   -1.5641    
  17  Prefactor     .20262E-07    2.8800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1255        .19149        .61446E-01   -.88937    
  19  Prefactor     .88818        .13567        .44854E-01   -.96555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19758e-07
Minuit parameter uncertainties:
  1  4.53577e-06
  2  8.77404
  3  0.000992249
  4  3.12869
  5  0.000303388
  6  5.51308
  7  9.9314
  8  21.2466
  9  19.973
  10  0.00069489
  11  0.000186663
  12  0.000118901
  13  13.6134
  14  0.000676623
  15  0.581705
  16  10.0278
  17  0.000482958
  18  0.191608
  19  0.135722
Done.

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

Extracting fit parameters...

4FGL J0035.2+1514
   Spectrum: LogParabola
144         norm:  8.202e+00  9.931e+00  0.000e+00  1.000e+06 ( 1.000e-13)
145        alpha:  1.718e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
146         beta:  8.107e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
147           Eb:  1.944e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  8.882e-01  1.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  1.126e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 8.812 15.241
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.35e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 2.34e-05

TS (Fixed Index): 1.06
Ra Dec: 8.812 15.241
Photon Flux Upper Limit: 5.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95751/likelihoodResults_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.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) = 6389.75940373
delta logL = 0.0024476141316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6389.75925432
delta logL = 0.00259702201947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0421       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7871       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6389.759     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      228 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0421        353.48        .35331E-03    .46922E-02
   2  alpha         1.7872        2.8704        .43496        .26583E-04
   3  Normalizat    1.1248        .10149        .61463E-01    .11015E-04
   4  Prefactor     .88819        .51217E-01    .44854E-01    .89705E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.04214
  alpha      = 1.78716
  Normalizat = 1.12477
  Prefactor  = 0.888194
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.759     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0421        10.342        .14133E-04   -1.5651    
   2  alpha         1.7872        .97329        .20055E-01   -.28915    
   3  Normalizat    1.1248        .21772        .27185E-03   -.88960    
   4  Prefactor     .88819        .15762        .21717E-03   -.96555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07094e-10
Minuit parameter uncertainties:
  1  10.3423
  2  1.00226
  3  0.217898
  4  0.157702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95751': 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) = 6389.75925427
delta logL = 0.00259707559235

Extracting fit parameters...

4FGL J0035.2+1514
   Spectrum: LogParabola
144         norm:  8.042e+00  1.034e+01  0.000e+00  1.000e+06 ( 1.000e-13)
145        alpha:  1.787e+00  1.002e+00  0.000e+00  5.000e+00 ( 1.000e+00)
146         beta:  8.107e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
147           Eb:  1.944e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  8.882e-01  1.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  1.125e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 8.812 15.241
Photon Index (Free Index): 1.79 +/- 1.00
Photon Flux (Free Index): 1.47e-08 +/- 2.39e-08
Energy Flux (Free Index): 1.77e-05 +/- 3.19e-05

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/95751/cmap_HighResolution_696038401_696297601_4FGL_J0035.2+1514_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-05', comment='SUCCESS', photon_flux='1.35e-08', energy_flux2='1.77e-05', photon_flux_error='1.64e-08', dlogl='2.60e-03', energy_flux='1.93e-05', photon_flux2='1.47e-08', job_status='DONE', time_completed='2023-01-25 00:19:00.254003', photon_index_error2='1.00', photon_index2='1.79', ts='1.06', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='5.76e-08', energy_flux_error2='3.19e-05', EG='1.13', time_epoch_completed='1674634740.25', return_code='0', job_id='95751', GAL2='0.89', EG2='1.12', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='2.39e-08', ts2='1.06', photon_index='1.72' WHERE bin_id='1762' AND source_name='4FGL J0035.2+1514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 00:19:00 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 95751: <4FGL_J0035.2+1514_daily_bin1762> in cluster <slac> Done

Job <4FGL_J0035.2+1514_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 00:04:50 2023
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:08:07 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:08:07 2023
Terminated at Wed Jan 25 00:19:01 2023
Results reported at Wed Jan 25 00:19:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0035.2+1514_daily_bin1762 8.8123 15.2405 696038401 696297601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0035.2+1514 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   538.53 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             341.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            851 sec.

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

