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


Performing analysis on: 4FGL_J0127.2+0324_weekly_bin763
RA = 21.8237, Dec = 3.413
tmin = 700444801, tmax = 701049601
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 sourcDone.


Performing analysis on: 4FGL_J0127.2+0324_weekly_bin763
RA = 21.8237, Dec = 3.413
tmin = 700444801, tmax = 701049601
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='404543', job_status='RUN', time_executed='2023-03-21 00:09:38.876634', time_epoch_executed='1679382578.88' WHERE source_name='4FGL J0127.2+0324' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404543

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404543/ft1_4FGL_J0127.2+0324_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404543/ft1_4FGL_J0127.2+0324_weekly_bin763.fits outfile=/scratch/kocevski/404543/ft1_filteredMKT_4FGL_J0127.2+0324_weekly_bin763.fits ra=21.8237 dec=3.413 rad=12.0 tmin=700444801.0 tmax=701049601.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 10.09
user 9.26
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.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/404543/ft1_filteredMKT_4FGL_J0127.2+0324_weekly_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/404543/ft1_filtered_4FGL_J0127.2+0324_weekly_bin763.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 3.37
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 981

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404543/ft1_filtered_4FGL_J0127.2+0324_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/404543/ltcube_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.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/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits
.....................!
real 28.97
user 26.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404543/ft1_filtered_4FGL_J0127.2+0324_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/404543/ltcube_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.fits outfile=/scratch/kocevski/404543/expmap_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.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/404543/ltcube_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.fits
.....................!
real 197.91
user 186.69
sys 5.64

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

Setting source of interest to:
4FGL J0127.2+0324 @ 21.8237 3.413

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/404543/ft1_filtered_4FGL_J0127.2+0324_weekly_bin763.fits scfile=/scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits outfile=/scratch/kocevski/404543/cmap_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.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=21.8237 yref=3.413 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.74
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404543/ft1_filtered_4FGL_J0127.2+0324_weekly_bin763.fits scfile=/scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits outfile=/scratch/kocevski/404543/cmap_HighResolution_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.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=21.8237 yref=3.413 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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404543/ft1_filtered_4FGL_J0127.2+0324_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404543/Model_4FGL_J0127.2+0324_weekly_bin763.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/404543/ft1_filtered_4FGL_J0127.2+0324_weekly_bin763.fits.....................!
real 108.41
user 105.79
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404543/ft1_filtered_4FGL_J0127.2+0324_weekly_bin763.fits', '/scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits', expMap='/scratch/kocevski/404543/expmap_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.fits', expCube='/scratch/kocevski/404543/ltcube_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404543/Model_4FGL_J0127.2+0324_weekly_bin763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0127.2+0324'

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  8.781e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/404543/ft1_filtered_4FGL_J0127.2+0324_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/404543/ft2_4FGL_J0127.2+0324_weekly_bin763.fits
Exposure map: /scratch/kocevski/404543/expmap_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.fits
Exposure cube: /scratch/kocevski/404543/ltcube_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404543/Model_4FGL_J0127.2+0324_weekly_bin763.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) = 10872.4493149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1598       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.778       1.0000          .0000       .10000E+07
     3 'norm      '    .40258E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .79252E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    151.91       1.0000          .0000       .10000E+07
     6 'norm      '    20.263       1.0000          .0000       .10000E+07
     7 'Prefactor '    .37543       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.2747       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2481       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48369E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22204E-08   1.0000          .0000       .10000E+07
    12 'norm      '    .34664E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .61118E-07   1.0000          .0000       .10000E+07
    14 'Normalizat'    .59043       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.4384       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10872.38     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     1175 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1600        1.8702       -.80572E-07   -.13629E-02
   2  Prefactor     10.785        1.0423        .12724E-07   -.43406E-01
   3  norm          .55511E-10    5.2548       -.37906E-06** at limit **
   4  Prefactor     .29976E-07    93.527        .37661E-05** at limit **
   5  Prefactor     151.91        1.0075        .18637E-08    .45060E-01
   6  norm          20.263        2.5064       -.12215E-06   -.44509E-02
   7  Prefactor     .39323        .72583       -.62133E-07    .31840E-01
   8  Prefactor     4.2797        6.8545       -.82579E-06    .16314E-03
   9  Prefactor     3.2493        7.3142       -.16696E-05    .19178E-02
  10  Prefactor     .18319E-08    11.346       -.12143E-08** at limit **
  11  Prefactor      .0000        1.2568       -.17090E-06** at limit **
  12  norm           .0000        6.9872        .54233E-06** at limit **
  13  Prefactor     .55511E-10    3.2673        .25112E-06** at limit **
  14  Normalizat    .59036        .17765        .15946E-05   -.33067E-04
  15  Prefactor     1.4383        .14670        .39420E-05   -.25039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15999
  Prefactor  = 10.785
  norm       = 5.55112e-11
  Prefactor  = 2.9976e-08
  Prefactor  = 151.906
  norm       = 20.2629
  Prefactor  = 0.393226
  Prefactor  = 4.27968
  Prefactor  = 3.24927
  Prefactor  = 1.83187e-09
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Normalizat = 0.59036
  Prefactor  = 1.43831
 **********
 **   18 **HESSE 
 **********

 FCN=   10872.38     FROM HESSE     STATUS=OK           214 CALLS     1389 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1600        1.8721        .56993E-03   -1.5672    
   2  Prefactor     10.785        24.931        .30493E-03   -1.5642    
   3  norm          .55511E-10    5.2689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .29976E-07    93.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     151.91        84.036        .81141E-04   -1.5461    
   6  norm          20.263        2.6543        .22222E-03   -1.5618    
   7  Prefactor     .39323        5.9997        .92390E-02   -1.5695    
   8  Prefactor     4.2797        6.8847        .48706E-03   -1.5667    
   9  Prefactor     3.2493        7.3494        .56172E-03   -1.5672    
  10  Prefactor     .18319E-08    11.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.2554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        6.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    3.2563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .59036        .15834        .85321E-01   -1.0839    
  15  Prefactor     1.4383        .12899        .47697E-01   -.79282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimatDone.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.832e-09  2.874e-04  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  1.967e+00  0.000e+00  0.000e+00  1.000Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.832e-09  2.874e-04  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.438e+00  1.290e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  5.904e-01  1.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.824 3.413
