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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin635
RA = 201.501, Dec = 35.1218
tmin = 403920001, tmax = 404179201
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='551147', job_status='RUN', time_executed='2021-09-07 15:56:08.649154', time_epoch_executed='1631055368.65' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551147

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551147/ft1_4FGL_J1326.0+3507_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551147/ft2_4FGL_J1326.0+3507_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551147/ft1_4FGL_J1326.0+3507_daily_bin635.fits outfile=/scratch/kocevski/551147/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin635.fits ra=201.501 dec=35.1218 rad=12.0 tmin=403920001.0 tmax=404179201.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 8.34
user 7.89
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551147/ft1_filtered_4FGL_J1326.0+3507_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/551147/ft2_4FGL_J1326.0+3507_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/551147/ltcube_403920001_404179201_4FGL_J1326.0+3507_daily_bin635.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/551147/ft2_4FGL_J1326.0+3507_daily_bin635.fits
.....................!
real 9.56
user 9.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551147/ft1_filtered_4FGL_J1326.0+3507_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/551147/ft2_4FGL_J1326.0+3507_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/551147/ltcube_403920001_404179201_4FGL_J1326.0+3507_daily_bin635.fits outfile=/scratch/kocevski/551147/expmap_403920001_404179201_4FGL_J1326.0+3507_daily_bin635.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/551147/ltcube_403920001_404179201_4FGL_J1326.0+3507_daily_bin635.fits
.....................!
real 156.73
user 151.52
sys 4.70

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/551147/ft1_filtered_4FGL_J1326.0+3507_daily_bin635.fits scfile=/scratch/kocevski/551147/ft2_4FGL_J1326.0+3507_daily_bin635.fits outfile=/scratch/kocevski/551147/cmap_403920001_404179201_4FGL_J1326.0+3507_daily_bin635.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551147/ft1_filtered_4FGL_J1326.0+3507_daily_bin635.fits scfile=/scratch/kocevski/551147/ft2_4FGL_J1326.0+3507_daily_bin635.fits outfile=/scratch/kocevski/551147/cmap_HighResolution_403920001_404179201_4FGL_J1326.0+3507_daily_bin635.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .83225       1.0000         .10000E-03   10000.    
     4 'norm      '    .98898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .28947E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    37.544       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.196       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.127       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.306       1.0000         .10000E-03   10000.    
    22 'norm      '    .18710E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20656E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    5.9261       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    42.034       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6375       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .39872       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=   3038.650     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3182 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.099        .11546E-05** at limit **
   2  Prefactor     .10010E-03    297.28        .43677E-04** at limit **
   3  Prefactor     .83114        13.411       -.11517E-04    .39011E-03
   4  norm          .98443        10.817       -.53635E-05    .11342E-03
   5  Prefactor     .10000E-03    28.274       -.18084E-06** at limit **
   6  Prefactor     .10000E-03    16.946        .20403E-05** at limit **
   7  norm          .10000E-03    10.652       -.83923E-06** at limit **
   8  Prefactor     .10000E-03    19.652        .38951E-05** at limit **
   9  norm          .10000E-03    3.1608        .55959E-06** at limit **
  10  norm          37.533        27.557       -.16525E-05   -.50097E-04
  11  norm          .10000E-03    2.0070        .11801E-06** at limit **
  12  norm          .10000E-03    2.7562        .39460E-07** at limit **
  13  norm          .10000E-03    20.003        .12509E-06** at limit **
  14  Prefactor     .10000E-03    2.0144       -.47275E-09** at limit **
  15  Prefactor     .10000E-03    21.120       -.16130E-05** at limit **
  16  Prefactor     .10000E-03    51.845        .76239E-06** at limit **
  17  Prefactor     .10000E-03    10.111        .15285E-05** at limit **
  18  Prefactor     34.216        39.437       -.14610E-05   -.21800E-04
  19  Prefactor     .10000E-03    250.77       -.52869E-05** at limit **
  20  norm          12.126        3.2335       -.12255E-06    .41226E-03
  21  Prefactor     10.298        8.9842       -.89189E-06    .61346E-04
  22  norm          .10030E-03    155.82        .45447E-04** at limit **
  23  Prefactor     .10213E-03    178.11       -.52246E-04** at limit **
  24  norm          5.9269        5.1184       -.48084E-06    .10476E-03
  25  Prefactor     .10000E-03    13.528       -.37695E-06** at limit **
  26  Prefactor     .10000E-03    9.9371       -.15471E-05** at limit **
  27  norm          42.042        29.995       -.20626E-06    .19679E-03
  28  Normalizat    1.6382        .28231        .18203E-05    .67153E-03
  29  Prefactor     .39826        .33030        .85997E-05    .41692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100097
  Prefactor  = 0.831141
  norm       = 0.984429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 37.5331
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2161
  Prefactor  = 0.000100005
  norm       = 12.1256
  Prefactor  = 10.2976
  norm       = 0.000100303
  Prefactor  = 0.000102129
  norm       = 5.92686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 42.042
  Normalizat = 1.63818
  Prefactor  = 0.398264
 **********
 **   18 **HESSE 
 **********

 FCN=   3038.650     FROM HESSE     STATUS=OK           551 CALLS     3733 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10010E-03    305.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83114        13.704        .38598E-03   -1.5526    
   4  norm          .98443        11.063        .34210E-03   -1.5510    
   5  Prefactor     .10000E-03    28.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    31.541        .34768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1720        .95733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          37.533        27.549        .65410E-04   -1.4482    
  11  norm          .10000E-03    2.0213        .76247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7574        .89380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0284        .76385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    51.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.127        .17130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.216        39.469        .68527E-04   -1.4537    
  19  Prefactor     .10000E-03    252.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.126        3.2361        .49263E-04   -1.5011    
  21  Prefactor     10.298        9.0083        .12481E-03   -1.5066    
  22  norm          .10030E-03    216.58        .52333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10213E-03    38.680        .93969E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.9269        5.1165        .11234E-03   -1.5221    
  25  Prefactor     .10000E-03    13.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.9529        .16982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          42.042        29.984        .61831E-04   -1.4410    
  28  Normalizat    1.6382        .30374        .20542E-03   -.73966    
  29  Prefactor     .39826        .35048        .45376E-03   -1.1690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85189e-09
