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 54 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_J1213.7+6423_monthly_bin168
RA = 183.437, Dec = 64.3961
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='632295', job_status='RUN', time_executed='2022-05-24 03:04:45.201804', time_epoch_executed='1653386685.2' WHERE source_name='4FGL J1213.7+6423' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632295

Creating custom pfile directory:
/scratch/kocevski/632295/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/632295/ft1_4FGL_J1213.7+6423_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/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632295/ft1_4FGL_J1213.7+6423_monthly_bin168.fits outfile=/scratch/kocevski/632295/ft1_filteredMKT_4FGL_J1213.7+6423_monthly_bin168.fits ra=183.437 dec=64.3961 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.83
user 28.01
sys 0.72

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/632295/ft2_4FGL_J1213.7+6423_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/632295/ft1_filteredMKT_4FGL_J1213.7+6423_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/632295/ft1_filtered_4FGL_J1213.7+6423_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.86
user 0.67
sys 0.18

Number of photons that the gtmktime cut: 9344

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/632295/ft1_filtered_4FGL_J1213.7+6423_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/632295/ltcube_672451201_675043201_4FGL_J1213.7+6423_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/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits
.....................!
real 126.55
user 125.93
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632295/ft1_filtered_4FGL_J1213.7+6423_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/632295/ltcube_672451201_675043201_4FGL_J1213.7+6423_monthly_bin168.fits outfile=/scratch/kocevski/632295/expmap_672451201_675043201_4FGL_J1213.7+6423_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/632295/ltcube_672451201_675043201_4FGL_J1213.7+6423_monthly_bin168.fits
.....................!
real 192.59
user 186.42
sys 5.79

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

