/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 30 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 = 7474
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1326.0+3507_daily_bin581
RA = 201.501, Dec = 35.1218
tmin = 389923201, tmax = 390182401
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='551038', job_status='RUN', time_executed='2021-09-07 15:53:21.725866', time_epoch_executed='1631055201.73' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551038/ft1_4FGL_J1326.0+3507_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551038/ft1_4FGL_J1326.0+3507_daily_bin581.fits outfile=/scratch/kocevski/551038/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin581.fits ra=201.501 dec=35.1218 rad=12.0 tmin=389923201.0 tmax=390182401.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.50
user 3.24
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551038/ft1_filtered_4FGL_J1326.0+3507_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/551038/ltcube_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.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/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits
.....................!
real 14.10
user 13.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551038/ft1_filtered_4FGL_J1326.0+3507_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/551038/ltcube_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.fits outfile=/scratch/kocevski/551038/expmap_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.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/551038/ltcube_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.fits
.....................!
real 194.27
user 188.03
sys 5.61

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1326.0+3507 @ 201.501 35.1218

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/551038/ft1_filtered_4FGL_J1326.0+3507_daily_bin581.fits scfile=/scratch/kocevski/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits outfile=/scratch/kocevski/551038/cmap_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.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.501 yref=35.1218 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551038/ft1_filtered_4FGL_J1326.0+3507_daily_bin581.fits scfile=/scratch/kocevski/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits outfile=/scratch/kocevski/551038/cmap_HighResolution_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.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.501 yref=35.1218 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551038/ft1_filtered_4FGL_J1326.0+3507_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551038/Model_4FGL_J1326.0+3507_daily_bin581.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/551038/ft1_filtered_4FGL_J1326.0+3507_daily_bin581.fits.....................!
real 47.28
user 45.85
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551038/ft1_filtered_4FGL_J1326.0+3507_daily_bin581.fits', '/scratch/kocevski/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits', expMap='/scratch/kocevski/551038/expmap_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.fits', expCube='/scratch/kocevski/551038/ltcube_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551038/Model_4FGL_J1326.0+3507_daily_bin581.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1326.0+3507'

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  5.851e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/551038/ft1_filtered_4FGL_J1326.0+3507_daily_bin581.fits
Spacecraft file(s): /scratch/kocevski/551038/ft2_4FGL_J1326.0+3507_daily_bin581.fits
Exposure map: /scratch/kocevski/551038/expmap_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.fits
Exposure cube: /scratch/kocevski/551038/ltcube_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551038/Model_4FGL_J1326.0+3507_daily_bin581.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) = 5621.70501218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6803       1.0000         .10000E-03   10000.    
     4 'norm      '    10.106       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6480       1.0000         .10000E-03   10000.    
    10 'norm      '    35.368       1.0000         .10000E-03   10000.    
    11 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4159       1.0000         .10000E-03   10000.    
    13 'norm      '    36.640       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1726       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63971E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.397       1.0000         .10000E-03   10000.    
    20 'norm      '    7.8468       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .13810E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.9953       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    26.829       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78419       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5621.510     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3882 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.057       -.99470E-05** at limit **
   2  Prefactor     .10000E-03    48.493       -.27469E-05** at limit **
   3  Prefactor     1.6792        4.3270       -.58617E-06   -.57793E-03
   4  norm          10.105        5.7979       -.32819E-06   -.32240E-03
   5  Prefactor     .10000E-03    26.174       -.58672E-05** at limit **
   6  Prefactor     .10000E-03    7.7674       -.29497E-07** at limit **
   7  norm          .10000E-03    2.7441       -.80466E-08** at limit **
   8  Prefactor     .10000E-03    7.2055        .98748E-07** at limit **
   9  norm          2.6481        2.8091        .72453E-07    .13808E-03
  10  norm          35.368        21.155        .42141E-06    .13185E-04
  11  norm          .10002E-03    2.2557        .89322E-06** at limit **
  12  norm          2.4169        4.3182       -.48713E-06   -.81988E-03
  13  norm          36.640        24.112        .20120E-06   -.68861E-05
  14  Prefactor     4.1781        3.6165       -.17060E-06   -.62591E-03
  15  Prefactor     .10000E-03    4.0760        .34723E-07** at limit **
  16  Prefactor     .10000E-03    565.50       -.15306E-06** at limit **
  17  Prefactor     .10000E-03    5.1329       -.37454E-07** at limit **
  18  Prefactor     .10000E-03    33.251        .46016E-05** at limit **
  19  Prefactor     29.399        66.823        .22155E-05   -.75417E-05
  20  norm          7.8467        2.1660       -.69013E-09   -.53853E-04
  21  Prefactor     .10000E-03    4.2863        .97231E-08** at limit **
  22  norm          .10002E-03    8.9495        .10121E-06** at limit **
  23  Prefactor     .10000E-03    9.8269        .83643E-05** at limit **
  24  norm          1.9952        2.8789       -.13584E-06   -.27225E-03
  25  Prefactor     .10000E-03    22.197        .32826E-05** at limit **
  26  Prefactor     .10000E-03    12.495       -.19715E-05** at limit **
  27  norm          26.829        17.831        .23608E-06   -.43244E-04
  28  Normalizat    .78419        .17786       -.36046E-06   -.16994E-03
  29  Prefactor     1.3266        .21779        .85343E-07   -.16416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67917
  norm       = 10.1053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.64807
  norm       = 35.3684
  norm       = 0.000100016
  norm       = 2.41686
  norm       = 36.6398
  Prefactor  = 4.17812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3988
  norm       = 7.84667
  Prefactor  = 0.0001
  norm       = 0.000100021
  Prefactor  = 0.0001
  norm       = 1.99517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.8289
  Normalizat = 0.784185
  Prefactor  = 1.32662
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.510     FROM HESSE     STATUS=OK           559 CALLS     4441 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6792        4.3271        .24468E-03   -1.5449    
   4  norm          10.105        5.7708        .12605E-03   -1.5072    
   5  Prefactor     .10000E-03    26.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7756        .12126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6481        2.8148        .12576E-03   -1.5382    
  10  norm          35.368        21.160        .67386E-04   -1.4518    
  11  norm          .10002E-03    11.380        .19379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4169        3.9521        .18444E-03   -1.5397    
  13  norm          36.640        24.110        .66210E-04   -1.4497    
  14  Prefactor     4.1781        3.5871        .12450E-03   -1.5299    
  15  Prefactor     .10000E-03    4.0786        .14779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    588.03        .37352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1386        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.399        66.876        .73895E-04   -1.4623    
  20  norm          7.8467        2.1661        .55947E-04   -1.5148    
  21  Prefactor     .10000E-03    4.4487        .30278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    11.167        .75186E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.7530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.9952        2.8641        .14842E-03   -1.5425    
  25  Prefactor     .10000E-03    22.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          26.829        17.818        .77342E-04   -1.4672    
  28  Normalizat    .78419        .21069        .26518E-03   -1.0066    
  29  Prefactor     1.3266        .25923        .26179E-03   -.82519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16178e-09
