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


Performing analysis on: 4FGL_J1326.9+2210_daily_bin282
RA = 201.73, Dec = 22.1732
tmin = 312422401, tmax = 312681601
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='587366', job_status='RUN', time_executed='2021-09-07 18:19:08.583001', time_epoch_executed='1631063948.58' WHERE source_name='4FGL J1326.9+2210' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587366/ft1_4FGL_J1326.9+2210_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587366/ft2_4FGL_J1326.9+2210_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587366/ft1_4FGL_J1326.9+2210_daily_bin282.fits outfile=/scratch/kocevski/587366/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin282.fits ra=201.73 dec=22.1732 rad=12.0 tmin=312422401.0 tmax=312681601.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.92
user 3.65
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587366/ft1_filtered_4FGL_J1326.9+2210_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/587366/ft2_4FGL_J1326.9+2210_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/587366/ltcube_312422401_312681601_4FGL_J1326.9+2210_daily_bin282.fits outfile=/scratch/kocevski/587366/expmap_312422401_312681601_4FGL_J1326.9+2210_daily_bin282.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/587366/ltcube_312422401_312681601_4FGL_J1326.9+2210_daily_bin282.fits
.....................!
real 191.28
user 186.69
sys 4.14

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/587366/ft1_filtered_4FGL_J1326.9+2210_daily_bin282.fits scfile=/scratch/kocevski/587366/ft2_4FGL_J1326.9+2210_daily_bin282.fits outfile=/scratch/kocevski/587366/cmap_312422401_312681601_4FGL_J1326.9+2210_daily_bin282.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587366/ft1_filtered_4FGL_J1326.9+2210_daily_bin282.fits scfile=/scratch/kocevski/587366/ft2_4FGL_J1326.9+2210_daily_bin282.fits outfile=/scratch/kocevski/587366/cmap_HighResolution_312422401_312681601_4FGL_J1326.9+2210_daily_bin282.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/587366/ft1_filtered_4FGL_J1326.9+2210_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/587366/ft2_4FGL_J1326.9+2210_daily_bin282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/587366/Model_4FGL_J1326.9+2210_daily_bin282.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/587366/ft1_filtered_4FGL_J1326.9+2210_daily_bin282.fits.....................!
real 49.26
user 47.87
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.986       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.378       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.5121       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0792       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0282       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.926       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2886       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.526       1.0000         .10000E-03   10000.    
    10 'norm      '    20.002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5727       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2598       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.527       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6672       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0219       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0934       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5885.258     FROM MIGRAD    STATUS=FAILED       583 CALLS     2238 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.985        9.0652        .12087E-03   -.74774E-03
   2  Prefactor     46.375        20.009        .58876E-04    .68667E-02
   3  norm          .10000E-03    2.6243        .23815E-03** at limit **
   4  norm          4.5056        13.969        .13577E-03    .42070E-02
   5  norm          1.0873        115.70        .22293E-02   -.14426E-02
   6  norm          2.0353        22.998        .29051E-03   -.10513E-02
   7  Prefactor     11.931        15.794        .11600E-03   -.43630E-02
   8  norm          5.2869        11.415        .17477E-03   -.17930E-02
   9  Prefactor     13.526        26.285        .10891E-03    .23648E-03
  10  norm          19.999        14.939        .89557E-04   -.12187E-02
  11  Prefactor     4.5712        15.703        .18824E-03    .80365E-03
  12  Prefactor     .10000E-03    6.7186        .18142E-02** at limit **
  13  Prefactor     .10000E-03    28.278        .18142E-02** at limit **
  14  Prefactor     8.2591        4.8385        .12253E-03    .61829E-02
  15  Prefactor     16.528        13.479        .98519E-04   -.36015E-03
  16  Prefactor     9.6664        12.096        .12889E-03    .47438E-03
  17  Normalizat    1.0219        .24002        .26876E-03   -.16531E-03
  18  Prefactor     1.0934        .21658        .25416E-03    .18745E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5885.258     FROM SIMPLEX   STATUS=PROGRESS     707 CALLS     2945 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.985        9.0652        .11945E-05   -1.5045    
   2  Prefactor     46.370        20.009        .13279E-05   -1.4345    
   3  norm          .10000E-03    2.6243        .28936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.5056        13.969        .21141E-06   -1.5283    
   5  norm          1.0873        115.70        .69147E-05   -1.5499    
   6  norm          2.0353        22.998        .47376E-06   -1.5423    
   7  Prefactor     11.931        15.794        .11784E-06   -1.5017    
   8  norm          5.2869        11.415        .11745E-06   -1.5248    
   9  Prefactor     13.526        26.285        .25818E-06   -1.4972    
  10  norm          19.999        14.939        .12566E-06   -1.4813    
  11  Prefactor     4.5712        15.703        .16731E-06   -1.5280    
  12  Prefactor     .10000E-03    6.7186        .27206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.278        .62523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2591        4.8385        .78098E-07   -1.5133    
  15  Prefactor     16.528        13.479        .12662E-06   -1.4895    
  16  Prefactor     9.6664        12.096        .16585E-06   -1.5086    
  17  Normalizat    1.0219        .24002        .11455E-06   -.92300    
  18  Prefactor     1.0934        .21658        .43553E-07   -.89679    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5885.258     FROM MIGRAD    STATUS=CONVERGED    234 CALLS     3179 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.985        9.0634        .48349E-05   -.24454E-04
   2  Prefactor     46.370        20.004        .11775E-04    .15254E-04
   3  norm          .10000E-03    2.6243        .47631E-04** at limit **
   4  norm          4.5005        10.684        .54310E-05    .11723E-04
   5  norm          1.0953        67.209        .89173E-04   -.10837E-04
   6  norm          2.0364        22.975        .11620E-04    .18002E-04
   7  Prefactor     11.935        15.691        .23200E-04    .82130E-04
   8  norm          5.2874        11.406        .69910E-05    .31223E-04
   9  Prefactor     13.526        26.286        .21782E-04   -.30272E-05
  10  norm          19.999        14.928        .17911E-04    .21961E-04
  11  Prefactor     4.5702        15.698        .75298E-05   -.13286E-04
  12  Prefactor     .10000E-03    6.7188        .36285E-03** at limit **
  13  Prefactor     .10000E-03    28.278        .36285E-03** at limit **
  14  Prefactor     8.2585        4.8371        .24506E-04   -.10531E-03
  15  Prefactor     16.528        13.479        .19704E-04    .65776E-05
  16  Prefactor     9.6659        12.090        .51554E-05   -.79387E-05
  17  Normalizat    1.0220        .23739        .10750E-04    .24323E-04
  18  Prefactor     1.0934        .21550        .50833E-04    .18384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9848
  Prefactor  = 46.3704
  norm       = 0.0001
  norm       = 4.50054
  norm       = 1.09532
  norm       = 2.03644
  Prefactor  = 11.9352
  norm       = 5.28738
  Prefactor  = 13.5257
  norm       = 19.9987
  Prefactor  = 4.57017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.25852
  Prefactor  = 16.5283
  Prefactor  = 9.66586
  Normalizat = 1.02195
  Prefactor  = 1.09336
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.258     FROM HESSE     STATUS=OK           226 CALLS     3405 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.985        9.0625        .96698E-06   -1.5045    
   2  Prefactor     46.370        20.003        .23551E-05   -1.4345    
   3  norm          .10000E-03    2.6243        .95262E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.5005        10.626        .10862E-05   -1.5284    
   5  norm          1.0953        66.490        .35669E-05   -1.5499    
   6  norm          2.0364        23.001        .23241E-05   -1.5423    
   7  Prefactor     11.935        15.691        .46399E-05   -1.5017    
   8  norm          5.2874        11.408        .13982E-05   -1.5248    
   9  Prefactor     13.526        26.288        .43564E-05   -1.4972    
  10  norm          19.999        14.929        .35823E-05   -1.4813    
  11  Prefactor     4.5702        15.706        .15060E-05   -1.5280    
  12  Prefactor     .10000E-03    6.7188        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.278        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2585        4.8371        .49011E-05   -1.5133    
  15  Prefactor     16.528        13.479        .39408E-05   -1.4895    
  16  Prefactor     9.6659        12.086        .10311E-05   -1.5086    
  17  Normalizat    1.0220        .23730        .21500E-05   -.92299    
  18  Prefactor     1.0934        .21557        .10167E-04   -.89679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56685e-11
