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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin563
RA = 201.501, Dec = 35.1218
tmin = 385257601, tmax = 385516801
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='551003', job_status='RUN', time_executed='2021-09-07 15:53:15.643554', time_epoch_executed='1631055195.64' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551003/ft1_4FGL_J1326.0+3507_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551003/ft2_4FGL_J1326.0+3507_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551003/ft1_4FGL_J1326.0+3507_daily_bin563.fits outfile=/scratch/kocevski/551003/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin563.fits ra=201.501 dec=35.1218 rad=12.0 tmin=385257601.0 tmax=385516801.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.54
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551003/ft2_4FGL_J1326.0+3507_daily_bin563.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/551003/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin563.fits evtable="EVENTS" outfile="/scratch/kocevski/551003/ft1_filtered_4FGL_J1326.0+3507_daily_bin563.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.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551003/ft1_filtered_4FGL_J1326.0+3507_daily_bin563.fits" evtable="EVENTS" scfile=/scratch/kocevski/551003/ft2_4FGL_J1326.0+3507_daily_bin563.fits sctable="SC_DATA" outfile=/scratch/kocevski/551003/ltcube_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.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/551003/ft2_4FGL_J1326.0+3507_daily_bin563.fits
.....................!
real 13.13
user 12.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551003/ft1_filtered_4FGL_J1326.0+3507_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/551003/ft2_4FGL_J1326.0+3507_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/551003/ltcube_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.fits outfile=/scratch/kocevski/551003/expmap_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.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/551003/ltcube_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.fits
.....................!
real 190.90
user 186.03
sys 4.28

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/551003/ft1_filtered_4FGL_J1326.0+3507_daily_bin563.fits scfile=/scratch/kocevski/551003/ft2_4FGL_J1326.0+3507_daily_bin563.fits outfile=/scratch/kocevski/551003/cmap_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551003/ft1_filtered_4FGL_J1326.0+3507_daily_bin563.fits scfile=/scratch/kocevski/551003/ft2_4FGL_J1326.0+3507_daily_bin563.fits outfile=/scratch/kocevski/551003/cmap_HighResolution_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551003/ft1_filtered_4FGL_J1326.0+3507_daily_bin563.fits', '/scratch/kocevski/551003/ft2_4FGL_J1326.0+3507_daily_bin563.fits', expMap='/scratch/kocevski/551003/expmap_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.fits', expCube='/scratch/kocevski/551003/ltcube_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551003/Model_4FGL_J1326.0+3507_daily_bin563.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/551003/ft1_filtered_4FGL_J1326.0+3507_daily_bin563.fits
Spacecraft file(s): /scratch/kocevski/551003/ft2_4FGL_J1326.0+3507_daily_bin563.fits
Exposure map: /scratch/kocevski/551003/expmap_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.fits
Exposure cube: /scratch/kocevski/551003/ltcube_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551003/Model_4FGL_J1326.0+3507_daily_bin563.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) = 6041.66940928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25858E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .24072E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.121       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.405       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.657       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.5726       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6463       1.0000         .10000E-03   10000.    
    22 'norm      '    18.556       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2541       1.0000         .10000E-03   10000.    
    24 'norm      '    1.6753       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3349       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0007       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1795       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=   6041.646     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3719 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    13.692       -.22701E-06** at limit **
   2  Prefactor     .10000E-03    58.986       -.25743E-06** at limit **
   3  Prefactor     .10000E-03    2.5621        .82712E-07** at limit **
   4  norm          .10332E-03    2.6165        .20585E-06** at limit **
   5  Prefactor     .10000E-03    29.551       -.25966E-08** at limit **
   6  Prefactor     13.236        25.416       -.33898E-05    .31753E-04
   7  norm          2.7739        2.7886       -.46777E-07    .21203E-04
   8  Prefactor     .10000E-03    5.3310        .81434E-07** at limit **
   9  norm          .10000E-03    3.2651        .23082E-06** at limit **
  10  norm          10.402        16.009        .14968E-06   -.52697E-06
  11  norm          .10000E-03    1.6478        .24181E-06** at limit **
  12  norm          .10000E-03    1.8706        .83371E-07** at limit **
  13  norm          23.095        19.742        .17785E-07    .50732E-06
  14  Prefactor     .10000E-03    1.1545        .86285E-07** at limit **
  15  Prefactor     .10000E-03    7.7960        .10557E-06** at limit **
  16  Prefactor     .10000E-03    62.879       -.58613E-07** at limit **
  17  Prefactor     16.458        27.021        .21699E-06   -.16998E-05
  18  Prefactor     22.661        39.094        .16194E-06    .12330E-04
  19  Prefactor     .10000E-03    85.589        .79819E-06** at limit **
  20  norm          9.5728        2.3141        .27980E-07   -.40918E-04
  21  Prefactor     4.6447        4.5798        .18050E-06   -.41852E-04
  22  norm          18.555        15.747        .19568E-06   -.11476E-04
  23  Prefactor     7.2530        16.292       -.20225E-07   -.73142E-05
  24  norm          1.6750        3.4616        .37401E-06   -.49383E-04
  25  Prefactor     2.3331        10.391        .75763E-06   -.21991E-04
  26  Prefactor     .10000E-03    11.594       -.17574E-06** at limit **
  27  norm          .10000E-03    10.949       -.93711E-07** at limit **
  28  Normalizat    1.0006        .18384       -.65814E-06    .12422E-05
  29  Prefactor     1.1799        .21785        .26250E-06   -.43223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000103319
  Prefactor  = 0.0001
  Prefactor  = 13.2363
  norm       = 2.77392
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4019
  norm       = 0.0001
  norm       = 0.0001
  norm       = 23.0948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4582
  Prefactor  = 22.6606
  Prefactor  = 0.000100001
  norm       = 9.57277
  Prefactor  = 4.64473
  norm       = 18.5548
  Prefactor  = 7.25299
  norm       = 1.67501
  Prefactor  = 2.33315
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.00056
  Prefactor  = 1.17987
 **********
 **   18 **HESSE 
 **********

 FCN=   6041.646     FROM HESSE     STATUS=OK           565 CALLS     4284 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    74.477        .55751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5727        .12152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10332E-03    6.7421        .41319E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.236        28.779        .11058E-03   -1.4980    
   7  norm          2.7739        2.7958        .12681E-03   -1.5375    
   8  Prefactor     .10000E-03    5.3424        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.4100        .27467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.402        16.049        .12421E-03   -1.5063    
  11  norm          .10000E-03    1.6754        .97665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8750        .10385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.095        19.746        .83359E-04   -1.4746    
  14  Prefactor     .10000E-03    1.1628        .81606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    63.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.458        26.931        .98668E-04   -1.4896    
  18  Prefactor     22.661        38.910        .84151E-04   -1.4756    
  19  Prefactor     .10000E-03    85.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.5728        2.3154        .55984E-04   -1.5089    
  21  Prefactor     4.6447        4.5670        .15677E-03   -1.5277    
  22  norm          18.555        15.742        .92978E-04   -1.4846    
  23  Prefactor     7.2530        16.232        .14892E-03   -1.5169    
  24  norm          1.6750        3.4139        .19925E-03   -1.5449    
  25  Prefactor     2.3331        10.155        .26835E-03   -1.5402    
  26  Prefactor     .10000E-03    11.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    10.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0006        .22018        .24970E-03   -.93012    
  29  Prefactor     1.1799        .26131        .28376E-03   -.86953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22933e-09
