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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1059
RA = 201.501, Dec = 35.1218
tmin = 513820801, tmax = 514080001
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='555308', job_status='RUN', time_executed='2021-09-07 16:08:37.384145', time_epoch_executed='1631056117.38' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555308

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555308/ft1_4FGL_J1326.0+3507_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555308/ft2_4FGL_J1326.0+3507_daily_bin1059.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555308/ft1_filtered_4FGL_J1326.0+3507_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/555308/ft2_4FGL_J1326.0+3507_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/555308/ltcube_513820801_514080001_4FGL_J1326.0+3507_daily_bin1059.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/555308/ft2_4FGL_J1326.0+3507_daily_bin1059.fits
.....................!
real 14.98
user 14.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555308/ft1_filtered_4FGL_J1326.0+3507_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/555308/ft2_4FGL_J1326.0+3507_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/555308/ltcube_513820801_514080001_4FGL_J1326.0+3507_daily_bin1059.fits outfile=/scratch/kocevski/555308/expmap_513820801_514080001_4FGL_J1326.0+3507_daily_bin1059.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/555308/ltcube_513820801_514080001_4FGL_J1326.0+3507_daily_bin1059.fits
.....................!
real 191.83
user 185.98
sys 5.38

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/555308/ft1_filtered_4FGL_J1326.0+3507_daily_bin1059.fits scfile=/scratch/kocevski/555308/ft2_4FGL_J1326.0+3507_daily_bin1059.fits outfile=/scratch/kocevski/555308/cmap_513820801_514080001_4FGL_J1326.0+3507_daily_bin1059.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.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.273       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41239E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    8.1755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0484       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8169       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6062       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1828       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    94.324       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8800       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9873       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    36.165       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13644E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.117       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19375E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    16.983       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3824       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67286       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=   5930.430     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3757 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.287       -.23088E-05** at limit **
   2  Prefactor     48.270        65.007        .12895E-05    .55205E-04
   3  Prefactor     .10122E-03    31.978       -.67416E-05** at limit **
   4  norm          8.1756        4.4541        .48468E-06    .61286E-03
   5  Prefactor     .10000E-03    39.588        .10720E-05** at limit **
   6  Prefactor     .10000E-03    6.5929        .25773E-06** at limit **
   7  norm          2.0484        2.1995       -.36344E-08   -.27255E-04
   8  Prefactor     .10000E-03    23.345        .30460E-05** at limit **
   9  norm          3.8172        3.6662        .14560E-06    .20323E-03
  10  norm          1.6059        28.243        .34109E-05    .54284E-03
  11  norm          .10000E-03    1.0998        .28985E-07** at limit **
  12  norm          .10000E-03    2.7803        .23443E-07** at limit **
  13  norm          .10000E-03    8.5332       -.83268E-06** at limit **
  14  Prefactor     6.1832        3.7453        .23736E-06    .19774E-03
  15  Prefactor     .10000E-03    9.7204        .16587E-05** at limit **
  16  Prefactor     94.332        61.217       -.12879E-05   -.85067E-04
  17  Prefactor     7.8822        13.640       -.72817E-07   -.41407E-05
  18  Prefactor     .10000E-03    10.891       -.13790E-05** at limit **
  19  Prefactor     .10000E-03    43.949       -.23689E-05** at limit **
  20  norm          4.9876        1.8921        .16494E-07   -.81571E-06
  21  Prefactor     .10000E-03    1.7016       -.50768E-07** at limit **
  22  norm          36.165        19.289       -.11535E-06   -.76691E-04
  23  Prefactor     .10000E-03    55.499        .21438E-06** at limit **
  24  norm          .10000E-03    1.5050        .64597E-08** at limit **
  25  Prefactor     12.098        18.363       -.20780E-05   -.27737E-03
  26  Prefactor     .10001E-03    56.519        .34651E-05** at limit **
  27  norm          16.986        22.734       -.53185E-06   -.16634E-03
  28  Normalizat    1.3821        .18196       -.48193E-06    .10081E-03
  29  Prefactor     .67321        .21064        .30915E-06    .55139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 48.2699
  Prefactor  = 0.000101222
  norm       = 8.17564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04838
  Prefactor  = 0.000100002
  norm       = 3.81716
  norm       = 1.60592
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.18323
  Prefactor  = 0.0001
  Prefactor  = 94.332
  Prefactor  = 7.88221
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.98762
  Prefactor  = 0.0001
  norm       = 36.1651
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 12.0976
  Prefactor  = 0.000100008
  norm       = 16.9865
  Normalizat = 1.38208
  Prefactor  = 0.673215
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.430     FROM HESSE     STATUS=OK           551 CALLS     4308 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     48.270        65.034        .57714E-04   -1.4317    
   3  Prefactor     .10122E-03    6.1914        .55635E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.1756        4.4605        .57583E-03   -1.5136    
   5  Prefactor     .10000E-03    39.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0484        2.2062        .11550E-03   -1.5422    
   8  Prefactor     .10000E-03    23.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8172        3.6631        .13975E-03   -1.5317    
  10  norm          1.6059        34.639        .16718E-02   -1.5455    
  11  norm          .10000E-03    1.1228        .78821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8546        .25068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.5453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1832        3.7401        .10893E-03   -1.5211    
  15  Prefactor     .10000E-03    9.8188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     94.332        61.469        .20691E-03   -1.3762    
  17  Prefactor     7.8822        13.637        .14284E-03   -1.5146    
  18  Prefactor     .10000E-03    10.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    44.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9876        1.8949        .62684E-04   -1.5261    
  21  Prefactor     .10000E-03    1.7193        .98068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          36.165        19.297        .66642E-04   -1.4504    
  23  Prefactor     .10000E-03    57.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.5138        .92235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.098        18.775        .11508E-03   -1.5012    
  26  Prefactor     .10001E-03    59.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.986        22.741        .97189E-04   -1.4883    
  28  Normalizat    1.3821        .21446        .21636E-03   -.81148    
  29  Prefactor     .67321        .24516        .35071E-03   -1.0459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74638e-09
