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


Performing analysis on: 4FGL_J1326.9+2210_daily_bin901
RA = 201.73, Dec = 22.1732
tmin = 472867201, tmax = 473126401
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='591554', job_status='RUN', time_executed='2021-09-07 18:36:30.385873', time_epoch_executed='1631064990.39' WHERE source_name='4FGL J1326.9+2210' and cadence='daily' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591554

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591554/ft1_4FGL_J1326.9+2210_daily_bin901.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591554/ft2_4FGL_J1326.9+2210_daily_bin901.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591554/ft1_4FGL_J1326.9+2210_daily_bin901.fits outfile=/scratch/kocevski/591554/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin901.fits ra=201.73 dec=22.1732 rad=12.0 tmin=472867201.0 tmax=473126401.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.96
user 3.69
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591554/ft1_filtered_4FGL_J1326.9+2210_daily_bin901.fits" evtable="EVENTS" scfile=/scratch/kocevski/591554/ft2_4FGL_J1326.9+2210_daily_bin901.fits sctable="SC_DATA" outfile=/scratch/kocevski/591554/ltcube_472867201_473126401_4FGL_J1326.9+2210_daily_bin901.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/591554/ft2_4FGL_J1326.9+2210_daily_bin901.fits
.....................!
real 17.57
user 17.10
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591554/ft1_filtered_4FGL_J1326.9+2210_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/591554/ft2_4FGL_J1326.9+2210_daily_bin901.fits sctable="SC_DATA" expcube=/scratch/kocevski/591554/ltcube_472867201_473126401_4FGL_J1326.9+2210_daily_bin901.fits outfile=/scratch/kocevski/591554/expmap_472867201_473126401_4FGL_J1326.9+2210_daily_bin901.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/591554/ltcube_472867201_473126401_4FGL_J1326.9+2210_daily_bin901.fits
.....................!
real 193.62
user 187.78
sys 5.13

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/591554/ft1_filtered_4FGL_J1326.9+2210_daily_bin901.fits scfile=/scratch/kocevski/591554/ft2_4FGL_J1326.9+2210_daily_bin901.fits outfile=/scratch/kocevski/591554/cmap_472867201_473126401_4FGL_J1326.9+2210_daily_bin901.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.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591554/ft1_filtered_4FGL_J1326.9+2210_daily_bin901.fits scfile=/scratch/kocevski/591554/ft2_4FGL_J1326.9+2210_daily_bin901.fits outfile=/scratch/kocevski/591554/cmap_HighResolution_472867201_473126401_4FGL_J1326.9+2210_daily_bin901.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.59
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5436       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.646       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.3233       1.0000         .10000E-03   10000.    
     5 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.326       1.0000         .10000E-03   10000.    
     8 'norm      '    9.6858       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.514       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.184       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .69894       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2829       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=   7142.279     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1486 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5439        6.3928       -.29277E-06   -.20422E-03
   2  Prefactor     19.647        12.286       -.49889E-06   -.64491E-03
   3  norm          .10000E-03    1.0018       -.18538E-07** at limit **
   4  norm          5.3244        3.7456       -.10516E-06   -.63014E-03
   5  norm          .10000E-03    4.5675        .59006E-06** at limit **
   6  norm          .10000E-03    10.193       -.64293E-05** at limit **
   7  Prefactor     10.326        9.3117        .10198E-08   -.15755E-04
   8  norm          9.6865        7.2036       -.37286E-07   -.35489E-04
   9  Prefactor     .10000E-03    42.106       -.52580E-05** at limit **
  10  norm          15.514        9.0460       -.92994E-08    .11022E-04
  11  Prefactor     22.186        14.856        .10279E-06    .65491E-04
  12  Prefactor     .10000E-03    15.833       -.87926E-05** at limit **
  13  Prefactor     .10000E-03    25.315        .82412E-05** at limit **
  14  Prefactor     .10000E-03    1.7834       -.97796E-07** at limit **
  15  Prefactor     .10000E-03    11.825        .99302E-05** at limit **
  16  Prefactor     .10000E-03    4.5085       -.16323E-07** at limit **
  17  Normalizat    .69887        .16022        .12717E-06   -.44036E-04
  18  Prefactor     1.2830        .15509        .77587E-07   -.60906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.5439
  Prefactor  = 19.6467
  norm       = 0.0001
  norm       = 5.32436
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 10.326
  norm       = 9.68653
  Prefactor  = 0.0001
  norm       = 15.514
  Prefactor  = 22.1857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.698866
  Prefactor  = 1.28301
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.279     FROM HESSE     STATUS=OK           244 CALLS     1730 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5439        6.3974        .17064E-03   -1.5237    
   2  Prefactor     19.647        12.405        .45181E-03   -1.4821    
   3  norm          .10000E-03    1.0063        .82584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.3244        3.2609        .11423E-03   -1.5246    
   5  norm          .10000E-03    8.7404        .30472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.326        9.3158        .12469E-03   -1.5065    
   8  norm          9.6865        7.1965        .12876E-03   -1.5085    
   9  Prefactor     .10000E-03    42.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.514        9.0445        .10169E-03   -1.4920    
  11  Prefactor     22.186        14.905        .85041E-04   -1.4766    
  12  Prefactor     .10000E-03    15.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8140        .11014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5292        .17521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .69887        .18980        .28479E-03   -1.0394    
  18  Prefactor     1.2830        .18415        .21668E-03   -.83814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33294e-10