Minuit parameter uncertainties:
  1  1.13982e-05
  2  2.15754e-05
  3  4.32786
  4  5.77115
  5  1.56349e-06
  6  3.71915e-06
  7  3.98662e-07
  8  8.03782e-06
  9  2.81491
  10  21.1647
  11  0.000853674
  12  3.9525
  13  24.1164
  14  3.58727
  15  1.38279e-06
  16  0.000832391
  17  2.94023e-07
  18  7.89139e-05
  19  67.0474
  20  2.16613
  21  1.90457e-06
  22  0.000965724
  23  8.88845e-06
  24  2.86429
  25  6.17949e-05
  26  1.35502e-05
  27  17.8217
  28  0.210908
  29  0.259486
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  8.324e-04  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.327e+00  2.595e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  7.842e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 201.501 35.122
Photon Flux Upper Limit: 6.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551038/likelihoodResults_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5621.50975858
delta logL = -7.96371750766e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5621.46231258
delta logL = 0.0474380289425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6416       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0637       1.0000          .0000       10.000    
     3 'Normalizat'    .77149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3329       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+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=   5621.462     FROM MIGRAD    STATUS=FAILED        80 CALLS      295 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6346        225.32        .21170E-03   -.17888E-02
   2  Index         3.0638        6.4604        .84428E-02   -.93613E-03
   3  Normalizat    .77139        .21269        .26714E-03   -.27588E-02
   4  Prefactor     1.3330        .26275        .26121E-03   -.22236E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5621.462     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      379 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6346        225.32        .60715E-03   -1.5327    
   2  Index         3.0638        6.4604        .29416E-02   -.39765    
   3  Normalizat    .77139        .21269        .20882E-03   -1.0114    
   4  Prefactor     1.3330        .26275        .30805E-03   -.82330    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5621.462     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      411 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6295        35.031        .84679E-05   -.23361E-04
   2  Index         3.0646        2.4276        .33771E-03   -.50159E-05
   3  Normalizat    .77139        .21075        .53429E-04    .12060E-03
   4  Prefactor     1.3331        .25950        .52242E-04    .10049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62947
  Index      = 3.06459
  Normalizat = 0.771392
  Prefactor  = 1.33305
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.462     FROM HESSE     STATUS=OK            23 CALLS      434 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6295        34.194        .16936E-05   -1.5327    
   2  Index         3.0646        2.3995        .13508E-04   -.39746    
   3  Normalizat    .77139        .21077        .10686E-04   -1.0114    
   4  Prefactor     1.3331        .25953        .10448E-04   -.82329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79685e-11
Minuit parameter uncertainties:
  1  22.297
  2  2.5237
  3  0.210995
  4  0.259784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551038': 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) = 5621.46231223
delta logL = 0.047438379931

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  3.629e+00  2.230e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  3.065e+00  2.524e+00  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.333e+00  2.598e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  7.714e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 201.501 35.122

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/551038/cmap_HighResolution_389923201_390182401_4FGL_J1326.0+3507_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2021-09-07 16:06:31.404486', job_id='551038', GAL2='1.33', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1631055991.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='4.74e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='581' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:06:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 551038: <4FGL_J1326.0+3507_daily_bin581> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin581> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 15:50:56 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:52:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 15:52:37 2021
Terminated at Tue Sep  7 16:06:32 2021
Results reported at Tue Sep  7 16:06:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin581 201.501 35.1218 389923201 390182401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1326.0+3507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            936 sec.

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

