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


Performing analysis on: 4FGL_J1412.9+5018_weekly_bin715
RA = 213.241, Dec = 50.301
tmin = 671414401, tmax = 672019201
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='934911', job_status='RUN', time_executed='2022-04-19 02:31:40.503586', time_epoch_executed='1650360700.5' WHERE source_name='4FGL J1412.9+5018' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934911

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934911/ft1_4FGL_J1412.9+5018_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934911/ft2_4FGL_J1412.9+5018_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934911/ft1_4FGL_J1412.9+5018_weekly_bin715.fits outfile=/scratch/kocevski/934911/ft1_filteredMKT_4FGL_J1412.9+5018_weekly_bin715.fits ra=213.241 dec=50.301 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.65
user 7.28
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934911/ft2_4FGL_J1412.9+5018_weekly_bin715.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/934911/ft1_filteredMKT_4FGL_J1412.9+5018_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934911/ft1_filtered_4FGL_J1412.9+5018_weekly_bin715.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.56
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 1273

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934911/ft1_filtered_4FGL_J1412.9+5018_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934911/ft2_4FGL_J1412.9+5018_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934911/ltcube_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.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/934911/ft2_4FGL_J1412.9+5018_weekly_bin715.fits
.....................!
real 27.67
user 27.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934911/ft1_filtered_4FGL_J1412.9+5018_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934911/ft2_4FGL_J1412.9+5018_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934911/ltcube_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.fits outfile=/scratch/kocevski/934911/expmap_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.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/934911/ltcube_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.fits
.....................!
real 191.59
user 185.78
sys 5.43

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/934911/ft1_filtered_4FGL_J1412.9+5018_weekly_bin715.fits scfile=/scratch/kocevski/934911/ft2_4FGL_J1412.9+5018_weekly_bin715.fits outfile=/scratch/kocevski/934911/cmap_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.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.60
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934911/ft1_filtered_4FGL_J1412.9+5018_weekly_bin715.fits scfile=/scratch/kocevski/934911/ft2_4FGL_J1412.9+5018_weekly_bin715.fits outfile=/scratch/kocevski/934911/cmap_HighResolution_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.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.61
user 0.44
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934911/ft1_filtered_4FGL_J1412.9+5018_weekly_bin715.fits', '/scratch/kocevski/934911/ft2_4FGL_J1412.9+5018_weekly_bin715.fits', expMap='/scratch/kocevski/934911/expmap_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.fits', expCube='/scratch/kocevski/934911/ltcube_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934911/Model_4FGL_J1412.9+5018_weekly_bin715.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  1.000e-04  1.000e+04 ( 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/934911/ft1_filtered_4FGL_J1412.9+5018_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934911/ft2_4FGL_J1412.9+5018_weekly_bin715.fits
Exposure map: /scratch/kocevski/934911/expmap_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934911/ltcube_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934911/Model_4FGL_J1412.9+5018_weekly_bin715.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) = 13851.5365455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0732       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.183       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.652       1.0000         .10000E-03   10000.    
     8 'norm      '    .35839       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .34980E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .81494E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    178.28       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.398       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8384       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9974       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.409       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.712       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.794       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.954       1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.484       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.1726       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.1621       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.1667       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.5259       1.0000         .10000E-03   10000.    
    32 'Prefactor '    11.126       1.0000         .10000E-03   10000.    
    33 'norm      '    1.7007       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .83838       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .97897       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13851.49     FROM MIGRAD    STATUS=CONVERGED    954 CALLS     5228 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .66568        .12555E-06** at limit **
   2  Prefactor     24.102        21.327        .27841E-06   -.52716E-04
   3  Prefactor     .10000E-03    4.8299        .16345E-06** at limit **
   4  Prefactor     .10000E-03    32.329        .13417E-05** at limit **
   5  norm          5.0724        2.7105        .21105E-06   -.24470E-03
   6  Prefactor     13.185        16.947        .14459E-06   -.26007E-04
   7  Prefactor     43.660        27.879        .45264E-06   -.37746E-05
   8  norm          .35816        .55435        .63545E-06    .16387E-02
   9  norm          .10000E-03    20.323        .14544E-06** at limit **
  10  norm          .10000E-03    .87804        .18495E-06** at limit **
  11  norm          .10000E-03    3.4680        .37639E-06** at limit **
  12  Prefactor     178.00        265.31       -.30831E-05   -.94520E-04
  13  Prefactor     31.399        23.495        .31337E-07   -.24006E-04
  14  Prefactor     .10000E-03    4.1377       -.42042E-07** at limit **
  15  Prefactor     .10000E-03    6.5084       -.16798E-07** at limit **
  16  Prefactor     .10000E-03    .67733        .22447E-07** at limit **
  17  Prefactor     .10000E-03    6.3504        .12592E-07** at limit **
  18  Prefactor     3.8384        20.344        .12534E-05   -.22894E-04
  19  Prefactor     1.9978        1.6306        .10065E-06   -.20243E-03
  20  Prefactor     40.414        18.544       -.17723E-06   -.68417E-04
  21  Prefactor     .10000E-03    12.989       -.15523E-06** at limit **
  22  Prefactor     16.707        16.049       -.97250E-07   -.75242E-04
  23  Prefactor     .10000E-03    7.6203        .12977E-07** at limit **
  24  Prefactor     40.792        18.275        .28895E-06   -.63534E-04
  25  Prefactor     11.953        11.907       -.37928E-07   -.12436E-04
  26  Prefactor     37.483        26.103        .86172E-07   -.12221E-04
  27  Prefactor     9.1720        9.0405        .25563E-05   -.18346E-03
  28  Prefactor     .10000E-03    3.7393       -.12792E-06** at limit **
  29  norm          1.1620        .67617       -.37170E-07   -.17336E-03
  30  Prefactor     1.1673        3.5315        .15287E-05   -.15830E-03
  31  Prefactor     6.5253        3.7898        .14645E-06   -.15842E-03
  32  Prefactor     11.124        5.1701        .10060E-05   -.49040E-03
  33  norm          1.7006        1.8201        .13838E-06   -.79974E-05
  34  Normalizat    .83844        .11172       -.23540E-05   -.29095E-03
  35  Prefactor     .97897        .12578        .75758E-06   -.53307E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 24.1025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.0724
  Prefactor  = 13.185
  Prefactor  = 43.6601
  norm       = 0.358165
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 0.000100001
  Prefactor  = 178.004
  Prefactor  = 31.3988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.83841
  Prefactor  = 1.99784
  Prefactor  = 40.4139
  Prefactor  = 0.0001
  Prefactor  = 16.7074
  Prefactor  = 0.0001
  Prefactor  = 40.7917
  Prefactor  = 11.9527
  Prefactor  = 37.4827
  Prefactor  = 9.17202
  Prefactor  = 0.0001
  norm       = 1.16202
  Prefactor  = 1.16729
  Prefactor  = 6.52535
  Prefactor  = 11.1242
  norm       = 1.70056
  Normalizat = 0.838437
  Prefactor  = 0.978972
 **********
 **   18 **HESSE 
 **********

 FCN=   13851.49     FROM HESSE     STATUS=OK           788 CALLS     6016 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .67499        .93732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.102        21.283        .81608E-04   -1.4726    
   3  Prefactor     .10000E-03    4.8489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.0724        2.7060        .13366E-03   -1.5257    
   6  Prefactor     13.185        16.949        .11032E-03   -1.4982    
   7  Prefactor     43.660        27.959        .60679E-04   -1.4385    
   8  norm          .35816        .52416        .10965E-02   -1.5588    
   9  norm          .10000E-03    20.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4753        .35218E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    25.229        .42176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     178.00        266.77        .15114E-03   -1.3032    
  13  Prefactor     31.399        23.462        .71507E-04   -1.4587    
  14  Prefactor     .10000E-03    4.1427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .68131        .94580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8384        19.135        .20600E-03   -1.5316    
  19  Prefactor     1.9978        1.6021        .11700E-03   -1.5425    
  20  Prefactor     40.414        18.011        .63057E-04   -1.4436    
  21  Prefactor     .10000E-03    13.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.707        15.906        .97972E-04   -1.4890    
  23  Prefactor     .10000E-03    7.6232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     40.792        18.301        .62760E-04   -1.4430    
  25  Prefactor     11.953        11.904        .11586E-03   -1.5016    
  26  Prefactor     37.483        26.102        .65463E-04   -1.4483    
  27  Prefactor     9.1720        8.9721        .66166E-03   -1.5102    
  28  Prefactor     .10000E-03    3.7605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1620        .67838        .71240E-04   -1.5492    
  30  Prefactor     1.1673        3.4408        .35798E-03   -1.5492    
  31  Prefactor     6.5253        3.7857        .15710E-03   -1.5197    
  32  Prefactor     11.124        5.0655        .60055E-03   -1.5041    
  33  norm          1.7006        1.8117        .15957E-03   -1.5447    
  34  Normalizat    .83844        .13078        .22750E-03   -.98658    
  35  Prefactor     .97897        .14878        .25715E-03   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06756e-09
