/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 170 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7430
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1058
RA = 201.501, Dec = 35.1218
tmin = 513561601, tmax = 513820801
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='555306', job_status='RUN', time_executed='2021-09-07 16:09:04.637552', time_epoch_executed='1631056144.64' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555306/ft1_4FGL_J1326.0+3507_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555306/ft2_4FGL_J1326.0+3507_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555306/ft1_4FGL_J1326.0+3507_daily_bin1058.fits outfile=/scratch/kocevski/555306/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1058.fits ra=201.501 dec=35.1218 rad=12.0 tmin=513561601.0 tmax=513820801.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.80
user 3.51
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555306/ft1_filtered_4FGL_J1326.0+3507_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/555306/ft2_4FGL_J1326.0+3507_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/555306/ltcube_513561601_513820801_4FGL_J1326.0+3507_daily_bin1058.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/555306/ft2_4FGL_J1326.0+3507_daily_bin1058.fits
.....................!
real 18.85
user 18.37
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555306/ft1_filtered_4FGL_J1326.0+3507_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/555306/ft2_4FGL_J1326.0+3507_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/555306/ltcube_513561601_513820801_4FGL_J1326.0+3507_daily_bin1058.fits outfile=/scratch/kocevski/555306/expmap_513561601_513820801_4FGL_J1326.0+3507_daily_bin1058.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/555306/ltcube_513561601_513820801_4FGL_J1326.0+3507_daily_bin1058.fits
.....................!
real 193.62
user 186.58
sys 5.55

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/555306/ft1_filtered_4FGL_J1326.0+3507_daily_bin1058.fits scfile=/scratch/kocevski/555306/ft2_4FGL_J1326.0+3507_daily_bin1058.fits outfile=/scratch/kocevski/555306/cmap_513561601_513820801_4FGL_J1326.0+3507_daily_bin1058.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/555306/ft1_filtered_4FGL_J1326.0+3507_daily_bin1058.fits scfile=/scratch/kocevski/555306/ft2_4FGL_J1326.0+3507_daily_bin1058.fits outfile=/scratch/kocevski/555306/cmap_HighResolution_513561601_513820801_4FGL_J1326.0+3507_daily_bin1058.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/555306/ft1_filtered_4FGL_J1326.0+3507_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/555306/ft2_4FGL_J1326.0+3507_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555306/Model_4FGL_J1326.0+3507_daily_bin1058.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/555306/ft1_filtered_4FGL_J1326.0+3507_daily_bin1058.fits.....................!
real 48.06
user 46.60
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    70.172       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9671       1.0000         .10000E-03   10000.    
     5 'Prefactor '    79.972       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.803       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.910       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6844       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6438       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1104       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.476       1.0000         .10000E-03   10000.    
    20 'norm      '    5.8185       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0241       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.0215       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.645       1.0000         .10000E-03   10000.    
    27 'norm      '    15.182       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3707       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62900       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=   5640.823     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3643 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.187       -.36233E-06** at limit **
   2  Prefactor     70.267        66.382       -.50809E-05   -.31223E-05
   3  Prefactor     .10000E-03    3.1702       -.65378E-07** at limit **
   4  norm          2.9656        4.2054        .49002E-06    .24325E-04
   5  Prefactor     79.984        58.472       -.62146E-06    .21286E-06
   6  Prefactor     10.803        24.310        .33233E-08   -.13050E-05
   7  norm          .10000E-03    1.3586       -.49986E-08** at limit **
   8  Prefactor     .10000E-03    18.976        .13459E-06** at limit **
   9  norm          .10000E-03    1.4570       -.29240E-07** at limit **
  10  norm          11.908        11.503        .48359E-07    .33166E-06
  11  norm          .10000E-03    1.3705       -.79464E-08** at limit **
  12  norm          .10000E-03    1.9775       -.29894E-07** at limit **
  13  norm          .10000E-03    6.7460       -.25320E-06** at limit **
  14  Prefactor     8.6865        5.6265       -.37755E-07   -.58094E-05
  15  Prefactor     9.6418        19.863       -.51572E-08   -.25352E-05
  16  Prefactor     .10000E-03    49.202       -.82806E-06** at limit **
  17  Prefactor     2.1096        46.511        .39427E-05    .10418E-05
  18  Prefactor     .10000E-03    7.5299        .25165E-06** at limit **
  19  Prefactor     18.339        70.456        .13139E-04   -.31273E-05
  20  norm          5.8189        1.9309       -.24275E-07   -.15212E-04
  21  Prefactor     2.0243        4.6256        .14233E-05    .31211E-05
  22  norm          .10000E-03    6.0534       -.11399E-06** at limit **
  23  Prefactor     .10000E-03    7.6153        .78630E-07** at limit **
  24  norm          6.0209        4.8144        .12898E-07   -.17905E-05
  25  Prefactor     .10000E-03    9.9495        .11311E-07** at limit **
  26  Prefactor     11.647        15.132        .43497E-07   -.83284E-06
  27  norm          15.183        14.801        .95020E-08   -.28624E-06
  28  Normalizat    1.3701        .19412        .54846E-06    .84736E-05
  29  Prefactor     .62967        .21780       -.17051E-05    .96945E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 70.2672
  Prefactor  = 0.0001
  norm       = 2.96562
  Prefactor  = 79.9838
  Prefactor  = 10.8027
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.9077
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.6865
  Prefactor  = 9.64181
  Prefactor  = 0.0001
  Prefactor  = 2.10957
  Prefactor  = 0.0001
  Prefactor  = 18.3386
  norm       = 5.81894
  Prefactor  = 2.02428
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.02088
  Prefactor  = 0.0001
  Prefactor  = 11.6465
  norm       = 15.1833
  Normalizat = 1.37014
  Prefactor  = 0.629672
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.823     FROM HESSE     STATUS=OK           555 CALLS     4198 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     70.267        66.435        .23960E-03   -1.4029    
   3  Prefactor     .10000E-03    3.1876        .13058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9656        4.1762        .16854E-03   -1.5364    
   5  Prefactor     79.984        58.522        .22455E-03   -1.3917    
   6  Prefactor     10.803        24.261        .12190E-03   -1.5050    
   7  norm          .10000E-03    1.3607        .85494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4584        .88524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.908        11.503        .11608E-03   -1.5018    
  11  norm          .10000E-03    1.3749        .85804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9816        .10314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.7477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6865        5.6212        .11498E-03   -1.5118    
  15  Prefactor     9.6418        19.794        .12904E-03   -1.5087    
  16  Prefactor     .10000E-03    49.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1096        46.356        .14199E-02   -1.5417    
  18  Prefactor     .10000E-03    7.5339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.339        71.033        .93179E-04   -1.4851    
  20  norm          5.8189        1.9330        .58012E-04   -1.5225    
  21  Prefactor     2.0243        4.6518        .11589E-02   -1.5423    
  22  norm          .10000E-03    6.0664        .18047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.0209        4.8110        .14156E-03   -1.5217    
  25  Prefactor     .10000E-03    9.9818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.647        15.108        .58696E-03   -1.5025    
  27  norm          15.183        14.798        .10279E-03   -1.4928    
  28  Normalizat    1.3701        .23234        .21471E-03   -.81496    
  29  Prefactor     .62967        .25399        .35507E-03   -1.0635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96791e-12
