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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1289
RA = 201.501, Dec = 35.1218
tmin = 573436801, tmax = 573696001
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='555757', job_status='RUN', time_executed='2021-09-07 16:10:05.376306', time_epoch_executed='1631056205.38' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555757/ft1_4FGL_J1326.0+3507_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555757/ft2_4FGL_J1326.0+3507_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555757/ft1_4FGL_J1326.0+3507_daily_bin1289.fits outfile=/scratch/kocevski/555757/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1289.fits ra=201.501 dec=35.1218 rad=12.0 tmin=573436801.0 tmax=573696001.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 5.46
user 5.09
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555757/ft2_4FGL_J1326.0+3507_daily_bin1289.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/555757/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1289.fits evtable="EVENTS" outfile="/scratch/kocevski/555757/ft1_filtered_4FGL_J1326.0+3507_daily_bin1289.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.50
user 0.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555757/ft1_filtered_4FGL_J1326.0+3507_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/555757/ft2_4FGL_J1326.0+3507_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/555757/ltcube_573436801_573696001_4FGL_J1326.0+3507_daily_bin1289.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/555757/ft2_4FGL_J1326.0+3507_daily_bin1289.fits
.....................!
real 13.47
user 13.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555757/ft1_filtered_4FGL_J1326.0+3507_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/555757/ft2_4FGL_J1326.0+3507_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/555757/ltcube_573436801_573696001_4FGL_J1326.0+3507_daily_bin1289.fits outfile=/scratch/kocevski/555757/expmap_573436801_573696001_4FGL_J1326.0+3507_daily_bin1289.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/555757/ltcube_573436801_573696001_4FGL_J1326.0+3507_daily_bin1289.fits
.....................!
real 192.21
user 186.80
sys 4.74

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/555757/ft1_filtered_4FGL_J1326.0+3507_daily_bin1289.fits scfile=/scratch/kocevski/555757/ft2_4FGL_J1326.0+3507_daily_bin1289.fits outfile=/scratch/kocevski/555757/cmap_573436801_573696001_4FGL_J1326.0+3507_daily_bin1289.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.53
user 0.39
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8125       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.9615       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12752E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.493       1.0000         .10000E-03   10000.    
    10 'norm      '    18.748       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7589       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16691E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.319       1.0000         .10000E-03   10000.    
    16 'Prefactor '    92.684       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.905       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.738       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5629       1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.7865       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0675       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0395       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=   5987.648     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3657 TOTAL
                     EDM=   .72E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8129        13.947       -.15035E-08   -.16005E-04
   2  Prefactor     .10000E-03    33.470       -.46633E-06** at limit **
   3  Prefactor     .10000E-03    3.5492       -.45867E-07** at limit **
   4  norm          5.9615        4.7381        .11566E-06   -.20366E-05
   5  Prefactor     .10000E-03    24.782        .16844E-05** at limit **
   6  Prefactor     .10000E-03    17.443       -.59960E-06** at limit **
   7  norm          12.096        6.2654        .12177E-06   -.58323E-05
   8  Prefactor     .10000E-03    70.786        .30229E-05** at limit **
   9  norm          12.499        7.4559       -.31167E-08   -.12625E-03
  10  norm          18.748        15.857        .43446E-07   -.14055E-04
  11  norm          4.7597        3.3694        .98611E-08   -.75207E-05
  12  norm          .10000E-03    2.8647        .89895E-08** at limit **
  13  norm          .10000E-03    11.239        .26694E-06** at limit **
  14  Prefactor     .10000E-03    5.4280       -.22163E-06** at limit **
  15  Prefactor     12.369        18.640       -.43436E-06   -.83055E-05
  16  Prefactor     92.665        70.294        .22976E-05   -.49483E-05
  17  Prefactor     .10000E-03    17.656       -.51602E-06** at limit **
  18  Prefactor     22.896        25.570        .52687E-06    .30715E-05
  19  Prefactor     .10000E-03    56.610       -.36739E-05** at limit **
  20  norm          17.739        2.9407        .27784E-07   -.86894E-05
  21  Prefactor     4.5635        5.1225        .14117E-05   -.66275E-05
  22  norm          .10000E-03    11.177        .26864E-06** at limit **
  23  Prefactor     .10000E-03    6.9512        .49859E-06** at limit **
  24  norm          3.7863        3.9586        .12063E-06    .10325E-04
  25  Prefactor     .10000E-03    6.1799       -.27089E-06** at limit **
  26  Prefactor     .10000E-03    8.0853       -.18231E-06** at limit **
  27  norm          .10000E-03    8.5217       -.30970E-06** at limit **
  28  Normalizat    1.0673        .18737       -.48876E-06   -.33648E-04
  29  Prefactor     1.0398        .22421       -.54579E-06   -.37006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.81291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.96148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0958
  Prefactor  = 0.0001
  norm       = 12.499
  norm       = 18.7478
  norm       = 4.75973
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3686
  Prefactor  = 92.6653
  Prefactor  = 0.0001
  Prefactor  = 22.8958
  Prefactor  = 0.0001
  norm       = 17.7387
  Prefactor  = 4.56349
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.06726
  Prefactor  = 1.03977
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.648     FROM HESSE     STATUS=OK           551 CALLS     4208 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8129        13.942        .12792E-03   -1.5081    
   2  Prefactor     .10000E-03    33.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5654        .14232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9615        4.7368        .14471E-03   -1.5220    
   5  Prefactor     .10000E-03    24.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.096        6.2650        .57590E-03   -1.5012    
   8  Prefactor     .10000E-03    72.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.499        7.4493        .56665E-03   -1.5001    
  10  norm          18.748        15.873        .92500E-04   -1.4842    
  11  norm          4.7597        3.3610        .11335E-03   -1.5272    
  12  norm          .10000E-03    2.8676        .12774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5430        .34768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.369        18.500        .11413E-03   -1.5004    
  16  Prefactor     92.665        70.305        .20872E-03   -1.3780    
  17  Prefactor     .10000E-03    17.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.896        25.597        .83694E-04   -1.4751    
  19  Prefactor     .10000E-03    56.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.739        2.9469        .51834E-04   -1.4865    
  21  Prefactor     4.5635        5.1262        .87753E-03   -1.5281    
  22  norm          .10000E-03    11.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.7863        3.9535        .15205E-03   -1.5319    
  25  Prefactor     .10000E-03    6.1908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.0964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    8.5377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0673        .22587        .25578E-03   -.90810    
  29  Prefactor     1.0398        .26948        .31292E-03   -.91415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44604e-11