Setting source of interest to:
4FGL J1213.7+6423 @ 183.437 64.3961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/632295/ft1_filtered_4FGL_J1213.7+6423_monthly_bin168.fits scfile=/scratch/kocevski/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits outfile=/scratch/kocevski/632295/cmap_672451201_675043201_4FGL_J1213.7+6423_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=183.437 yref=64.3961 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.60
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/632295/ft1_filtered_4FGL_J1213.7+6423_monthly_bin168.fits scfile=/scratch/kocevski/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits outfile=/scratch/kocevski/632295/cmap_HighResolution_672451201_675043201_4FGL_J1213.7+6423_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=183.437 yref=64.3961 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.81
user 0.63
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/632295/ft1_filtered_4FGL_J1213.7+6423_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/632295/Model_4FGL_J1213.7+6423_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/632295/ft1_filtered_4FGL_J1213.7+6423_monthly_bin168.fits.....................!
real 796.20
user 793.40
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/632295/ft1_filtered_4FGL_J1213.7+6423_monthly_bin168.fits', '/scratch/kocevski/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits', expMap='/scratch/kocevski/632295/expmap_672451201_675043201_4FGL_J1213.7+6423_monthly_bin168.fits', expCube='/scratch/kocevski/632295/ltcube_672451201_675043201_4FGL_J1213.7+6423_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/632295/Model_4FGL_J1213.7+6423_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1213.7+6423'

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  3.253e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/632295/ft1_filtered_4FGL_J1213.7+6423_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/632295/ft2_4FGL_J1213.7+6423_monthly_bin168.fits
Exposure map: /scratch/kocevski/632295/expmap_672451201_675043201_4FGL_J1213.7+6423_monthly_bin168.fits
Exposure cube: /scratch/kocevski/632295/ltcube_672451201_675043201_4FGL_J1213.7+6423_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/632295/Model_4FGL_J1213.7+6423_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) = 100990.589125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9653       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.152       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .76396       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5125       1.0000         .10000E-03   10000.    
     5 'norm      '    .41998       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2380       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.956       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9089       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2875       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2323       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1209       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0500       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.406       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2466       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.1261       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.158       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .89975       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.7533       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17467       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.1783       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97738       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   100990.5     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     3849 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9654        .64768       -.81416E-08    .41144E-04
   2  Prefactor     14.150        20.499       -.54340E-05    .17897E-03
   3  Prefactor     .76447        1.1349        .55767E-07    .10055E-03
   4  norm          1.5124        .21337       -.53195E-08    .29052E-02
   5  norm          .42155        .77661       -.41299E-06   -.18112E-02
   6  Prefactor     3.2338        2.1723        .50709E-06    .12681E-02
   7  Prefactor     .10000E-03    2.4724       -.30061E-06** at limit **
   8  Prefactor     .82746        .98229       -.30038E-07   -.18069E-03
   9  Prefactor     17.956        5.7847        .61676E-06   -.19153E-03
  10  Prefactor     .40852        1.1639        .82295E-08   -.85212E-04
  11  Prefactor     1.9090        .65618       -.81101E-08    .92852E-04
  12  norm          .10000E-03    .46328       -.58049E-07** at limit **
  13  norm          .10000E-03    .15263       -.70336E-07** at limit **
  14  Prefactor     4.2870        1.7081        .36577E-06   -.87640E-04
  15  Prefactor     4.2331        4.2797        .36135E-06   -.88503E-05
  16  norm          1.9139        .46032       -.69286E-08    .90374E-04
  17  Prefactor     4.1209        5.8584       -.20803E-06    .20478E-04
  18  Prefactor     4.0502        3.3245        .38858E-07    .20232E-04
  19  Prefactor     42.404        14.042       -.14369E-05    .26238E-03
  20  norm          1.2466        .66413        .24973E-07   -.55931E-04
  21  Prefactor     .10000E-03    .21451       -.15557E-10** at limit **
  22  norm          3.1263        .53990        .95420E-08   -.53321E-04
  23  Prefactor     16.158        7.0106       -.13995E-06    .50592E-04
  24  Prefactor     .90046        1.5027        .51160E-07   -.19721E-04
  25  Prefactor     .10000E-03    2.3476        .12178E-06** at limit **
  26  Prefactor     5.7536        3.8020        .20988E-08    .59304E-04
  27  Prefactor     .17510        .11052       -.11430E-06   -.61387E-03
  28  Prefactor     .10000E-03    .49002       -.10763E-06** at limit **
  29  Prefactor     5.1775        1.8299        .25629E-06    .89679E-05
  30  Prefactor     .10000E-03    3.2042       -.45865E-06** at limit **
  31  Normalizat    .97736        .39863E-01    .20929E-08    .70849E-03
  32  Prefactor     1.0847        .46507E-01    .66863E-07    .46214E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96536
  Prefactor  = 14.1498
  Prefactor  = 0.76447
  norm       = 1.5124
  norm       = 0.42155
  Prefactor  = 3.23383
  Prefactor  = 0.0001
  Prefactor  = 0.827456
  Prefactor  = 17.9565
  Prefactor  = 0.408521
  Prefactor  = 1.90896
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 4.28698
  Prefactor  = 4.23314
  norm       = 1.91394
  Prefactor  = 4.12087
  Prefactor  = 4.05023
  Prefactor  = 42.4043
  norm       = 1.24659
  Prefactor  = 0.0001
  norm       = 3.1263
  Prefactor  = 16.1584
  Prefactor  = 0.900457
  Prefactor  = 0.0001
  Prefactor  = 5.75363
  Prefactor  = 0.1751
  Prefactor  = 0.0001
  Prefactor  = 5.17748
  Prefactor  = 0.0001
  Normalizat = 0.977365
  Prefactor  = 1.08466
 **********
 **   18 **HESSE 
 **********

 FCN=   100990.5     FROM HESSE     STATUS=OK           689 CALLS     4538 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9654        .64654        .14245E-03   -1.5428    
   2  Prefactor     14.150        19.786        .10647E-03   -1.4955    
   3  Prefactor     .76447        1.0939        .33695E-03   -1.5533    
   4  norm          1.5124        .20366        .43549E-04   -1.5462    
   5  norm          .42155        .58962        .19617E-03   -1.5578    
   6  Prefactor     3.2338        1.7364        .10031E-02   -1.5348    
   7  Prefactor     .10000E-03    2.5432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .82746        .95046        .32750E-03   -1.5526    
   9  Prefactor     17.956        5.7425        .94517E-04   -1.4860    
  10  Prefactor     .40852        5.5321        .55907E-02   -1.5580    
  11  Prefactor     1.9090        .65708        .73099E-03   -1.5432    
  12  norm          .10000E-03    .46683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .26209        .41734E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2870        1.7084        .19457E-03   -1.5294    
  15  Prefactor     4.2331        4.2491        .97935E-03   -1.5296    
  16  norm          1.9139        .45868        .10175E-03   -1.5431    
  17  Prefactor     4.1209        5.8515        .19858E-03   -1.5302    
  18  Prefactor     4.0502        3.3219        .10018E-02   -1.5305    
  19  Prefactor     42.404        13.849        .61560E-04   -1.4405    
  20  norm          1.2466        .66172        .18311E-03   -1.5485    
  21  Prefactor     .10000E-03    .56368        .28005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.1263        .52996        .45807E-03   -1.5354    
  23  Prefactor     16.158        7.0098        .99638E-04   -1.4904    
  24  Prefactor     .90046        1.4763        .47823E-03   -1.5518    
  25  Prefactor     .10000E-03    2.3553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.7536        3.7781        .83726E-03   -1.5228    
  27  Prefactor     .17510        .61667        .19723E-02   -1.5624    
  28  Prefactor     .10000E-03    2.4156        .42621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.1775        1.9710        .17666E-03   -1.5253    
  30  Prefactor     .10000E-03    3.2713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .97736        .47089E-01    .22811E-03   -.93793    
  32  Prefactor     1.0847        .55115E-01    .26195E-03   -.89958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24036e-06
