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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin999
RA = 201.501, Dec = 35.1218
tmin = 498268801, tmax = 498528001
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='555215', job_status='RUN', time_executed='2021-09-07 16:05:51.934785', time_epoch_executed='1631055951.93' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555215

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555215/ft1_4FGL_J1326.0+3507_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555215/ft2_4FGL_J1326.0+3507_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555215/ft1_4FGL_J1326.0+3507_daily_bin999.fits outfile=/scratch/kocevski/555215/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin999.fits ra=201.501 dec=35.1218 rad=12.0 tmin=498268801.0 tmax=498528001.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.86
user 4.60
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555215/ft1_filtered_4FGL_J1326.0+3507_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/555215/ft2_4FGL_J1326.0+3507_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/555215/ltcube_498268801_498528001_4FGL_J1326.0+3507_daily_bin999.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/555215/ft2_4FGL_J1326.0+3507_daily_bin999.fits
.....................!
real 13.84
user 13.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555215/ft1_filtered_4FGL_J1326.0+3507_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/555215/ft2_4FGL_J1326.0+3507_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/555215/ltcube_498268801_498528001_4FGL_J1326.0+3507_daily_bin999.fits outfile=/scratch/kocevski/555215/expmap_498268801_498528001_4FGL_J1326.0+3507_daily_bin999.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/555215/ltcube_498268801_498528001_4FGL_J1326.0+3507_daily_bin999.fits
.....................!
real 191.58
user 186.10
sys 5.03

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/555215/ft1_filtered_4FGL_J1326.0+3507_daily_bin999.fits scfile=/scratch/kocevski/555215/ft2_4FGL_J1326.0+3507_daily_bin999.fits outfile=/scratch/kocevski/555215/cmap_498268801_498528001_4FGL_J1326.0+3507_daily_bin999.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.56
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    93.003       1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.833       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0375       1.0000         .10000E-03   10000.    
    11 'norm      '    .16553E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8105       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8918       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .75602       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.339       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.667       1.0000         .10000E-03   10000.    
    20 'norm      '    7.5455       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.668       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .40512E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.277       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1497       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70153       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=   5360.141     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3694 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9308       -.31276E-05** at limit **
   2  Prefactor     .10000E-03    30.190        .95910E-06** at limit **
   3  Prefactor     .10000E-03    1.7351       -.18623E-06** at limit **
   4  norm          .10000E-03    2.8014       -.33462E-06** at limit **
   5  Prefactor     93.029        67.500        .23190E-04   -.31918E-05
   6  Prefactor     52.851        27.170        .97986E-05    .56497E-03
   7  norm          .10000E-03    2.2455        .64969E-08** at limit **
   8  Prefactor     .10000E-03    5.6704        .42890E-05** at limit **
   9  norm          .10000E-03    1.4280        .56239E-07** at limit **
  10  norm          4.0346        13.673       -.56324E-05   -.12771E-03
  11  norm          .10000E-03    2.4133       -.17410E-05** at limit **
  12  norm          2.8176        4.9180        .94064E-06    .81237E-03
  13  norm          2.8854        52.357       -.88059E-05   -.27060E-04
  14  Prefactor     .75719        2.1823       -.14612E-05   -.14651E-02
  15  Prefactor     .10000E-03    9.9679        .36037E-05** at limit **
  16  Prefactor     44.339        36.880       -.24339E-06    .61346E-04
  17  Prefactor     .10000E-03    7.9345        .27237E-05** at limit **
  18  Prefactor     .10000E-03    10.481       -.26087E-05** at limit **
  19  Prefactor     46.663        43.273       -.49006E-05    .84139E-05
  20  norm          7.5456        2.1815        .21982E-06   -.15522E-03
  21  Prefactor     .10000E-03    1.1215       -.21245E-06** at limit **
  22  norm          14.669        12.231        .41993E-06   -.20096E-04
  23  Prefactor     .10000E-03    6.3116       -.38160E-06** at limit **
  24  norm          .10000E-03    2.0202        .39716E-06** at limit **
  25  Prefactor     .10000E-03    6.4138       -.11532E-05** at limit **
  26  Prefactor     26.281        17.637        .86424E-06   -.16593E-04
  27  norm          .10000E-03    5.1002       -.16051E-05** at limit **
  28  Normalizat    1.1494        .17188       -.37673E-05    .58315E-03
  29  Prefactor     .70198        .20139        .34499E-06    .45576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 93.0286
  Prefactor  = 52.8511
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.03462
  norm       = 0.0001
  norm       = 2.81765
  norm       = 2.88545
  Prefactor  = 0.757195
  Prefactor  = 0.0001
  Prefactor  = 44.339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.6625
  norm       = 7.54556
  Prefactor  = 0.0001
  norm       = 14.6691
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2809
  norm       = 0.0001
  Normalizat = 1.14941
  Prefactor  = 0.70198
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.141     FROM HESSE     STATUS=OK           555 CALLS     4249 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7377        .94181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8805        .23916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     93.029        66.449        .20836E-03   -1.3776    
   6  Prefactor     52.851        27.078        .55179E-04   -1.4253    
   7  norm          .10000E-03    2.2597        .10710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6629        .16999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4300        .85416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0346        13.670        .20068E-03   -1.5306    
  11  norm          .10000E-03    10.402        .19011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8176        4.4347        .18678E-03   -1.5372    
  13  norm          2.8854        52.528        .23897E-03   -1.5368    
  14  Prefactor     .75719        2.0511        .17083E-02   -1.5534    
  15  Prefactor     .10000E-03    10.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.339        36.788        .60208E-04   -1.4375    
  17  Prefactor     .10000E-03    7.9623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.663        43.308        .58694E-04   -1.4341    
  20  norm          7.5456        2.1812        .55356E-04   -1.5159    
  21  Prefactor     .10000E-03    1.1284        .75697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.669        12.229        .10458E-03   -1.4942    
  23  Prefactor     .10000E-03    6.3192        .17963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.2651        .36271E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.4179        .18093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     26.281        17.635        .78150E-04   -1.4682    
  27  norm          .10000E-03    5.0991        .16146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1494        .19607        .20520E-03   -.88181    
  29  Prefactor     .70198        .23140        .31235E-03   -1.0345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16477e-09
