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 234 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_J0336.4+3224_weekly_bin717
RA = 54.1015, Dec = 32.4111
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='368787', job_status='RUN', time_executed='2022-05-03 01:11:03.812456', time_epoch_executed='1651565463.81' WHERE source_name='4FGL J0336.4+3224' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368787

Creating custom pfile directory:
/scratch/kocevski/368787/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/368787/ft1_4FGL_J0336.4+3224_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/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368787/ft1_4FGL_J0336.4+3224_weekly_bin717.fits outfile=/scratch/kocevski/368787/ft1_filteredMKT_4FGL_J0336.4+3224_weekly_bin717.fits ra=54.1015 dec=32.4111 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.38
user 6.09
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368787/ft2_4FGL_J0336.4+3224_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/368787/ft1_filteredMKT_4FGL_J0336.4+3224_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/368787/ft1_filtered_4FGL_J0336.4+3224_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.55
user 0.39
sys 0.15

Number of photons that the gtmktime cut: 590

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368787/ft1_filtered_4FGL_J0336.4+3224_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/368787/ltcube_672624001_673228801_4FGL_J0336.4+3224_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/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits
.....................!
real 33.81
user 33.38
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368787/ft1_filtered_4FGL_J0336.4+3224_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/368787/ltcube_672624001_673228801_4FGL_J0336.4+3224_weekly_bin717.fits outfile=/scratch/kocevski/368787/expmap_672624001_673228801_4FGL_J0336.4+3224_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/368787/ltcube_672624001_673228801_4FGL_J0336.4+3224_weekly_bin717.fits
.....................!
real 192.17
user 186.58
sys 5.18

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
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 156 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0336.4+3224 @ 54.1015 32.4111

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/368787/ft1_filtered_4FGL_J0336.4+3224_weekly_bin717.fits scfile=/scratch/kocevski/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits outfile=/scratch/kocevski/368787/cmap_672624001_673228801_4FGL_J0336.4+3224_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=54.1015 yref=32.4111 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.60
user 0.43
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368787/ft1_filtered_4FGL_J0336.4+3224_weekly_bin717.fits scfile=/scratch/kocevski/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits outfile=/scratch/kocevski/368787/cmap_HighResolution_672624001_673228801_4FGL_J0336.4+3224_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=54.1015 yref=32.4111 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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368787/ft1_filtered_4FGL_J0336.4+3224_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368787/Model_4FGL_J0336.4+3224_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
adding source HB 9
Working on...
/scratch/kocevski/368787/ft1_filtered_4FGL_J0336.4+3224_weekly_bin717.fits.....................!
real 142.19
user 140.24
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368787/ft1_filtered_4FGL_J0336.4+3224_weekly_bin717.fits', '/scratch/kocevski/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits', expMap='/scratch/kocevski/368787/expmap_672624001_673228801_4FGL_J0336.4+3224_weekly_bin717.fits', expCube='/scratch/kocevski/368787/ltcube_672624001_673228801_4FGL_J0336.4+3224_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368787/Model_4FGL_J0336.4+3224_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/368787/ft1_filtered_4FGL_J0336.4+3224_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/368787/ft2_4FGL_J0336.4+3224_weekly_bin717.fits
Exposure map: /scratch/kocevski/368787/expmap_672624001_673228801_4FGL_J0336.4+3224_weekly_bin717.fits
Exposure cube: /scratch/kocevski/368787/ltcube_672624001_673228801_4FGL_J0336.4+3224_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368787/Model_4FGL_J0336.4+3224_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) = 6174.75467367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6508       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.400       1.0000         .10000E-03   10000.    
     6 'norm      '    5.5985       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2278       1.0000         .10000E-03   10000.    
     8 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2294       1.0000         .10000E-03   10000.    
    11 'Prefactor '    173.50       1.0000         .10000E-03   10000.    
    12 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3712       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.1988       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .87624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+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=   6174.732     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     1527 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     155.55        9836.3        .64498E-02    .65394E-06
   2  norm          .10000E-03    297.90        .18142E-02** at limit **
   3  Prefactor     .10000E-03    96.494        .18142E-02** at limit **
   4  Prefactor     .10000E-03    122.16        .18142E-02** at limit **
   5  Prefactor     13.390        35.061        .10942E-03    .82079E-05
   6  norm          5.5972        2.1654        .69283E-04    .23285E-03
   7  Prefactor     2.2085        5.3800        .24348E-03   -.19910E-03
   8  norm          .10000E-03    7.6120        .18142E-02** at limit **
   9  norm          .10000E-03    29.888        .18142E-02** at limit **
  10  norm          4.2215        6.0390        .97509E-03   -.47838E-04
  11  Prefactor     173.59        138.79        .15317E-03    .18258E-04
  12  norm          .10000E-03    65.310        .18142E-02** at limit **
  13  norm          3.3769        4.4112        .16901E-03    .11906E-04
  14  Normalizat    1.1965        .48190        .63670E-03    .39907E-04
  15  Prefactor     .87635        .87007E-01    .13202E-03   -.98947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 155.554
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3897
  norm       = 5.59716
  Prefactor  = 2.20854
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.22154
  Prefactor  = 173.589
  norm       = 0.0001
  norm       = 3.37693
  Normalizat = 1.19652
  Prefactor  = 0.876354
 **********
 **   18 **HESSE 
 **********

 FCN=   6174.732     FROM HESSE     STATUS=OK           168 CALLS     1695 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     155.55        9838.4        .25799E-03   -1.3207    
   2  norm          .10000E-03    297.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    96.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    122.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.390        35.066        .43769E-05   -1.4976    
   6  norm          5.5972        2.1653        .13857E-04   -1.5235    
   7  Prefactor     2.2085        5.3701        .97390E-05   -1.5411    
   8  norm          .10000E-03    7.6151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    29.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2215        6.0252        .39003E-04   -1.5297    
  11  Prefactor     173.59        138.79        .30635E-04   -1.3065    
  12  norm          .10000E-03    65.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3769        4.4100        .67602E-05   -1.5340    
  14  Normalizat    1.1965        .48182        .25468E-04   -.86710    
  15  Prefactor     .87635        .87028E-01    .52807E-05   -.96972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41361e-10
