/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 224 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 = 7367
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1326.9+2210_daily_bin928
RA = 201.73, Dec = 22.1732
tmin = 479865601, tmax = 480124801
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='592786', job_status='RUN', time_executed='2021-09-07 18:39:30.698854', time_epoch_executed='1631065170.7' WHERE source_name='4FGL J1326.9+2210' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592786/ft1_4FGL_J1326.9+2210_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592786/ft2_4FGL_J1326.9+2210_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592786/ft1_4FGL_J1326.9+2210_daily_bin928.fits outfile=/scratch/kocevski/592786/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin928.fits ra=201.73 dec=22.1732 rad=12.0 tmin=479865601.0 tmax=480124801.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 3.53
user 3.22
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592786/ft2_4FGL_J1326.9+2210_daily_bin928.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/592786/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin928.fits evtable="EVENTS" outfile="/scratch/kocevski/592786/ft1_filtered_4FGL_J1326.9+2210_daily_bin928.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592786/ft1_filtered_4FGL_J1326.9+2210_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/592786/ft2_4FGL_J1326.9+2210_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/592786/ltcube_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.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/592786/ft2_4FGL_J1326.9+2210_daily_bin928.fits
.....................!
real 14.31
user 13.76
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592786/ft1_filtered_4FGL_J1326.9+2210_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/592786/ft2_4FGL_J1326.9+2210_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/592786/ltcube_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.fits outfile=/scratch/kocevski/592786/expmap_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.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/592786/ltcube_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.fits
.....................!
real 192.82
user 186.50
sys 5.39

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/592786/ft1_filtered_4FGL_J1326.9+2210_daily_bin928.fits scfile=/scratch/kocevski/592786/ft2_4FGL_J1326.9+2210_daily_bin928.fits outfile=/scratch/kocevski/592786/cmap_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592786/ft1_filtered_4FGL_J1326.9+2210_daily_bin928.fits scfile=/scratch/kocevski/592786/ft2_4FGL_J1326.9+2210_daily_bin928.fits outfile=/scratch/kocevski/592786/cmap_HighResolution_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.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.57
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/592786/ft1_filtered_4FGL_J1326.9+2210_daily_bin928.fits', '/scratch/kocevski/592786/ft2_4FGL_J1326.9+2210_daily_bin928.fits', expMap='/scratch/kocevski/592786/expmap_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.fits', expCube='/scratch/kocevski/592786/ltcube_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/592786/Model_4FGL_J1326.9+2210_daily_bin928.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/592786/ft1_filtered_4FGL_J1326.9+2210_daily_bin928.fits
Spacecraft file(s): /scratch/kocevski/592786/ft2_4FGL_J1326.9+2210_daily_bin928.fits
Exposure map: /scratch/kocevski/592786/expmap_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.fits
Exposure cube: /scratch/kocevski/592786/ltcube_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/592786/Model_4FGL_J1326.9+2210_daily_bin928.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) = 5834.46877245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4640       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1432       1.0000         .10000E-03   10000.    
     5 'norm      '    .10447E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5595       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.420       1.0000         .10000E-03   10000.    
     8 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47889E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    85.590       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1537       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=   5834.392     FROM MIGRAD    STATUS=CONVERGED    356 CALLS     1523 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4634        6.8936        .15623E-07   -.73597E-03
   2  Prefactor     .10000E-03    8.1609       -.13043E-05** at limit **
   3  norm          .10000E-03    1.0486        .59748E-07** at limit **
   4  norm          2.1385        1.8979        .45252E-06   -.35500E-02
   5  norm          .10000E-03    6.9584        .70512E-06** at limit **
   6  norm          3.5267        32.063        .42419E-06   -.20429E-03
   7  Prefactor     22.421        16.136       -.12840E-05   -.53004E-04
   8  norm          .10000E-03    3.5839       -.14123E-05** at limit **
   9  Prefactor     .10000E-03    139.63       -.16598E-04** at limit **
  10  norm          .10000E-03    3.8757        .48279E-05** at limit **
  11  Prefactor     .10000E-03    11.635        .67944E-06** at limit **
  12  Prefactor     16.813        18.057       -.59356E-06   -.28259E-04
  13  Prefactor     85.585        53.399       -.42937E-05   -.27780E-04
  14  Prefactor     .10000E-03    2.1967       -.46321E-07** at limit **
  15  Prefactor     .10000E-03    4.0142       -.37823E-05** at limit **
  16  Prefactor     10.126        11.481        .46138E-05    .11091E-03
  17  Normalizat    1.0014        .17840       -.36025E-06    .22507E-04
  18  Prefactor     1.1539        .17691       -.14770E-06    .52108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.46335
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.13854
  norm       = 0.0001
  norm       = 3.5267
  Prefactor  = 22.4213
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8126
  Prefactor  = 85.5846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.126
  Normalizat = 1.00142
  Prefactor  = 1.15388
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.392     FROM HESSE     STATUS=OK           242 CALLS     1765 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4634        7.0329        .78928E-03   -1.5199    
   2  Prefactor     .10000E-03    8.1997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.0530        .76369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1385        4.0635        .99472E-03   -1.5415    
   5  norm          .10000E-03    7.1821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5267        33.937        .10711E-02   -1.5332    
   7  Prefactor     22.421        16.343        .84593E-04   -1.4761    
   8  norm          .10000E-03    3.6224        .14112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    144.90        .42357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.8972        .14684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.813        18.078        .97679E-04   -1.4888    
  13  Prefactor     85.585        53.440        .21712E-03   -1.3855    
  14  Prefactor     .10000E-03    2.2551        .22102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0274        .14965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.126        11.496        .12589E-03   -1.5071    
  17  Normalizat    1.0014        .21296        .25065E-03   -.92983    
  18  Prefactor     1.1539        .20917        .23662E-03   -.87763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0752e-08
