/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 145 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1326.9+2210_daily_bin354
RA = 201.73, Dec = 22.1732
tmin = 331084801, tmax = 331344001
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='588740', job_status='RUN', time_executed='2021-09-07 18:23:24.803053', time_epoch_executed='1631064204.8' WHERE source_name='4FGL J1326.9+2210' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588740

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588740/ft1_4FGL_J1326.9+2210_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588740/ft2_4FGL_J1326.9+2210_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588740/ft1_4FGL_J1326.9+2210_daily_bin354.fits outfile=/scratch/kocevski/588740/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin354.fits ra=201.73 dec=22.1732 rad=12.0 tmin=331084801.0 tmax=331344001.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.40
user 3.17
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588740/ft1_filtered_4FGL_J1326.9+2210_daily_bin354.fits" evtable="EVENTS" scfile=/scratch/kocevski/588740/ft2_4FGL_J1326.9+2210_daily_bin354.fits sctable="SC_DATA" outfile=/scratch/kocevski/588740/ltcube_331084801_331344001_4FGL_J1326.9+2210_daily_bin354.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/588740/ft2_4FGL_J1326.9+2210_daily_bin354.fits
.....................!
real 13.82
user 13.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588740/ft1_filtered_4FGL_J1326.9+2210_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/588740/ft2_4FGL_J1326.9+2210_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/588740/ltcube_331084801_331344001_4FGL_J1326.9+2210_daily_bin354.fits outfile=/scratch/kocevski/588740/expmap_331084801_331344001_4FGL_J1326.9+2210_daily_bin354.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/588740/ltcube_331084801_331344001_4FGL_J1326.9+2210_daily_bin354.fits
.....................!
real 191.49
user 185.49
sys 5.27

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/588740/ft1_filtered_4FGL_J1326.9+2210_daily_bin354.fits scfile=/scratch/kocevski/588740/ft2_4FGL_J1326.9+2210_daily_bin354.fits outfile=/scratch/kocevski/588740/cmap_331084801_331344001_4FGL_J1326.9+2210_daily_bin354.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588740/ft1_filtered_4FGL_J1326.9+2210_daily_bin354.fits scfile=/scratch/kocevski/588740/ft2_4FGL_J1326.9+2210_daily_bin354.fits outfile=/scratch/kocevski/588740/cmap_HighResolution_331084801_331344001_4FGL_J1326.9+2210_daily_bin354.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6835       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8806       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2101       1.0000         .10000E-03   10000.    
     4 'norm      '    .10821E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5213       1.0000         .10000E-03   10000.    
     6 'norm      '    29.033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8637       1.0000         .10000E-03   10000.    
     8 'norm      '    9.0965       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.288       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.099       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.422       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11320       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0858       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92574       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.

 FCN=   5680.315     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     2036 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6836        3.6339        .16321E-03   -.54680E-04
   2  Prefactor     1.8745        32.868        .30357E-03   -.29810E-04
   3  norm          3.2103        3.0782        .12523E-03    .33044E-04
   4  norm          .10001E-03    5.5718        .21461E-02** at limit **
   5  norm          2.5191        4.4252        .20370E-03   -.41552E-03
   6  norm          29.035        24.227        .74355E-04   -.27430E-04
   7  Prefactor     6.8636        12.004        .76571E-03   -.15949E-03
   8  norm          9.0962        8.0092        .66443E-03   -.96810E-04
   9  Prefactor     .10000E-03    32.182        .18142E-02** at limit **
  10  norm          10.290        9.8654        .12492E-03    .34310E-04
  11  Prefactor     22.098        14.078        .85206E-04    .14010E-04
  12  Prefactor     6.5414        19.941        .15692E-03   -.35500E-05
  13  Prefactor     .10000E-03    17.984        .18142E-02** at limit **
  14  Prefactor     .10000E-03    3.7559        .19354E-02** at limit **
  15  Prefactor     37.422        18.247        .65516E-04    .61080E-04
  16  Prefactor     .12275        14.880        .59827E-01    .25606E-03
  17  Normalizat    1.0857        .22080        .23771E-03   -.89817E-04
  18  Prefactor     .92577        .20849        .25139E-03    .41650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68362
  Prefactor  = 1.87455
  norm       = 3.21033
  norm       = 0.000100005
  norm       = 2.51909
  norm       = 29.035
  Prefactor  = 6.86359
  norm       = 9.09621
  Prefactor  = 0.0001
  norm       = 10.2898
  Prefactor  = 22.0983
  Prefactor  = 6.54138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4221
  Prefactor  = 0.122748
  Normalizat = 1.08568
  Prefactor  = 0.925768
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.315     FROM HESSE     STATUS=OK           236 CALLS     2272 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6836        3.6339        .65285E-05   -1.5380    
   2  Prefactor     1.8745        32.831        .12143E-04   -1.5434    
   3  norm          3.2103        3.0780        .50094E-05   -1.5350    
   4  norm          .10001E-03    5.5743        .42922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5191        4.4087        .81479E-05   -1.5391    
   6  norm          29.035        24.224        .14871E-04   -1.4630    
   7  Prefactor     6.8636        12.002        .30628E-04   -1.5184    
   8  norm          9.0962        8.0051        .26577E-04   -1.5105    
   9  Prefactor     .10000E-03    32.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.290        9.8625        .49967E-05   -1.5066    
  11  Prefactor     22.098        14.078        .34082E-05   -1.4767    
  12  Prefactor     6.5414        19.937        .62768E-05   -1.5196    
  13  Prefactor     .10000E-03    17.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7737        .38708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.422        18.246        .26207E-05   -1.4484    
  16  Prefactor     .12275        11.618        .69814E-01   -1.5638    
  17  Normalizat    1.0857        .22095        .95084E-05   -.90213    
  18  Prefactor     .92577        .20866        .10056E-04   -.95246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36515e-09
