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


Performing analysis on: 4FGL_J1412.9+5018_monthly_bin169
RA = 213.241, Dec = 50.301
tmin = 675043201, tmax = 677635201
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='171211', job_status='RUN', time_executed='2022-06-23 02:30:52.266975', time_epoch_executed='1655976652.27' WHERE source_name='4FGL J1412.9+5018' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171211

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171211/ft1_4FGL_J1412.9+5018_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171211/ft2_4FGL_J1412.9+5018_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171211/ft1_4FGL_J1412.9+5018_monthly_bin169.fits outfile=/scratch/kocevski/171211/ft1_filteredMKT_4FGL_J1412.9+5018_monthly_bin169.fits ra=213.241 dec=50.301 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.68
user 26.86
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171211/ft2_4FGL_J1412.9+5018_monthly_bin169.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/171211/ft1_filteredMKT_4FGL_J1412.9+5018_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/171211/ft1_filtered_4FGL_J1412.9+5018_monthly_bin169.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.85
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 8392

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171211/ft1_filtered_4FGL_J1412.9+5018_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/171211/ft2_4FGL_J1412.9+5018_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/171211/ltcube_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.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/171211/ft2_4FGL_J1412.9+5018_monthly_bin169.fits
.....................!
real 127.88
user 127.20
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171211/ft1_filtered_4FGL_J1412.9+5018_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/171211/ft2_4FGL_J1412.9+5018_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/171211/ltcube_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.fits outfile=/scratch/kocevski/171211/expmap_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.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/171211/ltcube_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.fits
.....................!
real 194.15
user 188.81
sys 4.81

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/171211/ft1_filtered_4FGL_J1412.9+5018_monthly_bin169.fits scfile=/scratch/kocevski/171211/ft2_4FGL_J1412.9+5018_monthly_bin169.fits outfile=/scratch/kocevski/171211/cmap_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.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.79
user 0.64
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171211/ft1_filtered_4FGL_J1412.9+5018_monthly_bin169.fits scfile=/scratch/kocevski/171211/ft2_4FGL_J1412.9+5018_monthly_bin169.fits outfile=/scratch/kocevski/171211/cmap_HighResolution_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.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.80
user 0.62
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171211/ft1_filtered_4FGL_J1412.9+5018_monthly_bin169.fits', '/scratch/kocevski/171211/ft2_4FGL_J1412.9+5018_monthly_bin169.fits', expMap='/scratch/kocevski/171211/expmap_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.fits', expCube='/scratch/kocevski/171211/ltcube_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171211/Model_4FGL_J1412.9+5018_monthly_bin169.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/171211/ft1_filtered_4FGL_J1412.9+5018_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/171211/ft2_4FGL_J1412.9+5018_monthly_bin169.fits
Exposure map: /scratch/kocevski/171211/expmap_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.fits
Exposure cube: /scratch/kocevski/171211/ltcube_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171211/Model_4FGL_J1412.9+5018_monthly_bin169.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) = 90934.2546397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2797       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.560       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3638       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4081       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.083       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .76548       1.0000         .10000E-03   10000.    
     8 'norm      '    .48351       1.0000         .10000E-03   10000.    
     9 'norm      '    13.043       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2426       1.0000         .10000E-03   10000.    
    11 'norm      '    .41814E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.479       1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2817       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .64824       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4202       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8447       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .64756       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8940       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.919       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9069       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.4775       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.197       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.588       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.8382       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.6170       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .15958       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.3698       1.0000         .10000E-03   10000.    
    32 'Prefactor '    13.251       1.0000         .10000E-03   10000.    
    33 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .98618       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0114       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=   90934.20     FROM MIGRAD    STATUS=CONVERGED    965 CALLS     4449 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5654        .67897        .13147E-07    .20940E-05
   2  Prefactor     1.2813        3.7292        .52792E-06   -.77442E-04
   3  Prefactor     10.560        4.2026       -.50828E-06   -.25742E-04
   4  Prefactor     9.3592        6.9655       -.13262E-05   -.77772E-04
   5  norm          2.4079        .92496        .30015E-07   -.50627E-04
   6  Prefactor     12.087        11.289        .90372E-05    .21995E-03
   7  Prefactor     .70906        1.9226       -.87541E-06    .49465E-04
   8  norm          .48359        .28249        .47907E-07    .15593E-02
   9  norm          13.043        9.2479       -.25654E-06    .10255E-04
  10  norm          1.2428        .87157       -.16518E-06   -.65240E-04
  11  norm          .10000E-03    .49566        .56923E-07** at limit **
  12  Prefactor     39.478        38.574       -.18162E-05    .51572E-05
  13  Prefactor     78.799        13.700       -.14530E-05    .51242E-04
  14  Prefactor     .10000E-03    .56930       -.71085E-09** at limit **
  15  Prefactor     9.2816        7.8606       -.80137E-06   -.32143E-04
  16  Prefactor     .64770        .66553        .96806E-07    .78632E-03
  17  Prefactor     4.4201        3.5008        .71679E-07   -.15199E-03
  18  Prefactor     5.8507        3.8452        .12973E-06   -.20794E-05
  19  Prefactor     2.7959        .68358        .10313E-06    .69438E-03
  20  Prefactor     .64410        1.1139       -.22294E-06   -.46860E-03
  21  Prefactor     9.8932        6.3336        .38901E-08    .12144E-03
  22  Prefactor     10.918        6.8007       -.36994E-06    .78949E-04
  23  Prefactor     2.9062        8.4171       -.13273E-05    .40114E-05
  24  Prefactor     8.4770        4.6318        .15483E-06   -.29603E-04
  25  Prefactor     12.197        5.3980       -.20983E-07    .41174E-04
  26  Prefactor     13.588        7.7092       -.45391E-06   -.83499E-06
  27  Prefactor     3.8375        3.0924        .11590E-06    .49398E-04
  28  Prefactor     .10000E-03    1.0111        .26407E-07** at limit **
  29  norm          2.6169        .40084        .90185E-08    .25380E-03
  30  Prefactor     .15333        .53712       -.12085E-06    .11733E-02
  31  Prefactor     1.3697        .86767        .57614E-08    .11071E-04
  32  Prefactor     13.251        2.2045       -.94283E-07    .46446E-03
  33  norm          .10000E-03    .16761        .74832E-09** at limit **
  34  Normalizat    .98621        .44792E-01   -.18141E-06    .87881E-03
  35  Prefactor     1.0114        .50258E-01    .16661E-06    .31361E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56538
  Prefactor  = 1.28129
  Prefactor  = 10.56
  Prefactor  = 9.35922
  norm       = 2.40786
  Prefactor  = 12.0867
  Prefactor  = 0.709064
  norm       = 0.48359
  norm       = 13.043
  norm       = 1.24276
  norm       = 0.0001
  Prefactor  = 39.4783
  Prefactor  = 78.7994
  Prefactor  = 0.0001
  Prefactor  = 9.28158
  Prefactor  = 0.647698
  Prefactor  = 4.42014
  Prefactor  = 5.85069
  Prefactor  = 2.79589
  Prefactor  = 0.644098
  Prefactor  = 9.89317
  Prefactor  = 10.9176
  Prefactor  = 2.90622
  Prefactor  = 8.47703
  Prefactor  = 12.197
  Prefactor  = 13.5877
  Prefactor  = 3.8375
  Prefactor  = 0.0001
  norm       = 2.61691
  Prefactor  = 0.153329
  Prefactor  = 1.36966
  Prefactor  = 13.2514
  norm       = 0.0001
  Normalizat = 0.986212
  Prefactor  = 1.01144
 **********
 **   18 **HESSE 
 **********

 FCN=   90934.20     FROM HESSE     STATUS=OK           808 CALLS     5257 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5654        .67472        .15789E-03   -1.5458    
   2  Prefactor     1.2813        3.8359        .19622E-02   -1.5482    
   3  Prefactor     10.560        4.1793        .12329E-03   -1.5058    
   4  Prefactor     9.3592        6.8973        .13097E-03   -1.5096    
   5  norm          2.4079        .91539        .16084E-03   -1.5398    
   6  Prefactor     12.087        11.344        .11524E-03   -1.5013    
   7  Prefactor     .70906        17.309        .64351E-02   -1.5540    
   8  norm          .48359        .24872        .11478E-02   -1.5569    
   9  norm          13.043        9.2429        .11091E-03   -1.4986    
  10  norm          1.2428        .85528        .22051E-03   -1.5485    
  11  norm          .10000E-03    3.2686        .40952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.478        38.567        .63792E-04   -1.4451    
  13  Prefactor     78.799        13.663        .45240E-04   -1.3930    
  14  Prefactor     .10000E-03    .57015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2816        7.7469        .13155E-03   -1.5099    
  16  Prefactor     .64770        .64954        .23296E-03   -1.5547    
  17  Prefactor     4.4201        3.4914        .95773E-03   -1.5287    
  18  Prefactor     5.8507        4.2827        .83059E-03   -1.5224    
  19  Prefactor     2.7959        .67679        .10781E-03   -1.5374    
  20  Prefactor     .64410        4.0308        .23718E-02   -1.5547    
  21  Prefactor     9.8932        6.3107        .12739E-03   -1.5079    
  22  Prefactor     10.918        6.7560        .12124E-03   -1.5047    
  23  Prefactor     2.9062        8.3620        .23831E-03   -1.5367    
  24  Prefactor     8.4770        4.6298        .68840E-03   -1.5126    
  25  Prefactor     12.197        5.3919        .11470E-03   -1.5009    
  26  Prefactor     13.588        7.7075        .10866E-03   -1.4971    
  27  Prefactor     3.8375        3.0700        .20600E-03   -1.5316    
  28  Prefactor     .10000E-03    1.0254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.6169        .40003        .71724E-04   -1.5384    
  30  Prefactor     .15333        4.5481        .37566E-02   -1.5630    
  31  Prefactor     1.3697        .86256        .21613E-03   -1.5474    
  32  Prefactor     13.251        2.1909        .11004E-03   -1.4980    
  33  norm          .10000E-03    .15714        .44888E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .98621        .52457E-01    .22462E-03   -.93494    
  35  Prefactor     1.0114        .58949E-01    .26868E-03   -.92349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34132e-08