Minuit parameter uncertainties:
  1  7.03381
  2  5.52682e-06
  3  5.79625e-07
  4  4.06403
  5  1.17929e-05
  6  21.8961
  7  16.3464
  8  8.48311e-06
  9  0.000568646
  10  2.55353e-05
  11  1.92957e-05
  12  18.0843
  13  53.4695
  14  1.74403e-06
  15  2.57274e-05
  16  11.498
  17  0.213139
  18  0.209323
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.000e-04  2.554e-05  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:  1.154e+00  2.093e-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:  1.001e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 201.730 22.173
Photon Flux Upper Limit: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592786/likelihoodResults_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.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): 102
logL (Free Index) = 5834.3930532
delta logL = -0.0012214395656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5834.39183171
delta logL = 4.26807673648e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3944       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1539       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5834.186     FROM MIGRAD    STATUS=FAILED       156 CALLS      300 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27196        21.431        .13522E-01    .27504E-02
   2  alpha         5.0000        4.9502        .50000    ** at limit **
   3  Normalizat    .95153        .98441E-01    .25065E-03    .26513E-03
   4  Prefactor     1.1847        .71426E-01    .23662E-03    .17666E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5834.186     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      448 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27196        21.431        .21398E-05    .27504E-02
   2  alpha         5.0000        4.9502        .64600E-02** at limit **
   3  Normalizat    .95153        .98441E-01    .62103E-06    .26513E-03
   4  Prefactor     1.1847        .71426E-01    .70789E-07    .17666E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5834.186     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      490 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27196        .45529        .59619E-04    .32913E-03
   2  alpha         5.0000        3.6796        .10017    ** at limit **
   3  Normalizat    .95153        .21981        .50130E-04    .16065E-03
   4  Prefactor     1.1847        .21374        .47325E-04    .79275E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.271957
  alpha      = 5
  Normalizat = 0.951526
  Prefactor  = 1.18474
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.186     FROM HESSE     STATUS=OK            23 CALLS      513 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27196        .45192        .23848E-05   -1.5604    
   2  alpha         5.0000        3.6806        .20034E-01    14.137    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95153        .21977        .10026E-04   -.94673    
   4  Prefactor     1.1847        .21374        .94649E-05   -.86802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76069e-11
Minuit parameter uncertainties:
  1  0.45193
  2  3.39663e-05
  3  0.219974
  4  0.213893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592786': 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) = 5834.18617502
delta logL = 0.205656731992

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  2.720e-01  4.519e-01  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  5.000e+00  3.397e-05  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:  1.185e+00  2.139e-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.515e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 201.730 22.173

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/592786/cmap_HighResolution_479865601_480124801_4FGL_J1326.9+2210_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-07 18:48:30.056877', job_id='592786', GAL2='1.18', fit_tolerance='1e-08', EG2='0.95', EG='1.00', time_epoch_completed='1631065710.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.06e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='928' AND source_name='4FGL J1326.9+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 18:48:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 592786: <4FGL_J1326.9+2210_daily_bin928> in cluster <slac> Done

Job <4FGL_J1326.9+2210_daily_bin928> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 18:35:19 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 18:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 18:35:35 2021
Terminated at Tue Sep  7 18:48:30 2021
Results reported at Tue Sep  7 18:48:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.9+2210_daily_bin928 201.73 22.1732 479865601 480124801 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 :                                   537.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            791 sec.

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