Minuit parameter uncertainties:
  1  6.8802e-07
  2  21.2897
  3  1.84676e-05
  4  4.88634e-05
  5  2.70607
  6  16.9555
  7  27.9677
  8  0.524162
  9  4.95391e-05
  10  0.000168494
  11  0.000259555
  12  268.613
  13  23.4684
  14  9.076e-06
  15  1.07318e-05
  16  5.92354e-07
  17  3.32453e-06
  18  17.1489
  19  1.6021
  20  18.013
  21  3.79624e-06
  22  15.9105
  23  1.9403e-05
  24  18.3031
  25  11.9065
  26  26.11
  27  8.97342
  28  3.89444e-06
  29  0.678381
  30  3.44137
  31  3.78579
  32  5.0657
  33  1.81177
  34  0.130831
  35  0.148838
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  1.073e-05  1.000e-04  1.000e+04 ( 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:  9.790e-01  1.488e-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:  8.384e-01  1.308e-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: 2.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934911/likelihoodResults_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.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): 102
logL (Free Index) = 13851.4870151
delta logL = -0.000731220708985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13851.486284
delta logL = -4.66498022433e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6527       1.0000          .0000       10.000    
     3 'Normalizat'    .83840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97901       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+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=   13851.49     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      246 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.180        .18142E-01** at limit **
   2  Index         2.1767        5.2801        .50000        .10164E-06
   3  Normalizat    .83844        .59677E-02    .22751E-03   -.55968E-04
   4  Prefactor     .97897        .72767E-02    .25714E-03   -.46776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.17671
  Normalizat = 0.838436
  Prefactor  = 0.978974
 **********
 **   18 **HESSE 
 **********

 FCN=   13851.49     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    318.33        .31381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1767        8.7634        .50000       -.60002    
   3  Normalizat    .83844        .16761E-01    .91002E-05   -.98658    
   4  Prefactor     .97897        .20438E-01    .10286E-04   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34004e-09
