/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 165 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1326.0+3507_daily_bin78
RA = 201.501, Dec = 35.1218
tmin = 259545601, tmax = 259804801
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='549077', job_status='RUN', time_executed='2021-09-07 15:48:20.044139', time_epoch_executed='1631054900.04' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549077

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549077/ft1_4FGL_J1326.0+3507_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549077/ft2_4FGL_J1326.0+3507_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549077/ft1_4FGL_J1326.0+3507_daily_bin78.fits outfile=/scratch/kocevski/549077/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin78.fits ra=201.501 dec=35.1218 rad=12.0 tmin=259545601.0 tmax=259804801.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 1.43
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549077/ft1_filtered_4FGL_J1326.0+3507_daily_bin78.fits" evtable="EVENTS" scfile=/scratch/kocevski/549077/ft2_4FGL_J1326.0+3507_daily_bin78.fits sctable="SC_DATA" outfile=/scratch/kocevski/549077/ltcube_259545601_259804801_4FGL_J1326.0+3507_daily_bin78.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/549077/ft2_4FGL_J1326.0+3507_daily_bin78.fits
.....................!
real 17.15
user 16.70
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549077/ft1_filtered_4FGL_J1326.0+3507_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/549077/ft2_4FGL_J1326.0+3507_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/549077/ltcube_259545601_259804801_4FGL_J1326.0+3507_daily_bin78.fits outfile=/scratch/kocevski/549077/expmap_259545601_259804801_4FGL_J1326.0+3507_daily_bin78.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/549077/ltcube_259545601_259804801_4FGL_J1326.0+3507_daily_bin78.fits
.....................!
real 158.55
user 152.76
sys 4.53

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/549077/ft1_filtered_4FGL_J1326.0+3507_daily_bin78.fits scfile=/scratch/kocevski/549077/ft2_4FGL_J1326.0+3507_daily_bin78.fits outfile=/scratch/kocevski/549077/cmap_259545601_259804801_4FGL_J1326.0+3507_daily_bin78.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549077/ft1_filtered_4FGL_J1326.0+3507_daily_bin78.fits scfile=/scratch/kocevski/549077/ft2_4FGL_J1326.0+3507_daily_bin78.fits outfile=/scratch/kocevski/549077/cmap_HighResolution_259545601_259804801_4FGL_J1326.0+3507_daily_bin78.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.784       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.367       1.0000         .10000E-03   10000.    
     7 'norm      '    16.052       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.750       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.1476       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7818       1.0000         .10000E-03   10000.    
    12 'norm      '    6.6857       1.0000         .10000E-03   10000.    
    13 'norm      '    32.969       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8455       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1813       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2089       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0246       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1518       1.0000         .10000E-03   10000.    
    24 'norm      '    .65258E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   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'    .91068       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0696       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=   6563.595     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3710 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4659        .16869E-05** at limit **
   2  Prefactor     49.775        52.961       -.65557E-05   -.64660E-04
   3  Prefactor     .10000E-03    1.8324        .36005E-07** at limit **
   4  norm          .10000E-03    2.4851        .50688E-07** at limit **
   5  Prefactor     .10000E-03    18.149       -.48107E-07** at limit **
   6  Prefactor     27.361        26.854       -.10626E-05   -.36142E-04
   7  norm          16.052        6.0938       -.47478E-07   -.52838E-04
   8  Prefactor     27.753        16.108       -.69202E-06   -.49667E-04
   9  norm          .10000E-03    2.7552        .61443E-07** at limit **
  10  norm          7.1478        8.1777       -.68823E-07    .13174E-03
  11  norm          3.7833        5.6904        .34035E-06   -.50986E-04
  12  norm          6.6834        9.2965       -.20960E-06   -.91948E-06
  13  norm          32.970        25.801       -.66645E-07    .48721E-05
  14  Prefactor     1.8453        2.3868        .40022E-06    .10851E-03
  15  Prefactor     .10000E-03    8.1737       -.94478E-06** at limit **
  16  Prefactor     19.034        53.494       -.14668E-04   -.52608E-04
  17  Prefactor     6.1842        15.223       -.18556E-05   -.33199E-04
  18  Prefactor     .10000E-03    21.395        .73457E-07** at limit **
  19  Prefactor     .10000E-03    102.44       -.10913E-05** at limit **
  20  norm          4.2090        1.6062       -.61381E-07   -.46091E-05
  21  Prefactor     .10000E-03    3.2491        .28453E-07** at limit **
  22  norm          5.0244        8.1426       -.21439E-06   -.18441E-04
  23  Prefactor     2.1444        5.9395        .16627E-05   -.83946E-03
  24  norm          .10000E-03    1.5794       -.76416E-07** at limit **
  25  Prefactor     .10000E-03    11.725        .15891E-08** at limit **
  26  Prefactor     .10000E-03    5.8277       -.67220E-09** at limit **
  27  norm          .10000E-03    7.0334       -.10648E-05** at limit **
  28  Normalizat    .91053        .16553        .11177E-05   -.75273E-05
  29  Prefactor     1.0696        .20329        .34759E-06    .40007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.7751
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3613
  norm       = 16.0521
  Prefactor  = 27.7534
  norm       = 0.0001
  norm       = 7.14782
  norm       = 3.78328
  norm       = 6.68341
  norm       = 32.9699
  Prefactor  = 1.84533
  Prefactor  = 0.0001
  Prefactor  = 19.0335
  Prefactor  = 6.18422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.20902
  Prefactor  = 0.0001
  norm       = 5.02436
  Prefactor  = 2.14438
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.910528
  Prefactor  = 1.06965
 **********
 **   18 **HESSE 
 **********

 FCN=   6563.595     FROM HESSE     STATUS=OK           551 CALLS     4261 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.775        53.068        .56836E-04   -1.4296    
   3  Prefactor     .10000E-03    1.8343        .10705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.5042        .12439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.361        26.734        .76580E-04   -1.4661    
   7  norm          16.052        6.0960        .49984E-03   -1.4906    
   8  Prefactor     27.753        16.107        .76051E-04   -1.4654    
   9  norm          .10000E-03    2.7811        .13116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.1478        8.1840        .75020E-03   -1.5173    
  11  norm          3.7833        5.7513        .15293E-03   -1.5319    
  12  norm          6.6834        9.4577        .15519E-03   -1.5191    
  13  norm          32.970        25.800        .69787E-04   -1.4559    
  14  Prefactor     1.8453        2.3578        .13307E-03   -1.5436    
  15  Prefactor     .10000E-03    8.1914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.034        53.667        .91777E-04   -1.4835    
  17  Prefactor     6.1842        15.239        .16147E-03   -1.5211    
  18  Prefactor     .10000E-03    21.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    102.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2090        1.6055        .61121E-04   -1.5298    
  21  Prefactor     .10000E-03    3.3841        .28480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0244        8.1367        .17939E-03   -1.5260    
  23  Prefactor     2.1444        19.819        .14044E-02   -1.5415    
  24  norm          .10000E-03    9.7532        .19743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.8364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.0524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .91053        .20487        .23587E-03   -.96091    
  29  Prefactor     1.0696        .25239        .27632E-03   -.90443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76704e-09
