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


Performing analysis on: 4FGL_J1326.9+2210_daily_bin913
RA = 201.73, Dec = 22.1732
tmin = 475977601, tmax = 476236801
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='592762', job_status='RUN', time_executed='2021-09-07 18:39:13.792546', time_epoch_executed='1631065153.79' WHERE source_name='4FGL J1326.9+2210' and cadence='daily' and bin_id='913'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592762

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592762/ft1_4FGL_J1326.9+2210_daily_bin913.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592762/ft2_4FGL_J1326.9+2210_daily_bin913.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592762/ft1_4FGL_J1326.9+2210_daily_bin913.fits outfile=/scratch/kocevski/592762/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin913.fits ra=201.73 dec=22.1732 rad=12.0 tmin=475977601.0 tmax=476236801.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.62
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592762/ft1_filtered_4FGL_J1326.9+2210_daily_bin913.fits" evtable="EVENTS" scfile=/scratch/kocevski/592762/ft2_4FGL_J1326.9+2210_daily_bin913.fits sctable="SC_DATA" outfile=/scratch/kocevski/592762/ltcube_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.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/592762/ft2_4FGL_J1326.9+2210_daily_bin913.fits
.....................!
real 15.76
user 15.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592762/ft1_filtered_4FGL_J1326.9+2210_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/592762/ft2_4FGL_J1326.9+2210_daily_bin913.fits sctable="SC_DATA" expcube=/scratch/kocevski/592762/ltcube_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.fits outfile=/scratch/kocevski/592762/expmap_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.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/592762/ltcube_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.fits
.....................!
real 191.42
user 186.28
sys 4.24

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/592762/ft1_filtered_4FGL_J1326.9+2210_daily_bin913.fits scfile=/scratch/kocevski/592762/ft2_4FGL_J1326.9+2210_daily_bin913.fits outfile=/scratch/kocevski/592762/cmap_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592762/ft1_filtered_4FGL_J1326.9+2210_daily_bin913.fits scfile=/scratch/kocevski/592762/ft2_4FGL_J1326.9+2210_daily_bin913.fits outfile=/scratch/kocevski/592762/cmap_HighResolution_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.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.57
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/592762/ft1_filtered_4FGL_J1326.9+2210_daily_bin913.fits', '/scratch/kocevski/592762/ft2_4FGL_J1326.9+2210_daily_bin913.fits', expMap='/scratch/kocevski/592762/expmap_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.fits', expCube='/scratch/kocevski/592762/ltcube_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/592762/Model_4FGL_J1326.9+2210_daily_bin913.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/592762/ft1_filtered_4FGL_J1326.9+2210_daily_bin913.fits
Spacecraft file(s): /scratch/kocevski/592762/ft2_4FGL_J1326.9+2210_daily_bin913.fits
Exposure map: /scratch/kocevski/592762/expmap_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.fits
Exposure cube: /scratch/kocevski/592762/ltcube_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/592762/Model_4FGL_J1326.9+2210_daily_bin913.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6323.75096709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2532       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1791       1.0000         .10000E-03   10000.    
     4 'norm      '    4.6750       1.0000         .10000E-03   10000.    
     5 'norm      '    .97274       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0897       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46055       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31381E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .71856       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2430       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6323.722     FROM MIGRAD    STATUS=FAILED       617 CALLS     2246 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8752        .17195E-02** at limit **
   2  Prefactor     2.2536        24.392        .27372E-03    .88884E-05
   3  norm          3.1790        3.3265        .14409E-03    .89157E-05
   4  norm          4.6744        108.93        .11262E-03    .13345E-03
   5  norm          .97381        1582.8        .43240E-02    .34935E-03
   6  norm          .10000E-03    4.8684        .17269E-02** at limit **
   7  Prefactor     .10000E-03    2.5841        .12581E-02** at limit **
   8  norm          1.0896        5.4781        .34023E-03    .20955E-03
   9  Prefactor     .10000E-03    15.608        .18142E-02** at limit **
  10  norm          13.668        8.8964        .10834E-03   -.57608E-04
  11  Prefactor     .45145        69.909        .40830E-02    .37242E-03
  12  Prefactor     .10003E-03    18.592        .91667E-01** at limit **
  13  Prefactor     .10000E-03    17.770        .18142E-02** at limit **
  14  Prefactor     .10000E-03    1.2716        .87840E-03** at limit **
  15  Prefactor     .10000E-03    5.0088        .17491E-02** at limit **
  16  Prefactor     .10000E-03    12.296        .18142E-02** at limit **
  17  Normalizat    .71853        .22688        .26896E-03   -.12004E-03
  18  Prefactor     1.2430        .19734        .20985E-03    .20437E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6323.722     FROM SIMPLEX   STATUS=UNCHANGED    827 CALLS     3073 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8752        .37668E-03** at limit **
   2  Prefactor     2.2536        24.392        .22770E-06    .88884E-05
   3  norm          3.1790        3.3265        .21620E-06    .89157E-05
   4  norm          4.6744        108.93        .26631E-06    .13345E-03
   5  norm          .97381        1582.8        .18064E-05    .34935E-03
   6  norm          .10000E-03    4.8684        .28089E-03** at limit **
   7  Prefactor     .10000E-03    2.5841        .25203E-03** at limit **
   8  norm          1.0896        5.4781        .21831E-06    .20955E-03
   9  Prefactor     .10000E-03    15.608        .37567E-03** at limit **
  10  norm          13.668        8.8964        .21156E-06   -.57608E-04
  11  Prefactor     .45145        69.909        .33217E-06    .37242E-03
  12  Prefactor     .10003E-03    18.592        .10441E-03** at limit **
  13  Prefactor     .10000E-03    17.770        .33296E-03** at limit **
  14  Prefactor     .10000E-03    1.2716        .12334E-03** at limit **
  15  Prefactor     .10000E-03    5.0088        .62509E-04** at limit **
  16  Prefactor     .10000E-03    12.296        .16046E-03** at limit **
  17  Normalizat    .71853        .22688        .14474E-06   -.12004E-03
  18  Prefactor     1.2430        .19734        .11942E-06    .20437E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6323.722     FROM MIGRAD    STATUS=CONVERGED    246 CALLS     3319 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9547        .34389E-03** at limit **
   2  Prefactor     2.2535        24.217        .10949E-04    .41535E-06
   3  norm          3.1790        3.3543        .57636E-05   -.51285E-05
   4  norm          4.6746        10.071        .45049E-05   -.45425E-05
   5  norm          .97351        83.218        .17296E-03    .48641E-05
   6  norm          .10000E-03    4.9462        .34538E-03** at limit **
   7  Prefactor     .10000E-03    2.6253        .25162E-03** at limit **
   8  norm          1.0895        5.5773        .13609E-04   -.91892E-05
   9  Prefactor     .10000E-03    15.858        .36285E-03** at limit **
  10  norm          13.668        8.9580        .43337E-05   -.27282E-04
  11  Prefactor     .45078        70.205        .16332E-03   -.24920E-04
  12  Prefactor     .10001E-03    17.857        .94996E-01** at limit **
  13  Prefactor     .10000E-03    18.054        .36285E-03** at limit **
  14  Prefactor     .10000E-03    1.2920        .17568E-03** at limit **
  15  Prefactor     .10000E-03    5.0893        .34982E-03** at limit **
  16  Prefactor     .10000E-03    12.502        .36285E-03** at limit **
  17  Normalizat    .71854        .19698        .10758E-04   -.64672E-04
  18  Prefactor     1.2430        .18728        .41970E-04   -.18149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.25355
  norm       = 3.17898
  norm       = 4.67459
  norm       = 0.973512
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08953
  Prefactor  = 0.0001
  norm       = 13.6684
  Prefactor  = 0.45078
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.718536
  Prefactor  = 1.24301
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.722     FROM HESSE     STATUS=OK           236 CALLS     3555 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9547        .68778E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2535        24.231        .21897E-05   -1.5408    
   3  norm          3.1790        3.3543        .11527E-05   -1.5351    
   4  norm          4.6746        9.7848        .90098E-06   -1.5276    
   5  norm          .97351        78.579        .69183E-05   -1.5511    
   6  norm          .10000E-03    4.9462        .69077E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6254        .50324E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0895        5.5746        .27218E-05   -1.5499    
   9  Prefactor     .10000E-03    15.858        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.668        8.9531        .86675E-06   -1.4968    
  11  Prefactor     .45078        70.087        .65328E-05   -1.5574    
  12  Prefactor     .10001E-03    18.052        .94187E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.054        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2920        .35136E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0893        .69965E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.502        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .71854        .19663        .21517E-05   -1.0317    
  18  Prefactor     1.2430        .18709        .83940E-05   -.85018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70175e-11
