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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin200
RA = 201.501, Dec = 35.1218
tmin = 291168001, tmax = 291427201
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='549255', job_status='RUN', time_executed='2021-09-07 15:45:47.911822', time_epoch_executed='1631054747.91' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549255/ft1_4FGL_J1326.0+3507_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549255/ft2_4FGL_J1326.0+3507_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549255/ft1_4FGL_J1326.0+3507_daily_bin200.fits outfile=/scratch/kocevski/549255/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin200.fits ra=201.501 dec=35.1218 rad=12.0 tmin=291168001.0 tmax=291427201.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.61
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549255/ft1_filtered_4FGL_J1326.0+3507_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/549255/ft2_4FGL_J1326.0+3507_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/549255/ltcube_291168001_291427201_4FGL_J1326.0+3507_daily_bin200.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/549255/ft2_4FGL_J1326.0+3507_daily_bin200.fits
.....................!
real 17.40
user 16.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549255/ft1_filtered_4FGL_J1326.0+3507_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/549255/ft2_4FGL_J1326.0+3507_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/549255/ltcube_291168001_291427201_4FGL_J1326.0+3507_daily_bin200.fits outfile=/scratch/kocevski/549255/expmap_291168001_291427201_4FGL_J1326.0+3507_daily_bin200.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/549255/ltcube_291168001_291427201_4FGL_J1326.0+3507_daily_bin200.fits
.....................!
real 193.67
user 188.03
sys 5.07

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/549255/ft1_filtered_4FGL_J1326.0+3507_daily_bin200.fits scfile=/scratch/kocevski/549255/ft2_4FGL_J1326.0+3507_daily_bin200.fits outfile=/scratch/kocevski/549255/cmap_291168001_291427201_4FGL_J1326.0+3507_daily_bin200.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549255/ft1_filtered_4FGL_J1326.0+3507_daily_bin200.fits scfile=/scratch/kocevski/549255/ft2_4FGL_J1326.0+3507_daily_bin200.fits outfile=/scratch/kocevski/549255/cmap_HighResolution_291168001_291427201_4FGL_J1326.0+3507_daily_bin200.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/549255/ft1_filtered_4FGL_J1326.0+3507_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/549255/ft2_4FGL_J1326.0+3507_daily_bin200.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549255/Model_4FGL_J1326.0+3507_daily_bin200.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/549255/ft1_filtered_4FGL_J1326.0+3507_daily_bin200.fits.....................!
real 44.38
user 43.04
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4453       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.7703       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.353       1.0000         .10000E-03   10000.    
     9 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.213       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7632       1.0000         .10000E-03   10000.    
    12 'norm      '    .13101E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    31.718       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8299       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .91964E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3986       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2317       1.0000         .10000E-03   10000.    
    22 'norm      '    7.1495       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85171       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92339       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=   5333.065     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3748 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.438       -.23738E-05** at limit **
   2  Prefactor     1.4424        65.086        .90636E-05   -.23325E-03
   3  Prefactor     .10000E-03    4.3459        .22438E-07** at limit **
   4  norm          .10000E-03    1.0625       -.21369E-07** at limit **
   5  Prefactor     .10000E-03    63.844        .19252E-05** at limit **
   6  Prefactor     .10000E-03    9.7868       -.96252E-06** at limit **
   7  norm          6.7718        4.8928       -.16801E-06   -.67247E-04
   8  Prefactor     22.362        17.673        .66663E-06    .96212E-04
   9  norm          .10000E-03    3.3358       -.84013E-07** at limit **
  10  norm          16.212        11.293        .24227E-07    .71222E-05
  11  norm          3.7671        2.9724       -.10655E-06   -.38622E-03
  12  norm          .10000E-03    5.0163        .34569E-06** at limit **
  13  norm          31.721        21.253       -.54389E-06   -.42427E-04
  14  Prefactor     .10000E-03    .85294       -.91710E-08** at limit **
  15  Prefactor     1.8299        4.8501       -.11198E-06   -.15959E-03
  16  Prefactor     .10000E-03    9.1564        .45509E-06** at limit **
  17  Prefactor     7.5410        9.0076       -.12844E-06   -.20093E-04
  18  Prefactor     .10000E-03    6.8055       -.56796E-07** at limit **
  19  Prefactor     .10000E-03    262.62       -.36671E-05** at limit **
  20  norm          1.3987        1.2946        .21517E-07   -.48317E-04
  21  Prefactor     2.2323        2.6405       -.27299E-07   -.49373E-04
  22  norm          7.1285        14.548       -.64723E-05   -.27275E-03
  23  Prefactor     .10000E-03    27.381        .32837E-05** at limit **
  24  norm          .10000E-03    .96774        .31158E-07** at limit **
  25  Prefactor     .10000E-03    4.7022        .20476E-07** at limit **
  26  Prefactor     .10000E-03    15.257       -.19356E-06** at limit **
  27  norm          .10000E-03    4.1353       -.21898E-07** at limit **
  28  Normalizat    .85149        .15005        .44189E-06   -.31733E-04
  29  Prefactor     .92342        .18413        .13266E-06   -.56829E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.44244
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.77179
  Prefactor  = 22.3623
  norm       = 0.0001
  norm       = 16.2124
  norm       = 3.76708
  norm       = 0.0001
  norm       = 31.7211
  Prefactor  = 0.0001
  Prefactor  = 1.8299
  Prefactor  = 0.0001
  Prefactor  = 7.54104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39871
  Prefactor  = 2.23228
  norm       = 7.12847
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.851494
  Prefactor  = 0.923417
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.065     FROM HESSE     STATUS=OK           549 CALLS     4297 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4424        187.67        .17931E-02   -1.5468    
   3  Prefactor     .10000E-03    4.3699        .14831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0687        .73506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    64.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.8182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.7718        4.8979        .13248E-03   -1.5187    
   8  Prefactor     22.362        17.725        .84721E-04   -1.4762    
   9  norm          .10000E-03    3.3693        .12993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.212        11.293        .99470E-04   -1.4902    
  11  norm          3.7671        2.5896        .93529E-04   -1.5320    
  12  norm          .10000E-03    10.778        .27613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          31.721        21.258        .71146E-04   -1.4581    
  14  Prefactor     .10000E-03    .86075        .65813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8299        4.8187        .25469E-03   -1.5437    
  16  Prefactor     .10000E-03    9.1575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5410        9.0058        .14605E-03   -1.5159    
  18  Prefactor     .10000E-03    6.8147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    266.46        .18229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3987        1.2762        .76518E-04   -1.5471    
  21  Prefactor     2.2323        2.6320        .12443E-03   -1.5409    
  22  norm          7.1285        14.897        .15002E-03   -1.5174    
  23  Prefactor     .10000E-03    28.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .97380        .70155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7200        .15465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.1357        .14504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .85149        .17663        .20838E-03   -.98186    
  29  Prefactor     .92342        .21689        .25440E-03   -.95328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48948e-09
