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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin573
RA = 201.501, Dec = 35.1218
tmin = 387849601, tmax = 388108801
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='551022', job_status='RUN', time_executed='2021-09-07 15:54:29.035565', time_epoch_executed='1631055269.04' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551022/ft1_4FGL_J1326.0+3507_daily_bin573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551022/ft2_4FGL_J1326.0+3507_daily_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551022/ft1_4FGL_J1326.0+3507_daily_bin573.fits outfile=/scratch/kocevski/551022/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin573.fits ra=201.501 dec=35.1218 rad=12.0 tmin=387849601.0 tmax=388108801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.54
user 4.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551022/ft1_filtered_4FGL_J1326.0+3507_daily_bin573.fits" evtable="EVENTS" scfile=/scratch/kocevski/551022/ft2_4FGL_J1326.0+3507_daily_bin573.fits sctable="SC_DATA" outfile=/scratch/kocevski/551022/ltcube_387849601_388108801_4FGL_J1326.0+3507_daily_bin573.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/551022/ft2_4FGL_J1326.0+3507_daily_bin573.fits
.....................!
real 16.48
user 16.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551022/ft1_filtered_4FGL_J1326.0+3507_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/551022/ft2_4FGL_J1326.0+3507_daily_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/551022/ltcube_387849601_388108801_4FGL_J1326.0+3507_daily_bin573.fits outfile=/scratch/kocevski/551022/expmap_387849601_388108801_4FGL_J1326.0+3507_daily_bin573.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/551022/ltcube_387849601_388108801_4FGL_J1326.0+3507_daily_bin573.fits
.....................!
real 194.95
user 189.87
sys 4.56

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/551022/ft1_filtered_4FGL_J1326.0+3507_daily_bin573.fits scfile=/scratch/kocevski/551022/ft2_4FGL_J1326.0+3507_daily_bin573.fits outfile=/scratch/kocevski/551022/cmap_387849601_388108801_4FGL_J1326.0+3507_daily_bin573.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551022/ft1_filtered_4FGL_J1326.0+3507_daily_bin573.fits scfile=/scratch/kocevski/551022/ft2_4FGL_J1326.0+3507_daily_bin573.fits outfile=/scratch/kocevski/551022/cmap_HighResolution_387849601_388108801_4FGL_J1326.0+3507_daily_bin573.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86885       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52754E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .17112E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    6.6771       1.0000         .10000E-03   10000.    
    13 'norm      '    9.5609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5648       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.769       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8379       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0762       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.827       1.0000         .10000E-03   10000.    
    20 'norm      '    13.959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0922       1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0310       1.0000         .10000E-03   10000.    
    24 'norm      '    10.249       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.9505       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1943       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .58396       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=   5071.817     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3699 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86696        21.448        .89430E-05   -.31590E-04
   2  Prefactor     .10000E-03    37.541       -.14188E-06** at limit **
   3  Prefactor     .10000E-03    1.4676       -.10604E-06** at limit **
   4  norm          .10000E-03    1.7380       -.19959E-06** at limit **
   5  Prefactor     .10003E-03    407.14        .20727E-04** at limit **
   6  Prefactor     .10000E-03    11.558       -.32692E-06** at limit **
   7  norm          .10000E-03    3.9924       -.51486E-06** at limit **
   8  Prefactor     .10000E-03    25.870       -.29599E-05** at limit **
   9  norm          .10000E-03    2.3363       -.29699E-06** at limit **
  10  norm          .10000E-03    19.683        .12757E-05** at limit **
  11  norm          .10001E-03    2.1179       -.32964E-06** at limit **
  12  norm          6.6783        5.1514        .65830E-06    .66495E-03
  13  norm          9.5625        21.778       -.51131E-06    .51719E-05
  14  Prefactor     .10000E-03    1.1287       -.17070E-06** at limit **
  15  Prefactor     4.5663        9.4564        .83873E-06    .16397E-03
  16  Prefactor     28.772        42.663       -.47683E-06    .23701E-04
  17  Prefactor     1.8409        25.859       -.72530E-06   -.40575E-06
  18  Prefactor     4.0772        16.665       -.47617E-06    .68185E-05
  19  Prefactor     12.807        96.338       -.70158E-06    .10388E-04
  20  norm          13.960        2.6964       -.28745E-07   -.19864E-03
  21  Prefactor     3.0930        3.8251       -.17410E-06    .92175E-04
  22  norm          .10000E-03    7.9485        .47044E-07** at limit **
  23  Prefactor     7.0316        9.6235       -.11475E-06   -.39253E-06
  24  norm          10.250        4.7905       -.11513E-06   -.21948E-05
  25  Prefactor     3.9520        6.7404       -.14767E-07    .15673E-04
  26  Prefactor     .10000E-03    9.5229       -.17256E-06** at limit **
  27  norm          .10000E-03    5.2711       -.33698E-07** at limit **
  28  Normalizat    1.1941        .17692        .12363E-05    .15234E-03
  29  Prefactor     .58414        .21535        .18458E-05   -.43513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.866963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.000100013
  norm       = 6.67825
  norm       = 9.56249
  Prefactor  = 0.0001
  Prefactor  = 4.56633
  Prefactor  = 28.7724
  Prefactor  = 1.84089
  Prefactor  = 4.07722
  Prefactor  = 12.8071
  norm       = 13.9595
  Prefactor  = 3.09304
  norm       = 0.0001
  Prefactor  = 7.03162
  norm       = 10.2496
  Prefactor  = 3.95203
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.19405
  Prefactor  = 0.584142
 **********
 **   18 **HESSE 
 **********

 FCN=   5071.817     FROM HESSE     STATUS=OK           553 CALLS     4252 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86696        21.433        .25388E-02   -1.5522    
   2  Prefactor     .10000E-03    37.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4697        .84267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7491        .91704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    401.68        .42261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.1200        .27826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.003        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3733        .10637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    19.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    30.260        .18285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.6783        4.9547        .13206E-03   -1.5191    
  13  norm          9.5625        21.766        .12960E-03   -1.5089    
  14  Prefactor     .10000E-03    1.1372        .73835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5663        9.3771        .94206E-03   -1.5281    
  16  Prefactor     28.772        42.626        .74695E-04   -1.4635    
  17  Prefactor     1.8409        25.668        .30773E-03   -1.5437    
  18  Prefactor     4.0772        16.461        .19970E-03   -1.5304    
  19  Prefactor     12.807        98.056        .11184E-03   -1.4992    
  20  norm          13.960        2.6994        .49401E-04   -1.4961    
  21  Prefactor     3.0930        3.8240        .14801E-03   -1.5356    
  22  norm          .10000E-03    7.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.0316        9.6195        .15129E-03   -1.5178    
  24  norm          10.250        4.7898        .10320E-03   -1.5068    
  25  Prefactor     3.9520        6.7196        .10148E-02   -1.5310    
  26  Prefactor     .10000E-03    9.5362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.2716        .15969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1941        .20451        .19579E-03   -.86787    
  29  Prefactor     .58414        .24287        .33312E-03   -1.0826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03958e-09
