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


Performing analysis on: 4FGL_J1213.7+6423_monthly_bin167
RA = 183.437, Dec = 64.3961
tmin = 669859201, tmax = 672451201
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='883507', job_status='RUN', time_executed='2022-04-24 01:39:58.772871', time_epoch_executed='1650789598.77' WHERE source_name='4FGL J1213.7+6423' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883507

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883507/ft1_4FGL_J1213.7+6423_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883507/ft1_4FGL_J1213.7+6423_monthly_bin167.fits outfile=/scratch/kocevski/883507/ft1_filteredMKT_4FGL_J1213.7+6423_monthly_bin167.fits ra=183.437 dec=64.3961 rad=12.0 tmin=669859201.0 tmax=672451201.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 42.48
user 37.85
sys 0.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.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/883507/ft1_filteredMKT_4FGL_J1213.7+6423_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/883507/ft1_filtered_4FGL_J1213.7+6423_monthly_bin167.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 2.32
user 0.70
sys 0.18

Number of photons that the gtmktime cut: 6181

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883507/ft1_filtered_4FGL_J1213.7+6423_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/883507/ltcube_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.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/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.fits
.....................!
real 182.92
user 181.84
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883507/ft1_filtered_4FGL_J1213.7+6423_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/883507/ltcube_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.fits outfile=/scratch/kocevski/883507/expmap_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.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/883507/ltcube_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.fits
.....................!
real 192.66
user 187.11
sys 5.10

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/883507/ft1_filtered_4FGL_J1213.7+6423_monthly_bin167.fits scfile=/scratch/kocevski/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.fits outfile=/scratch/kocevski/883507/cmap_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.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.84
user 0.64
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883507/ft1_filtered_4FGL_J1213.7+6423_monthly_bin167.fits scfile=/scratch/kocevski/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.fits outfile=/scratch/kocevski/883507/cmap_HighResolution_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.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.84
user 0.63
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/883507/ft1_filtered_4FGL_J1213.7+6423_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883507/Model_4FGL_J1213.7+6423_monthly_bin167.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/883507/ft1_filtered_4FGL_J1213.7+6423_monthly_bin167.fits.....................!
real 534.16
user 530.67
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/883507/ft1_filtered_4FGL_J1213.7+6423_monthly_bin167.fits', '/scratch/kocevski/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.fits', expMap='/scratch/kocevski/883507/expmap_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.fits', expCube='/scratch/kocevski/883507/ltcube_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/883507/Model_4FGL_J1213.7+6423_monthly_bin167.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/883507/ft1_filtered_4FGL_J1213.7+6423_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/883507/ft2_4FGL_J1213.7+6423_monthly_bin167.fits
Exposure map: /scratch/kocevski/883507/expmap_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.fits
Exposure cube: /scratch/kocevski/883507/ltcube_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/883507/Model_4FGL_J1213.7+6423_monthly_bin167.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) = 66502.1705645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    22.836       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67209       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1897       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5743       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5294       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5478       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21842       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .32324       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6697       1.0000         .10000E-03   10000.    
    13 'norm      '    .13077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4351       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0275       1.0000         .10000E-03   10000.    
    16 'norm      '    .72684       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.734       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4208       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9480       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0132       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6381       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.597       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17563       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.044       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.1932       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0837       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88024       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=   66502.08     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     3889 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .11817        .44352E-08** at limit **
   2  Prefactor     22.836        22.202       -.42797E-06    .19861E-05
   3  Prefactor     .67230        .97688       -.24841E-07   -.14106E-02
   4  norm          1.1897        .21193        .16622E-08    .19213E-03
   5  norm          1.5744        .80035       -.56055E-07   -.54377E-03
   6  Prefactor     7.5290        1.5743        .39320E-07   -.73303E-02
   7  Prefactor     .10000E-03    1.8996        .51612E-07** at limit **
   8  Prefactor     1.5476        1.3197       -.24914E-07   -.52391E-03
   9  Prefactor     25.427        7.3396       -.86235E-07    .51909E-04
  10  Prefactor     .21808        .95544       -.17313E-06   -.36897E-04
  11  Prefactor     .32311        .52242       -.64527E-07   -.10230E-02
  12  norm          2.6699        2.3876       -.26502E-06   -.18491E-03
  13  norm          .10004E-03    .23448       -.26224E-07** at limit **
  14  Prefactor     6.4359        2.1143        .19314E-06    .31434E-03
  15  Prefactor     3.0286        3.1924        .63081E-06   -.71231E-03
  16  norm          .72691        .50969        .75375E-08   -.92190E-03
  17  Prefactor     11.734        9.4210       -.18586E-06    .91723E-06
  18  Prefactor     5.4214        4.6539        .24414E-06   -.12286E-02
  19  Prefactor     4.9375        12.828       -.14271E-04   -.56836E-04
  20  norm          .10000E-03    .25730       -.18876E-07** at limit **
  21  Prefactor     1.0135        1.1083        .37178E-07    .45304E-03
  22  norm          1.6381        .51100        .36520E-08    .22746E-03
  23  Prefactor     12.597        6.4310        .63192E-07    .24214E-04
  24  Prefactor     .17542        .60473       -.12033E-06   -.18413E-03
  25  Prefactor     .10000E-03    8.1455        .37561E-05** at limit **
  26  Prefactor     .10000E-03    3.6008        .20896E-06** at limit **
  27  Prefactor     .10000E-03    .21289       -.12680E-07** at limit **
  28  Prefactor     10.043        4.3432       -.85855E-07   -.10681E-02
  29  Prefactor     3.1933        1.6132       -.27810E-07   -.10430E-03
  30  Prefactor     .10000E-03    2.4784       -.52940E-07** at limit **
  31  Normalizat    1.0837        .49094E-01    .23716E-06    .31091E-03
  32  Prefactor     .88025        .56412E-01    .95124E-07    .31303E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 22.8356
  Prefactor  = 0.6723
  norm       = 1.18966
  norm       = 1.5744
  Prefactor  = 7.52897
  Prefactor  = 0.0001
  Prefactor  = 1.54762
  Prefactor  = 25.4268
  Prefactor  = 0.218084
  Prefactor  = 0.323107
  norm       = 2.66987
  norm       = 0.000100042
  Prefactor  = 6.4359
  Prefactor  = 3.02865
  norm       = 0.726911
  Prefactor  = 11.7341
  Prefactor  = 5.42141
  Prefactor  = 4.93751
  norm       = 0.0001
  Prefactor  = 1.01348
  norm       = 1.63811
  Prefactor  = 12.5972
  Prefactor  = 0.175416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0427
  Prefactor  = 3.19327
  Prefactor  = 0.0001
  Normalizat = 1.0837
  Prefactor  = 0.880246
 **********
 **   18 **HESSE 
 **********

 FCN=   66502.08     FROM HESSE     STATUS=OK           693 CALLS     4582 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .21614        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.836        22.197        .83821E-04   -1.4752    
   3  Prefactor     .67230        .95317        .27501E-03   -1.5544    
   4  norm          1.1897        .20835        .43131E-04   -1.5490    
   5  norm          1.5744        .90955        .12222E-03   -1.5457    
   6  Prefactor     7.5290        2.4570        .73077E-03   -1.5159    
   7  Prefactor     .10000E-03    1.9196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5476        1.3151        .26185E-03   -1.5459    
   9  Prefactor     25.427        7.3282        .79444E-04   -1.4699    
  10  Prefactor     .21808        7.2375        .48952E-02   -1.5615    
  11  Prefactor     .32311        .64078        .22742E-02   -1.5594    
  12  norm          2.6699        2.3834        .24943E-03   -1.5381    
  13  norm          .10004E-03    .45949        .40476E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4359        2.1254        .15821E-03   -1.5201    
  15  Prefactor     3.0286        3.2456        .11661E-02   -1.5360    
  16  norm          .72691        .47898        .14729E-02   -1.5537    
  17  Prefactor     11.734        9.4247        .11695E-03   -1.5023    
  18  Prefactor     5.4214        4.9563        .86296E-03   -1.5242    
  19  Prefactor     4.9375        12.848        .18080E-03   -1.5264    
  20  norm          .10000E-03    .82758        .25305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0135        .83862        .26335E-02   -1.5507    
  22  norm          1.6381        .49885        .96833E-04   -1.5452    
  23  Prefactor     12.597        6.4312        .11286E-03   -1.4998    
  24  Prefactor     .17542        2.6644        .35669E-02   -1.5624    
  25  Prefactor     .10000E-03    8.2264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.6424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .21666        .11593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.043        4.4335        .63218E-03   -1.5074    
  29  Prefactor     3.1933        1.6097        .22490E-03   -1.5351    
  30  Prefactor     .10000E-03    2.4826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0837        .56764E-01    .21200E-03   -.90277    
  32  Prefactor     .88025        .65149E-01    .27489E-03   -.96835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78507e-06