Minuit parameter uncertainties:
  1  8.74808e-07
  2  14.7865
  3  3.35452
  4  9.78811
  5  17.5155
  6  4.00545e-08
  7  8.45191e-08
  8  4.92948
  9  9.61529e-07
  10  8.95399
  11  11.2539
  12  0.000803094
  13  8.82404e-08
  14  5.00892e-08
  15  1.92265e-07
  16  2.9031e-06
  17  0.196825
  18  0.187189
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.367e+01  8.954e+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.243e+00  1.872e-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.185e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.96
Ra Dec: 201.730 22.173
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.14e-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) = 6323.70913194
delta logL = 0.0133489021964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6323.70607426
delta logL = 0.0164065809677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.028       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5270       1.0000          .0000       5.0000    
     3 'Normalizat'    .71043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2483       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.

 FCN=   6323.706     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      253 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.024        9.6150        .55487E-03   -.17702E-04
   2  alpha         2.5297        .85113        .15821E-01    .13626E-03
   3  Normalizat    .71004        .19188        .27043E-03    .58856E-06
   4  Prefactor     1.2487        .18802        .20945E-03   -.10487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0243
  alpha      = 2.52967
  Normalizat = 0.710036
  Prefactor  = 1.24865
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.706     FROM HESSE     STATUS=OK            27 CALLS      280 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.024        9.2403        .22195E-04   -1.4986    
   2  alpha         2.5297        .81830        .31642E-02    .11868E-01
   3  Normalizat    .71004        .19175        .10817E-04   -1.0350    
   4  Prefactor     1.2487        .18793        .41890E-04   -.84847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11102e-12
