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


Performing analysis on: 4FGL_J1326.9+2210_daily_bin785
RA = 201.73, Dec = 22.1732
tmin = 442800001, tmax = 443059201
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='591378', job_status='RUN', time_executed='2021-09-07 18:33:07.540535', time_epoch_executed='1631064787.54' WHERE source_name='4FGL J1326.9+2210' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591378

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591378/ft1_4FGL_J1326.9+2210_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591378/ft2_4FGL_J1326.9+2210_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591378/ft1_4FGL_J1326.9+2210_daily_bin785.fits outfile=/scratch/kocevski/591378/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin785.fits ra=201.73 dec=22.1732 rad=12.0 tmin=442800001.0 tmax=443059201.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.48
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591378/ft1_filtered_4FGL_J1326.9+2210_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/591378/ft2_4FGL_J1326.9+2210_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/591378/ltcube_442800001_443059201_4FGL_J1326.9+2210_daily_bin785.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/591378/ft2_4FGL_J1326.9+2210_daily_bin785.fits
.....................!
real 14.99
user 14.54
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591378/ft1_filtered_4FGL_J1326.9+2210_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/591378/ft2_4FGL_J1326.9+2210_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/591378/ltcube_442800001_443059201_4FGL_J1326.9+2210_daily_bin785.fits outfile=/scratch/kocevski/591378/expmap_442800001_443059201_4FGL_J1326.9+2210_daily_bin785.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/591378/ltcube_442800001_443059201_4FGL_J1326.9+2210_daily_bin785.fits
.....................!
real 191.67
user 186.10
sys 4.66

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/591378/ft1_filtered_4FGL_J1326.9+2210_daily_bin785.fits scfile=/scratch/kocevski/591378/ft2_4FGL_J1326.9+2210_daily_bin785.fits outfile=/scratch/kocevski/591378/cmap_442800001_443059201_4FGL_J1326.9+2210_daily_bin785.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591378/ft1_filtered_4FGL_J1326.9+2210_daily_bin785.fits scfile=/scratch/kocevski/591378/ft2_4FGL_J1326.9+2210_daily_bin785.fits outfile=/scratch/kocevski/591378/cmap_HighResolution_442800001_443059201_4FGL_J1326.9+2210_daily_bin785.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1106       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2774       1.0000         .10000E-03   10000.    
     4 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.246       1.0000         .10000E-03   10000.    
     6 'norm      '    7.7824       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.235       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6867       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.194       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .80761       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2915       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=   6242.112     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1247 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2355       -.16239E-06** at limit **
   2  Prefactor     6.1495        9.6532        .30909E-05   -.10351E-03
   3  norm          5.2973        3.9373       -.63213E-07   -.20421E-03
   4  norm          .10000E-03    2.4442        .11087E-06** at limit **
   5  norm          12.245        6.2560       -.59386E-06    .26864E-05
   6  norm          7.8273        13.216       -.36816E-05   -.26393E-04
   7  Prefactor     .10000E-03    4.7477        .29262E-06** at limit **
   8  norm          .10000E-03    2.0170        .17984E-07** at limit **
   9  Prefactor     .10000E-03    13.699        .37196E-06** at limit **
  10  norm          .10000E-03    3.7249       -.16489E-06** at limit **
  11  Prefactor     18.146        15.033       -.29144E-05    .36647E-06
  12  Prefactor     8.7621        12.564       -.30457E-05   -.26160E-04
  13  Prefactor     .10000E-03    25.428       -.13857E-05** at limit **
  14  Prefactor     2.9911        4.0465       -.89068E-06   -.55635E-03
  15  Prefactor     .10000E-03    3.9212       -.47138E-07** at limit **
  16  Prefactor     11.246        11.253       -.13749E-05   -.59690E-04
  17  Normalizat    .80725        .17238        .19575E-05   -.52740E-04
  18  Prefactor     1.2914        .17019       -.52534E-06    .87533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.14951
  norm       = 5.29733
  norm       = 0.0001
  norm       = 12.2445
  norm       = 7.82731
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.1456
  Prefactor  = 8.76215
  Prefactor  = 0.0001
  Prefactor  = 2.9911
  Prefactor  = 0.0001
  Prefactor  = 11.2458
  Normalizat = 0.807249
  Prefactor  = 1.29144
 **********
 **   18 **HESSE 
 **********

 FCN=   6242.112     FROM HESSE     STATUS=OK           244 CALLS     1491 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3347        .17650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1495        9.5226        .16241E-03   -1.5212    
   3  norm          5.2973        3.9366        .12987E-03   -1.5248    
   4  norm          .10000E-03    2.4787        .23973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.245        6.2161        .11447E-03   -1.5008    
   6  norm          7.8273        13.227        .14374E-03   -1.5148    
   7  Prefactor     .10000E-03    4.7569        .16814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0255        .10956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.7557        .14887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.146        14.987        .93793E-04   -1.4856    
  12  Prefactor     8.7621        12.566        .13600E-03   -1.5116    
  13  Prefactor     .10000E-03    25.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9911        4.1177        .17784E-03   -1.5362    
  15  Prefactor     .10000E-03    3.9276        .15279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.246        11.290        .11974E-03   -1.5037    
  17  Normalizat    .80725        .19944        .27071E-03   -.99800    
  18  Prefactor     1.2914        .19788        .22492E-03   -.83562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78397e-10