Minuit parameter uncertainties:
  1  1.31951e-06
  2  22.2046
  3  0.953192
  4  0.20835
  5  0.909558
  6  2.45698
  7  1.48977e-06
  8  1.31512
  9  7.32843
  10  2.51243
  11  0.64079
  12  2.38351
  13  0.000278067
  14  2.12545
  15  3.24578
  16  0.478986
  17  9.42592
  18  4.95672
  19  12.8551
  20  6.4753e-06
  21  0.83863
  22  0.498848
  23  6.43152
  24  1.36697
  25  8.79069e-06
  26  1.29187e-06
  27  3.47339e-07
  28  4.43367
  29  1.60971
  30  8.97851e-07
  31  0.0567668
  32  0.065155
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  5.421e+00  4.957e+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:  8.802e-01  6.515e-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:  1.084e+00  5.677e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 183.437 64.396
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 8.38e-09 +/- 7.65e-09
Energy Flux (Fixed Index): 2.51e-06 +/- 2.30e-06

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

Saving results to:
/scratch/kocevski/883507/likelihoodResults_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.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) = 66502.0730333
delta logL = 0.00939849670976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 66502.0708319
delta logL = 0.0115999015979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0803       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5657       1.0000          .0000       10.000    
     3 'Normalizat'    1.0827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88107       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=   66502.07     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      226 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0775        18.567        .44597E-02    .68213E-03
   2  Index         2.5668        .41943        .50000        .53681E-04
   3  Normalizat    1.0827        .49513E-02    .38754E-01    .40790E-04
   4  Prefactor     .88106        .58652E-02    .44763E-01    .16240E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.07747
  Index      = 2.56683
  Normalizat = 1.08265
  Prefactor  = 0.881059
 **********
 **   18 **HESSE 
 **********

 FCN=   66502.07     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0775        5.4576        .17839E-03   -1.5257    
   2  Index         2.5668        .65638        .58120E-02   -.50823    
   3  Normalizat    1.0827        .54673E-01    .21209E-03   -.90311    
   4  Prefactor     .88106        .64219E-01    .27478E-03   -.96806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03179e-12