Minuit parameter uncertainties:
  1  2.45641e-05
  2  53.1184
  3  3.00634e-06
  4  1.62435e-05
  5  8.73212e-06
  6  26.7457
  7  6.09624
  8  16.1091
  9  1.03911e-05
  10  8.1853
  11  5.75216
  12  9.45981
  13  25.8086
  14  2.35796
  15  1.41002e-05
  16  53.8032
  17  15.2487
  18  2.00764e-05
  19  6.18852e-05
  20  1.60549
  21  8.41504e-06
  22  8.13849
  23  13.0437
  24  0.000131836
  25  1.91852e-05
  26  3.49923e-06
  27  1.9091e-05
  28  0.205041
  29  0.252667
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.903e+01  5.380e+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:  1.070e+00  2.527e-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:  9.105e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/549077/likelihoodResults_259545601_259804801_4FGL_J1326.0+3507_daily_bin78.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) = 6563.45332281
delta logL = 0.141710855795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6563.42854497
delta logL = 0.166488693398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.187       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4933       1.0000          .0000       10.000    
     3 'Normalizat'    .91430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0656       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=   6563.429     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      327 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.246        66.686        .64859E-04    .63102E-06
   2  Index         1.4933        .89544        .68312E-01   -.57323E-04
   3  Normalizat    .91436        .19743        .23537E-03   -.10757E-03
   4  Prefactor     1.0656        .24988        .27673E-03    .10509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.2464
  Index      = 1.49326
  Normalizat = 0.914355
  Prefactor  = 1.06555
 **********
 **   18 **HESSE 
 **********

 FCN=   6563.429     FROM HESSE     STATUS=OK            25 CALLS      352 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.246        73.105        .12972E-04   -1.4470    
   2  Index         1.4933        .99988        .19990E-02   -.77729    
   3  Normalizat    .91436        .19766        .94149E-05   -.95958    
   4  Prefactor     1.0656        .25034        .11069E-04   -.90575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42537e-10
Minuit parameter uncertainties:
  1  73.2772
  2  1.01349
  3  0.197821
  4  0.250615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549077': 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) = 6563.42854451
delta logL = 0.166489156221

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  3.825e+01  7.328e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.493e+00  1.013e+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.066e+00  2.506e-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:  9.144e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/549077/cmap_HighResolution_259545601_259804801_4FGL_J1326.0+3507_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-09-07 16:00:22.022434', job_id='549077', GAL2='1.07', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631055622.02', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.66e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='78' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:00:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 549077: <4FGL_J1326.0+3507_daily_bin78> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin78> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:45:19 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:45:22 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:45:22 2021
Terminated at Tue Sep  7 16:00:22 2021
Results reported at Tue Sep  7 16:00:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin78 201.501 35.1218 259545601 259804801 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 :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

