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 57 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1213.7+6423_weekly_bin715
RA = 183.437, Dec = 64.3961
tmin = 671414401, tmax = 672019201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='934686', job_status='RUN', time_executed='2022-04-19 02:29:30.498304', time_epoch_executed='1650360570.5' WHERE source_name='4FGL J1213.7+6423' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934686

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934686/ft1_4FGL_J1213.7+6423_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934686/ft1_4FGL_J1213.7+6423_weekly_bin715.fits outfile=/scratch/kocevski/934686/ft1_filteredMKT_4FGL_J1213.7+6423_weekly_bin715.fits ra=183.437 dec=64.3961 rad=12.0 tmin=671414401.0 tmax=672019201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 7.64
user 7.29
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/934686/ft1_filteredMKT_4FGL_J1213.7+6423_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934686/ft1_filtered_4FGL_J1213.7+6423_weekly_bin715.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.59
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 1398

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934686/ft1_filtered_4FGL_J1213.7+6423_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934686/ltcube_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits
.....................!
real 26.50
user 25.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934686/ft1_filtered_4FGL_J1213.7+6423_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934686/ltcube_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits outfile=/scratch/kocevski/934686/expmap_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/934686/ltcube_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits
.....................!
real 191.33
user 185.59
sys 5.36

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/934686/ft1_filtered_4FGL_J1213.7+6423_weekly_bin715.fits scfile=/scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits outfile=/scratch/kocevski/934686/cmap_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934686/ft1_filtered_4FGL_J1213.7+6423_weekly_bin715.fits scfile=/scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits outfile=/scratch/kocevski/934686/cmap_HighResolution_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.58
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934686/ft1_filtered_4FGL_J1213.7+6423_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934686/Model_4FGL_J1213.7+6423_weekly_bin715.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/934686/ft1_filtered_4FGL_J1213.7+6423_weekly_bin715.fits.....................!
real 139.45
user 135.31
sys 3.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934686/ft1_filtered_4FGL_J1213.7+6423_weekly_bin715.fits', '/scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits', expMap='/scratch/kocevski/934686/expmap_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits', expCube='/scratch/kocevski/934686/ltcube_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934686/Model_4FGL_J1213.7+6423_weekly_bin715.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/934686/ft1_filtered_4FGL_J1213.7+6423_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934686/ft2_4FGL_J1213.7+6423_weekly_bin715.fits
Exposure map: /scratch/kocevski/934686/expmap_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934686/ltcube_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934686/Model_4FGL_J1213.7+6423_weekly_bin715.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15465E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1281       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9141       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.967       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5000       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34975       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6320       1.0000         .10000E-03   10000.    
    13 'norm      '    .10256E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0225       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9009       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.090       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.266       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3616       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6751       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.553       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.6927       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0146       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.2912       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1810       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .87499       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=   15033.57     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     4454 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .41923        .81406E-09** at limit **
   2  Prefactor     .10000E-03    114.30        .30007E-05** at limit **
   3  Prefactor     .10000E-03    .96042        .17546E-07** at limit **
   4  norm          1.1283        .40417        .12589E-07   -.18571E-03
   5  norm          1.9152        2.4249        .71062E-06   -.48390E-04
   6  Prefactor     11.117        6.4263       -.98078E-06   -.19444E-03
   7  Prefactor     8.1513        12.773       -.55135E-07   -.17966E-03
   8  Prefactor     .10000E-03    1.9184       -.78447E-08** at limit **
   9  Prefactor     10.965        11.861       -.89137E-07    .14300E-04
  10  Prefactor     6.5000        8.9527       -.64163E-07   -.10836E-04
  11  Prefactor     .35027        1.3764        .17419E-07   -.18109E-03
  12  norm          2.6320        2.7176        .15589E-06   -.14507E-02
  13  norm          .10000E-03    1.5583       -.18949E-06** at limit **
  14  Prefactor     7.0161        5.2632        .12333E-06   -.61284E-03
  15  Prefactor     .10000E-03    18.197       -.42748E-07** at limit **
  16  norm          2.9008        1.4210       -.22980E-07   -.49066E-04
  17  Prefactor     16.062        29.526       -.10596E-04   -.33912E-04
  18  Prefactor     16.260        14.800        .20817E-06    .15612E-04
  19  Prefactor     .10000E-03    23.916       -.54162E-07** at limit **
  20  norm          .10000E-03    1.1382        .27800E-07** at limit **
  21  Prefactor     3.3614        2.5562       -.22860E-07    .88863E-05
  22  norm          1.6751        .98023       -.10041E-07    .23037E-04
  23  Prefactor     35.552        21.069       -.47591E-07    .29429E-05
  24  Prefactor     .10000E-03    3.0393       -.78173E-08** at limit **
  25  Prefactor     .10000E-03    7.1311        .78096E-07** at limit **
  26  Prefactor     6.6926        14.367       -.90087E-07   -.43481E-05
  27  Prefactor     .10000E-03    .97285       -.87792E-08** at limit **
  28  Prefactor     3.0142        9.4536       -.14628E-06   -.35272E-04
  29  Prefactor     1.2914        2.7635       -.33559E-07   -.18934E-03
  30  Prefactor     .10000E-03    38.687       -.20464E-06** at limit **
  31  Normalizat    1.1812        .10847        .11662E-07    .50094E-04
  32  Prefactor     .87477        .12259        .52738E-06   -.28888E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12828
  norm       = 1.91521
  Prefactor  = 11.1166
  Prefactor  = 8.15133
  Prefactor  = 0.0001
  Prefactor  = 10.9648
  Prefactor  = 6.49995
  Prefactor  = 0.350267
  norm       = 2.63199
  norm       = 0.0001
  Prefactor  = 7.01614
  Prefactor  = 0.0001
  norm       = 2.90079
  Prefactor  = 16.0618
  Prefactor  = 16.2601
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.36142
  norm       = 1.67512
  Prefactor  = 35.5519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.69261
  Prefactor  = 0.0001
  Prefactor  = 3.01419
  Prefactor  = 1.29143
  Prefactor  = 0.0001
  Normalizat = 1.18121
  Prefactor  = 0.874767
 **********
 **   18 **HESSE 
 **********

 FCN=   15033.57     FROM HESSE     STATUS=OK           673 CALLS     5127 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .42098        .77522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    114.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9104        .22805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1283        .39256        .42547E-04   -1.5496    
   5  norm          1.9152        2.3397        .12721E-03   -1.5431    
   6  Prefactor     11.117        6.2587        .12014E-03   -1.5041    
   7  Prefactor     8.1513        12.936        .70203E-03   -1.5137    
   8  Prefactor     .10000E-03    1.9857        .33147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.965        11.846        .12098E-03   -1.5046    
  10  Prefactor     6.5000        8.9365        .15741E-03   -1.5198    
  11  Prefactor     .35027        3.2561        .27271E-02   -1.5590    
  12  norm          2.6320        5.6163        .12568E-02   -1.5383    
  13  norm          .10000E-03    3.2634        .28356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0161        5.2244        .75692E-03   -1.5178    
  15  Prefactor     .10000E-03    18.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9008        1.4199        .98113E-04   -1.5367    
  17  Prefactor     16.062        29.460        .99850E-04   -1.4906    
  18  Prefactor     16.260        14.824        .99306E-04   -1.4901    
  19  Prefactor     .10000E-03    23.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5115        .25318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3614        2.5573        .16482E-03   -1.5341    
  22  norm          1.6751        .98435        .89741E-04   -1.5449    
  23  Prefactor     35.552        21.073        .67211E-04   -1.4515    
  24  Prefactor     .10000E-03    3.0781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.1329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.6926        14.235        .15511E-03   -1.5191    
  27  Prefactor     .10000E-03    .98774        .11785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.0142        9.3685        .23375E-03   -1.5361    
  29  Prefactor     1.2914        2.7123        .28943E-03   -1.5481    
  30  Prefactor     .10000E-03    39.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1812        .12568        .21673E-03   -.87186    
  32  Prefactor     .87477        .14243        .28922E-03   -.97028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02452e-07