Minuit parameter uncertainties:
  1  2.62853e-07
  2  66.5049
  3  4.61081e-07
  4  4.1766
  5  58.5644
  6  24.2836
  7  1.40186e-07
  8  1.29136e-05
  9  4.9972e-07
  10  11.5051
  11  3.64523e-07
  12  2.09051e-07
  13  2.06928e-07
  14  5.62149
  15  19.8079
  16  4.04321e-05
  17  19.7948
  18  2.69832e-06
  19  71.3639
  20  1.93305
  21  4.65259
  22  1.18046e-05
  23  1.80425e-06
  24  4.81128
  25  1.9262e-06
  26  15.1126
  27  14.8019
  28  0.232515
  29  0.254452
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.043e-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:  6.297e-01  2.545e-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.370e+00  2.325e-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: 7.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555306/likelihoodResults_513561601_513820801_4FGL_J1326.0+3507_daily_bin1058.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) = 5640.82271721
delta logL = -9.66281750152e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5640.82262072
delta logL = -1.36843482323e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10812E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0960       1.0000          .0000       10.000    
     3 'Normalizat'    1.3701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62968       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=   5640.823     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      240 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6202.4        .90712E-02** at limit **
   2  Index         2.1157        5.9821        .50000       -.35978E-05
   3  Normalizat    1.3701        .35788E-01    .48568E-01   -.11556E-03
   4  Prefactor     .62967        .41927E-01    .80181E-01   -.80224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.11573
  Normalizat = 1.37014
  Prefactor  = 0.62967
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.823     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      271 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7937.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1157        5.3482        .50000       -.61487    
   3  Normalizat    1.3701        .76685E-01    .21471E-03   -.81496    
   4  Prefactor     .62967        .89628E-01    .35508E-03   -1.0635    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.87564e-09
Minuit parameter uncertainties:
  1  0.00511882
  2  52.073
  3  0.0766916
  4  0.0896487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555306': 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) = 5640.82262061
delta logL = -3.23179847328e-08

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.119e-03  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.116e+00  5.207e+01  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  6.297e-01  8.965e-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.370e+00  7.669e-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/555306/cmap_HighResolution_513561601_513820801_4FGL_J1326.0+3507_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2021-09-07 16:22:01.571219', job_id='555306', GAL2='0.63', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1631056921.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='-3.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1058' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:22:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 555306: <4FGL_J1326.0+3507_daily_bin1058> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1058> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:34 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:06:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 16:06:05 2021
Terminated at Tue Sep  7 16:22:02 2021
Results reported at Tue Sep  7 16:22:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1058 201.501 35.1218 513561601 513820801 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 :                                   772.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            988 sec.

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

