aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 93 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 = 17190
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1326.9+2210_weekly_bin2
RA = 201.73, Dec = 22.1732
tmin = 240192001, tmax = 240796801
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='872498', job_status='RUN', time_executed='2021-07-20 13:44:07.200532', time_epoch_executed='1626813847.2' WHERE source_name='4FGL J1326.9+2210' and cadence='weekly' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872498

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

Retrieving the FT1 file...

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

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

Retrieving 104 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872498/ft1_4FGL_J1326.9+2210_weekly_bin2.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872498/ft1_4FGL_J1326.9+2210_weekly_bin2.fits outfile=/scratch/kocevski/872498/ft1_filteredMKT_4FGL_J1326.9+2210_weekly_bin2.fits ra=201.73 dec=22.1732 rad=12.0 tmin=240192001.0 tmax=240796801.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 2.64
user 2.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.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/872498/ft1_filteredMKT_4FGL_J1326.9+2210_weekly_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/872498/ft1_filtered_4FGL_J1326.9+2210_weekly_bin2.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.55
user 0.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872498/ft1_filtered_4FGL_J1326.9+2210_weekly_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/872498/ltcube_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.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/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits
.....................!
real 35.75
user 35.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872498/ft1_filtered_4FGL_J1326.9+2210_weekly_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/872498/ltcube_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.fits outfile=/scratch/kocevski/872498/expmap_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.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/872498/ltcube_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.fits
.....................!
real 192.48
user 186.51
sys 5.28

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

Setting source of interest to:
4FGL J1326.9+2210 @ 201.73 22.1732

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/872498/ft1_filtered_4FGL_J1326.9+2210_weekly_bin2.fits scfile=/scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits outfile=/scratch/kocevski/872498/cmap_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.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=201.73 yref=22.1732 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.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872498/ft1_filtered_4FGL_J1326.9+2210_weekly_bin2.fits scfile=/scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits outfile=/scratch/kocevski/872498/cmap_HighResolution_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.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=201.73 yref=22.1732 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/872498/ft1_filtered_4FGL_J1326.9+2210_weekly_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/872498/Model_4FGL_J1326.9+2210_weekly_bin2.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/872498/ft1_filtered_4FGL_J1326.9+2210_weekly_bin2.fits.....................!
real 93.36
user 91.71
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/872498/ft1_filtered_4FGL_J1326.9+2210_weekly_bin2.fits', '/scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits', expMap='/scratch/kocevski/872498/expmap_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.fits', expCube='/scratch/kocevski/872498/ltcube_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/872498/Model_4FGL_J1326.9+2210_weekly_bin2.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1326.9+2210'

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  7.707e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  1.183e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.855e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/872498/ft1_filtered_4FGL_J1326.9+2210_weekly_bin2.fits
Spacecraft file(s): /scratch/kocevski/872498/ft2_4FGL_J1326.9+2210_weekly_bin2.fits
Exposure map: /scratch/kocevski/872498/expmap_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.fits
Exposure cube: /scratch/kocevski/872498/ltcube_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/872498/Model_4FGL_J1326.9+2210_weekly_bin2.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) = 13342.3048973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5762       1.0000         .10000E-03   10000.    
     3 'norm      '    .19469E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    37.377       1.0000         .10000E-03   10000.    
     5 'norm      '    11.021       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9328       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3513       1.0000         .10000E-03   10000.    
     8 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.213       1.0000         .10000E-03   10000.    
    10 'norm      '    8.7425       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53733E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8193       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5368       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .96546       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13342.27     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1603 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7686        .12489E-07** at limit **
   2  Prefactor     6.5788        6.7440       -.56055E-06   -.60125E-05
   3  norm          .10000E-03    .90344        .32613E-07** at limit **
   4  norm          37.375        7.0219       -.12087E-05    .39623E-04
   5  norm          11.023        10.798        .43134E-05   -.21076E-04
   6  norm          2.9119        9.0654        .87843E-07   -.92860E-04
   7  Prefactor     6.3493        8.0827       -.43925E-06   -.16332E-04
   8  norm          .10000E-03    1.7355       -.28957E-07** at limit **
   9  Prefactor     11.203        20.174        .76511E-06   -.23111E-05
  10  norm          8.7424        4.8158        .33363E-06   -.66867E-05
  11  Prefactor     .10648        5.2482        .21004E-06    .67631E-06
  12  Prefactor     .10000E-03    8.8398        .70183E-07** at limit **
  13  Prefactor     .10000E-03    6.4933        .87218E-07** at limit **
  14  Prefactor     8.8180        3.1543        .17614E-07   -.12523E-03
  15  Prefactor     13.902        8.2868        .19287E-05   -.55792E-05
  16  Prefactor     1.5384        1.4178       -.32461E-07   -.47541E-03
  17  Normalizat    .96530        .11937        .41388E-06   -.12981E-03
  18  Prefactor     .98540        .11320       -.64167E-06    .30484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.57876
  norm       = 0.0001
  norm       = 37.3748
  norm       = 11.0233
  norm       = 2.91186
  Prefactor  = 6.34931
  norm       = 0.0001
  Prefactor  = 11.2032
  norm       = 8.7424
  Prefactor  = 0.106478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.81799
  Prefactor  = 13.9022
  Prefactor  = 1.53836
  Normalizat = 0.965304
  Prefactor  = 0.985403
 **********
 **   18 **HESSE 
 **********

 FCN=   13342.27     FROM HESSE     STATUS=OK           262 CALLS     1865 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7953        .14997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5788        6.7481        .15649E-03   -1.5195    
   3  norm          .10000E-03    7.2210        .21087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          37.375        7.0325        .65555E-04   -1.4485    
   5  norm          11.023        10.800        .12068E-03   -1.5044    
   6  norm          2.9119        9.3038        .11860E-02   -1.5367    
   7  Prefactor     6.3493        8.0776        .15927E-03   -1.5204    
   8  norm          .10000E-03    1.7550        .14826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.203        20.206        .11964E-03   -1.5038    
  10  norm          8.7424        4.8146        .13556E-03   -1.5117    
  11  Prefactor     .10648        6.9614        .78601E-01   -1.5643    
  12  Prefactor     .10000E-03    8.8747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8180        3.1716        .58756E-03   -1.5114    
  15  Prefactor     13.902        8.2973        .10743E-03   -1.4962    
  16  Prefactor     1.5384        5.8408        .17203E-02   -1.5460    
  17  Normalizat    .96530        .14047        .24773E-03   -.94202    
  18  Prefactor     .98540        .13380        .23892E-03   -.93218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19753e-10
