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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin721
RA = 201.501, Dec = 35.1218
tmin = 426211201, tmax = 426470401
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='552475', job_status='RUN', time_executed='2021-09-07 15:55:55.193435', time_epoch_executed='1631055355.19' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552475

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552475/ft1_4FGL_J1326.0+3507_daily_bin721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552475/ft2_4FGL_J1326.0+3507_daily_bin721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552475/ft1_4FGL_J1326.0+3507_daily_bin721.fits outfile=/scratch/kocevski/552475/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin721.fits ra=201.501 dec=35.1218 rad=12.0 tmin=426211201.0 tmax=426470401.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.58
user 3.35
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552475/ft1_filtered_4FGL_J1326.0+3507_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/552475/ft2_4FGL_J1326.0+3507_daily_bin721.fits sctable="SC_DATA" expcube=/scratch/kocevski/552475/ltcube_426211201_426470401_4FGL_J1326.0+3507_daily_bin721.fits outfile=/scratch/kocevski/552475/expmap_426211201_426470401_4FGL_J1326.0+3507_daily_bin721.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/552475/ltcube_426211201_426470401_4FGL_J1326.0+3507_daily_bin721.fits
.....................!
real 195.48
user 190.52
sys 4.47

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/552475/ft1_filtered_4FGL_J1326.0+3507_daily_bin721.fits scfile=/scratch/kocevski/552475/ft2_4FGL_J1326.0+3507_daily_bin721.fits outfile=/scratch/kocevski/552475/cmap_426211201_426470401_4FGL_J1326.0+3507_daily_bin721.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=201.501 yref=35.1218 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.109       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.010       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.766       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7202       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12747E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10945E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .21511E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    27.048       1.0000         .10000E-03   10000.    
    13 'norm      '    11.363       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4560       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .93599       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7611       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3882       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9400       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3309       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .42992       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=   5075.723     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3757 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.107        30.135       -.10541E-06   -.41136E-04
   2  Prefactor     .10000E-03    29.502        .13927E-06** at limit **
   3  Prefactor     .10000E-03    11.556        .54307E-07** at limit **
   4  norm          .10000E-03    1.4309        .79141E-08** at limit **
   5  Prefactor     17.946        53.325       -.44625E-05    .18014E-05
   6  Prefactor     16.763        28.708       -.46524E-06   -.89780E-04
   7  norm          1.7202        1.8744        .26856E-09   -.18603E-05
   8  Prefactor     .10000E-03    35.546       -.66884E-07** at limit **
   9  norm          .10001E-03    5.0846       -.68309E-06** at limit **
  10  norm          .10000E-03    8.0864        .77179E-06** at limit **
  11  norm          .10000E-03    3.6795        .13494E-05** at limit **
  12  norm          27.057        9.7106       -.40439E-06   -.34856E-03
  13  norm          11.363        14.614       -.59625E-07   -.25139E-05
  14  Prefactor     4.4581        6.2569       -.11133E-05   -.23355E-03
  15  Prefactor     .83384        122.22        .15876E-04   -.44973E-04
  16  Prefactor     .10000E-03    35.655       -.13665E-06** at limit **
  17  Prefactor     2.7611        9.9494       -.18400E-05   -.43558E-04
  18  Prefactor     .10000E-03    12.096       -.10433E-07** at limit **
  19  Prefactor     .10000E-03    97.923       -.16763E-06** at limit **
  20  norm          3.3883        1.6780       -.14135E-08    .23508E-04
  21  Prefactor     1.9412        5.8649       -.31548E-06   -.41029E-04
  22  norm          .10000E-03    8.1225       -.54868E-07** at limit **
  23  Prefactor     .10000E-03    7.8916       -.15688E-06** at limit **
  24  norm          .10000E-03    1.2813       -.15667E-07** at limit **
  25  Prefactor     .10000E-03    7.4032        .72652E-07** at limit **
  26  Prefactor     .10000E-03    7.9110       -.15223E-06** at limit **
  27  norm          .10000E-03    5.9417       -.97099E-08** at limit **
  28  Normalizat    1.3307        .19271       -.19512E-06   -.12608E-03
  29  Prefactor     .43008        .21483        .82157E-06   -.20180E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.1068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.9458
  Prefactor  = 16.7633
  norm       = 1.72019
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 27.0567
  norm       = 11.3627
  Prefactor  = 4.4581
  Prefactor  = 0.833843
  Prefactor  = 0.0001
  Prefactor  = 2.76112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.38827
  Prefactor  = 1.9412
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.33073
  Prefactor  = 0.430082
 **********
 **   18 **HESSE 
 **********

 FCN=   5075.723     FROM HESSE     STATUS=OK           549 CALLS     4306 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.107        30.048        .53553E-04   -1.4208    
   2  Prefactor     .10000E-03    29.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4342        .83204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.946        53.408        .94377E-04   -1.4860    
   6  Prefactor     16.763        28.628        .97815E-04   -1.4889    
   7  norm          1.7202        1.8817        .99393E-04   -1.5446    
   8  Prefactor     .10000E-03    35.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    11.260        .29116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.1856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.5759        .22147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          27.057        9.4592        .77029E-04   -1.4667    
  13  norm          11.363        14.609        .59424E-03   -1.5034    
  14  Prefactor     4.4581        6.4091        .15004E-03   -1.5286    
  15  Prefactor     .83384        151.89        .51736E-02   -1.5525    
  16  Prefactor     .10000E-03    35.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7611        9.9752        .12248E-02   -1.5376    
  18  Prefactor     .10000E-03    12.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    98.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3883        1.6767        .62378E-04   -1.5340    
  21  Prefactor     1.9412        5.8446        .27227E-03   -1.5429    
  22  norm          .10000E-03    8.1510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.9061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.2862        .78756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.4318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.9230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.9436        .16962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3307        .21410        .19359E-03   -.82654    
  29  Prefactor     .43008        .23461        .37317E-03   -1.1530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78325e-08