Minuit parameter uncertainties:
  1  0.67472
  2  3.83661
  3  4.17942
  4  6.89787
  5  0.915397
  6  11.3462
  7  7.0085
  8  0.24872
  9  9.24392
  10  0.855287
  11  4.69722e-05
  12  38.5916
  13  13.6634
  14  2.03877e-08
  15  7.74777
  16  0.649547
  17  3.49159
  18  4.28294
  19  0.67679
  20  3.22262
  21  6.31114
  22  6.75651
  23  8.36536
  24  4.62995
  25  5.39207
  26  7.70808
  27  3.07012
  28  9.02145e-07
  29  0.40003
  30  1.66976
  31  0.862564
  32  2.19089
  33  4.6712e-07
  34  0.0524602
  35  0.0589524
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  9.282e+00  7.748e+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

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.011e+00  5.895e-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:  9.862e-01  5.246e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 213.241 50.301
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 8.23e-09 +/- 6.87e-09
Energy Flux (Fixed Index): 2.04e-06 +/- 1.70e-06

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

Saving results to:
/scratch/kocevski/171211/likelihoodResults_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.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) = 90934.066606
delta logL = 0.137347492971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 90934.0618332
delta logL = 0.142120276985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9133       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2999       1.0000          .0000       10.000    
     3 'Normalizat'    .98963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0089       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=   90934.06     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      254 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9129        8.4662        .12727E-03    .20581E-03
   2  Index         2.2997        .66445        .13381E-01    .14393E-03
   3  Normalizat    .98963        .48296E-01    .22428E-03   -.66586E-03
   4  Prefactor     1.0089        .58294E-01    .26898E-03   -.56536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.91292
  Index      = 2.29973
  Normalizat = 0.989634
  Prefactor  = 1.00892
 **********
 **   18 **HESSE 
 **********

 FCN=   90934.06     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9129        8.5926        .50908E-05   -1.5078    
   2  Index         2.2997        .67453        .53523E-03   -.57050    
   3  Normalizat    .98963        .48345E-01    .89712E-05   -.93379    
   4  Prefactor     1.0089        .58342E-01    .10759E-04   -.92433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.65467e-10