Photon Flux Upper Limit: 3.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404543/likelihoodResults_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.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) = 10872.4254926
delta logL = -0.0417956012861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 10872.3837063
delta logL = -9.25746644498e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     2 'Index     '    8.3108       1.0000          .0000       10.000    
     3 'Normalizat'    .59084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4382       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10872.38     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .48E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.297        .42118E-03** at limit **
   2  Index         1.5689        1.0035        .14547E-07     .0000    
   3  Normalizat    .59036        .92751       -.49862E-06   -.28306E-05
   4  Prefactor     1.4383        1.0556        .15106E-05   -.78085E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.56892
  Normalizat = 0.59036
  Prefactor  = 1.43831
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10872.38     FROM HESSE     STATUS=FAILED         9 CALLS      284 TOTAL
                     EDM=   .48E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.297        .42118E-03   -441.39    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .23005        1.4721        .14547E-07   -.21252E+07
   3  Normalizat    .59036        .92751       -.49862E-06    42.898    
   4  Prefactor     1.4383        1.0556        .15106E-05    16.501    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.80121e-14
Minuit parameter uncertainties:
  1  4.07854e-06
  2  1.0167
  3  0.953767
  4  1.0722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404543': 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): 101
logL (Free Index) = 10872.383697
delta logL = 8.0035533756e-11

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  0.000e+00  4.079e-06  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  1.569e+00  1.017e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.438e+00  1.072e+00  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  5.904e-01  9.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.824 3.413

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/404543/cmap_HighResolution_700444801_701049601_4FGL_J0127.2+0324_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-03', job_status='DONE', photon_flux_upper_limit='3.16e-08', time_completed='2023-03-21 00:22:01.826710', job_id='404543', GAL2='1.44', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1679383321.83', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='8.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='763' AND source_name='4FGL J0127.2+0324' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 00:22:01 PDT 2023

 <slac> at Tue Mar 21 00:08:28 2023
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 00:08:36 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 00:08:36 2023
Terminated at Tue Mar 21 00:21:52 2023
Results reported at Tue Mar 21 00:21:52 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_weekly_bin763 21.8237 3.413 700444801 701049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0127.2+0324 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             321.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            804 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 404543: <4FGL_J0127.2+0324_weekly_bin763> in cluster <slac> Done

Job <4FGL_J0127.2+0324_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 00:08:28 2023
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 00:08:36 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 00:08:36 2023
Terminated at Tue Mar 21 00:22:02 2023
Results reported at Tue Mar 21 00:22:02 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_weekly_bin763 21.8237 3.413 700444801 701049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0127.2+0324 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            814 sec.

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