Minuit parameter uncertainties:
  1  30.0557
  2  1.33854e-05
  3  2.68334e-05
  4  1.12341e-06
  5  53.5504
  6  28.6517
  7  1.88176
  8  8.42099e-05
  9  0.000583638
  10  0.0001236
  11  0.00013814
  12  9.45975
  13  14.614
  14  6.41012
  15  22.5652
  16  1.32624e-05
  17  9.98119
  18  1.45989e-05
  19  8.87421e-05
  20  1.67669
  21  5.84634
  22  1.12152e-05
  23  5.74618e-06
  24  1.61925e-06
  25  8.63348e-06
  26  5.50371e-06
  27  1.96003e-06
  28  0.214241
  29  0.235134
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.326e-05  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:  4.301e-01  2.351e-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.331e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/552475/likelihoodResults_426211201_426470401_4FGL_J1326.0+3507_daily_bin721.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): 102
logL (Free Index) = 5075.72316282
delta logL = -0.000133429027301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5075.72302962
delta logL = -2.26837073569e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11452E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1358       1.0000          .0000       10.000    
     3 'Normalizat'    1.3308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43007       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=   5075.723     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      201 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7800.3        .90712E-02** at limit **
   2  Index         2.1381        5.4239        .50000       -.56157E-06
   3  Normalizat    1.3307        .96283E-01    .32276E-01   -.33450E-05
   4  Prefactor     .43008        .11099        .84220E-01    .34668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13815
  Normalizat = 1.33073
  Prefactor  = 0.43008
 **********
 **   18 **HESSE 
 **********

 FCN=   5075.723     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .65E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1381        5.6130        .50000       -.60939    
   3  Normalizat    1.3307        .20022        .19359E-03   -.82654    
   4  Prefactor     .43008        .23008        .37316E-03   -1.1530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51517e-13
Minuit parameter uncertainties:
  1  8.00047e-06
  2  6.45748
  3  0.200334
  4  0.230573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552475': 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) = 5075.72302939
delta logL = -1.76805770025e-09

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  8.000e-06  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.138e+00  6.457e+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:  4.301e-01  2.306e-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.331e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/552475/cmap_HighResolution_426211201_426470401_4FGL_J1326.0+3507_daily_bin721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-09-07 16:08:17.803680', job_id='552475', GAL2='0.43', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631056097.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='-1.77e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='721' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:08:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 552475: <4FGL_J1326.0+3507_daily_bin721> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin721> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 15:55:25 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:55:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 15:55:39 2021
Terminated at Tue Sep  7 16:08:18 2021
Results reported at Tue Sep  7 16:08:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin721 201.501 35.1218 426211201 426470401 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 :                                   741.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            773 sec.

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