Minuit parameter uncertainties:
  1  0.000233817
  2  65.1302
  3  0.00550074
  4  4.4607
  5  0.000176893
  6  1.06074e-05
  7  2.20624
  8  0.000426203
  9  3.66331
  10  14.9261
  11  7.07593e-07
  12  2.28212e-06
  13  6.10844e-05
  14  3.74026
  15  0.000129769
  16  61.5108
  17  13.6422
  18  0.000111295
  19  0.000377576
  20  1.89495
  21  6.99192e-07
  22  19.3007
  23  0.000551028
  24  3.85897e-06
  25  18.7844
  26  0.00134313
  27  22.7525
  28  0.214596
  29  0.245549
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  9.433e+01  6.151e+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:  6.732e-01  2.455e-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.382e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.58
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.40e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.37912841
delta logL = 1.05127387184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.34660425
delta logL = 1.08379803142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    111.38       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4259       1.0000          .0000       10.000    
     3 'Normalizat'    1.4089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65892       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=   5929.347     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      219 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.38        81.034        .95285E-03    .11610E-02
   2  Index         1.4258        .41311        .21018       -.28869E-04
   3  Normalizat    1.4089        .17830        .48572E-01   -.10928E-05
   4  Prefactor     .65888        .20978        .80019E-01    .27347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.384
  Index      = 1.42582
  Normalizat = 1.4089
  Prefactor  = 0.658881
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.347     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.38        82.455        .38114E-04   -1.3593    
   2  Index         1.4258        .46124        .84213E-02   -.79639    
   3  Normalizat    1.4089        .20744        .21472E-03   -.80372    
   4  Prefactor     .65888        .24410        .35434E-03   -1.0516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59472e-09
Minuit parameter uncertainties:
  1  82.5404
  2  0.462593
  3  0.207568
  4  0.244497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555308': 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) = 5929.34660421
delta logL = 1.08379807822

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.114e+02  8.254e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.426e+00  4.626e-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.589e-01  2.445e-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.409e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.77
Ra Dec: 201.501 35.122
Photon Index (Free Index): 1.43 +/- 0.46
Photon Flux (Free Index): 1.58e-08 +/- 1.56e-08
Energy Flux (Free Index): 6.42e-05 +/- 7.01e-05

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/555308/cmap_HighResolution_513820801_514080001_4FGL_J1326.0+3507_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='6.42e-05', photon_flux_error='2.83e-08', dlogl='1.08e+00', energy_flux='2.14e-05', photon_flux2='1.58e-08', job_status='DONE', time_completed='2021-09-07 16:20:42.030853', photon_index_error2='0.46', photon_index2='1.43', ts='13.58', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='7.01e-05', EG='1.38', time_epoch_completed='1631056842.03', return_code='0', job_id='555308', GAL2='0.66', EG2='1.41', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.56e-08', ts2='15.77', photon_index='2.15' WHERE bin_id='1059' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 555308: <4FGL_J1326.0+3507_daily_bin1059> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1059> 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) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:06:06 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:06 2021
Terminated at Tue Sep  7 16:20:42 2021
Results reported at Tue Sep  7 16:20:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1059 201.501 35.1218 513820801 514080001 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 :                                   722.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            908 sec.

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