Minuit parameter uncertainties:
  1  1.17553e-07
  2  3.42044e-05
  3  1.76873e-05
  4  0.392561
  5  2.33979
  6  6.25904
  7  12.9404
  8  1.21732e-06
  9  11.8484
  10  8.93837
  11  2.13575
  12  5.61741
  13  9.16918e-07
  14  5.22473
  15  2.18287e-05
  16  1.41992
  17  29.4867
  18  14.8269
  19  1.14735e-05
  20  3.24344e-06
  21  2.55738
  22  0.984356
  23  21.0771
  24  2.46749e-06
  25  2.57586e-07
  26  14.2424
  27  8.65959e-07
  28  9.37309
  29  2.71252
  30  2.19129e-05
  31  0.125711
  32  0.142486
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  1.626e+01  1.483e+01  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.748e-01  1.425e-01  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.181e+00  1.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 183.437 64.396
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 7.53e-06 +/- 6.87e-06

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

Saving results to:
/scratch/kocevski/934686/likelihoodResults_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15032.9887416
delta logL = 0.584695043779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15032.9871844
delta logL = 0.586252223848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7083       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7321       1.0000          .0000       10.000    
     3 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90840       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=   15032.99     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      307 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6882        39.322        .52428E-02    .79590E-03
   2  Index         3.7350        2.7606        .12041        .29355E-03
   3  Normalizat    1.1422        .33001E-01    .36493E-01   -.21743E-03
   4  Prefactor     .90842        .37098E-01    .45112E-01   -.27096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.68821
  Index      = 3.73499
  Normalizat = 1.14223
  Prefactor  = 0.908423
 **********
 **   18 **HESSE 
 **********

 FCN=   15032.99     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      340 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6882        73.359        .14553E-03   -1.5324    
   2  Index         3.7350        6.7737        .70303E-02   -.25578    
   3  Normalizat    1.1422        .10964        .21988E-03   -.88407    
   4  Prefactor     .90842        .12699        .28422E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.31598e-06
