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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1105
RA = 201.501, Dec = 35.1218
tmin = 525744001, tmax = 526003201
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='555391', job_status='RUN', time_executed='2021-09-07 16:08:01.921067', time_epoch_executed='1631056081.92' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555391

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555391/ft1_4FGL_J1326.0+3507_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555391/ft2_4FGL_J1326.0+3507_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555391/ft1_4FGL_J1326.0+3507_daily_bin1105.fits outfile=/scratch/kocevski/555391/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1105.fits ra=201.501 dec=35.1218 rad=12.0 tmin=525744001.0 tmax=526003201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.43
user 4.11
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555391/ft2_4FGL_J1326.0+3507_daily_bin1105.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/555391/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1105.fits evtable="EVENTS" outfile="/scratch/kocevski/555391/ft1_filtered_4FGL_J1326.0+3507_daily_bin1105.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/555391/ft1_filtered_4FGL_J1326.0+3507_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/555391/ft2_4FGL_J1326.0+3507_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/555391/ltcube_525744001_526003201_4FGL_J1326.0+3507_daily_bin1105.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/555391/ft2_4FGL_J1326.0+3507_daily_bin1105.fits
.....................!
real 17.68
user 17.08
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555391/ft1_filtered_4FGL_J1326.0+3507_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/555391/ft2_4FGL_J1326.0+3507_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/555391/ltcube_525744001_526003201_4FGL_J1326.0+3507_daily_bin1105.fits outfile=/scratch/kocevski/555391/expmap_525744001_526003201_4FGL_J1326.0+3507_daily_bin1105.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/555391/ltcube_525744001_526003201_4FGL_J1326.0+3507_daily_bin1105.fits
.....................!
real 195.12
user 187.49
sys 5.30

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/555391/ft1_filtered_4FGL_J1326.0+3507_daily_bin1105.fits scfile=/scratch/kocevski/555391/ft2_4FGL_J1326.0+3507_daily_bin1105.fits outfile=/scratch/kocevski/555391/cmap_525744001_526003201_4FGL_J1326.0+3507_daily_bin1105.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=201.501 yref=35.1218 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555391/ft1_filtered_4FGL_J1326.0+3507_daily_bin1105.fits scfile=/scratch/kocevski/555391/ft2_4FGL_J1326.0+3507_daily_bin1105.fits outfile=/scratch/kocevski/555391/cmap_HighResolution_525744001_526003201_4FGL_J1326.0+3507_daily_bin1105.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=201.501 yref=35.1218 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2865       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9032       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.165       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.235       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1955       1.0000         .10000E-03   10000.    
    10 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11875E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3844       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9662       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.699       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11125E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0720       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4845       1.0000         .10000E-03   10000.    
    22 'norm      '    24.041       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.3768       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0243       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75392       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=   5441.027     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3165 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.492       -.31786E-06** at limit **
   2  Prefactor     .10000E-03    21.311        .22429E-06** at limit **
   3  Prefactor     .10000E-03    4.5893        .82183E-06** at limit **
   4  norm          1.2847        3.0966        .14440E-06   -.18113E-03
   5  Prefactor     6.9049        65.414        .11483E-05    .39208E-05
   6  Prefactor     22.165        20.750       -.37841E-06   -.26250E-04
   7  norm          4.4563        3.5621        .20252E-06   -.10370E-02
   8  Prefactor     13.234        16.144       -.37796E-06   -.61151E-04
   9  norm          5.1952        4.9441        .50650E-07   -.62603E-04
  10  norm          .10000E-03    9.4694        .54375E-06** at limit **
  11  norm          .10000E-03    1.6797       -.52230E-07** at limit **
  12  norm          .10000E-03    5.1119        .31913E-06** at limit **
  13  norm          4.3832        8.5236        .90423E-06   -.56027E-03
  14  Prefactor     .10000E-03    1.7191        .40198E-07** at limit **
  15  Prefactor     .10000E-03    7.4790        .19151E-06** at limit **
  16  Prefactor     3.9594        113.85       -.10090E-04   -.31266E-04
  17  Prefactor     .10000E-03    7.9785       -.87294E-06** at limit **
  18  Prefactor     15.684        24.413       -.46308E-06   -.43564E-05
  19  Prefactor     .10000E-03    117.27       -.15689E-07** at limit **
  20  norm          2.0722        1.3426       -.91266E-08   -.56275E-04
  21  Prefactor     1.4847        2.2536        .18985E-07   -.99427E-04
  22  norm          24.042        16.821       -.41050E-06   -.34769E-04
  23  Prefactor     .10000E-03    5.4522       -.82719E-06** at limit **
  24  norm          2.3771        3.2854        .10228E-07   -.11760E-03
  25  Prefactor     .10000E-03    4.0673        .59668E-07** at limit **
  26  Prefactor     .10000E-03    6.5421        .69914E-06** at limit **
  27  norm          .10000E-03    4.4984       -.68625E-06** at limit **
  28  Normalizat    1.0244        .15544        .48719E-06   -.20160E-04
  29  Prefactor     .75390        .18861       -.15567E-06    .22066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28474
  Prefactor  = 6.90485
  Prefactor  = 22.1652
  norm       = 4.45628
  Prefactor  = 13.234
  norm       = 5.19523
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 4.38316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95944
  Prefactor  = 0.0001
  Prefactor  = 15.6835
  Prefactor  = 0.0001
  norm       = 2.07218
  Prefactor  = 1.48469
  norm       = 24.0415
  Prefactor  = 0.0001
  norm       = 2.3771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02438
  Prefactor  = 0.753902
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.027     FROM HESSE     STATUS=OK           555 CALLS     3720 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6700        .15448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2847        3.0375        .18578E-03   -1.5481    
   5  Prefactor     6.9049        65.325        .15270E-03   -1.5182    
   6  Prefactor     22.165        20.254        .85078E-04   -1.4766    
   7  norm          4.4563        3.8984        .66165E-03   -1.5286    
   8  Prefactor     13.234        16.170        .11010E-03   -1.4980    
   9  norm          5.1952        4.9281        .14505E-03   -1.5252    
  10  norm          .10000E-03    9.4983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.980        .17833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.1811        .16240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3832        10.935        .96173E-03   -1.5289    
  14  Prefactor     .10000E-03    1.7597        .18856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9594        119.03        .20253E-03   -1.5310    
  17  Prefactor     .10000E-03    8.0232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.684        24.420        .10109E-03   -1.4916    
  19  Prefactor     .10000E-03    117.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0722        1.3371        .65976E-04   -1.5420    
  21  Prefactor     1.4847        2.2278        .13229E-03   -1.5464    
  22  norm          24.042        16.861        .81697E-04   -1.4727    
  23  Prefactor     .10000E-03    5.4768        .16854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.3771        3.2805        .15213E-03   -1.5400    
  25  Prefactor     .10000E-03    4.0717        .14528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.5651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.5137        .15305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0244        .18323        .19993E-03   -.92218    
  29  Prefactor     .75390        .22249        .28572E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46804e-09