Minuit parameter uncertainties:
  1  1.7894e-06
  2  3.05978e-05
  3  4.89766e-06
  4  4.92956e-05
  5  66.5023
  6  27.0842
  7  1.52387e-05
  8  1.68087e-05
  9  5.66292e-06
  10  13.6811
  11  4.25068e-05
  12  4.43523
  13  24.6473
  14  2.05126
  15  2.80894e-05
  16  36.8068
  17  2.97865e-05
  18  3.18882e-05
  19  43.3372
  20  2.18121
  21  5.80071e-06
  22  12.2309
  23  4.70179e-06
  24  9.08647e-05
  25  2.18908e-06
  26  17.6387
  27  1.03035e-06
  28  0.196192
  29  0.231721
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  4.434e+01  3.681e+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.020e-01  2.317e-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.149e+00  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.19
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 8.35e-06

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) = 5359.78802238
delta logL = 0.35300807286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5359.75489553
delta logL = 0.386134917793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.700       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5915       1.0000          .0000       10.000    
     3 'Normalizat'    1.1596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69631       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=   5359.755     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      310 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.740        56.641        .25338E-03   -.21537E-04
   2  Index         1.5921        .61550        .10161E-01    .48662E-04
   3  Normalizat    1.1596        .18697        .20443E-03   -.12951E-03
   4  Prefactor     .69627        .22812        .31359E-03   -.13088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.7397
  Index      = 1.59206
  Normalizat = 1.15964
  Prefactor  = 0.696268
 **********
 **   18 **HESSE 
 **********

 FCN=   5359.755     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.740        56.664        .10135E-04   -1.4122    
   2  Index         1.5921        .61593        .20323E-02   -.74993    
   3  Normalizat    1.1596        .18710        .40885E-04   -.87859    
   4  Prefactor     .69627        .22828        .12543E-04   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55652e-11
Minuit parameter uncertainties:
  1  56.7127
  2  0.618875
  3  0.187203
  4  0.228591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555215': 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) = 5359.75489467
delta logL = 0.386135776173

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  6.274e+01  5.671e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.592e+00  6.189e-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.963e-01  2.286e-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.160e+00  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.97
Ra Dec: 201.501 35.122
Photon Index (Free Index): 1.59 +/- 0.62
Photon Flux (Free Index): 1.08e-08 +/- 1.35e-08
Energy Flux (Free Index): 2.51e-05 +/- 3.77e-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/555215/cmap_HighResolution_498268801_498528001_4FGL_J1326.0+3507_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='2.51e-05', photon_flux_error='1.69e-08', dlogl='3.86e-01', energy_flux='1.01e-05', photon_flux2='1.08e-08', job_status='DONE', time_completed='2021-09-07 16:17:35.909323', photon_index_error2='0.62', photon_index2='1.59', ts='7.19', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='3.77e-05', EG='1.15', time_epoch_completed='1631056655.91', return_code='0', job_id='555215', GAL2='0.70', EG2='1.16', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='1.35e-08', ts2='7.97', photon_index='2.15' WHERE bin_id='999' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:17:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 555215: <4FGL_J1326.0+3507_daily_bin999> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin999 201.501 35.1218 498268801 498528001 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 :                                   701.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            730 sec.

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

