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


Performing analysis on: 4FGL_J1326.9+2210_daily_bin536
RA = 201.73, Dec = 22.1732
tmin = 378259201, tmax = 378518401
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='590066', job_status='RUN', time_executed='2021-09-07 18:28:40.310286', time_epoch_executed='1631064520.31' WHERE source_name='4FGL J1326.9+2210' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590066/ft1_4FGL_J1326.9+2210_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590066/ft2_4FGL_J1326.9+2210_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590066/ft1_4FGL_J1326.9+2210_daily_bin536.fits outfile=/scratch/kocevski/590066/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin536.fits ra=201.73 dec=22.1732 rad=12.0 tmin=378259201.0 tmax=378518401.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 4.56
user 4.30
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590066/ft2_4FGL_J1326.9+2210_daily_bin536.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/590066/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin536.fits evtable="EVENTS" outfile="/scratch/kocevski/590066/ft1_filtered_4FGL_J1326.9+2210_daily_bin536.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/590066/ft1_filtered_4FGL_J1326.9+2210_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/590066/ft2_4FGL_J1326.9+2210_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/590066/ltcube_378259201_378518401_4FGL_J1326.9+2210_daily_bin536.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/590066/ft2_4FGL_J1326.9+2210_daily_bin536.fits
.....................!
real 16.94
user 16.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590066/ft1_filtered_4FGL_J1326.9+2210_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/590066/ft2_4FGL_J1326.9+2210_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/590066/ltcube_378259201_378518401_4FGL_J1326.9+2210_daily_bin536.fits outfile=/scratch/kocevski/590066/expmap_378259201_378518401_4FGL_J1326.9+2210_daily_bin536.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/590066/ltcube_378259201_378518401_4FGL_J1326.9+2210_daily_bin536.fits
.....................!
real 192.24
user 187.11
sys 4.57

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/590066/ft1_filtered_4FGL_J1326.9+2210_daily_bin536.fits scfile=/scratch/kocevski/590066/ft2_4FGL_J1326.9+2210_daily_bin536.fits outfile=/scratch/kocevski/590066/cmap_378259201_378518401_4FGL_J1326.9+2210_daily_bin536.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.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.015       1.0000         .10000E-03   10000.    
     3 'norm      '    9.7619       1.0000         .10000E-03   10000.    
     4 'norm      '    7.4221       1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    28.120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3851       1.0000         .10000E-03   10000.    
     8 'norm      '    11.586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.740       1.0000         .10000E-03   10000.    
    10 'norm      '    12.779       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.320       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7178       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .77084       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2722       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=   6124.240     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1489 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6011       -.87288E-07** at limit **
   2  Prefactor     20.016        13.545       -.25255E-06   -.13528E-04
   3  norm          9.7616        4.6482       -.11137E-06    .65135E-04
   4  norm          7.4218        3.6094        .13007E-06    .39604E-04
   5  norm          .10000E-03    2.4462       -.22809E-06** at limit **
   6  norm          28.117        21.353        .15067E-05    .11722E-04
   7  Prefactor     5.3842        10.535       -.11940E-06   -.73745E-04
   8  norm          11.587        7.1550        .87225E-07   -.37983E-04
   9  Prefactor     17.740        20.260        .16059E-07   -.29340E-05
  10  norm          12.780        9.8398        .80395E-07   -.50192E-04
  11  Prefactor     18.321        14.876       -.34893E-06   -.11684E-03
  12  Prefactor     .10000E-03    7.0607        .12811E-05** at limit **
  13  Prefactor     .10000E-03    30.188        .50454E-06** at limit **
  14  Prefactor     .15406        9.9057       -.95274E-05    .13812E-04
  15  Prefactor     .10000E-03    3.3755       -.38769E-07** at limit **
  16  Prefactor     1.7156        1.7881        .70814E-06   -.20272E-03
  17  Normalizat    .77066        .17897        .92628E-06   -.46347E-04
  18  Prefactor     1.2723        .17283       -.80549E-06   -.24100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.016
  norm       = 9.7616
  norm       = 7.42184
  norm       = 0.0001
  norm       = 28.1168
  Prefactor  = 5.38419
  norm       = 11.5867
  Prefactor  = 17.7402
  norm       = 12.78
  Prefactor  = 18.3207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.154061
  Prefactor  = 0.0001
  Prefactor  = 1.71561
  Normalizat = 0.770664
  Prefactor  = 1.27233
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.240     FROM HESSE     STATUS=OK           252 CALLS     1741 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8502        .36092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.016        13.569        .89526E-04   -1.4813    
   3  norm          9.7616        4.6568        .11146E-03   -1.5083    
   4  norm          7.4218        3.6083        .99772E-04   -1.5163    
   5  norm          .10000E-03    2.4526        .11948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          28.117        21.362        .75550E-04   -1.4647    
   7  Prefactor     5.3842        10.688        .86587E-03   -1.5244    
   8  norm          11.587        7.1518        .11769E-03   -1.5027    
   9  Prefactor     17.740        20.267        .95091E-04   -1.4865    
  10  norm          12.780        9.8403        .11205E-03   -1.4993    
  11  Prefactor     18.321        14.934        .93575E-04   -1.4852    
  12  Prefactor     .10000E-03    7.0774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15406        9.9780        .19458E-02   -1.5629    
  15  Prefactor     .10000E-03    3.3779        .14041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7156        13.038        .16028E-02   -1.5446    
  17  Normalizat    .77066        .21174        .28040E-03   -1.0117    
  18  Prefactor     1.2723        .20654        .22679E-03   -.84134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58057e-10
