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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1126
RA = 201.501, Dec = 35.1218
tmin = 531187201, tmax = 531446401
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='555427', job_status='RUN', time_executed='2021-09-07 16:09:08.647678', time_epoch_executed='1631056148.65' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555427

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555427/ft1_4FGL_J1326.0+3507_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555427/ft2_4FGL_J1326.0+3507_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555427/ft1_4FGL_J1326.0+3507_daily_bin1126.fits outfile=/scratch/kocevski/555427/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1126.fits ra=201.501 dec=35.1218 rad=12.0 tmin=531187201.0 tmax=531446401.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.03
user 3.77
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555427/ft2_4FGL_J1326.0+3507_daily_bin1126.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/555427/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/555427/ft1_filtered_4FGL_J1326.0+3507_daily_bin1126.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.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555427/ft1_filtered_4FGL_J1326.0+3507_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/555427/ft2_4FGL_J1326.0+3507_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/555427/ltcube_531187201_531446401_4FGL_J1326.0+3507_daily_bin1126.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/555427/ft2_4FGL_J1326.0+3507_daily_bin1126.fits
.....................!
real 15.72
user 15.35
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555427/ft1_filtered_4FGL_J1326.0+3507_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/555427/ft2_4FGL_J1326.0+3507_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/555427/ltcube_531187201_531446401_4FGL_J1326.0+3507_daily_bin1126.fits outfile=/scratch/kocevski/555427/expmap_531187201_531446401_4FGL_J1326.0+3507_daily_bin1126.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/555427/ltcube_531187201_531446401_4FGL_J1326.0+3507_daily_bin1126.fits
.....................!
real 191.19
user 186.66
sys 3.61

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/555427/ft1_filtered_4FGL_J1326.0+3507_daily_bin1126.fits scfile=/scratch/kocevski/555427/ft2_4FGL_J1326.0+3507_daily_bin1126.fits outfile=/scratch/kocevski/555427/cmap_531187201_531446401_4FGL_J1326.0+3507_daily_bin1126.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555427/ft1_filtered_4FGL_J1326.0+3507_daily_bin1126.fits scfile=/scratch/kocevski/555427/ft2_4FGL_J1326.0+3507_daily_bin1126.fits outfile=/scratch/kocevski/555427/cmap_HighResolution_531187201_531446401_4FGL_J1326.0+3507_daily_bin1126.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    118.15       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.915       1.0000         .10000E-03   10000.    
     7 'norm      '    4.1301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.554       1.0000         .10000E-03   10000.    
     9 'norm      '    .10363E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5771       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1594       1.0000         .10000E-03   10000.    
    12 'norm      '    5.8306       1.0000         .10000E-03   10000.    
    13 'norm      '    10.736       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11450E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2495       1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.937       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52781E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.517       1.0000         .10000E-03   10000.    
    20 'norm      '    6.1830       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.2568       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95501       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5868.398     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     3783 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0612        .26035E-06** at limit **
   2  Prefactor     118.17        4.3543       -.22189E-06    .75811E-03
   3  Prefactor     .10000E-03    5.1982        .20576E-05** at limit **
   4  norm          .10000E-03    1.7503       -.31612E-07** at limit **
   5  Prefactor     .10000E-03    14.299       -.57301E-07** at limit **
   6  Prefactor     11.950        28.836        .33053E-06   -.20870E-03
   7  norm          4.1301        3.9065        .58870E-06   -.13230E-03
   8  Prefactor     23.551        12.820        .46280E-05   -.41266E-02
   9  norm          .10000E-03    4.1236        .20954E-06** at limit **
  10  norm          5.5739        8.6793       -.12244E-04   -.22282E-02
  11  norm          2.1566        6.4412       -.10357E-04   -.12952E-03
  12  norm          5.8311        9.0787        .87316E-05    .58456E-03
  13  norm          10.728        8.9527        .36077E-05   -.43907E-02
  14  Prefactor     .10000E-03    3.3927        .75055E-06** at limit **
  15  Prefactor     3.2611        9.9439        .26663E-05   -.17710E-03
  16  Prefactor     46.939        1.3768       -.10592E-09    .35505E-03
  17  Prefactor     .10623E-03    2079.6        .36349E-04** at limit **
  18  Prefactor     .10000E-03    8.3499       -.15409E-05** at limit **
  19  Prefactor     38.449        14.336        .10205E-05   -.48326E-03
  20  norm          6.1830        1.9140        .17676E-06    .83334E-05
  21  Prefactor     .10000E-03    2.0892        .25501E-06** at limit **
  22  norm          .10000E-03    4.9377       -.42941E-05** at limit **
  23  Prefactor     .10000E-03    4.6293       -.53917E-05** at limit **
  24  norm          .10000E-03    1.2709        .44686E-07** at limit **
  25  Prefactor     .10000E-03    4.7130        .63025E-05** at limit **
  26  Prefactor     .10000E-03    7.6711        .96093E-06** at limit **
  27  norm          6.2536        6.0499       -.12587E-05    .98005E-03
  28  Normalizat    1.0567        .20724       -.37813E-05   -.53355E-04
  29  Prefactor     .95528        .24765        .75374E-06   -.48188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 118.171
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.95
  norm       = 4.13014
  Prefactor  = 23.5507
  norm       = 0.0001
  norm       = 5.57392
  norm       = 2.15655
  norm       = 5.83113
  norm       = 10.7278
  Prefactor  = 0.0001
  Prefactor  = 3.26115
  Prefactor  = 46.9389
  Prefactor  = 0.000106231
  Prefactor  = 0.0001
  Prefactor  = 38.4489
  norm       = 6.18297
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.25355
  Normalizat = 1.05668
  Prefactor  = 0.955278
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.398     FROM HESSE     STATUS=OK           619 CALLS     4402 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     118.17        94.889        .92548E-03   -1.3530    
   3  Prefactor     .10000E-03    5.1574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7485        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.950        29.721        .29014E-02   -1.5016    
   7  norm          4.1301        3.9151        .49587E-02   -1.5301    
   8  Prefactor     23.551        18.492        .20634E-02   -1.4737    
   9  norm          .10000E-03    4.0809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5739        9.6767        .42529E-02   -1.5236    
  11  norm          2.1566        7.4466        .70080E-02   -1.5414    
  12  norm          5.8311        10.291        .41580E-02   -1.5225    
  13  norm          10.728        16.040        .30569E-02   -1.5053    
  14  Prefactor     .10000E-03    3.2987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2611        25.827        .56170E-02   -1.5347    
  16  Prefactor     46.939        42.758        .14632E-02   -1.4337    
  17  Prefactor     .10623E-03    15.817        .10262       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.449        72.386        .16145E-02   -1.4467    
  20  norm          6.1830        1.9165        .40362E-02   -1.5211    
  21  Prefactor     .10000E-03    2.0432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.9394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.2661        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.6684        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.2536        10.770        .40120E-02   -1.5208    
  28  Normalizat    1.0567        .17842        .40123E-01   -.91155    
  29  Prefactor     .95528        .20831        .65724E-01   -.94235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90102e-08
