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


Performing analysis on: 4FGL_J1412.9+5018_monthly_bin168
RA = 213.241, Dec = 50.301
tmin = 672451201, tmax = 675043201
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='635402', job_status='RUN', time_executed='2022-05-24 03:15:15.599503', time_epoch_executed='1653387315.6' WHERE source_name='4FGL J1412.9+5018' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635402

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635402/ft1_4FGL_J1412.9+5018_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635402/ft2_4FGL_J1412.9+5018_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635402/ft1_4FGL_J1412.9+5018_monthly_bin168.fits outfile=/scratch/kocevski/635402/ft1_filteredMKT_4FGL_J1412.9+5018_monthly_bin168.fits ra=213.241 dec=50.301 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.93
user 28.10
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/635402/ft2_4FGL_J1412.9+5018_monthly_bin168.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/635402/ft1_filteredMKT_4FGL_J1412.9+5018_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/635402/ft1_filtered_4FGL_J1412.9+5018_monthly_bin168.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.64
sys 0.20

Number of photons that the gtmktime cut: 8391

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635402/ft1_filtered_4FGL_J1412.9+5018_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/635402/ft2_4FGL_J1412.9+5018_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/635402/ltcube_672451201_675043201_4FGL_J1412.9+5018_monthly_bin168.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/635402/ft2_4FGL_J1412.9+5018_monthly_bin168.fits
.....................!
real 143.13
user 141.72
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635402/ft1_filtered_4FGL_J1412.9+5018_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/635402/ft2_4FGL_J1412.9+5018_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/635402/ltcube_672451201_675043201_4FGL_J1412.9+5018_monthly_bin168.fits outfile=/scratch/kocevski/635402/expmap_672451201_675043201_4FGL_J1412.9+5018_monthly_bin168.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/635402/ltcube_672451201_675043201_4FGL_J1412.9+5018_monthly_bin168.fits
.....................!
real 195.27
user 189.66
sys 5.03

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/635402/ft1_filtered_4FGL_J1412.9+5018_monthly_bin168.fits scfile=/scratch/kocevski/635402/ft2_4FGL_J1412.9+5018_monthly_bin168.fits outfile=/scratch/kocevski/635402/cmap_672451201_675043201_4FGL_J1412.9+5018_monthly_bin168.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.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635402/ft1_filtered_4FGL_J1412.9+5018_monthly_bin168.fits scfile=/scratch/kocevski/635402/ft2_4FGL_J1412.9+5018_monthly_bin168.fits outfile=/scratch/kocevski/635402/cmap_HighResolution_672451201_675043201_4FGL_J1412.9+5018_monthly_bin168.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.82
user 0.63
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.228       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13655E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1614       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28494E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .25880       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1898       1.0000         .10000E-03   10000.    
    10 'norm      '    .49585       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.845       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9951       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81003       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7582       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6192       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3082       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.603       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8076       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.171       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3602       1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.761       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12806E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9450       1.0000         .10000E-03   10000.    
    29 'norm      '    2.0682       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.0020       1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.9555       1.0000         .10000E-03   10000.    
    33 'norm      '    .53099       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0978       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .95074       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=   91171.56     FROM MIGRAD    STATUS=CONVERGED    992 CALLS     4463 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5039        .69745        .67481E-08    .28559E-04
   2  Prefactor     10.229        7.4326        .51535E-07    .20676E-03
   3  Prefactor     4.9502        3.0638        .17039E-06   -.51578E-03
   4  Prefactor     .10001E-03    1.6328       -.29541E-06** at limit **
   5  norm          1.1613        .91821       -.45810E-07   -.29254E-03
   6  Prefactor     .10000E-03    2.2988        .50349E-07** at limit **
   7  Prefactor     .10000E-03    7.0408       -.30680E-06** at limit **
   8  norm          .25889        .21758       -.16769E-08    .64792E-04
   9  norm          4.1898        6.1285        .86261E-08   -.25841E-05
  10  norm          .49616        .69273       -.46560E-07   -.60094E-03
  11  norm          1.7202        2.9982       -.31991E-06   -.67293E-04
  12  Prefactor     24.857        29.496        .15526E-04    .18428E-05
  13  Prefactor     25.199        9.6234       -.20924E-07   -.68200E-06
  14  Prefactor     .10000E-03    1.0082        .91907E-08** at limit **
  15  Prefactor     8.9942        8.1692       -.61400E-08   -.60224E-05
  16  Prefactor     .81009        .54464       -.10722E-07   -.42619E-05
  17  Prefactor     4.7581        4.2617        .49894E-07   -.49195E-03
  18  Prefactor     8.6201        8.0656       -.86106E-08    .87996E-06
  19  Prefactor     4.3082        .76208        .13031E-07   -.24418E-04
  20  Prefactor     14.602        7.2367        .20820E-06    .12687E-04
  21  Prefactor     5.8072        4.4827       -.16275E-06    .42027E-05
  22  Prefactor     16.170        6.6519       -.15611E-07   -.17002E-04
  23  Prefactor     .10000E-03    10.986        .16012E-05** at limit **
  24  Prefactor     11.077        6.6586       -.27296E-07   -.12075E-03
  25  Prefactor     2.3604        3.5018       -.56566E-06   -.26056E-04
  26  Prefactor     32.761        10.797        .14423E-07    .12039E-05
  27  Prefactor     .10000E-03    .75074        .34388E-07** at limit **
  28  Prefactor     1.9435        1.6231       -.68974E-08   -.12687E-02
  29  norm          2.0682        .36973        .51589E-09   -.99405E-04
  30  Prefactor     .10000E-03    .32437        .21912E-07** at limit **
  31  Prefactor     1.0023        .92845       -.53999E-07   -.29189E-03
  32  Prefactor     8.9556        1.9949       -.58624E-08   -.11798E-03
  33  norm          .53105        .54353       -.16302E-08   -.27279E-03
  34  Normalizat    1.0978        .45870E-01    .40716E-07    .27363E-03
  35  Prefactor     .95075        .51349E-01   -.57216E-07    .20799E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50385
  Prefactor  = 10.2292
  Prefactor  = 4.95017
  Prefactor  = 0.000100008
  norm       = 1.16128
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.258887
  norm       = 4.18976
  norm       = 0.496163
  norm       = 1.72024
  Prefactor  = 24.8566
  Prefactor  = 25.199
  Prefactor  = 0.0001
  Prefactor  = 8.9942
  Prefactor  = 0.810087
  Prefactor  = 4.75813
  Prefactor  = 8.62005
  Prefactor  = 4.30819
  Prefactor  = 14.602
  Prefactor  = 5.80717
  Prefactor  = 16.1703
  Prefactor  = 0.0001
  Prefactor  = 11.0775
  Prefactor  = 2.36044
  Prefactor  = 32.7612
  Prefactor  = 0.0001
  Prefactor  = 1.94351
  norm       = 2.06815
  Prefactor  = 0.0001
  Prefactor  = 1.00235
  Prefactor  = 8.95556
  norm       = 0.531049
  Normalizat = 1.09783
  Prefactor  = 0.950752
 **********
 **   18 **HESSE 
 **********

 FCN=   91171.56     FROM HESSE     STATUS=OK           818 CALLS     5281 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5039        .68998        .16490E-03   -1.5463    
   2  Prefactor     10.229        7.0570        .12529E-03   -1.5068    
   3  Prefactor     4.9502        3.0577        .90394E-03   -1.5263    
   4  Prefactor     .10001E-03    10.231        .69347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1613        .88759        .22712E-03   -1.5492    
   6  Prefactor     .10000E-03    2.4186        .14021       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2309        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .25889        .19920        .12187E-02   -1.5606    
   9  norm          4.1898        6.1120        .19689E-03   -1.5299    
  10  norm          .49616        .69257        .28443E-03   -1.5567    
  11  norm          1.7202        2.9896        .32033E-03   -1.5446    
  12  Prefactor     24.857        29.492        .80366E-04   -1.4710    
  13  Prefactor     25.199        9.6140        .79800E-04   -1.4704    
  14  Prefactor     .10000E-03    1.0129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9942        8.1452        .13364E-03   -1.5108    
  16  Prefactor     .81009        .54855        .17623E-03   -1.5528    
  17  Prefactor     4.7581        4.4212        .92226E-03   -1.5272    
  18  Prefactor     8.6201        7.9869        .13654E-03   -1.5121    
  19  Prefactor     4.3082        .75809        .96736E-04   -1.5293    
  20  Prefactor     14.602        7.1700        .10481E-03   -1.4944    
  21  Prefactor     5.8072        4.4646        .16666E-03   -1.5226    
  22  Prefactor     16.170        6.6342        .99598E-04   -1.4904    
  23  Prefactor     .10000E-03    11.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.077        6.6782        .60187E-03   -1.5042    
  25  Prefactor     2.3604        3.4794        .26676E-03   -1.5401    
  26  Prefactor     32.761        10.795        .70007E-04   -1.4563    
  27  Prefactor     .10000E-03    .87515        .81402E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.9435        3.9965        .14882E-02   -1.5429    
  29  norm          2.0682        .37389        .74057E-04   -1.5420    
  30  Prefactor     .10000E-03    1.3398        .31890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.0023        .86516        .25913E-02   -1.5508    
  32  Prefactor     8.9556        1.9244        .13393E-03   -1.5109    
  33  norm          .53105        .59458        .21797E-02   -1.5562    
  34  Normalizat    1.0978        .54119E-01    .21834E-03   -.89821    
  35  Prefactor     .95075        .59972E-01    .27797E-03   -.94390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03317e-07
