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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1152
RA = 201.501, Dec = 35.1218
tmin = 537926401, tmax = 538185601
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='555470', job_status='RUN', time_executed='2021-09-07 16:09:44.387537', time_epoch_executed='1631056184.39' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555470/ft1_4FGL_J1326.0+3507_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555470/ft2_4FGL_J1326.0+3507_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555470/ft1_4FGL_J1326.0+3507_daily_bin1152.fits outfile=/scratch/kocevski/555470/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1152.fits ra=201.501 dec=35.1218 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.71
user 6.42
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555470/ft1_filtered_4FGL_J1326.0+3507_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/555470/ft2_4FGL_J1326.0+3507_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/555470/ltcube_537926401_538185601_4FGL_J1326.0+3507_daily_bin1152.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/555470/ft2_4FGL_J1326.0+3507_daily_bin1152.fits
.....................!
real 17.78
user 16.82
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555470/ft1_filtered_4FGL_J1326.0+3507_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/555470/ft2_4FGL_J1326.0+3507_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/555470/ltcube_537926401_538185601_4FGL_J1326.0+3507_daily_bin1152.fits outfile=/scratch/kocevski/555470/expmap_537926401_538185601_4FGL_J1326.0+3507_daily_bin1152.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/555470/ltcube_537926401_538185601_4FGL_J1326.0+3507_daily_bin1152.fits
.....................!
real 193.85
user 188.73
sys 3.96

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/555470/ft1_filtered_4FGL_J1326.0+3507_daily_bin1152.fits scfile=/scratch/kocevski/555470/ft2_4FGL_J1326.0+3507_daily_bin1152.fits outfile=/scratch/kocevski/555470/cmap_537926401_538185601_4FGL_J1326.0+3507_daily_bin1152.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.63
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555470/ft1_filtered_4FGL_J1326.0+3507_daily_bin1152.fits scfile=/scratch/kocevski/555470/ft2_4FGL_J1326.0+3507_daily_bin1152.fits outfile=/scratch/kocevski/555470/cmap_HighResolution_537926401_538185601_4FGL_J1326.0+3507_daily_bin1152.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.43
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    98.226       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.501       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    110.36       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.455       1.0000         .10000E-03   10000.    
     7 'norm      '    16.854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.900       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4003       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6888       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4380       1.0000         .10000E-03   10000.    
    22 'norm      '    25.703       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5004       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.229       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .45823       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2981       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=   1548.335     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3673 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.567       -.21816E-06** at limit **
   2  Prefactor     98.214        122.04        .16053E-05   -.45889E-06
   3  Prefactor     14.500        12.029        .24850E-06   -.11984E-04
   4  norm          .10000E-03    6.9892       -.21104E-06** at limit **
   5  Prefactor     110.34        85.406        .23292E-05    .60587E-07
   6  Prefactor     13.441        39.217        .20650E-05    .32074E-06
   7  norm          16.853        10.466        .16300E-06    .29133E-05
   8  Prefactor     .10000E-03    26.864        .23978E-06** at limit **
   9  norm          .10000E-03    5.8357       -.10441E-07** at limit **
  10  norm          .10000E-03    8.5367       -.15519E-07** at limit **
  11  norm          .10000E-03    3.4609        .60933E-07** at limit **
  12  norm          .10000E-03    6.7132        .25243E-07** at limit **
  13  norm          .10000E-03    29.226       -.21656E-05** at limit **
  14  Prefactor     .10000E-03    4.4215       -.14790E-06** at limit **
  15  Prefactor     .10000E-03    38.778       -.84400E-06** at limit **
  16  Prefactor     .10000E-03    60.908       -.30201E-05** at limit **
  17  Prefactor     .10000E-03    48.761        .23233E-05** at limit **
  18  Prefactor     26.880        54.554        .23328E-05   -.97281E-05
  19  Prefactor     6.2377        564.31        .47644E-04   -.13733E-04
  20  norm          3.6882        3.3459        .79318E-07   -.10021E-03
  21  Prefactor     5.4366        8.8059       -.91791E-07   -.27262E-04
  22  norm          25.673        36.523        .26617E-07   -.31620E-04
  23  Prefactor     .10000E-03    25.762        .16626E-05** at limit **
  24  norm          1.4942        19.307        .12371E-04    .32803E-04
  25  Prefactor     15.251        37.417       -.38252E-05   -.69658E-05
  26  Prefactor     .10000E-03    236.07        .24406E-06** at limit **
  27  norm          .10000E-03    43.205        .18391E-05** at limit **
  28  Normalizat    .45797        .31960        .14202E-05   -.21584E-04
  29  Prefactor     1.2986        .40608       -.52421E-05   -.48292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 98.2143
  Prefactor  = 14.4999
  norm       = 0.0001
  Prefactor  = 110.336
  Prefactor  = 13.4408
  norm       = 16.8525
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8798
  Prefactor  = 6.23767
  norm       = 3.68816
  Prefactor  = 5.43663
  norm       = 25.6733
  Prefactor  = 0.0001
  norm       = 1.49417
  Prefactor  = 15.2507
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.457968
  Prefactor  = 1.29862
 **********
 **   18 **HESSE 
 **********

 FCN=   1548.335     FROM HESSE     STATUS=OK           547 CALLS     4220 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.589        .17853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     98.214        122.00        .40560E-04   -1.3723    
   3  Prefactor     14.500        12.021        .10518E-03   -1.4946    
   4  norm          .10000E-03    7.0429        .10099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     110.34        85.420        .19144E-03   -1.3603    
   6  Prefactor     13.441        39.059        .10920E-03   -1.4975    
   7  norm          16.853        10.467        .97559E-04   -1.4887    
   8  Prefactor     .10000E-03    26.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.8533        .92803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.5370        .11231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.4772        .71456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.7333        .99569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    29.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4764        .80729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    61.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    48.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.880        54.559        .77241E-04   -1.4671    
  19  Prefactor     6.2377        574.83        .15865E-03   -1.5208    
  20  norm          3.6882        3.3427        .65024E-04   -1.5324    
  21  Prefactor     5.4366        8.8055        .14224E-03   -1.5242    
  22  norm          25.673        36.587        .79015E-04   -1.4694    
  23  Prefactor     .10000E-03    25.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4942        19.768        .16196E-02   -1.5463    
  25  Prefactor     15.251        37.229        .10263E-03   -1.4927    
  26  Prefactor     .10000E-03    236.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    43.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .45797        .37680        .28693E-03   -1.1440    
  29  Prefactor     1.2986        .48444        .23351E-03   -.83348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46789e-11
