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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin445
RA = 201.501, Dec = 35.1218
tmin = 354672001, tmax = 354931201
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='550738', job_status='RUN', time_executed='2021-09-07 15:51:46.988606', time_epoch_executed='1631055106.99' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550738/ft1_4FGL_J1326.0+3507_daily_bin445.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550738/ft2_4FGL_J1326.0+3507_daily_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550738/ft1_4FGL_J1326.0+3507_daily_bin445.fits outfile=/scratch/kocevski/550738/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin445.fits ra=201.501 dec=35.1218 rad=12.0 tmin=354672001.0 tmax=354931201.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.42
user 3.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550738/ft1_filtered_4FGL_J1326.0+3507_daily_bin445.fits" evtable="EVENTS" scfile=/scratch/kocevski/550738/ft2_4FGL_J1326.0+3507_daily_bin445.fits sctable="SC_DATA" outfile=/scratch/kocevski/550738/ltcube_354672001_354931201_4FGL_J1326.0+3507_daily_bin445.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/550738/ft2_4FGL_J1326.0+3507_daily_bin445.fits
.....................!
real 15.44
user 15.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550738/ft1_filtered_4FGL_J1326.0+3507_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/550738/ft2_4FGL_J1326.0+3507_daily_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/550738/ltcube_354672001_354931201_4FGL_J1326.0+3507_daily_bin445.fits outfile=/scratch/kocevski/550738/expmap_354672001_354931201_4FGL_J1326.0+3507_daily_bin445.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/550738/ltcube_354672001_354931201_4FGL_J1326.0+3507_daily_bin445.fits
.....................!
real 192.50
user 187.79
sys 4.27

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/550738/ft1_filtered_4FGL_J1326.0+3507_daily_bin445.fits scfile=/scratch/kocevski/550738/ft2_4FGL_J1326.0+3507_daily_bin445.fits outfile=/scratch/kocevski/550738/cmap_354672001_354931201_4FGL_J1326.0+3507_daily_bin445.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550738/ft1_filtered_4FGL_J1326.0+3507_daily_bin445.fits scfile=/scratch/kocevski/550738/ft2_4FGL_J1326.0+3507_daily_bin445.fits outfile=/scratch/kocevski/550738/cmap_HighResolution_354672001_354931201_4FGL_J1326.0+3507_daily_bin445.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6391       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.183       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .34871E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3487       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3524       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.770       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.520       1.0000         .10000E-03   10000.    
    20 'norm      '    14.976       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.4486       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.1816       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74711       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2037       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=   5648.792     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3694 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.111        .16741E-05** at limit **
   2  Prefactor     .10000E-03    34.417        .38102E-06** at limit **
   3  Prefactor     4.6347        5.7790        .20882E-06    .11431E-03
   4  norm          .10000E-03    1.4055        .21818E-06** at limit **
   5  Prefactor     .10000E-03    45.693        .90994E-06** at limit **
   6  Prefactor     .10000E-03    6.5059        .18558E-06** at limit **
   7  norm          11.182        5.4632       -.10956E-06    .13115E-05
   8  Prefactor     .10000E-03    12.237        .75860E-07** at limit **
   9  norm          .10000E-03    3.5376        .21860E-06** at limit **
  10  norm          .10000E-03    5.4542        .10155E-06** at limit **
  11  norm          .10000E-03    2.1785        .27637E-06** at limit **
  12  norm          .10000E-03    3.6372        .34099E-06** at limit **
  13  norm          7.3493        16.109        .16926E-06    .73842E-06
  14  Prefactor     .10001E-03    1.9746       -.11560E-05** at limit **
  15  Prefactor     4.3467        14.110        .35511E-05    .47265E-03
  16  Prefactor     .10000E-03    48.543       -.11581E-05** at limit **
  17  Prefactor     27.765        19.893       -.48078E-06    .71095E-04
  18  Prefactor     .10000E-03    13.357        .38943E-06** at limit **
  19  Prefactor     51.349        73.852       -.34785E-05   -.54751E-04
  20  norm          14.976        2.6576       -.54865E-07    .65038E-04
  21  Prefactor     .10000E-03    3.4726        .68398E-06** at limit **
  22  norm          .10000E-03    17.899       -.16654E-05** at limit **
  23  Prefactor     .10000E-03    9.0515        .57835E-07** at limit **
  24  norm          6.4479        4.0656       -.87746E-07    .36570E-04
  25  Prefactor     .10000E-03    6.6334        .83610E-07** at limit **
  26  Prefactor     9.1785        14.289       -.28102E-06    .38957E-05
  27  norm          .10000E-03    7.5949        .12524E-06** at limit **
  28  Normalizat    .74780        .20423        .90513E-05    .13189E-03
  29  Prefactor     1.2029        .25166       -.85602E-05    .44338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.63473
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1821
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 7.34933
  Prefactor  = 0.000100005
  Prefactor  = 4.34674
  Prefactor  = 0.0001
  Prefactor  = 27.765
  Prefactor  = 0.0001
  Prefactor  = 51.3489
  norm       = 14.9756
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.44785
  Prefactor  = 0.0001
  Prefactor  = 9.17851
  norm       = 0.0001
  Normalizat = 0.747797
  Prefactor  = 1.20285
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.792     FROM HESSE     STATUS=OK           547 CALLS     4241 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6347        5.7600        .18686E-03   -1.5277    
   4  norm          .10000E-03    1.4119        .86977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.182        5.4625        .11871E-03   -1.5039    
   8  Prefactor     .10000E-03    12.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.6012        .13790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.4616        .17143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2283        .21495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.591        .27366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3493        16.098        .14796E-03   -1.5166    
  14  Prefactor     .10001E-03    5.5059        .18635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3467        13.563        .19307E-03   -1.5291    
  16  Prefactor     .10000E-03    48.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.765        19.895        .76023E-04   -1.4654    
  18  Prefactor     .10000E-03    13.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     51.349        73.950        .27937E-03   -1.4274    
  20  norm          14.976        2.6574        .49623E-04   -1.4934    
  21  Prefactor     .10000E-03    3.5660        .27242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    18.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.0626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.4479        4.0649        .11657E-03   -1.5200    
  25  Prefactor     .10000E-03    6.6446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.1785        14.275        .13227E-03   -1.5102    
  27  norm          .10000E-03    7.6010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .74780        .20103        .24678E-03   -1.0204    
  29  Prefactor     1.2029        .24624        .25728E-03   -.86244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88923e-09
