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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin361
RA = 201.501, Dec = 35.1218
tmin = 332899201, tmax = 333158401
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='550618', job_status='RUN', time_executed='2021-09-07 15:53:23.206485', time_epoch_executed='1631055203.21' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550618/ft1_4FGL_J1326.0+3507_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550618/ft2_4FGL_J1326.0+3507_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550618/ft1_4FGL_J1326.0+3507_daily_bin361.fits outfile=/scratch/kocevski/550618/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin361.fits ra=201.501 dec=35.1218 rad=12.0 tmin=332899201.0 tmax=333158401.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.27
user 3.96
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550618/ft1_filtered_4FGL_J1326.0+3507_daily_bin361.fits" evtable="EVENTS" scfile=/scratch/kocevski/550618/ft2_4FGL_J1326.0+3507_daily_bin361.fits sctable="SC_DATA" outfile=/scratch/kocevski/550618/ltcube_332899201_333158401_4FGL_J1326.0+3507_daily_bin361.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/550618/ft2_4FGL_J1326.0+3507_daily_bin361.fits
.....................!
real 15.85
user 15.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550618/ft1_filtered_4FGL_J1326.0+3507_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/550618/ft2_4FGL_J1326.0+3507_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/550618/ltcube_332899201_333158401_4FGL_J1326.0+3507_daily_bin361.fits outfile=/scratch/kocevski/550618/expmap_332899201_333158401_4FGL_J1326.0+3507_daily_bin361.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/550618/ltcube_332899201_333158401_4FGL_J1326.0+3507_daily_bin361.fits
.....................!
real 192.33
user 186.71
sys 5.17

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/550618/ft1_filtered_4FGL_J1326.0+3507_daily_bin361.fits scfile=/scratch/kocevski/550618/ft2_4FGL_J1326.0+3507_daily_bin361.fits outfile=/scratch/kocevski/550618/cmap_332899201_333158401_4FGL_J1326.0+3507_daily_bin361.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550618/ft1_filtered_4FGL_J1326.0+3507_daily_bin361.fits scfile=/scratch/kocevski/550618/ft2_4FGL_J1326.0+3507_daily_bin361.fits outfile=/scratch/kocevski/550618/cmap_HighResolution_332899201_333158401_4FGL_J1326.0+3507_daily_bin361.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .13163E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2581       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.527       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7429       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1908       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2704       1.0000         .10000E-03   10000.    
    13 'norm      '    .30707E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2335       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.391       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.488       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.798       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7630       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16889E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.2305       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.4539       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96616       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1004       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=   5772.786     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3716 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0621        .26838E-06** at limit **
   2  Prefactor     .10000E-03    116.32       -.68605E-05** at limit **
   3  Prefactor     .10000E-03    1.8109       -.69252E-08** at limit **
   4  norm          .10000E-03    4.0610        .57150E-06** at limit **
   5  Prefactor     6.2638        54.159        .35452E-05    .94779E-05
   6  Prefactor     15.530        30.162        .32149E-05   -.45371E-04
   7  norm          2.7428        3.2544       -.77427E-06   -.17460E-03
   8  Prefactor     .10000E-03    3.1529        .20873E-06** at limit **
   9  norm          .10000E-03    1.7242        .12948E-07** at limit **
  10  norm          .10000E-03    5.0468       -.99870E-06** at limit **
  11  norm          4.1929        7.4160       -.15608E-05   -.27839E-03
  12  norm          1.2689        13.293        .15022E-05   -.11812E-03
  13  norm          .10000E-03    12.462        .92404E-07** at limit **
  14  Prefactor     1.2331        3.0183        .34186E-06   -.56825E-04
  15  Prefactor     10.391        15.363        .70331E-06   -.11850E-04
  16  Prefactor     38.490        47.619        .51009E-06    .12265E-05
  17  Prefactor     .10000E-03    5.6760        .18323E-05** at limit **
  18  Prefactor     11.795        17.908       -.24785E-07   -.76136E-05
  19  Prefactor     .10000E-03    79.542        .34938E-05** at limit **
  20  norm          2.7631        1.3999        .24979E-07   -.28564E-04
  21  Prefactor     .10000E-03    1.8654       -.37748E-06** at limit **
  22  norm          6.2308        7.5308        .64398E-07   -.15129E-05
  23  Prefactor     .10000E-03    4.0465        .23637E-06** at limit **
  24  norm          7.4539        4.0145        .69782E-07    .24936E-04
  25  Prefactor     .10000E-03    3.5434       -.36838E-06** at limit **
  26  Prefactor     .10000E-03    3.6799        .44720E-06** at limit **
  27  norm          .10000E-03    6.7693       -.47422E-06** at limit **
  28  Normalizat    .96611        .16404       -.86703E-06    .73311E-05
  29  Prefactor     1.1004        .20035        .39440E-06   -.66470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 6.26384
  Prefactor  = 15.5303
  norm       = 2.74279
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.1929
  norm       = 1.26887
  norm       = 0.000100002
  Prefactor  = 1.23308
  Prefactor  = 10.3905
  Prefactor  = 38.49
  Prefactor  = 0.0001
  Prefactor  = 11.7947
  Prefactor  = 0.0001
  norm       = 2.76315
  Prefactor  = 0.000100004
  norm       = 6.23078
  Prefactor  = 0.0001
  norm       = 7.45393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.966113
  Prefactor  = 1.10036
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.786     FROM HESSE     STATUS=OK           559 CALLS     4275 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    116.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8150        .99841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.2855        .27468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2638        54.123        .16046E-03   -1.5207    
   6  Prefactor     15.530        28.654        .10164E-03   -1.4920    
   7  norm          2.7428        3.2549        .14586E-03   -1.5377    
   8  Prefactor     .10000E-03    3.1533        .13174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7372        .97380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.0551        .16678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1929        7.7694        .14680E-03   -1.5298    
  12  norm          1.2689        16.210        .35363E-03   -1.5483    
  13  norm          .10000E-03    103.51        .52275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2331        2.9033        .17947E-03   -1.5486    
  15  Prefactor     10.391        15.054        .12430E-03   -1.5063    
  16  Prefactor     38.490        47.456        .64606E-04   -1.4466    
  17  Prefactor     .10000E-03    5.7082        .17696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.795        17.910        .11663E-03   -1.5021    
  19  Prefactor     .10000E-03    79.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7631        1.3988        .61611E-04   -1.5375    
  21  Prefactor     .10000E-03    6.9972        .19793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.2308        7.5280        .16082E-03   -1.5209    
  23  Prefactor     .10000E-03    4.0482        .14928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.4539        4.0144        .10845E-03   -1.5162    
  25  Prefactor     .10000E-03    3.5481        .13967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.6824        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.7776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96611        .19482        .22333E-03   -.94174    
  29  Prefactor     1.1004        .23894        .26778E-03   -.89455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23783e-09