Minuit parameter uncertainties:
  1  32.9437
  2  5.03183
  3  0.109663
  4  0.127031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934686': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15032.9871829
delta logL = 0.586253780424

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  3.688e+00  3.294e+01  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  3.735e+00  5.032e+00  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:  9.084e-01  1.270e-01  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.142e+00  1.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.81
Ra Dec: 183.437 64.396
Photon Index (Free Index): 3.73 +/- 5.03
Photon Flux (Free Index): 4.92e-08 +/- 3.47e-08
Energy Flux (Free Index): 7.75e-06 +/- 7.71e-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/934686/cmap_HighResolution_671414401_672019201_4FGL_J1213.7+6423_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='7.75e-06', photon_flux_error='2.29e-08', dlogl='5.86e-01', energy_flux='7.53e-06', photon_flux2='4.92e-08', job_status='DONE', time_completed='2022-04-19 03:07:10.515259', photon_index_error2='5.03', photon_index2='3.73', ts='1.52', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='6.99e-08', energy_flux_error2='7.71e-06', EG='1.18', time_epoch_completed='1650362830.52', return_code='0', job_id='934686', GAL2='0.91', EG2='1.14', return_code2='102', energy_flux_error='6.87e-06', photon_flux_error2='3.47e-08', ts2='2.81', photon_index='2.47' WHERE bin_id='715' AND source_name='4FGL J1213.7+6423' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:07:10 PDT 2022



------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 930947: <4FGL_J1213.7+6423_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1213.7+6423_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:47 2022
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:14:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:14:57 2022
Terminated at Tue Apr 19 02:54:17 2022
Results reported at Tue Apr 19 02:54:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_weekly_bin715 183.437 64.3961 671414401 672019201 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 :                                   2251.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             341.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2359 sec.
    Turnaround time :                            10050 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 934686: <4FGL_J1213.7+6423_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1213.7+6423_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:57 2022
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:28:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:28:25 2022
Terminated at Tue Apr 19 03:07:11 2022
Results reported at Tue Apr 19 03:07:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_weekly_bin715 183.437 64.3961 671414401 672019201 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 :                                   2246.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             340.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2325 sec.
    Turnaround time :                            10154 sec.

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