Minuit parameter uncertainties:
  1  0.0022699
  2  0.000167591
  3  4.37862e-06
  4  0.00946145
  5  1.99439e-05
  6  28.8094
  7  2.79594
  8  5.88623e-06
  9  8.822e-06
  10  16.0559
  11  6.39724e-06
  12  2.40632e-06
  13  19.7514
  14  2.63438e-06
  15  9.68778e-06
  16  6.1231e-06
  17  26.9513
  18  38.954
  19  0.000696399
  20  2.31544
  21  4.56733
  22  15.7457
  23  16.2415
  24  3.41434
  25  9.73762
  26  1.5871e-05
  27  4.73592e-06
  28  0.220377
  29  0.261592
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  6.123e-06  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.180e+00  2.616e-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:  1.001e+00  2.204e-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: 5.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551003/likelihoodResults_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.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) = 6041.64603077
delta logL = -7.5375054621e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6041.64595531
delta logL = 8.40900611365e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2030       1.0000          .0000       10.000    
     3 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1799       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.

 FCN=   6041.646     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6932.4        .90712E-02** at limit **
   2  Index         2.2636        6.0831        .50000       -.80011E-05
   3  Normalizat    1.0006        .34994E-01    .46174E-01   -.27523E-03
   4  Prefactor     1.1799        .42944E-01    .64152E-01    .16364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.26358
  Normalizat = 1.00055
  Prefactor  = 1.17988
 **********
 **   18 **HESSE 
 **********

 FCN=   6041.646     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    98.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2636        6.1162        .50000       -.57911    
   3  Normalizat    1.0006        .20827        .24970E-03   -.93012    
   4  Prefactor     1.1799        .25551        .28376E-03   -.86953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05415e-09
Minuit parameter uncertainties:
  1  0.00101456
  2  4.61681
  3  0.208442
  4  0.255776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551003': 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) = 6041.6459552
delta logL = 1.94771018869e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.015e-03  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.264e+00  4.617e+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.180e+00  2.558e-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:  1.001e+00  2.084e-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/551003/cmap_HighResolution_385257601_385516801_4FGL_J1326.0+3507_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2021-09-07 16:06:36.425390', job_id='551003', GAL2='1.18', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631055996.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='563' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:06:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 551003: <4FGL_J1326.0+3507_daily_bin563> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin563> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 15:50:55 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:52:31 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:31 2021
Terminated at Tue Sep  7 16:06:37 2021
Results reported at Tue Sep  7 16:06:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin563 201.501 35.1218 385257601 385516801 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 :                                   798.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            942 sec.

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