Minuit parameter uncertainties:
  1  0.689987
  2  7.05754
  3  3.05776
  4  0.000565716
  5  0.8876
  6  0.000154263
  7  4.1676e-07
  8  0.1992
  9  6.11292
  10  0.692584
  11  2.98989
  12  29.5091
  13  9.61462
  14  3.18455e-07
  15  8.14616
  16  0.548554
  17  4.42146
  18  7.98792
  19  0.758094
  20  7.1704
  21  4.46482
  22  6.63454
  23  1.02057e-05
  24  6.67863
  25  3.47972
  26  10.7952
  27  3.94208e-05
  28  3.99706
  29  0.37389
  30  2.78029e-06
  31  0.865173
  32  1.92446
  33  0.594591
  34  0.0541214
  35  0.0599763
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  8.994e+00  8.146e+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:  9.508e-01  5.998e-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:  1.098e+00  5.412e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 213.241 50.301
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 7.98e-09 +/- 7.22e-09
Energy Flux (Fixed Index): 1.98e-06 +/- 1.79e-06

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

Saving results to:
/scratch/kocevski/635402/likelihoodResults_672451201_675043201_4FGL_J1412.9+5018_monthly_bin168.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) = 91171.5407516
delta logL = 0.022623983692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 91171.5360602
delta logL = 0.0273154020106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1556       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8856       1.0000          .0000       10.000    
     3 'Normalizat'    1.0952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95287       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   91171.54     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      271 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1342        9.9080        .70194E-03   -.30578E-04
   2  Index         2.8865        1.1373        .90217E-02   -.13227E-04
   3  Normalizat    1.0952        .51486E-01    .21857E-03   -.13365E-02
   4  Prefactor     .95288        .60391E-01    .27770E-03   -.95502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.13424
  Index      = 2.88646
  Normalizat = 1.09523
  Prefactor  = 0.952875
 **********
 **   18 **HESSE 
 **********

 FCN=   91171.54     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1342        8.9194        .28078E-04   -1.5137    
   2  Index         2.8865        1.0240        .36087E-03   -.43643    
   3  Normalizat    1.0952        .51315E-01    .87428E-05   -.89905    
   4  Prefactor     .95288        .60243E-01    .11108E-04   -.94317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07407e-10