Minuit parameter uncertainties:
  1  1.70795e-05
  2  122.31
  3  12.0228
  4  2.46854e-05
  5  85.5152
  6  39.1337
  7  10.4677
  8  2.60093e-06
  9  2.45789e-06
  10  1.75563e-06
  11  3.31053e-06
  12  4.84678e-06
  13  9.80278e-07
  14  1.30925e-05
  15  1.67844e-05
  16  0.000142823
  17  1.65567e-05
  18  54.6607
  19  120.977
  20  3.34286
  21  8.8076
  22  36.619
  23  8.98796e-06
  24  10.8735
  25  37.2858
  26  0.000275169
  27  2.15568e-05
  28  0.378919
  29  0.486129
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.428e-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.299e+00  4.861e-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:  4.580e-01  3.789e-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: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555470/likelihoodResults_537926401_538185601_4FGL_J1326.0+3507_daily_bin1152.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) = 1548.33509343
delta logL = -7.77429381742e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1548.33501575
delta logL = -6.930008567e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10998E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0985       1.0000          .0000       10.000    
     3 'Normalizat'    .45796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2986       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=   1548.335     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      242 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7154.5        .90712E-02** at limit **
   2  Index         2.0904        7.3748        .50000        .10618E-05
   3  Normalizat    .45797        .70281E-01    .64818E-01    .49849E-04
   4  Prefactor     1.2986        .93087E-01    .52817E-01    .37532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09036
  Normalizat = 0.457968
  Prefactor  = 1.29862
 **********
 **   18 **HESSE 
 **********

 FCN=   1548.335     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9085.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0904        5.0124        .50000       -.62110    
   3  Normalizat    .45797        .16983        .28689E-03   -1.1440    
   4  Prefactor     1.2986        .22541        .23351E-03   -.83348    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.34891e-10
Minuit parameter uncertainties:
  1  0.00378986
  2  58.8454
  3  0.170022
  4  0.22558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555470': 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): 102
logL (Free Index) = 1548.33501567
delta logL = 1.6140347725e-08

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.790e-03  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.090e+00  5.885e+01  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.299e+00  2.256e-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:  4.580e-01  1.700e-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/555470/cmap_HighResolution_537926401_538185601_4FGL_J1326.0+3507_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-07 16:17:43.294380', job_id='555470', GAL2='1.30', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1631056663.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1152' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:17:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 555470: <4FGL_J1326.0+3507_daily_bin1152> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1152> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:51 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:06:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 16:06:52 2021
Terminated at Tue Sep  7 16:17:44 2021
Results reported at Tue Sep  7 16:17:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1152 201.501 35.1218 537926401 538185601 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 :                                   474.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            713 sec.

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