Minuit parameter uncertainties:
  1  8.59369
  2  0.677457
  3  0.0483473
  4  0.0583457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171211': 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) = 90934.0618332
delta logL = 0.142120301403

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  9.913e+00  8.594e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.300e+00  6.775e-01  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.009e+00  5.835e-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:  9.896e-01  4.835e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 213.241 50.301
Photon Index (Free Index): 2.30 +/- 0.68
Photon Flux (Free Index): 5.68e-09 +/- 7.29e-09
Energy Flux (Free Index): 2.15e-06 +/- 1.81e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/171211/cmap_HighResolution_675043201_677635201_4FGL_J1412.9+5018_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-03', comment='SUCCESS', photon_flux='8.23e-09', energy_flux2='2.15e-06', photon_flux_error='6.87e-09', dlogl='1.42e-01', energy_flux='2.04e-06', photon_flux2='5.68e-09', job_status='DONE', time_completed='2022-06-23 05:50:06.445798', photon_index_error2='0.68', photon_index2='2.30', ts='1.89', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.14e-08', energy_flux_error2='1.81e-06', EG='0.99', time_epoch_completed='1655988606.45', return_code='0', job_id='171211', GAL2='1.01', EG2='0.99', return_code2='0', energy_flux_error='1.70e-06', photon_flux_error2='7.29e-09', ts2='2.17', photon_index='2.66' WHERE bin_id='169' AND source_name='4FGL J1412.9+5018' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:50:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 171211: <4FGL_J1412.9+5018_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1412.9+5018_monthly_bin169> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Jun 23 01:55:25 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:28:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:28:51 2022
Terminated at Thu Jun 23 05:50:07 2022
Results reported at Thu Jun 23 05:50:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_monthly_bin169 213.241 50.301 675043201 677635201 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 :                                   11915.00 sec.
    Max Memory :                                 788 MB
    Average Memory :                             438.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12076 sec.
    Turnaround time :                            14082 sec.

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

