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


Performing analysis on: 4FGL_J1326.9+2210_daily_bin701
RA = 201.73, Dec = 22.1732
tmin = 421027201, tmax = 421286401
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='590303', job_status='RUN', time_executed='2021-09-07 18:31:02.461712', time_epoch_executed='1631064662.46' WHERE source_name='4FGL J1326.9+2210' and cadence='daily' and bin_id='701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590303

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590303/ft1_4FGL_J1326.9+2210_daily_bin701.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590303/ft2_4FGL_J1326.9+2210_daily_bin701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590303/ft1_4FGL_J1326.9+2210_daily_bin701.fits outfile=/scratch/kocevski/590303/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin701.fits ra=201.73 dec=22.1732 rad=12.0 tmin=421027201.0 tmax=421286401.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.85
user 3.55
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590303/ft1_filtered_4FGL_J1326.9+2210_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/590303/ft2_4FGL_J1326.9+2210_daily_bin701.fits sctable="SC_DATA" expcube=/scratch/kocevski/590303/ltcube_421027201_421286401_4FGL_J1326.9+2210_daily_bin701.fits outfile=/scratch/kocevski/590303/expmap_421027201_421286401_4FGL_J1326.9+2210_daily_bin701.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/590303/ltcube_421027201_421286401_4FGL_J1326.9+2210_daily_bin701.fits
.....................!
real 191.36
user 185.50
sys 5.09

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/590303/ft1_filtered_4FGL_J1326.9+2210_daily_bin701.fits scfile=/scratch/kocevski/590303/ft2_4FGL_J1326.9+2210_daily_bin701.fits outfile=/scratch/kocevski/590303/cmap_421027201_421286401_4FGL_J1326.9+2210_daily_bin701.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590303/ft1_filtered_4FGL_J1326.9+2210_daily_bin701.fits scfile=/scratch/kocevski/590303/ft2_4FGL_J1326.9+2210_daily_bin701.fits outfile=/scratch/kocevski/590303/cmap_HighResolution_421027201_421286401_4FGL_J1326.9+2210_daily_bin701.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7562       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.272       1.0000         .10000E-03   10000.    
     5 'norm      '    9.9805       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.665       1.0000         .10000E-03   10000.    
     8 'norm      '    .41063E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.549       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0442       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11196E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7031       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3929       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .70677       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=   6241.311     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1738 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7552        7.4916        .26876E-06    .39853E-03
   2  Prefactor     .10000E-03    39.529       -.26655E-05** at limit **
   3  norm          .10000E-03    2.5285       -.10288E-06** at limit **
   4  norm          23.272        8.0986        .10095E-07   -.33872E-04
   5  norm          9.9819        9.6120       -.10556E-07    .24695E-04
   6  norm          .10000E-03    6.2291        .13796E-07** at limit **
   7  Prefactor     21.663        19.920        .95138E-07   -.52614E-05
   8  norm          .10000E-03    44.822        .17521E-04** at limit **
   9  Prefactor     34.544        37.297        .50725E-06    .13768E-03
  10  norm          4.0309        8.0185        .26544E-05    .55737E-04
  11  Prefactor     .10000E-03    5.3736       -.12184E-06** at limit **
  12  Prefactor     .10000E-03    50.031        .21312E-05** at limit **
  13  Prefactor     .10000E-03    21.079        .50398E-06** at limit **
  14  Prefactor     .10000E-03    .99885       -.39817E-07** at limit **
  15  Prefactor     .10000E-03    4.5485       -.49133E-07** at limit **
  16  Prefactor     7.7060        11.285       -.33730E-07    .15381E-03
  17  Normalizat    1.3928        .18110       -.62058E-06    .24284E-04
  18  Prefactor     .70674        .16584        .14865E-05    .32881E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.75522
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 23.2717
  norm       = 9.98189
  norm       = 0.0001
  Prefactor  = 21.663
  norm       = 0.000100002
  Prefactor  = 34.5441
  norm       = 4.03094
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.70596
  Normalizat = 1.39279
  Prefactor  = 0.706738
 **********
 **   18 **HESSE 
 **********

 FCN=   6241.311     FROM HESSE     STATUS=OK           244 CALLS     1982 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7552        7.4991        .18449E-03   -1.5272    
   2  Prefactor     .10000E-03    40.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5715        .12264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.272        8.1433        .83033E-04   -1.4743    
   5  norm          9.9819        9.6412        .12684E-03   -1.5076    
   6  norm          .10000E-03    6.2312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.663        19.949        .86053E-04   -1.4777    
   8  norm          .10000E-03    43.752        .33319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.544        37.397        .68177E-04   -1.4532    
  10  norm          4.0309        8.0420        .20051E-03   -1.5306    
  11  Prefactor     .10000E-03    5.3816        .17888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0018        .77110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5571        .16455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7060        11.292        .14448E-03   -1.5153    
  17  Normalizat    1.3928        .21510        .23004E-03   -.80837    
  18  Prefactor     .70674        .19681        .28657E-03   -1.0326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23933e-10
Minuit parameter uncertainties:
  1  7.5006
  2  0.000411678
  3  2.10183e-05
  4  8.14374
  5  9.64271
  6  3.19672e-06
  7  19.9547
  8  0.000571167
  9  37.4222
  10  8.04417
  11  3.44858e-05
  12  0.000547628
  13  6.88443e-05
  14  4.2006e-06
  15  1.17729e-05
  16  11.2947
  17  0.215235
  18  0.197001
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  4.031e+00  8.044e+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:  7.067e-01  1.970e-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.393e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/590303/likelihoodResults_421027201_421286401_4FGL_J1326.9+2210_daily_bin701.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) = 6241.30691202
delta logL = 0.00376378439341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6241.30670355
delta logL = 0.00397224921471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8955       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4993       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70811       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=   6241.307     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8959        8.2497        .20443E-03   -.77930E-03
   2  alpha         2.4989        1.3021        .33260E-01   -.60517E-04
   3  Normalizat    1.3909        .21142        .23018E-03    .16116E-03
   4  Prefactor     .70796        .19374        .28634E-03    .14329E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.89589
  alpha      = 2.49894
  Normalizat = 1.39087
  Prefactor  = 0.707961
 **********
 **   18 **HESSE 
 **********

 FCN=   6241.307     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8959        7.9655        .81771E-05   -1.5313    
   2  alpha         2.4989        1.2616        .13304E-02   -.42227E-03
   3  Normalizat    1.3909        .21162        .46036E-04   -.80893    
   4  Prefactor     .70796        .19381        .11454E-04   -1.0322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58619e-09
Minuit parameter uncertainties:
  1  7.96769
  2  1.32242
  3  0.211757
  4  0.193996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590303': 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) = 6241.30670321
delta logL = 0.00397259547481

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  3.896e+00  7.968e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.499e+00  1.322e+00  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:  7.080e-01  1.940e-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.391e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/590303/cmap_HighResolution_421027201_421286401_4FGL_J1326.9+2210_daily_bin701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-05', job_status='DONE', photon_flux_upper_limit='9.43e-08', time_completed='2021-09-07 18:40:16.028055', job_id='590303', GAL2='0.71', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631065216.03', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='3.97e-03', ts2='0.32', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='701' AND source_name='4FGL J1326.9+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 18:40:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 590303: <4FGL_J1326.9+2210_daily_bin701> in cluster <slac> Done

Job <4FGL_J1326.9+2210_daily_bin701> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 18:25:40 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 18:27:05 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:27:05 2021
Terminated at Tue Sep  7 18:40:16 2021
Results reported at Tue Sep  7 18:40:16 2021

Your job looked like:

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

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