Minuit parameter uncertainties:
  1  9.06362
  2  20.0058
  3  1.13971e-06
  4  10.6303
  5  17.0871
  6  13.6943
  7  15.6962
  8  11.4131
  9  26.311
  10  14.9314
  11  15.7205
  12  3.37192e-06
  13  2.0523e-06
  14  4.8373
  15  13.4815
  16  12.0888
  17  0.237541
  18  0.215738
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  2.000e+01  1.493e+01  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.093e+00  2.157e-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.022e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.40
Ra Dec: 201.730 22.173
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 8.13e-08 +/- 6.06e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.90e-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) = 5883.67365522
delta logL = 1.58454186292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5883.66758737
delta logL = 1.59060971185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.117       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5202       1.0000          .0000       5.0000    
     3 'Normalizat'    .92867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1515       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=   5883.668     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      293 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.117        11.850        .99568E-04    .34619E-03
   2  alpha         3.5202        .88981        .10367E-01    .36032E-04
   3  Normalizat    .92867        .22448        .27987E-03   -.30832E-04
   4  Prefactor     1.1515        .21466        .24844E-03   -.61869E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1167
  alpha      = 3.52023
  Normalizat = 0.928668
  Prefactor  = 1.15149
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.668     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.117        9.8666        .39827E-05   -1.5072    
   2  alpha         3.5202        .74646        .41469E-03    .42036    
   3  Normalizat    .92867        .22432        .11195E-04   -.95460    
   4  Prefactor     1.1515        .21429        .99374E-05   -.87838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04303e-11
