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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1044
RA = 201.501, Dec = 35.1218
tmin = 509932801, tmax = 510192001
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='555285', job_status='RUN', time_executed='2021-09-07 16:06:16.572916', time_epoch_executed='1631055976.57' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555285

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555285/ft1_4FGL_J1326.0+3507_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555285/ft2_4FGL_J1326.0+3507_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555285/ft1_4FGL_J1326.0+3507_daily_bin1044.fits outfile=/scratch/kocevski/555285/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1044.fits ra=201.501 dec=35.1218 rad=12.0 tmin=509932801.0 tmax=510192001.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.56
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555285/ft1_filtered_4FGL_J1326.0+3507_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/555285/ft2_4FGL_J1326.0+3507_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/555285/ltcube_509932801_510192001_4FGL_J1326.0+3507_daily_bin1044.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/555285/ft2_4FGL_J1326.0+3507_daily_bin1044.fits
.....................!
real 16.21
user 15.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555285/ft1_filtered_4FGL_J1326.0+3507_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/555285/ft2_4FGL_J1326.0+3507_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/555285/ltcube_509932801_510192001_4FGL_J1326.0+3507_daily_bin1044.fits outfile=/scratch/kocevski/555285/expmap_509932801_510192001_4FGL_J1326.0+3507_daily_bin1044.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/555285/ltcube_509932801_510192001_4FGL_J1326.0+3507_daily_bin1044.fits
.....................!
real 191.99
user 187.25
sys 3.98

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/555285/ft1_filtered_4FGL_J1326.0+3507_daily_bin1044.fits scfile=/scratch/kocevski/555285/ft2_4FGL_J1326.0+3507_daily_bin1044.fits outfile=/scratch/kocevski/555285/cmap_509932801_510192001_4FGL_J1326.0+3507_daily_bin1044.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555285/ft1_filtered_4FGL_J1326.0+3507_daily_bin1044.fits scfile=/scratch/kocevski/555285/ft2_4FGL_J1326.0+3507_daily_bin1044.fits outfile=/scratch/kocevski/555285/cmap_HighResolution_509932801_510192001_4FGL_J1326.0+3507_daily_bin1044.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/555285/ft1_filtered_4FGL_J1326.0+3507_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/555285/ft2_4FGL_J1326.0+3507_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555285/Model_4FGL_J1326.0+3507_daily_bin1044.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/555285/ft1_filtered_4FGL_J1326.0+3507_daily_bin1044.fits.....................!
real 45.36
user 43.99
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52423       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.301       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8953       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5755       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2011       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.158       1.0000         .10000E-03   10000.    
    20 'norm      '    9.2782       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6031       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    17.606       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .51283       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3261       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=   5541.841     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3617 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.496        11.376        .67479E-06    .61784E-03
   2  Prefactor     .10000E-03    25.324       -.33985E-07** at limit **
   3  Prefactor     .52370        3.4194       -.69025E-06   -.10543E-08
   4  norm          5.1312        4.1614       -.14362E-07    .92874E-04
   5  Prefactor     51.448        49.629        .17602E-05    .12453E-04
   6  Prefactor     26.299        26.237       -.25337E-05    .89938E-04
   7  norm          6.6938        3.9806       -.40044E-07    .85519E-05
   8  Prefactor     .10000E-03    8.5579       -.27384E-05** at limit **
   9  norm          2.8954        4.9092       -.90557E-06   -.25368E-03
  10  norm          6.5742        15.886       -.23791E-05   -.46906E-04
  11  norm          .10000E-03    1.2868       -.55412E-07** at limit **
  12  norm          .10000E-03    1.5989        .80463E-07** at limit **
  13  norm          .10000E-03    7.6341        .14992E-05** at limit **
  14  Prefactor     6.4747        3.6457        .17477E-05    .42179E-03
  15  Prefactor     .10000E-03    4.9309       -.30846E-05** at limit **
  16  Prefactor     8.1672        52.042       -.99243E-04    .11227E-04
  17  Prefactor     .10000E-03    5.4413        .35404E-05** at limit **
  18  Prefactor     .10000E-03    4.2923        .76593E-06** at limit **
  19  Prefactor     41.162        76.759        .45432E-05    .22212E-04
  20  norm          9.2782        2.1012       -.12831E-06    .59034E-04
  21  Prefactor     .10000E-03    1.5442       -.18060E-07** at limit **
  22  norm          .10000E-03    7.7891        .33672E-06** at limit **
  23  Prefactor     .10000E-03    8.7916       -.31820E-05** at limit **
  24  norm          .10000E-03    2.4472        .31732E-07** at limit **
  25  Prefactor     7.6022        9.5141       -.39574E-06   -.12670E-03
  26  Prefactor     .10000E-03    10.413        .39332E-05** at limit **
  27  norm          17.604        15.428       -.87199E-06   -.12995E-04
  28  Normalizat    .51286        .16416        .23990E-05    .12501E-03
  29  Prefactor     1.3260        .20102        .87898E-06    .13351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4957
  Prefactor  = 0.0001
  Prefactor  = 0.523702
  norm       = 5.13125
  Prefactor  = 51.4478
  Prefactor  = 26.2993
  norm       = 6.69383
  Prefactor  = 0.0001
  norm       = 2.89541
  norm       = 6.57417
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.47471
  Prefactor  = 0.0001
  Prefactor  = 8.16724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.1615
  norm       = 9.27816
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.6022
  Prefactor  = 0.0001
  norm       = 17.6041
  Normalizat = 0.512861
  Prefactor  = 1.32603
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.841     FROM HESSE     STATUS=OK           551 CALLS     4168 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.496        11.533        .59079E-03   -1.5030    
   2  Prefactor     .10000E-03    25.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .52370        11.396        .25737E-02   -1.5563    
   4  norm          5.1312        4.1551        .12744E-03   -1.5255    
   5  Prefactor     51.448        49.600        .55914E-04   -1.4272    
   6  Prefactor     26.299        26.108        .78113E-04   -1.4682    
   7  norm          6.6938        3.9806        .11154E-03   -1.5190    
   8  Prefactor     .10000E-03    8.5797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8954        4.8672        .19936E-03   -1.5368    
  10  norm          6.5742        15.869        .15650E-03   -1.5195    
  11  norm          .10000E-03    1.2933        .82371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5997        .91922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.6533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4747        3.6419        .95146E-04   -1.5199    
  15  Prefactor     .10000E-03    4.9294        .16122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1672        52.139        .14000E-03   -1.5136    
  17  Prefactor     .10000E-03    5.4548        .16958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2940        .15063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.162        77.449        .62483E-04   -1.4424    
  20  norm          9.2782        2.1019        .49171E-04   -1.5099    
  21  Prefactor     .10000E-03    1.5629        .90280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.8224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.5363        .22726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.6022        9.4952        .14544E-03   -1.5156    
  26  Prefactor     .10000E-03    10.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          17.604        15.426        .95453E-04   -1.4869    
  28  Normalizat    .51286        .19553        .27617E-03   -1.1182    
  29  Prefactor     1.3260        .24145        .23279E-03   -.82536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7525e-08