Minuit parameter uncertainties:
  1  4518.55
  2  0.000633412
  3  3.89251e-05
  4  0.000161307
  5  35.1195
  6  2.16534
  7  5.37123
  8  9.92481e-06
  9  5.32461e-05
  10  6.02609
  11  139.052
  12  1.01669e-05
  13  4.41042
  14  0.483626
  15  0.0870421
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  4.222e+00  6.026e+00  1.000e-04  1.000e+04 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  8.764e-01  8.704e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.197e+00  4.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 4.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368787/likelihoodResults_672624001_673228801_4FGL_J0336.4+3224_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) = 6174.38130981
delta logL = 0.350804261245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6174.31007032
delta logL = 0.42204374899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58272       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9998       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6174.310     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      296 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58213        20.285        .11604E-01    .87565E-03
   2  alpha         5.0000        4.9976        .46271    ** at limit **
   3  Normalizat    1.0947        .23009        .14911        .31229E-04
   4  Prefactor     .89131        .37756E-01    .29649E-01    .41325E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.582131
  alpha      = 5
  Normalizat = 1.0947
  Prefactor  = 0.891308
 **********
 **   18 **HESSE 
 **********

 FCN=   6174.310     FROM HESSE     STATUS=OK            37 CALLS      333 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58213        .80436        .55504E-03   -1.5555    
   2  alpha         5.0000        4.0671        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0947        .48326        .66249E-03   -.89922    
   4  Prefactor     .89131        .85409E-01    .13102E-03   -.96446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25775e-09
Minuit parameter uncertainties:
  1  0.80438
  2  0.000449481
  3  0.485225
  4  0.085422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368787': 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) = 6174.31006425
delta logL = 0.422049815762

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  5.821e-01  8.044e-01  1.000e-04  1.000e+04 ( 1.000e-11)
288        alpha:  5.000e+00  4.495e-04  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  8.913e-01  8.542e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.095e+00  4.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 54.102 32.411
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.08e-07 +/- 2.86e-07
Energy Flux (Free Index): 3.04e-05 +/- 4.20e-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/368787/cmap_HighResolution_672624001_673228801_4FGL_J0336.4+3224_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-04', comment='SUCCESS', energy_flux2='3.04e-05', dlogl='4.22e-01', photon_flux2='2.08e-07', job_status='DONE', time_completed='2022-05-03 01:21:54.870557', photon_index_error2='0.00', photon_index2='5.00', ts='0.70', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.64e-07', energy_flux_error2='4.20e-05', EG='1.20', time_epoch_completed='1651566114.87', return_code='0', job_id='368787', GAL2='0.89', EG2='1.09', return_code2='0', photon_flux_error2='2.86e-07', ts2='1.66', photon_index='2.86' WHERE bin_id='717' AND source_name='4FGL J0336.4+3224' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:21:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 368787: <4FGL_J0336.4+3224_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0336.4+3224_weekly_bin717> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 01:05:22 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:07:01 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:07:01 2022
Terminated at Tue May  3 01:21:55 2022
Results reported at Tue May  3 01:21:55 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   651.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             239.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            993 sec.

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