Minuit parameter uncertainties:
  1  7.30065e-06
  2  9.52491
  3  3.93675
  4  1.96888e-05
  5  6.21641
  6  13.2315
  7  4.42187e-06
  8  2.76609e-06
  9  6.03639e-06
  10  1.34429e-06
  11  14.9903
  12  12.5695
  13  1.01047e-05
  14  4.11809
  15  8.12863e-07
  16  11.2924
  17  0.199624
  18  0.197993
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.000e-04  1.344e-06  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.291e+00  1.980e-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:  8.072e-01  1.996e-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: 5.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591378/likelihoodResults_442800001_443059201_4FGL_J1326.9+2210_daily_bin785.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) = 6242.1131944
delta logL = -0.00126704822196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6242.11192738
delta logL = -2.68582880381e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3810       1.0000          .0000       5.0000    
     3 'Normalizat'    .80726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2915       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=   6242.112     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      244 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.7813        .14889E-02** at limit **
   2  alpha         2.1290        3.9328        .50000       -.62036E-06
   3  Normalizat    .80725        .19051        .27071E-03   -.49177E-04
   4  Prefactor     1.2914        .19618        .22492E-03   -.47987E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.12903
  Normalizat = 0.807251
  Prefactor  = 1.29144
 **********
 **   18 **HESSE 
 **********

 FCN=   6242.112     FROM HESSE     STATUS=OK            27 CALLS      271 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8701        .29779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1290        2.7183        .50000       -.14894    
   3  Normalizat    .80725        .19066        .10829E-04   -.99800    
   4  Prefactor     1.2914        .19634        .44984E-04   -.83562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82303e-09
Minuit parameter uncertainties:
  1  2.80538e-05
  2  301.733
  3  0.19082
  4  0.196452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591378': 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) = 6242.11192719
delta logL = 1.55634552357e-07

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.000e-04  2.805e-05  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.129e+00  3.017e+02  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.291e+00  1.965e-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:  8.073e-01  1.908e-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/591378/cmap_HighResolution_442800001_443059201_4FGL_J1326.9+2210_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-05', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-07 18:41:48.128210', job_id='591378', GAL2='1.29', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631065308.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='1.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='785' AND source_name='4FGL J1326.9+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 18:41:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 591378: <4FGL_J1326.9+2210_daily_bin785> in cluster <slac> Done

Job <4FGL_J1326.9+2210_daily_bin785> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 18:30:23 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 18:31:09 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:31:09 2021
Terminated at Tue Sep  7 18:41:48 2021
Results reported at Tue Sep  7 18:41:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.9+2210_daily_bin785 201.73 22.1732 442800001 443059201 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 :                                   518.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            685 sec.

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