Minuit parameter uncertainties:
  1  7.73014e-07
  2  6.7489
  3  1.49571e-05
  4  7.03266
  5  10.8019
  6  9.30842
  7  8.079
  8  4.02554e-06
  9  20.2182
  10  4.8148
  11  1.7213
  12  1.79136e-06
  13  1.05846e-06
  14  3.17161
  15  8.29794
  16  5.84299
  17  0.140524
  18  0.133844
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  8.742e+00  4.815e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  1.183e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.855e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.854e-01  1.338e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  9.653e-01  1.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.89
Ra Dec: 201.730 22.173
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 6.13e-06

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) = 13342.2706182
delta logL = 0.00317786240521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13342.2701811
delta logL = 0.00361496719779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8574       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3303       1.0000          .0000       5.0000    
     3 'Normalizat'    .96741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13342.27     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      197 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8574        115.79        .33670E-02    .93543E-03
   2  alpha         2.3303        3.0853        .41272        .50690E-04
   3  Normalizat    .96738        .81284E-01    .45757E-01    .24729E-04
   4  Prefactor     .98405        .60470E-01    .46067E-01    .17771E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.85736
  alpha      = 2.33032
  Normalizat = 0.967382
  Prefactor  = 0.984045
 **********
 **   18 **HESSE 
 **********

 FCN=   13342.27     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8574        5.0994        .13468E-03   -1.5113    
   2  alpha         2.3303        .61717        .21089E-01   -.67923E-01
   3  Normalizat    .96738        .13555        .24749E-03   -.94131    
   4  Prefactor     .98405        .13074        .23906E-03   -.93263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7346e-10
Minuit parameter uncertainties:
  1  5.09964
  2  0.623653
  3  0.135599
  4  0.130783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872498': 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) = 13342.2701811
delta logL = 0.00361498995517

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  8.857e+00  5.100e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.330e+00  6.237e-01  0.000e+00  5.000e+00 ( 1.000e+00)
311         beta:  1.183e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.855e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.840e-01  1.308e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  9.674e-01  1.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.88
Ra Dec: 201.730 22.173
Photon Index (Free Index): 2.33 +/- 0.62
Photon Flux (Free Index): 3.42e-08 +/- 2.42e-08
Energy Flux (Free Index): 1.12e-05 +/- 6.49e-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/872498/cmap_HighResolution_240192001_240796801_4FGL_J1326.9+2210_weekly_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.12e-05', photon_flux_error='1.96e-08', dlogl='3.61e-03', energy_flux='1.11e-05', photon_flux2='3.42e-08', job_status='DONE', time_completed='2021-07-20 13:56:38.301305', photon_index_error2='0.62', photon_index2='2.33', ts='6.89', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='6.49e-06', EG='0.97', time_epoch_completed='1626814598.3', return_code='0', job_id='872498', GAL2='0.98', EG2='0.97', return_code2='0', energy_flux_error='6.13e-06', photon_flux_error2='2.42e-08', ts2='6.88', photon_index='2.38' WHERE bin_id='2' AND source_name='4FGL J1326.9+2210' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 20 13:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 872498: <4FGL_J1326.9+2210_weekly_bin2> in cluster <slac> Done

Job <4FGL_J1326.9+2210_weekly_bin2> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jul 20 13:40:59 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 20 13:42:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 20 13:42:24 2021
Terminated at Tue Jul 20 13:56:39 2021
Results reported at Tue Jul 20 13:56:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.9+2210_weekly_bin2 201.73 22.1732 240192001 240796801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1326.9+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.00 sec.
    Max Memory :                                 1089 MB
    Average Memory :                             321.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            940 sec.

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