Minuit parameter uncertainties:
  1  11.5349
  2  3.31607e-06
  3  4.88661
  4  4.15529
  5  49.6397
  6  26.1198
  7  3.98077
  8  3.13996e-05
  9  4.86783
  10  15.8788
  11  5.30406e-06
  12  2.07006e-06
  13  5.24913e-06
  14  3.64202
  15  6.69628e-05
  16  41.3239
  17  2.08666e-06
  18  2.4276e-06
  19  77.6395
  20  2.10188
  21  4.07918e-06
  22  2.31501e-05
  23  6.13414e-06
  24  6.47666e-06
  25  9.49709
  26  2.24404e-06
  27  15.4294
  28  0.195791
  29  0.241655
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  8.167e+00  4.132e+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:  1.326e+00  2.417e-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:  5.129e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/555285/likelihoodResults_509932801_510192001_4FGL_J1326.0+3507_daily_bin1044.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): 0
logL (Free Index) = 5541.7460322
delta logL = 0.0949968192863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5541.74114593
delta logL = 0.099883087235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0740       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8569       1.0000          .0000       10.000    
     3 'Normalizat'    .50287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3319       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5541.741     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      277 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0657        42.429        .16291E-03   -.50525E-03
   2  Index         2.8576        2.1599        .96546E-02   -.18058E-03
   3  Normalizat    .50290        .18368        .27869E-03    .47207E-03
   4  Prefactor     1.3319        .23828        .23228E-03    .69772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.06574
  Index      = 2.8576
  Normalizat = 0.502903
  Prefactor  = 1.33185
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.741     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0657        21.633        .65164E-05   -1.5215    
   2  Index         2.8576        1.4897        .38619E-03   -.44281    
   3  Normalizat    .50290        .18348        .11147E-04   -1.1228    
   4  Prefactor     1.3319        .23806        .46456E-04   -.82365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39477e-09
Minuit parameter uncertainties:
  1  21.6609
  2  1.51807
  3  0.183704
  4  0.238257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555285': 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) = 5541.74114577
delta logL = 0.0998832486257

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  6.066e+00  2.166e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.858e+00  1.518e+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:  1.332e+00  2.383e-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:  5.029e-01  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/555285/cmap_HighResolution_509932801_510192001_4FGL_J1326.0+3507_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-09-07 16:19:18.693413', job_id='555285', GAL2='1.33', fit_tolerance='1e-08', EG2='0.50', EG='0.51', time_epoch_completed='1631056758.69', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='9.99e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1044' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:19:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 555285: <4FGL_J1326.0+3507_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1044> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:32 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:05:59 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:05:59 2021
Terminated at Tue Sep  7 16:19:19 2021
Results reported at Tue Sep  7 16:19:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1044 201.501 35.1218 509932801 510192001 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 :                                   780.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            827 sec.

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