Minuit parameter uncertainties:
  1  4.48549e-06
  2  0.000532532
  3  1.08898e-06
  4  0.000375735
  5  36.8694
  6  28.6797
  7  3.25513
  8  1.28767e-06
  9  2.35936e-06
  10  1.52223e-05
  11  7.77125
  12  9.07324
  13  0.000821546
  14  2.90359
  15  15.0598
  16  47.5025
  17  2.88885e-05
  18  17.9182
  19  0.000228126
  20  1.39882
  21  0.000351077
  22  7.5291
  23  3.40546e-06
  24  4.01453
  25  3.90781e-06
  26  5.90974e-06
  27  7.56211e-06
  28  0.194963
  29  0.239176
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  3.849e+01  4.750e+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.100e+00  2.392e-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.661e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 8.74e-06 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/550618/likelihoodResults_332899201_333158401_4FGL_J1326.0+3507_daily_bin361.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) = 5772.69362972
delta logL = 0.092375189618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5772.69088056
delta logL = 0.0951243541031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.436       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5452       1.0000          .0000       10.000    
     3 'Normalizat'    .95498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1080       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=   5772.691     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      273 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.233        645.85        .20258E-02   -.23360E-03
   2  Index         2.5548        3.1120        .17390       -.71483E-04
   3  Normalizat    .95476        .53068E-01    .45600E-01   -.10798E-02
   4  Prefactor     1.1086        .57592E-01    .60347E-01   -.86162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2331
  Index      = 2.55481
  Normalizat = 0.954764
  Prefactor  = 1.10864
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.691     FROM HESSE     STATUS=OK            27 CALLS      300 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.233        53.419        .81034E-04   -1.4723    
   2  Index         2.5548        1.1434        .60260E-02   -.51099    
   3  Normalizat    .95476        .18940        .22449E-03   -.94562    
   4  Prefactor     1.1086        .23826        .26688E-03   -.89191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24738e-09
Minuit parameter uncertainties:
  1  53.5251
  2  1.15695
  3  0.189529
  4  0.238494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550618': 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) = 5772.6907978
delta logL = 0.0952071125221

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  2.423e+01  5.353e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.555e+00  1.157e+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.109e+00  2.385e-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.548e-01  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 201.501 35.122
Photon Index (Free Index): 2.55 +/- 1.16
Photon Flux (Free Index): 2.68e-08 +/- 3.49e-08
Energy Flux (Free Index): 7.34e-06 +/- 8.68e-06

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/550618/cmap_HighResolution_332899201_333158401_4FGL_J1326.0+3507_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='7.34e-06', photon_flux_error='2.19e-08', dlogl='9.52e-02', energy_flux='8.74e-06', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-09-07 16:07:09.132979', photon_index_error2='1.16', photon_index2='2.55', ts='1.06', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='7.27e-08', energy_flux_error2='8.68e-06', EG='0.97', time_epoch_completed='1631056029.13', return_code='0', job_id='550618', GAL2='1.11', EG2='0.95', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.49e-08', ts2='1.26', photon_index='2.15' WHERE bin_id='361' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:07:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 550618: <4FGL_J1326.0+3507_daily_bin361> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin361 201.501 35.1218 332899201 333158401 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 :                                   824.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            993 sec.

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

