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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin435
RA = 201.501, Dec = 35.1218
tmin = 352080001, tmax = 352339201
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='550723', job_status='RUN', time_executed='2021-09-07 15:51:41.524039', time_epoch_executed='1631055101.52' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550723

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550723/ft1_4FGL_J1326.0+3507_daily_bin435.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550723/ft2_4FGL_J1326.0+3507_daily_bin435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550723/ft1_4FGL_J1326.0+3507_daily_bin435.fits outfile=/scratch/kocevski/550723/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin435.fits ra=201.501 dec=35.1218 rad=12.0 tmin=352080001.0 tmax=352339201.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.50
user 3.26
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550723/ft1_filtered_4FGL_J1326.0+3507_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/550723/ft2_4FGL_J1326.0+3507_daily_bin435.fits sctable="SC_DATA" expcube=/scratch/kocevski/550723/ltcube_352080001_352339201_4FGL_J1326.0+3507_daily_bin435.fits outfile=/scratch/kocevski/550723/expmap_352080001_352339201_4FGL_J1326.0+3507_daily_bin435.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/550723/ltcube_352080001_352339201_4FGL_J1326.0+3507_daily_bin435.fits
.....................!
real 192.39
user 187.06
sys 4.93

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/550723/ft1_filtered_4FGL_J1326.0+3507_daily_bin435.fits scfile=/scratch/kocevski/550723/ft2_4FGL_J1326.0+3507_daily_bin435.fits outfile=/scratch/kocevski/550723/cmap_352080001_352339201_4FGL_J1326.0+3507_daily_bin435.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550723/ft1_filtered_4FGL_J1326.0+3507_daily_bin435.fits scfile=/scratch/kocevski/550723/ft2_4FGL_J1326.0+3507_daily_bin435.fits outfile=/scratch/kocevski/550723/cmap_HighResolution_352080001_352339201_4FGL_J1326.0+3507_daily_bin435.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.540       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.782       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .49940       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4973       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    33.164       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6830       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2172       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.6046       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6333       1.0000         .10000E-03   10000.    
    22 'norm      '    12.984       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.1733       1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.634       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96877       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0795       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=   6321.643     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     4404 TOTAL
                     EDM=   .92E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5720        .19478E-06** at limit **
   2  Prefactor     .10000E-03    47.896        .17857E-06** at limit **
   3  Prefactor     .10000E-03    2.0610       -.82256E-08** at limit **
   4  norm          .10000E-03    1.5069       -.10550E-07** at limit **
   5  Prefactor     43.540        48.376        .32655E-06    .14464E-05
   6  Prefactor     .10000E-03    19.059        .44906E-06** at limit **
   7  norm          13.782        6.2332        .85450E-07   -.61164E-06
   8  Prefactor     .10000E-03    4.7048       -.28229E-06** at limit **
   9  norm          .49957        3.4276        .83745E-06   -.22265E-05
  10  norm          .10000E-03    3.6665       -.18457E-06** at limit **
  11  norm          4.4956        2.8205        .22650E-08    .33969E-04
  12  norm          .10000E-03    3.2880        .30387E-07** at limit **
  13  norm          33.164        22.848        .13155E-07   -.88859E-07
  14  Prefactor     1.6851        2.6954       -.37232E-06   -.10518E-03
  15  Prefactor     .10000E-03    11.730       -.12159E-05** at limit **
  16  Prefactor     32.723        49.499        .60055E-05    .45847E-05
  17  Prefactor     2.2179        29.140        .81160E-05   -.56533E-05
  18  Prefactor     .10000E-03    13.248        .44083E-06** at limit **
  19  Prefactor     .10000E-03    21.596       -.99812E-06** at limit **
  20  norm          9.6047        2.2725        .39220E-07   -.16320E-05
  21  Prefactor     3.6334        3.8558        .93951E-06   -.23811E-04
  22  norm          12.985        14.291        .20049E-06   -.48674E-05
  23  Prefactor     .10000E-03    4.1602        .32357E-06** at limit **
  24  norm          6.1735        4.0795        .54777E-07   -.13875E-04
  25  Prefactor     28.638        14.593       -.39589E-08   -.45133E-04
  26  Prefactor     .10000E-03    13.931        .70014E-06** at limit **
  27  norm          .10000E-03    6.0403       -.64603E-07** at limit **
  28  Normalizat    .96875        .16930       -.68383E-06    .34226E-04
  29  Prefactor     1.0795        .20447       -.56331E-06    .14521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.5405
  Prefactor  = 0.0001
  norm       = 13.7825
  Prefactor  = 0.0001
  norm       = 0.499571
  norm       = 0.0001
  norm       = 4.4956
  norm       = 0.0001
  norm       = 33.1645
  Prefactor  = 1.68508
  Prefactor  = 0.0001
  Prefactor  = 32.7226
  Prefactor  = 2.21794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.60471
  Prefactor  = 3.63344
  norm       = 12.9847
  Prefactor  = 0.0001
  norm       = 6.17348
  Prefactor  = 28.6381
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.96875
  Prefactor  = 1.07949
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.643     FROM HESSE     STATUS=OK           549 CALLS     4953 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.0663        .11146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5150        .95299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.540        48.410        .60756E-04   -1.4387    
   6  Prefactor     .10000E-03    19.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.782        6.2339        .53945E-03   -1.4965    
   8  Prefactor     .10000E-03    4.7107        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .49957        3.3766        .28468E-03   -1.5567    
  10  norm          .10000E-03    3.6666        .14868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4956        2.8094        .10171E-03   -1.5284    
  12  norm          .10000E-03    3.3031        .14034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          33.164        22.848        .69582E-04   -1.4556    
  14  Prefactor     1.6851        2.6622        .15233E-03   -1.5448    
  15  Prefactor     .10000E-03    11.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.723        49.531        .70010E-04   -1.4563    
  17  Prefactor     2.2179        29.092        .13810E-02   -1.5410    
  18  Prefactor     .10000E-03    13.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.6047        2.2753        .55909E-04   -1.5088    
  21  Prefactor     3.6334        3.8410        .76536E-03   -1.5327    
  22  norm          12.985        14.290        .11116E-03   -1.4987    
  23  Prefactor     .10000E-03    4.1598        .15837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.1735        4.0770        .12599E-03   -1.5211    
  25  Prefactor     28.638        14.587        .74870E-04   -1.4637    
  26  Prefactor     .10000E-03    13.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.0417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96875        .20147        .24383E-03   -.94085    
  29  Prefactor     1.0795        .24338        .28539E-03   -.90125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79272e-10