Minuit parameter uncertainties:
  1  8.63109e-06
  2  95.011
  3  8.30362e-06
  4  5.59643e-06
  5  3.6775e-05
  6  29.7583
  7  3.91538
  8  18.4969
  9  9.21751e-06
  10  9.67945
  11  7.4498
  12  10.2939
  13  16.0464
  14  1.14019e-05
  15  18.3656
  16  42.7854
  17  0.0198607
  18  5.12902e-05
  19  72.5517
  20  1.91655
  21  4.13228e-06
  22  4.90775e-05
  23  1.17888e-05
  24  8.15919e-08
  25  7.32508e-05
  26  2.50242e-05
  27  10.7732
  28  0.178516
  29  0.208483
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  4.694e+01  4.279e+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:  9.553e-01  2.085e-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.057e+00  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.12
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 9.71e-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) = 5867.17270681
delta logL = 1.22479353494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5867.12391981
delta logL = 1.27358053991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.466       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3126       1.0000          .0000       10.000    
     3 'Normalizat'    1.0677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94988       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=   5867.124     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.466        63.651        .12400E-02   -.37064E-03
   2  Index         1.3126        .44231        .23317       -.22951E-04
   3  Normalizat    1.0677        .16971        .39498E-01    .67668E-05
   4  Prefactor     .94986        .20723        .65890E-01    .13703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.4657
  Index      = 1.31265
  Normalizat = 1.06775
  Prefactor  = 0.949865
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.124     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.466        67.321        .49601E-04   -1.4088    
   2  Index         1.3126        .52015        .92569E-02   -.82932    
   3  Normalizat    1.0677        .20170        .22755E-03   -.90794    
   4  Prefactor     .94986        .24633        .29144E-03   -.94420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55601e-09
Minuit parameter uncertainties:
  1  67.3997
  2  0.522229
  3  0.20185
  4  0.24662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555427': 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) = 5867.12391979
delta logL = 1.27358055142

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  6.547e+01  6.740e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.313e+00  5.222e-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:  9.499e-01  2.466e-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.068e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.67
Ra Dec: 201.501 35.122
Photon Index (Free Index): 1.31 +/- 0.52
Photon Flux (Free Index): 8.51e-09 +/- 1.03e-08
Energy Flux (Free Index): 5.00e-05 +/- 6.41e-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/555427/cmap_HighResolution_531187201_531446401_4FGL_J1326.0+3507_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='5.00e-05', photon_flux_error='1.97e-08', dlogl='1.27e+00', energy_flux='1.07e-05', photon_flux2='8.51e-09', job_status='DONE', time_completed='2021-09-07 16:21:04.523441', photon_index_error2='0.52', photon_index2='1.31', ts='6.12', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='6.41e-05', EG='1.06', time_epoch_completed='1631056864.52', return_code='0', job_id='555427', GAL2='0.95', EG2='1.07', return_code2='0', energy_flux_error='9.71e-06', photon_flux_error2='1.03e-08', ts2='8.67', photon_index='2.15' WHERE bin_id='1126' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:21:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 555427: <4FGL_J1326.0+3507_daily_bin1126> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1126 201.501 35.1218 531187201 531446401 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 :                                   712.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            918 sec.

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