Minuit parameter uncertainties:
  1  5.45809
  2  0.658877
  3  0.054676
  4  0.064224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883507': 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) = 66502.0708302
delta logL = 0.0116015300737

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  5.077e+00  5.458e+00  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.567e+00  6.589e-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:  8.811e-01  6.422e-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:  1.083e+00  5.468e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 183.437 64.396
Photon Index (Free Index): 2.57 +/- 0.66
Photon Flux (Free Index): 9.09e-09 +/- 9.07e-09
Energy Flux (Free Index): 2.46e-06 +/- 2.27e-06

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/883507/cmap_HighResolution_669859201_672451201_4FGL_J1213.7+6423_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-03', comment='SUCCESS', photon_flux='8.38e-09', energy_flux2='2.46e-06', photon_flux_error='7.65e-09', dlogl='1.16e-02', energy_flux='2.51e-06', photon_flux2='9.09e-09', job_status='DONE', time_completed='2022-04-24 04:00:45.654576', photon_index_error2='0.66', photon_index2='2.57', ts='1.45', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.32e-08', energy_flux_error2='2.27e-06', EG='1.08', time_epoch_completed='1650798045.65', return_code='0', job_id='883507', GAL2='0.88', EG2='1.08', return_code2='0', energy_flux_error='2.30e-06', photon_flux_error2='9.07e-09', ts2='1.47', photon_index='2.47' WHERE bin_id='167' AND source_name='4FGL J1213.7+6423' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:00:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 883507: <4FGL_J1213.7+6423_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1213.7+6423_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 01:10:38 2022
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:38:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 01:38:33 2022
Terminated at Sun Apr 24 04:00:46 2022
Results reported at Sun Apr 24 04:00:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_monthly_bin167 183.437 64.3961 669859201 672451201 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 :                                   8416.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             412.01 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   8533 sec.
    Turnaround time :                            10208 sec.

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