Minuit parameter uncertainties:
  1  8.6242
  2  7.77113e-06
  3  1.16372e-06
  4  5.25926e-06
  5  0.00699445
  6  2.09839e-05
  7  1.9435e-05
  8  5.60126e-05
  9  6.99298e-06
  10  0.000243536
  11  0.00126018
  12  4.95505
  13  21.7841
  14  4.61616e-06
  15  9.38007
  16  42.6708
  17  13.7547
  18  16.3922
  19  71.0367
  20  2.69943
  21  3.82431
  22  2.85222e-05
  23  9.62156
  24  4.79001
  25  6.72089
  26  1.20781e-05
  27  1.86399e-06
  28  0.204651
  29  0.243303
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  2.877e+01  4.267e+01  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:  5.841e-01  2.433e-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.194e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/551022/likelihoodResults_387849601_388108801_4FGL_J1326.0+3507_daily_bin573.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) = 5071.81685455
delta logL = 0.000163169891493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5071.81668794
delta logL = 0.00032977167848

Fit tolerance = 1e-08

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

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

 FCN=   5071.817     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      245 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.682        67.643        .76129E-04    .18786E-03
   2  Index         2.1797        1.2315        .97989E-02    .84912E-04
   3  Normalizat    1.1936        .19657        .19583E-03   -.65067E-03
   4  Prefactor     .58462        .24134        .33299E-03   -.48326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6817
  Index      = 2.17967
  Normalizat = 1.19357
  Prefactor  = 0.584622
 **********
 **   18 **HESSE 
 **********

 FCN=   5071.817     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.682        59.385        .15226E-04   -1.4655    
   2  Index         2.1797        1.0843        .39195E-03   -.59930    
   3  Normalizat    1.1936        .19638        .39165E-04   -.86802    
   4  Prefactor     .58462        .24115        .13320E-04   -1.0824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71332e-10
Minuit parameter uncertainties:
  1  59.512
  2  1.09717
  3  0.196504
  4  0.241579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551022': 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) = 5071.81668441
delta logL = 0.000333304918968

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  2.768e+01  5.951e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.180e+00  1.097e+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:  5.846e-01  2.416e-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.194e+00  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.71
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/551022/cmap_HighResolution_387849601_388108801_4FGL_J1326.0+3507_daily_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-07 16:07:24.992927', job_id='551022', GAL2='0.58', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631056044.99', return_code2='0', ts='0.71', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='3.33e-04', ts2='0.71', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='573' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:07:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 551022: <4FGL_J1326.0+3507_daily_bin573> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin573> 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) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:52:35 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:35 2021
Terminated at Tue Sep  7 16:07:25 2021
Results reported at Tue Sep  7 16:07:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin573 201.501 35.1218 387849601 388108801 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 :                                   774.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            989 sec.

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