Minuit parameter uncertainties:
  1  3.63417
  2  15.6996
  3  3.0782
  4  0.00033955
  5  4.40925
  6  24.2327
  7  12.0058
  8  8.00605
  9  0.000114338
  10  9.86406
  11  14.0803
  12  19.9574
  13  1.39452e-06
  14  1.45555e-06
  15  18.2482
  16  2.3879
  17  0.221137
  18  0.208842
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.029e+01  9.864e+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.258e-01  2.088e-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.086e+00  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 201.730 22.173
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 4.18e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.25e-05

TS (Fixed Index): 2.07
Ra Dec: 201.730 22.173
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588740/likelihoodResults_331084801_331344001_4FGL_J1326.9+2210_daily_bin354.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) = 5680.31347425
delta logL = 0.00186022510752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5680.31309149
delta logL = 0.00224298379635

Fit tolerance = 1e-08

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

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

 FCN=   5680.313     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      261 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.056        10.015        .12638E-03    .76285E-04
   2  alpha         2.4422        .89598        .18833E-01    .92718E-04
   3  Normalizat    1.0833        .21394        .23793E-03    .49645E-04
   4  Prefactor     .92745        .20897        .25119E-03   -.64811E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0565
  alpha      = 2.44219
  Normalizat = 1.08333
  Prefactor  = 0.927455
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.313     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.056        9.7925        .50551E-05   -1.5074    
   2  alpha         2.4422        .87652        .37667E-02   -.23125E-01
   3  Normalizat    1.0833        .21407        .95172E-05   -.90289    
   4  Prefactor     .92745        .20907        .10048E-04   -.95188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70789e-11
Minuit parameter uncertainties:
  1  9.79408
  2  0.895557
  3  0.214244
  4  0.209248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588740': 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) = 5680.31309105
delta logL = 0.00224343066111

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.006e+01  9.794e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.442e+00  8.956e-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.275e-01  2.092e-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.083e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 201.730 22.173
Photon Index (Free Index): 2.44 +/- 0.90
Photon Flux (Free Index): 4.34e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.19e-05

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/588740/cmap_HighResolution_331084801_331344001_4FGL_J1326.9+2210_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-05', comment='SUCCESS', photon_flux='4.18e-08', energy_flux2='1.29e-05', photon_flux_error='4.01e-08', dlogl='2.24e-03', energy_flux='1.31e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2021-09-07 18:32:38.338833', photon_index_error2='0.90', photon_index2='2.44', ts='2.07', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.19e-05', EG='1.09', time_epoch_completed='1631064758.34', return_code='0', job_id='588740', GAL2='0.93', EG2='1.08', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.46e-08', ts2='2.09', photon_index='2.38' WHERE bin_id='354' AND source_name='4FGL J1326.9+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 18:32:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 588740: <4FGL_J1326.9+2210_daily_bin354> in cluster <slac> Done

Job <4FGL_J1326.9+2210_daily_bin354> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 18:20:40 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 18:20:50 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:20:50 2021
Terminated at Tue Sep  7 18:32:39 2021
Results reported at Tue Sep  7 18:32:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.9+2210_daily_bin354 201.73 22.1732 331084801 331344001 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 :                                   550.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            719 sec.

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