Minuit parameter uncertainties:
  1  0.000183379
  2  33.0111
  3  1.5095e-05
  4  1.07066e-06
  5  0.000109143
  6  4.51651e-05
  7  4.89819
  8  17.7288
  9  1.42147e-05
  10  11.2942
  11  2.58964
  12  0.000110839
  13  21.2633
  14  1.12756e-06
  15  4.81969
  16  1.5612e-05
  17  9.00745
  18  3.70722e-06
  19  0.000360132
  20  1.27626
  21  2.6321
  22  14.9045
  23  0.000255657
  24  5.09916e-07
  25  4.7894e-06
  26  1.68002e-05
  27  1.81914e-07
  28  0.176752
  29  0.217097
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.561e-05  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:  9.234e-01  2.171e-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:  8.515e-01  1.768e-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: 2.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549255/likelihoodResults_291168001_291427201_4FGL_J1326.0+3507_daily_bin200.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) = 5333.06576999
delta logL = -0.000512699290084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5333.06525776
delta logL = -4.76300556329e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11319E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1206       1.0000          .0000       10.000    
     3 'Normalizat'    .85148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92343       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=   5333.065     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      237 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10421E-03    8.1325        .18142E-01** at limit **
   2  Index         2.0207        8.2101        .50000        .23184E-04
   3  Normalizat    .85149        .31417E-02    .20838E-03    .47083E-04
   4  Prefactor     .92342        .40023E-02    .25440E-03    .17773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104208
  Index      = 2.02067
  Normalizat = 0.851493
  Prefactor  = 0.923419
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.065     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10421E-03    76.883        .23454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0207        8.9688        .50000       -.63834    
   3  Normalizat    .85149        .97335E-02    .83353E-05   -.98186    
   4  Prefactor     .92342        .12400E-01    .10176E-04   -.95327    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.53703e-09
Minuit parameter uncertainties:
  1  0.0360212
  2  293.366
  3  0.00973349
  4  0.0124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549255': 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) = 5333.06525665
delta logL = 6.40976395516e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.042e-04  3.602e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.021e+00  2.934e+02  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:  9.234e-01  1.240e-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:  8.515e-01  9.733e-03  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/549255/cmap_HighResolution_291168001_291427201_4FGL_J1326.0+3507_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-03', job_status='DONE', photon_flux_upper_limit='2.48e-08', time_completed='2021-09-07 15:58:31.491828', job_id='549255', GAL2='0.92', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631055511.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='200' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:58:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 549255: <4FGL_J1326.0+3507_daily_bin200> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin200> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:45:31 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:45:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 15:45:37 2021
Terminated at Tue Sep  7 15:58:31 2021
Results reported at Tue Sep  7 15:58:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin200 201.501 35.1218 291168001 291427201 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 :                                   762.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            780 sec.

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