Minuit parameter uncertainties:
  1  0.646538
  2  19.7955
  3  1.09388
  4  0.203657
  5  0.589624
  6  1.73643
  7  2.84373e-07
  8  0.950482
  9  5.74265
  10  3.00662
  11  0.65708
  12  5.64104e-08
  13  6.2735e-05
  14  1.70843
  15  4.24939
  16  0.458681
  17  5.85233
  18  3.3221
  19  13.85
  20  0.661725
  21  7.01001e-07
  22  0.52996
  23  7.01015
  24  1.4764
  25  2.27016e-06
  26  3.77826
  27  0.616694
  28  4.23676e-05
  29  1.971
  30  6.17886e-06
  31  0.0470908
  32  0.0551176
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  4.050e+00  3.322e+00  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.085e+00  5.512e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.774e-01  4.709e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 183.437 64.396
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.26e-09 +/- 5.13e-09
Energy Flux (Fixed Index): 1.88e-06 +/- 1.54e-06

TS (Fixed Index): 2.00
Ra Dec: 183.437 64.396
Photon Flux Upper Limit: 1.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/632295/likelihoodResults_672451201_675043201_4FGL_J1213.7+6423_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) = 100990.426084
delta logL = 0.0680947731307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 100990.418581
delta logL = 0.0755979148526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4793       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2650       1.0000          .0000       10.000    
     3 'Normalizat'    .97904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   100990.4     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      232 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4827        18.688        .47562E-02    .82257E-03
   2  Index         2.2652        .64953        .50000        .34860E-04
   3  Normalizat    .97904        .51244E-02    .45904E-01    .14860E-03
   4  Prefactor     1.0834        .61008E-02    .59262E-01    .17613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48275
  Index      = 2.26521
  Normalizat = 0.979037
  Prefactor  = 1.08341
 **********
 **   18 **HESSE 
 **********

 FCN=   100990.4     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4827        3.6954        .19025E-03   -1.5284    
   2  Index         2.2652        .51942        .95697E-02   -.57873    
   3  Normalizat    .97904        .45206E-01    .22793E-03   -.93736    
   4  Prefactor     1.0834        .54379E-01    .26207E-03   -.89998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24173e-10
Minuit parameter uncertainties:
  1  3.69557
  2  0.52076
  3  0.0452076
  4  0.0543814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632295': 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) = 100990.41858
delta logL = 0.0755984585994

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  4.483e+00  3.696e+00  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.265e+00  5.208e-01  0.000e+00  1.000e+01 (-1.000e+00)
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.083e+00  5.438e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.790e-01  4.521e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 183.437 64.396
Photon Index (Free Index): 2.27 +/- 0.52
Photon Flux (Free Index): 5.12e-09 +/- 5.22e-09
Energy Flux (Free Index): 2.05e-06 +/- 1.75e-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/632295/cmap_HighResolution_672451201_675043201_4FGL_J1213.7+6423_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-03', comment='SUCCESS', photon_flux='6.26e-09', energy_flux2='2.05e-06', photon_flux_error='5.13e-09', dlogl='7.56e-02', energy_flux='1.88e-06', photon_flux2='5.12e-09', job_status='DONE', time_completed='2022-05-24 06:27:52.140778', photon_index_error2='0.52', photon_index2='2.27', ts='2.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.66e-08', energy_flux_error2='1.75e-06', EG='0.98', time_epoch_completed='1653398872.14', return_code='0', job_id='632295', GAL2='1.08', EG2='0.98', return_code2='0', energy_flux_error='1.54e-06', photon_flux_error2='5.22e-09', ts2='2.15', photon_index='2.47' WHERE bin_id='168' AND source_name='4FGL J1213.7+6423' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:27:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 632295: <4FGL_J1213.7+6423_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1213.7+6423_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:00:30 2022
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:03:41 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:03:41 2022
Terminated at Tue May 24 06:27:53 2022
Results reported at Tue May 24 06:27:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_monthly_bin168 183.437 64.3961 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1213.7+6423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12169.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             466.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12251 sec.
    Turnaround time :                            12443 sec.

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