Minuit parameter uncertainties:
  1  13.9471
  2  1.78929e-06
  3  1.63041e-06
  4  4.73713
  5  3.811e-06
  6  4.3987e-06
  7  6.26531
  8  0.000183888
  9  7.44981
  10  15.8768
  11  3.36114
  12  6.68473e-07
  13  4.94572e-07
  14  1.97466e-05
  15  18.5089
  16  70.368
  17  8.28293e-06
  18  25.6097
  19  1.95551e-05
  20  2.94691
  21  5.12669
  22  2.85391e-06
  23  8.17992e-08
  24  3.95375
  25  1.75913e-06
  26  1.9495e-06
  27  1.27016e-06
  28  0.226073
  29  0.269834
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  9.267e+01  7.037e+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.040e+00  2.698e-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.067e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.27
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.60e-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) = 5987.51436197
delta logL = 0.133207168857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5987.5037427
delta logL = 0.143826432909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    107.84       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8101       1.0000          .0000       10.000    
     3 'Normalizat'    1.0856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       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=   5987.504     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      315 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     107.87        86.207        .19364E-03    .53578E-04
   2  Index         1.8102        .64360        .78744E-02   -.14476E-04
   3  Normalizat    1.0853        .22128        .25398E-03    .41046E-04
   4  Prefactor     1.0289        .26650        .31446E-03   -.41649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 107.865
  Index      = 1.81017
  Normalizat = 1.08531
  Prefactor  = 1.02892
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.504     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     107.87        86.103        .38729E-04   -1.3627    
   2  Index         1.8102        .64246        .31498E-03   -.69185    
   3  Normalizat    1.0853        .22142        .10159E-04   -.90225    
   4  Prefactor     1.0289        .26676        .12578E-04   -.91772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25806e-11
Minuit parameter uncertainties:
  1  86.203
  2  0.645481
  3  0.221606
  4  0.2671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555757': 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) = 5987.50374177
delta logL = 0.143827369464

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.079e+02  8.620e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.810e+00  6.455e-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:  1.029e+00  2.671e-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.085e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.55
Ra Dec: 201.501 35.122
Photon Index (Free Index): 1.81 +/- 0.65
Photon Flux (Free Index): 2.60e-08 +/- 3.50e-08
Energy Flux (Free Index): 3.02e-05 +/- 3.49e-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/555757/cmap_HighResolution_573436801_573696001_4FGL_J1326.0+3507_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='3.02e-05', photon_flux_error='3.24e-08', dlogl='1.44e-01', energy_flux='2.10e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-09-07 16:22:13.976383', photon_index_error2='0.65', photon_index2='1.81', ts='7.27', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.49e-05', EG='1.07', time_epoch_completed='1631056933.98', return_code='0', job_id='555757', GAL2='1.03', EG2='1.09', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='3.50e-08', ts2='7.55', photon_index='2.15' WHERE bin_id='1289' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:22:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 555757: <4FGL_J1326.0+3507_daily_bin1289> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1289> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:06:27 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:08:03 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:08:03 2021
Terminated at Tue Sep  7 16:22:14 2021
Results reported at Tue Sep  7 16:22:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1289 201.501 35.1218 573436801 573696001 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 :                                   725.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            947 sec.

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

