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


Performing analysis on: 4FGL_J0318.7+2135_weekly_bin717
RA = 49.6946, Dec = 21.5968
tmin = 672624001, tmax = 673228801
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='368755', job_status='RUN', time_executed='2022-05-03 01:09:47.513762', time_epoch_executed='1651565387.51' WHERE source_name='4FGL J0318.7+2135' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368755

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368755/ft1_4FGL_J0318.7+2135_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368755/ft1_4FGL_J0318.7+2135_weekly_bin717.fits outfile=/scratch/kocevski/368755/ft1_filteredMKT_4FGL_J0318.7+2135_weekly_bin717.fits ra=49.6946 dec=21.5968 rad=12.0 tmin=672624001.0 tmax=673228801.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 6.43
user 6.13
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.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/368755/ft1_filteredMKT_4FGL_J0318.7+2135_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/368755/ft1_filtered_4FGL_J0318.7+2135_weekly_bin717.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.58
user 0.41
sys 0.16

Number of photons that the gtmktime cut: 163

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368755/ft1_filtered_4FGL_J0318.7+2135_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/368755/ltcube_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.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/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits
.....................!
real 42.92
user 42.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368755/ft1_filtered_4FGL_J0318.7+2135_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/368755/ltcube_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.fits outfile=/scratch/kocevski/368755/expmap_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.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/368755/ltcube_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.fits
.....................!
real 190.98
user 185.99
sys 4.57

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

Setting source of interest to:
4FGL J0318.7+2135 @ 49.6946 21.5968

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/368755/ft1_filtered_4FGL_J0318.7+2135_weekly_bin717.fits scfile=/scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits outfile=/scratch/kocevski/368755/cmap_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.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=49.6946 yref=21.5968 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.63
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368755/ft1_filtered_4FGL_J0318.7+2135_weekly_bin717.fits scfile=/scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits outfile=/scratch/kocevski/368755/cmap_HighResolution_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.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=49.6946 yref=21.5968 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.63
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368755/ft1_filtered_4FGL_J0318.7+2135_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368755/Model_4FGL_J0318.7+2135_weekly_bin717.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/368755/ft1_filtered_4FGL_J0318.7+2135_weekly_bin717.fits.....................!
real 42.68
user 41.33
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368755/ft1_filtered_4FGL_J0318.7+2135_weekly_bin717.fits', '/scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits', expMap='/scratch/kocevski/368755/expmap_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.fits', expCube='/scratch/kocevski/368755/ltcube_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368755/Model_4FGL_J0318.7+2135_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0318.7+2135'

4FGL J0318.7+2135
   Spectrum: PowerLaw
312    Prefactor:  1.601e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
313        Index:  2.063e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  2.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/368755/ft1_filtered_4FGL_J0318.7+2135_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/368755/ft2_4FGL_J0318.7+2135_weekly_bin717.fits
Exposure map: /scratch/kocevski/368755/expmap_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.fits
Exposure cube: /scratch/kocevski/368755/ltcube_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368755/Model_4FGL_J0318.7+2135_weekly_bin717.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) = 1863.53508231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20523E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1982.8       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12914E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    867.05       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4088       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .20162E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10648E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0479       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11312E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    87.068       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .14705       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84234       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+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=   1863.457     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     2808 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    246.80        .18142E-02** at limit **
   2  norm          .10000E-03    8.6977        .12436E-02** at limit **
   3  Prefactor     .10000E-03    201.13        .18142E-02** at limit **
   4  norm          .10000E-03    12.105        .14672E-02** at limit **
   5  Prefactor     .10008E-03    6577.7        .18142E-02** at limit **
   6  Prefactor     .10009E-03    7586.5        .18142E-02** at limit **
   7  Prefactor     1982.9        1054.0        .50163E-04    .12737E-04
   8  Prefactor     .10003E-03    9108.4        .20585E-02** at limit **
   9  norm          867.16        827.58        .71073E-04    .93736E-05
  10  norm          .10000E-03    21.892        .18142E-02** at limit **
  11  Prefactor     .10003E-03    1014.3        .18142E-02** at limit **
  12  Prefactor     4.4082        37.108        .19180E-03   -.56073E-04
  13  Prefactor     .10000E-03    35.191        .18142E-02** at limit **
  14  norm          .10004E-03    21.322        .25861E-02** at limit **
  15  norm          .10002E-03    148.63        .36285E-03** at limit **
  16  norm          2.0463        5.2193        .14602E-03    .72835E-04
  17  norm          .10000E-03    13.226        .15296E-02** at limit **
  18  norm          .10000E-03    372.49        .18142E-02** at limit **
  19  Prefactor     87.065        57.353        .43056E-04    .28649E-04
  20  Normalizat    .14659        .88988        .10478E-01    .34998E-04
  21  Prefactor     .84244        .17535        .12126E-03    .52615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 0.000100087
  Prefactor  = 1982.92
  Prefactor  = 0.000100026
  norm       = 867.16
  norm       = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 4.40818
  Prefactor  = 0.0001
  norm       = 0.000100035
  norm       = 0.000100016
  norm       = 2.04627
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 87.0651
  Normalizat = 0.146592
  Prefactor  = 0.842438
 **********
 **   18 **HESSE 
 **********

 FCN=   1863.457     FROM HESSE     STATUS=OK           297 CALLS     3105 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    246.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.6977        .24872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    201.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    12.105        .29344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10008E-03    6577.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10009E-03    7586.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1982.9        1049.3        .10033E-04   -.64778    
   8  Prefactor     .10003E-03    9108.4        .41169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          867.16        827.53        .14215E-04   -.97298    
  10  norm          .10000E-03    21.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    1014.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4082        37.048        .76720E-05   -1.5288    
  13  Prefactor     .10000E-03    35.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10004E-03    21.403        .51722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10002E-03    148.64        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0463        5.2161        .58408E-05   -1.5422    
  17  norm          .10000E-03    13.228        .30591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    372.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     87.065        57.086        .86113E-05   -1.3839    
  20  Normalizat    .14659        .78084        .41910E-03   -1.3364    
  21  Prefactor     .84244        .16509        .24252E-04   -.98182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24037e-09