Minuit parameter uncertainties:
  1  0.000983572
  2  1185.17
  3  0.016761
  4  0.0204377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934911': 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) = 13851.4862829
delta logL = 9.86741724773e-07

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  9.836e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.177e+00  1.185e+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:  9.790e-01  2.044e-02  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:  8.384e-01  1.676e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/934911/cmap_HighResolution_671414401_672019201_4FGL_J1412.9+5018_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-03', job_status='DONE', photon_flux_upper_limit='2.65e-08', time_completed='2022-04-19 03:08:14.084389', job_id='934911', GAL2='0.98', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1650362894.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='9.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='715' AND source_name='4FGL J1412.9+5018' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:08:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 931155: <4FGL_J1412.9+5018_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1412.9+5018_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:04 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:16:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:16:26 2022
Terminated at Tue Apr 19 02:53:23 2022
Results reported at Tue Apr 19 02:53:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_weekly_bin715 213.241 50.301 671414401 672019201 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 :                                   2178.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             325.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2217 sec.
    Turnaround time :                            9979 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 934911: <4FGL_J1412.9+5018_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1412.9+5018_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:18 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:30:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:30:17 2022
Terminated at Tue Apr 19 03:08:14 2022
Results reported at Tue Apr 19 03:08:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_weekly_bin715 213.241 50.301 671414401 672019201 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 :                                   2192.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             313.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2277 sec.
    Turnaround time :                            10196 sec.

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