Minuit parameter uncertainties:
  1  6.39822
  2  12.4069
  3  4.68888e-07
  4  3.26104
  5  0.000174118
  6  1.98336e-05
  7  9.31706
  8  7.19712
  9  4.63305e-05
  10  9.04529
  11  14.9079
  12  1.65334e-05
  13  8.37238e-06
  14  1.18133e-07
  15  7.60653e-05
  16  2.01446e-06
  17  0.189983
  18  0.184246
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.551e+01  9.045e+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:  1.283e+00  1.842e-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:  6.989e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.07
Ra Dec: 201.730 22.173
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 6.30e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.15e-05

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) = 7142.21480517
delta logL = 0.0640006062913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7142.21170648
delta logL = 0.0670992947316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.028       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1752       1.0000          .0000       5.0000    
     3 'Normalizat'    .71059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2758       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=   7142.212     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      240 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.028        8.8529        .10004E-03   -.28682E-03
   2  alpha         2.1752        .55950        .14869E-01   -.34119E-04
   3  Normalizat    .71060        .18518        .28266E-03    .36641E-04
   4  Prefactor     1.2758        .18370        .21720E-03    .11186E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.0281
  alpha      = 2.17518
  Normalizat = 0.710597
  Prefactor  = 1.27582
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.212     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.028        8.8551        .40017E-05   -1.4907    
   2  alpha         2.1752        .55935        .59477E-03   -.13030    
   3  Normalizat    .71060        .18534        .11306E-04   -1.0348    
   4  Prefactor     1.2758        .18383        .43441E-04   -.84029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22094e-10
Minuit parameter uncertainties:
  1  8.85582
  2  0.564208
  3  0.1855
  4  0.183923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591554': 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) = 7142.21170645
delta logL = 0.0670993271569

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.603e+01  8.856e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.175e+00  5.642e-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:  1.276e+00  1.839e-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:  7.106e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.24
Ra Dec: 201.730 22.173
Photon Index (Free Index): 2.18 +/- 0.56
Photon Flux (Free Index): 5.36e-08 +/- 4.03e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.19e-05

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/591554/cmap_HighResolution_472867201_473126401_4FGL_J1326.9+2210_daily_bin901.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.30e-08', energy_flux2='2.08e-05', photon_flux_error='3.67e-08', dlogl='6.71e-02', energy_flux='1.97e-05', photon_flux2='5.36e-08', job_status='DONE', time_completed='2021-09-07 18:45:19.115895', photon_index_error2='0.56', photon_index2='2.18', ts='6.07', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.70', time_epoch_completed='1631065519.12', return_code='0', job_id='591554', GAL2='1.28', EG2='0.71', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.03e-08', ts2='6.24', photon_index='2.38' WHERE bin_id='901' AND source_name='4FGL J1326.9+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 18:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 591554: <4FGL_J1326.9+2210_daily_bin901> in cluster <slac> Done

Job <4FGL_J1326.9+2210_daily_bin901> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 18:30:34 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 18:32:24 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:32:24 2021
Terminated at Tue Sep  7 18:45:19 2021
Results reported at Tue Sep  7 18:45:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.9+2210_daily_bin901 201.73 22.1732 472867201 473126401 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 :                                   527.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            885 sec.

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