Minuit parameter uncertainties:
  1  5.07481e-07
  2  3.36129e-06
  3  8.69394e-08
  4  5.11508e-08
  5  48.4542
  6  2.03158e-05
  7  6.23415
  8  4.15708e-07
  9  2.59752
  10  8.61148e-07
  11  2.80952
  12  1.55054e-06
  13  22.8538
  14  2.66236
  15  5.55197e-05
  16  49.5929
  17  16.0746
  18  2.90368e-07
  19  1.50286e-06
  20  2.27535
  21  3.84123
  22  14.2939
  23  1.34202e-06
  24  4.07715
  25  14.5889
  26  7.02532e-06
  27  1.28437e-07
  28  0.201628
  29  0.243634
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  3.272e+01  4.959e+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.079e+00  2.436e-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.688e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/550723/likelihoodResults_352080001_352339201_4FGL_J1326.0+3507_daily_bin435.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) = 6321.49305809
delta logL = 0.150054740297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6321.48449143
delta logL = 0.158621394377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.694       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9291       1.0000          .0000       10.000    
     3 'Normalizat'    .94996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0953       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=   6321.484     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      379 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.682        740.00        .12252E-03    .11135E-04
   2  Index         2.9298        6.0209        .67494E-02    .27639E-04
   3  Normalizat    .94911        .22448        .24604E-03    .15461E-03
   4  Prefactor     1.0964        .26200        .28344E-03   -.17247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6824
  Index      = 2.92979
  Normalizat = 0.949111
  Prefactor  = 1.09637
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.484     FROM HESSE     STATUS=OK            25 CALLS      404 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.682        35.492        .49007E-05   -1.5054    
   2  Index         2.9298        1.5407        .26998E-03   -.42689    
   3  Normalizat    .94911        .20090        .98414E-05   -.94755    
   4  Prefactor     1.0964        .24445        .11338E-04   -.89583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44035e-10
Minuit parameter uncertainties:
  1  35.5622
  2  1.57176
  3  0.201056
  4  0.244699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550723': 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) = 6321.48448184
delta logL = 0.158630988756

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.068e+01  3.556e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.930e+00  1.572e+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.096e+00  2.447e-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.491e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
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/550723/cmap_HighResolution_352080001_352339201_4FGL_J1326.0+3507_daily_bin435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='7.13e-08', time_completed='2021-09-07 16:06:51.512827', job_id='550723', GAL2='1.10', fit_tolerance='1e-08', EG2='0.95', EG='0.97', time_epoch_completed='1631056011.51', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.59e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='435' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:06:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 550723: <4FGL_J1326.0+3507_daily_bin435> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin435 201.501 35.1218 352080001 352339201 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 :                                   908.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            970 sec.

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