Minuit parameter uncertainties:
  1  8.92085
  2  1.03289
  3  0.0513171
  4  0.0602475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635402': 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) = 91171.5360569
delta logL = 0.0273186757695

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  8.134e+00  8.921e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.886e+00  1.033e+00  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.529e-01  6.025e-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:  1.095e+00  5.132e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 213.241 50.301
Photon Index (Free Index): 2.89 +/- 1.03
Photon Flux (Free Index): 9.65e-09 +/- 1.07e-08
Energy Flux (Free Index): 2.05e-06 +/- 1.77e-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/635402/cmap_HighResolution_672451201_675043201_4FGL_J1412.9+5018_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-03', comment='SUCCESS', photon_flux='7.98e-09', energy_flux2='2.05e-06', photon_flux_error='7.22e-09', dlogl='2.73e-02', energy_flux='1.98e-06', photon_flux2='9.65e-09', job_status='DONE', time_completed='2022-05-24 06:39:13.979843', photon_index_error2='1.03', photon_index2='2.89', ts='1.61', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.19e-08', energy_flux_error2='1.77e-06', EG='1.10', time_epoch_completed='1653399553.98', return_code='0', job_id='635402', GAL2='0.95', EG2='1.10', return_code2='0', energy_flux_error='1.79e-06', photon_flux_error2='1.07e-08', ts2='1.68', photon_index='2.66' WHERE bin_id='168' AND source_name='4FGL J1412.9+5018' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:39:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 635402: <4FGL_J1412.9+5018_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1412.9+5018_monthly_bin168> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 03:10:30 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:14:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:14:01 2022
Terminated at Tue May 24 06:39:15 2022
Results reported at Tue May 24 06:39:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_monthly_bin168 213.241 50.301 672451201 675043201 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 :                                   11777.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             440.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12314 sec.
    Turnaround time :                            12525 sec.

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