Minuit parameter uncertainties:
  1  9.24133
  2  0.833664
  3  0.191934
  4  0.188036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592762': 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) = 6323.70606676
delta logL = 0.0164140905545

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.302e+01  9.241e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.530e+00  8.337e-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.249e+00  1.880e-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.100e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 201.730 22.173
Photon Index (Free Index): 2.53 +/- 0.83
Photon Flux (Free Index): 6.16e-08 +/- 4.88e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.05e-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/592762/cmap_HighResolution_475977601_476236801_4FGL_J1326.9+2210_daily_bin913.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='1.70e-05', photon_flux_error='3.64e-08', dlogl='1.64e-02', energy_flux='1.74e-05', photon_flux2='6.16e-08', job_status='DONE', time_completed='2021-09-07 18:49:35.402660', photon_index_error2='0.83', photon_index2='2.53', ts='4.96', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='0.72', time_epoch_completed='1631065775.4', return_code='0', job_id='592762', GAL2='1.25', EG2='0.71', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.88e-08', ts2='5.01', photon_index='2.38' WHERE bin_id='913' AND source_name='4FGL J1326.9+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 18:49:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 592762: <4FGL_J1326.9+2210_daily_bin913> in cluster <slac> Done

Job <4FGL_J1326.9+2210_daily_bin913> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 18:35:16 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 18:35:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 18:35:24 2021
Terminated at Tue Sep  7 18:49:36 2021
Results reported at Tue Sep  7 18:49:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.9+2210_daily_bin913 201.73 22.1732 475977601 476236801 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 :                                   619.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            860 sec.

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