Minuit parameter uncertainties:
  1  2.10637e-05
  2  1.18555e-05
  3  2.47058e-05
  4  3.03786
  5  42.5373
  6  20.2604
  7  3.89863
  8  16.1749
  9  4.92844
  10  1.3663e-05
  11  0.000225018
  12  1.17248e-05
  13  10.9396
  14  1.55285e-05
  15  3.02881e-05
  16  43.5133
  17  2.88603e-05
  18  24.4359
  19  1.21262e-05
  20  1.33709
  21  2.22795
  22  16.8645
  23  2.52591e-05
  24  3.28079
  25  1.3406e-06
  26  2.30935e-05
  27  1.91734e-05
  28  0.183347
  29  0.222751
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  3.959e+00  4.351e+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:  7.539e-01  2.228e-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.024e+00  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/555391/likelihoodResults_525744001_526003201_4FGL_J1326.0+3507_daily_bin1105.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) = 5440.73903834
delta logL = 0.288186316468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5440.28720654
delta logL = 0.740018115672

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 'Index     '    7.4277       1.0000          .0000       10.000    
     3 'Normalizat'    .96806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80318       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=   5441.032     FROM MIGRAD    STATUS=CONVERGED    145 CALLS      463 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2773        .90712E-02** at limit **
   2  Index         .13667        5.7084        .50000       -.81418E-04
   3  Normalizat    1.0263        .24987        .45766E-01   -.43628E-04
   4  Prefactor     .75341        .31194        .64608E-01   -.62260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 0.136669
  Normalizat = 1.02626
  Prefactor  = 0.753406
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.032     FROM HESSE     STATUS=OK            33 CALLS      496 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0892        .10411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .13667        5.6303        .50000       -13.903    
   3  Normalizat    1.0263        .17565        .19977E-03   -2.2200    
   4  Prefactor     .75341        .21918        .28581E-03   -2.1269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64264e-09
Minuit parameter uncertainties:
  1  1.72873e-06
  2  1.16168
  3  0.175752
  4  0.219429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555391': 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) = 5441.0315645
delta logL = -0.00433984441861

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.729e-06  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.367e-01  1.162e+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:  7.534e-01  2.194e-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.026e+00  1.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/555391/cmap_HighResolution_525744001_526003201_4FGL_J1326.0+3507_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-09-07 16:20:49.635550', job_id='555391', GAL2='0.75', fit_tolerance='1e-08', EG2='1.03', EG='1.02', time_epoch_completed='1631056849.64', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-4.34e-03', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1105' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:20:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 555391: <4FGL_J1326.0+3507_daily_bin1105> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1105> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:41 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:06:30 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:30 2021
Terminated at Tue Sep  7 16:20:50 2021
Results reported at Tue Sep  7 16:20:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1105 201.501 35.1218 525744001 526003201 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 :                                   755.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            909 sec.

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