Minuit parameter uncertainties:
  1  9.02986e-05
  2  13.5707
  3  4.65698
  4  3.60843
  5  2.5294e-05
  6  21.3677
  7  10.6915
  8  7.15229
  9  20.2746
  10  9.84154
  11  14.9372
  12  1.24656e-05
  13  4.83134e-05
  14  2.47932
  15  5.48651e-06
  16  9.46149
  17  0.211966
  18  0.206668
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.278e+01  9.842e+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.272e+00  2.067e-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.707e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 201.730 22.173
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/590066/likelihoodResults_378259201_378518401_4FGL_J1326.9+2210_daily_bin536.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) = 6123.37210036
delta logL = 0.86757930997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6123.36944597
delta logL = 0.870233707852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8231       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4219       1.0000          .0000       5.0000    
     3 'Normalizat'    .71424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3099       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=   6123.369     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      300 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8222        9.8766        .10716E-03    .51147E-03
   2  alpha         3.4216        1.0951        .12902E-01    .40136E-04
   3  Normalizat    .71421        .20812        .28999E-03   -.77623E-04
   4  Prefactor     1.3100        .20798        .22391E-03   -.16592E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.82218
  alpha      = 3.42164
  Normalizat = 0.714213
  Prefactor  = 1.31002
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.369     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8222        7.9309        .42864E-05   -1.5186    
   2  alpha         3.4216        .89136        .51609E-03    .37756    
   3  Normalizat    .71421        .20777        .11600E-04   -1.0333    
   4  Prefactor     1.3100        .20751        .44781E-04   -.83010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34166e-11
Minuit parameter uncertainties:
  1  7.9321
  2  0.914802
  3  0.207997
  4  0.207641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590066': 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) = 6123.36944541
delta logL = 0.870234261557

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  6.822e+00  7.932e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  3.422e+00  9.148e-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.310e+00  2.076e-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.142e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 201.730 22.173
Photon Index (Free Index): 3.42 +/- 0.91
Photon Flux (Free Index): 9.46e-08 +/- 5.56e-08
Energy Flux (Free Index): 1.69e-05 +/- 9.56e-06

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/590066/cmap_HighResolution_378259201_378518401_4FGL_J1326.9+2210_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-05', comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='1.69e-05', photon_flux_error='4.00e-08', dlogl='8.70e-01', energy_flux='1.63e-05', photon_flux2='9.46e-08', job_status='DONE', time_completed='2021-09-07 18:37:49.633745', photon_index_error2='0.91', photon_index2='3.42', ts='2.76', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='9.56e-06', EG='0.77', time_epoch_completed='1631065069.63', return_code='0', job_id='590066', GAL2='1.31', EG2='0.71', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.56e-08', ts2='4.69', photon_index='2.38' WHERE bin_id='536' AND source_name='4FGL J1326.9+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 18:37:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 590066: <4FGL_J1326.9+2210_daily_bin536> in cluster <slac> Done

Job <4FGL_J1326.9+2210_daily_bin536> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 18:25:23 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 18:25:48 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:25:48 2021
Terminated at Tue Sep  7 18:37:50 2021
Results reported at Tue Sep  7 18:37:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.9+2210_daily_bin536 201.73 22.1732 378259201 378518401 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 :                                   546.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            747 sec.

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