Minuit parameter uncertainties:
  1  0.000758831
  2  8.4635e-06
  3  0.000628769
  4  3.68051e-06
  5  0.0340281
  6  0.0474386
  7  1061.79
  8  0.0363795
  9  839.946
  10  1.19978e-05
  11  0.0109503
  12  25.58
  13  1.5947e-05
  14  0.00173186
  15  0.00306318
  16  5.21728
  17  2.17649e-06
  18  0.000414842
  19  57.1224
  20  0.666884
  21  0.165186
Done.

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

Extracting fit parameters...

4FGL J0318.7+2135
   Spectrum: PowerLaw
312    Prefactor:  4.408e+00  2.558e+01  1.000e-04  1.000e+04 ( 1.000e-13)
313        Index:  2.063e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  2.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  8.424e-01  1.652e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  1.466e-01  6.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 49.695 21.597
Photon Flux Upper Limit: 5.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368755/likelihoodResults_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.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) = 1863.4517086
delta logL = 0.00548998678073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1863.44858773
delta logL = 0.00861085243378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7717       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7475       1.0000          .0000       10.000    
     3 'Normalizat'    .15065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84198       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1863.449     FROM MIGRAD    STATUS=FAILED        87 CALLS      282 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7808        43.023        .15419E-03   -.95738E-03
   2  Index         1.7509        1.9578        .16668E-01   -.29266E-03
   3  Normalizat    .15252        .75595        .10340E-01    .88625E-04
   4  Prefactor     .84107        .17204        .12134E-03    .96798E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1863.449     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      354 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7808        43.023        .71510E-03   -1.5187    
   2  Index         1.7509        1.9578        .30577E-02   -.70736    
   3  Normalizat    .15252        .75595        .23807E-02   -1.3313    
   4  Prefactor     .84107        .17204        .28093E-03   -.98232    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1863.449     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      385 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7836        40.710        .30838E-04   -.34967E-04
   2  Index         1.7511        1.9092        .66671E-03    .41905E-05
   3  Normalizat    .15252        .67784        .41359E-03   -.75247E-05
   4  Prefactor     .84106        .16270        .24269E-04   -.76263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.7836
  Index      = 1.75111
  Normalizat = 0.152515
  Prefactor  = 0.841063
 **********
 **   18 **HESSE 
 **********

 FCN=   1863.449     FROM HESSE     STATUS=OK            23 CALLS      408 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7836        40.630        .61676E-05   -1.5187    
   2  Index         1.7511        1.9076        .26668E-04   -.70729    
   3  Normalizat    .15252        .67529        .16544E-04   -1.3313    
   4  Prefactor     .84106        .16238        .48538E-05   -.98232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2836e-11
Minuit parameter uncertainties:
  1  33.2369
  2  1.99845
  3  0.632471
  4  0.162475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368755': 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) = 1863.44856234
delta logL = 0.00863625100919

Extracting fit parameters...

4FGL J0318.7+2135
   Spectrum: PowerLaw
312    Prefactor:  6.784e+00  3.324e+01  1.000e-04  1.000e+04 ( 1.000e-13)
313        Index:  1.751e+00  1.998e+00  0.000e+00  1.000e+01 (-1.000e+00)
314        Scale:  2.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  8.411e-01  1.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  1.525e-01  6.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 49.695 21.597

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/368755/cmap_HighResolution_672624001_673228801_4FGL_J0318.7+2135_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-02', job_status='DONE', photon_flux_upper_limit='5.23e-07', time_completed='2022-05-03 01:18:01.519043', job_id='368755', GAL2='0.84', fit_tolerance='1e-08', EG2='0.15', EG='0.15', time_epoch_completed='1651565881.52', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.64e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='717' AND source_name='4FGL J0318.7+2135' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:18:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 368755: <4FGL_J0318.7+2135_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0318.7+2135_weekly_bin717> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 01:05:19 2022
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:06:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:06:10 2022
Terminated at Tue May  3 01:18:02 2022
Results reported at Tue May  3 01:18:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0318.7+2135_weekly_bin717 49.6946 21.5968 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0318.7+2135 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   495.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             233.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   711 sec.
    Turnaround time :                            763 sec.

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