Minuit parameter uncertainties:
  1  9.86816
  2  0.760456
  3  0.22455
  4  0.214454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587366': 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) = 5883.66758736
delta logL = 1.59060971468

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.012e+01  9.868e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  3.520e+00  7.605e-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.151e+00  2.145e-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:  9.287e-01  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.94
Ra Dec: 201.730 22.173
Photon Index (Free Index): 3.52 +/- 0.76
Photon Flux (Free Index): 1.60e-07 +/- 7.39e-08
Energy Flux (Free Index): 2.77e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/587366/cmap_HighResolution_312422401_312681601_4FGL_J1326.9+2210_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.13e-08', energy_flux2='2.77e-05', photon_flux_error='6.06e-08', dlogl='1.59e+00', energy_flux='2.54e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-07 18:29:09.748226', photon_index_error2='0.76', photon_index2='3.52', ts='4.40', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.02', time_epoch_completed='1631064549.75', return_code='0', job_id='587366', GAL2='1.15', EG2='0.93', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='7.39e-08', ts2='7.94', photon_index='2.38' WHERE bin_id='282' AND source_name='4FGL J1326.9+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 18:29:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 587366: <4FGL_J1326.9+2210_daily_bin282> in cluster <slac> Done

Job <4FGL_J1326.9+2210_daily_bin282> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 18:15:26 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 18:15:47 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:15:47 2021
Terminated at Tue Sep  7 18:29:10 2021
Results reported at Tue Sep  7 18:29:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.9+2210_daily_bin282 201.73 22.1732 312422401 312681601 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 :                                   600.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             265.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            824 sec.

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