Minuit parameter uncertainties:
  1  9.92605e-05
  2  5.09971e-05
  3  5.7607
  4  2.21372e-06
  5  9.0626e-05
  6  2.55877e-06
  7  5.46272
  8  4.03171e-05
  9  2.87042e-06
  10  2.96955e-06
  11  8.98336e-06
  12  0.000356258
  13  16.1072
  14  0.000336448
  15  13.5728
  16  0.000199219
  17  19.8998
  18  1.67151e-05
  19  74.0828
  20  2.65744
  21  4.43762e-06
  22  0.000123582
  23  2.03986e-06
  24  4.06505
  25  4.3047e-06
  26  14.2808
  27  5.75162e-06
  28  0.201234
  29  0.24648
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.992e-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.203e+00  2.465e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  7.478e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/550738/likelihoodResults_354672001_354931201_4FGL_J1326.0+3507_daily_bin445.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) = 5648.79257339
delta logL = -9.78138532446e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5648.79247617
delta logL = -6.00994098932e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14473E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0978       1.0000          .0000       10.000    
     3 'Normalizat'    .74780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2029       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=   5648.792     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      243 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1035.8        .90712E-02** at limit **
   2  Index         2.1351        8.3259        .50000       -.77228E-05
   3  Normalizat    .74780        .19354E-01    .42925E-01    .19144E-04
   4  Prefactor     1.2028        .25122E-01    .58183E-01    .70026E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.13506
  Normalizat = 0.747801
  Prefactor  = 1.20285
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.792     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6429.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1351        5.1623        .50000       -.61015    
   3  Normalizat    .74780        .35289E-01    .24676E-03   -1.0204    
   4  Prefactor     1.2028        .45805E-01    .25729E-03   -.86244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06409e-08
Minuit parameter uncertainties:
  1  0.00370965
  2  33.9368
  3  0.0352896
  4  0.045806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550738': 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) = 5648.79247561
delta logL = -3.13875716529e-08

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.710e-03  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.135e+00  3.394e+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.203e+00  4.581e-02  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  7.478e-01  3.529e-02  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/550738/cmap_HighResolution_354672001_354931201_4FGL_J1326.0+3507_daily_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-07 16:05:09.164354', job_id='550738', GAL2='1.20', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1631055909.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-3.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='445' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:05:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 550738: <4FGL_J1326.0+3507_daily_bin445> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin445 201.501 35.1218 354672001 354931201 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 :                                   801.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            865 sec.

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

