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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin1774
RA = 213.241, Dec = 50.301
tmin = 699148801, tmax = 699408001
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='683979', job_status='RUN', time_executed='2023-03-02 00:54:26.390544', time_epoch_executed='1677747266.39' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683979/ft1_4FGL_J1412.9+5018_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683979/ft1_4FGL_J1412.9+5018_daily_bin1774.fits outfile=/scratch/kocevski/683979/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1774.fits ra=213.241 dec=50.301 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.79
user 2.60
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.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/683979/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/683979/ft1_filtered_4FGL_J1412.9+5018_daily_bin1774.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 562

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/683979/ft1_filtered_4FGL_J1412.9+5018_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/683979/ltcube_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.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/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits
.....................!
real 12.37
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683979/ft1_filtered_4FGL_J1412.9+5018_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/683979/ltcube_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.fits outfile=/scratch/kocevski/683979/expmap_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.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/683979/ltcube_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.fits
.....................!
real 191.73
user 187.42
sys 3.99

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

Setting source of interest to:
4FGL J1412.9+5018 @ 213.241 50.301

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/683979/ft1_filtered_4FGL_J1412.9+5018_daily_bin1774.fits scfile=/scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits outfile=/scratch/kocevski/683979/cmap_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.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=213.241 yref=50.301 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683979/ft1_filtered_4FGL_J1412.9+5018_daily_bin1774.fits scfile=/scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits outfile=/scratch/kocevski/683979/cmap_HighResolution_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.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=213.241 yref=50.301 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/683979/ft1_filtered_4FGL_J1412.9+5018_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/683979/Model_4FGL_J1412.9+5018_daily_bin1774.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/683979/ft1_filtered_4FGL_J1412.9+5018_daily_bin1774.fits.....................!
real 50.25
user 49.01
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/683979/ft1_filtered_4FGL_J1412.9+5018_daily_bin1774.fits', '/scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits', expMap='/scratch/kocevski/683979/expmap_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.fits', expCube='/scratch/kocevski/683979/ltcube_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/683979/Model_4FGL_J1412.9+5018_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1412.9+5018'

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  5.555e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  2.665e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/683979/ft1_filtered_4FGL_J1412.9+5018_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/683979/ft2_4FGL_J1412.9+5018_daily_bin1774.fits
Exposure map: /scratch/kocevski/683979/expmap_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.fits
Exposure cube: /scratch/kocevski/683979/ltcube_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/683979/Model_4FGL_J1412.9+5018_daily_bin1774.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) = 6220.17319475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9914       1.0000          .0000       .10000E+07
     2 'Prefactor '    .39829E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.657       1.0000          .0000       .10000E+07
     4 'norm      '    6.4851       1.0000          .0000       .10000E+07
     5 'Prefactor '    17.561       1.0000          .0000       .10000E+07
     6 'norm      '    .44740       1.0000          .0000       .10000E+07
     7 'norm      '    2.2203       1.0000          .0000       .10000E+07
     8 'norm      '    25.276       1.0000          .0000       .10000E+07
     9 'Prefactor '    .52607       1.0000          .0000       .10000E+07
    10 'Prefactor '    .39670E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .34590E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.3528       1.0000          .0000       .10000E+07
    13 'Prefactor '    20.428       1.0000          .0000       .10000E+07
    14 'Prefactor '    .98040       1.0000          .0000       .10000E+07
    15 'Prefactor '    .12808E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    10.008       1.0000          .0000       .10000E+07
    17 'Prefactor '    .93761       1.0000          .0000       .10000E+07
    18 'Prefactor '    .36250E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.617       1.0000          .0000       .10000E+07
    20 'norm      '    5.7730       1.0000          .0000       .10000E+07
    21 'Prefactor '    .17059E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .77410E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    11.754       1.0000          .0000       .10000E+07
    24 'norm      '    5.0754       1.0000          .0000       .10000E+07
    25 'Normalizat'    .76317       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6220.056     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2220 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0208        4.7535       -.18534E-06    .20378E-03
   2  Prefactor     .55511E-10    61.129       -.33088E-06** at limit **
   3  Prefactor     13.369        3.3817       -.20430E-08   -.12866E-03
   4  norm          6.4797        5.6745       -.70753E-07    .19079E-03
   5  Prefactor     17.355        6.8505       -.61227E-07   -.68048E-02
   6  norm          .44675        1.0105       -.34793E-08   -.84597E-04
   7  norm          2.2199        2.4793       -.69319E-08   -.46836E-04
   8  norm          25.250        6.0491        .41123E-07    .84977E-02
   9  Prefactor     .19540E-07    290.48       -.14830E-05** at limit **
  10  Prefactor      .0000        20.413        .11607E-06** at limit **
  11  Prefactor      .0000        1.5223       -.22721E-07** at limit **
  12  Prefactor     2.3301        5.1978        .21667E-06   -.20025E-02
  13  Prefactor     20.387        12.185        .91379E-07    .15053E-01
  14  Prefactor     .98176        1.4243        .41196E-07   -.50298E-03
  15  Prefactor     .55511E-10    10.683        .13563E-06** at limit **
  16  Prefactor     10.047        15.221        .14749E-06    .97378E-02
  17  Prefactor     .52736E-08    180.74        .15323E-06** at limit **
  18  Prefactor      .0000        8.9739        .15849E-06** at limit **
  19  Prefactor     16.311        14.704       -.22965E-06    .11956E-01
  20  norm          5.7786        2.0311        .53186E-09   -.12606E-03
  21  Prefactor      .0000        8.3180        .40219E-07** at limit **
  22  Prefactor      .0000        2.0753        .89748E-08** at limit **
  23  Prefactor     11.608        7.6976       -.79321E-07    .33288E-03
  24  norm          5.0653        4.2838       -.38719E-07    .90092E-04
  25  Normalizat    .76487        .20012        .23054E-06   -.11422E-04
  26  Prefactor     1.3169        .23724        .51828E-06   -.11306E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.02081
  Prefactor  = 5.55112e-11
  Prefactor  = 13.369
  norm       = 6.47969
  Prefactor  = 17.3553
  norm       = 0.44675
  norm       = 2.21992
  norm       = 25.2497
  Prefactor  = 1.95399e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.33012
  Prefactor  = 20.3865
  Prefactor  = 0.981757
  Prefactor  = 5.55112e-11
  Prefactor  = 10.0469
  Prefactor  = 5.27356e-09
  Prefactor  = 0
  Prefactor  = 16.3112
  norm       = 5.77865
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 11.6078
  norm       = 5.06531
  Normalizat = 0.76487
  Prefactor  = 1.3169
 **********
 **   18 **HESSE 
 **********

 FCN=   6220.056     FROM HESSE     STATUS=OK           518 CALLS     2738 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0208        4.7958        .50458E-03   -1.5668    
   2  Prefactor     .55511E-10    61.399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.369        44.210        .27078E-03   -1.5635    
   4  norm          6.4797        5.7582        .39386E-03   -1.5657    
   5  Prefactor     17.355        48.082        .23873E-03   -1.5625    
   6  norm          .44675        1.1801        .27030E-02   -1.5695    
   7  norm          2.2199        2.4942        .68985E-03   -1.5678    
   8  norm          25.250        19.913        .19895E-03   -1.5607    
   9  Prefactor     .19540E-07    288.91        .76129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        20.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.5238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3301        34.953        .66797E-03   -1.5677    
  13  Prefactor     20.387        18.444        .22132E-03   -1.5618    
  14  Prefactor     .98176        1.4405        .43071E-03   -1.5688    
  15  Prefactor     .55511E-10    10.695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.047        17.729        .31650E-03   -1.5645    
  17  Prefactor     .52736E-08    180.83        .43194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        8.9784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.311        18.582        .24543E-03   -1.5627    
  20  norm          5.7786        2.0423        .41778E-03   -1.5660    
  21  Prefactor      .0000        8.2819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        2.0744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.608        7.7371        .29194E-03   -1.5640    
  24  norm          5.0653        4.2946        .44607E-03   -1.5663    
  25  Normalizat    .76487        .18072        .43128E-01   -1.0139    
  26  Prefactor     1.3169        .20064        .56777E-01   -.82806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76331e-08