Minuit parameter uncertainties:
  1  0.000117465
  2  0.0109624
  3  6.75124
  4  6.6013
  5  5.72967e-06
  6  0.000140425
  7  0.000430257
  8  0.000331439
  9  1.45519e-05
  10  27.5578
  11  1.27673e-06
  12  5.16245e-07
  13  3.49092e-06
  14  7.15763e-06
  15  0.00017061
  16  3.8526e-06
  17  6.66511e-05
  18  39.4995
  19  0.0021511
  20  3.23619
  21  9.00952
  22  0.0162562
  23  0.0181625
  24  5.1169
  25  6.34999e-06
  26  6.59531e-05
  27  29.9948
  28  0.304084
  29  0.352381
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.853e-06  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:  3.983e-01  3.524e-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:  1.638e+00  3.041e-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: 9.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551147/likelihoodResults_403920001_404179201_4FGL_J1326.0+3507_daily_bin635.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) = 3038.6505025
delta logL = -9.17466677492e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3038.65041095
delta logL = -1.9524804884e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3871       1.0000          .0000       10.000    
     3 'Normalizat'    1.6382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39826       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=   3038.650     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.982        .90712E-02** at limit **
   2  Index         2.3661        5.3630        .50000        .38803E-05
   3  Normalizat    1.6382        .56092E-02    .46475E-01    .11412E-05
   4  Prefactor     .39826        .65666E-02    .10235        .30200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36608
  Normalizat = 1.63818
  Prefactor  = 0.398255
 **********
 **   18 **HESSE 
 **********

 FCN=   3038.650     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    204.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3661        7.6772        .50000       -.55481    
   3  Normalizat    1.6382        .13461E-01    .20542E-03   -.73966    
   4  Prefactor     .39826        .15705E-01    .45376E-03   -1.1690    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17966e-08
Minuit parameter uncertainties:
  1  0.000373542
  2  253.77
  3  0.0134614
  4  0.0157047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551147': 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) = 3038.65041089
delta logL = -1.37232291308e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.735e-04  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.366e+00  2.538e+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:  3.983e-01  1.570e-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:  1.638e+00  1.346e-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/551147/cmap_HighResolution_403920001_404179201_4FGL_J1326.0+3507_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='9.19e-08', time_completed='2021-09-07 16:04:23.746773', job_id='551147', GAL2='0.40', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1631055863.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='-1.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='635' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:04:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 551147: <4FGL_J1326.0+3507_daily_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin635 201.501 35.1218 403920001 404179201 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 :                                   493.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            802 sec.

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