Minuit parameter uncertainties:
  1  4.79579
  2  0.000102231
  3  44.2111
  4  5.75816
  5  48.0828
  6  1.18007
  7  2.49422
  8  19.9129
  9  0.00474885
  10  2.61454e-05
  11  6.70162e-07
  12  18.0495
  13  18.4442
  14  1.44052
  15  4.33948e-05
  16  17.7296
  17  0.00195438
  18  2.24513e-05
  19  18.5816
  20  2.04232
  21  2.67365e-05
  22  2.03896e-07
  23  7.73707
  24  4.29464
  25  0.180865
  26  0.200759
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  0.000e+00  2.615e-05  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  2.665e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.317e+00  2.008e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  7.649e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 213.241 50.301
Photon Flux Upper Limit: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/683979/likelihoodResults_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.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) = 6220.05606926
delta logL = -7.0305834015e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6220.05599959
delta logL = -6.33359377389e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6220.056     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      239 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45075E-07    19.444        .11177E-04** at limit **
   2  Index         2.9796        6.2153       -.47855E-03    .16154E-08
   3  Normalizat    .76487        .19562        .13900E-04   -.18974E-03
   4  Prefactor     1.3169        .23631       -.18858E-04   -.41641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.50751e-08
  Index      = 2.97964
  Normalizat = 0.764872
  Prefactor  = 1.31689
 **********
 **   18 **HESSE 
 **********

 FCN=   6220.056     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      276 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45075E-07    3.1301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9796        5.0295        .50000       -.41596    
   3  Normalizat    .76487        .16321E-02    .43150E-01   -1.0139    
   4  Prefactor     1.3169        .19766E-02    .56777E-01   -.82806    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.0032e-10
Minuit parameter uncertainties:
  1  0.000751259
  2  5517.45
  3  0.00163206
  4  0.00197664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683979': 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): 102
logL (Free Index) = 6220.05599896
delta logL = -1.31785782287e-09

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  4.508e-08  7.513e-04  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  2.980e+00  5.517e+03  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.317e+00  1.977e-03  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  7.649e-01  1.632e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 213.241 50.301

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/683979/cmap_HighResolution_699148801_699408001_4FGL_J1412.9+5018_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2023-03-02 01:05:59.962083', job_id='683979', GAL2='1.32', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1677747959.96', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='-1.32e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1774' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:05:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 683979: <4FGL_J1412.9+5018_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:50:18 2023
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:50:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:50:19 2023
Terminated at Thu Mar  2 01:06:00 2023
Results reported at Thu Mar  2 01:06:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin1774 213.241 50.301 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1412.9+5018 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   696.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            942 sec.

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

