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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1599
RA = 201.501, Dec = 35.1218
tmin = 653788801, tmax = 654048001
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='953760', job_status='RUN', time_executed='2021-09-23 00:27:26.411755', time_epoch_executed='1632382046.41' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953760

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953760/ft1_4FGL_J1326.0+3507_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953760/ft2_4FGL_J1326.0+3507_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953760/ft1_4FGL_J1326.0+3507_daily_bin1599.fits outfile=/scratch/kocevski/953760/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1599.fits ra=201.501 dec=35.1218 rad=12.0 tmin=653788801.0 tmax=654048001.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.93
user 3.70
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953760/ft1_filtered_4FGL_J1326.0+3507_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/953760/ft2_4FGL_J1326.0+3507_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/953760/ltcube_653788801_654048001_4FGL_J1326.0+3507_daily_bin1599.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/953760/ft2_4FGL_J1326.0+3507_daily_bin1599.fits
.....................!
real 17.34
user 16.88
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953760/ft1_filtered_4FGL_J1326.0+3507_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/953760/ft2_4FGL_J1326.0+3507_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/953760/ltcube_653788801_654048001_4FGL_J1326.0+3507_daily_bin1599.fits outfile=/scratch/kocevski/953760/expmap_653788801_654048001_4FGL_J1326.0+3507_daily_bin1599.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/953760/ltcube_653788801_654048001_4FGL_J1326.0+3507_daily_bin1599.fits
.....................!
real 192.72
user 187.50
sys 4.75

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

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

This is gtbin version HEAD
real 0.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953760/ft1_filtered_4FGL_J1326.0+3507_daily_bin1599.fits scfile=/scratch/kocevski/953760/ft2_4FGL_J1326.0+3507_daily_bin1599.fits outfile=/scratch/kocevski/953760/cmap_HighResolution_653788801_654048001_4FGL_J1326.0+3507_daily_bin1599.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.60
user 0.43
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    74.753       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .75927E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.8406       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4947       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.695       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5170       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6985       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.748       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.019       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.116       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .50590       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9630       1.0000         .10000E-03   10000.    
    22 'norm      '    17.273       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6532       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 '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2734       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77598       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=   6224.929     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3727 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8672        15.123       -.26892E-06    .30257E-04
   2  Prefactor     74.917        121.51       -.18717E-04   -.11445E-03
   3  Prefactor     .10000E-03    5.2057        .25930E-06** at limit **
   4  norm          6.8433        5.8796        .28307E-05    .65706E-03
   5  Prefactor     .10000E-03    13.712       -.27598E-06** at limit **
   6  Prefactor     .10001E-03    100.88        .21341E-05** at limit **
   7  norm          .10000E-03    1.2776        .96398E-08** at limit **
   8  Prefactor     3.5258        17.615        .12923E-05    .56600E-04
   9  norm          .10000E-03    1.9971       -.18136E-06** at limit **
  10  norm          .10000E-03    7.1825       -.45996E-06** at limit **
  11  norm          14.691        6.8031       -.51187E-05    .62985E-03
  12  norm          1.5283        12.700        .30719E-04   -.18694E-03
  13  norm          .10000E-03    5.8873        .30773E-08** at limit **
  14  Prefactor     .10000E-03    .87927       -.17939E-06** at limit **
  15  Prefactor     5.6988        8.0278        .33332E-06    .52643E-04
  16  Prefactor     19.749        52.567        .12619E-05    .35960E-04
  17  Prefactor     34.013        21.632        .79237E-06    .11507E-03
  18  Prefactor     16.128        29.479       -.10646E-05    .13979E-04
  19  Prefactor     .10000E-03    40.813       -.97678E-06** at limit **
  20  norm          .50633        .79255        .21675E-06    .12278E-03
  21  Prefactor     8.9631        4.8360        .35510E-06    .19013E-03
  22  norm          17.272        12.476        .12141E-06    .85424E-04
  23  Prefactor     8.6531        8.9372       -.35109E-06    .17169E-04
  24  norm          .10000E-03    1.6539       -.34004E-06** at limit **
  25  Prefactor     .10000E-03    4.4493       -.24747E-06** at limit **
  26  Prefactor     .10000E-03    5.4145       -.23175E-06** at limit **
  27  norm          .10000E-03    9.4029       -.23125E-06** at limit **
  28  Normalizat    1.2734        .17261       -.36021E-05   -.32845E-03
  29  Prefactor     .77603        .20461        .72821E-05    .45861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86719
  Prefactor  = 74.9169
  Prefactor  = 0.000100001
  norm       = 6.84326
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 3.52583
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.6906
  norm       = 1.52831
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.6988
  Prefactor  = 19.749
  Prefactor  = 34.0133
  Prefactor  = 16.1276
  Prefactor  = 0.000100001
  norm       = 0.50633
  Prefactor  = 8.96306
  norm       = 17.2722
  Prefactor  = 8.6531
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.27338
  Prefactor  = 0.77603
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.929     FROM HESSE     STATUS=OK           553 CALLS     4280 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8672        14.963        .20546E-03   -1.5315    
   2  Prefactor     74.917        121.76        .23220E-03   -1.3975    
   3  Prefactor     .10000E-03    17.735        .31739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.8433        5.8708        .76702E-03   -1.5185    
   5  Prefactor     .10000E-03    13.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    102.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2800        .87092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5258        15.006        .21628E-03   -1.5332    
   9  norm          .10000E-03    2.0050        .10875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.2208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.691        7.0350        .94444E-04   -1.4941    
  12  norm          1.5283        13.577        .17352E-02   -1.5461    
  13  norm          .10000E-03    5.8880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .88250        .72202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6988        8.0140        .16827E-03   -1.5230    
  16  Prefactor     19.749        52.551        .90131E-04   -1.4819    
  17  Prefactor     34.013        21.611        .68705E-04   -1.4541    
  18  Prefactor     16.128        29.424        .99768E-04   -1.4905    
  19  Prefactor     .10000E-03    40.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .50633        .79210        .22590E-03   -1.5566    
  21  Prefactor     8.9631        4.8347        .60833E-03   -1.5109    
  22  norm          17.272        12.485        .96370E-04   -1.4877    
  23  Prefactor     8.6531        8.9393        .68134E-03   -1.5120    
  24  norm          .10000E-03    1.6671        .99100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.4596        .16254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.4195        .17931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.4523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2734        .20666        .21714E-03   -.84365    
  29  Prefactor     .77603        .24257        .33061E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09922e-09
Minuit parameter uncertainties:
  1  14.9776
  2  122.17
  3  0.000222299
  4  5.87129
  5  5.82149e-05
  6  0.00144967
  7  1.17459e-06
  8  14.5535
  9  1.76618e-05
  10  7.46861e-05
  11  7.03541
  12  9.11279
  13  3.52355e-06
  14  1.04094e-05
  15  8.01555
  16  52.6749
  17  21.6157
  18  29.4504
  19  0.000385981
  20  0.792114
  21  4.83493
  22  12.4866
  23  8.94066
  24  2.83133e-05
  25  3.31446e-05
  26  3.1397e-05
  27  5.44763e-05
  28  0.20679
  29  0.242903
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.975e+01  5.267e+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.760e-01  2.429e-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.273e+00  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953760/likelihoodResults_653788801_654048001_4FGL_J1326.0+3507_daily_bin1599.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6224.8805507
delta logL = 0.0485461948265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6224.87230726
delta logL = 0.0567896312459

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.159       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5398       1.0000          .0000       10.000    
     3 'Normalizat'    1.2671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77966       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=   6224.872     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      274 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.177        50.038        .10644E-03    .28271E-03
   2  Index         2.5424        1.4147        .96741E-02    .17891E-03
   3  Normalizat    1.2669        .19832        .21760E-03    .21715E-02
   4  Prefactor     .77976        .24097        .32985E-03    .14238E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1768
  Index      = 2.54244
  Normalizat = 1.2669
  Prefactor  = 0.779764
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.872     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.177        40.945        .21289E-04   -1.4955    
   2  Index         2.5424        1.1636        .38696E-03   -.51383    
   3  Normalizat    1.2669        .19839        .43519E-04   -.84560    
   4  Prefactor     .77976        .24093        .65970E-04   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44684e-09
Minuit parameter uncertainties:
  1  41.0267
  2  1.17794
  3  0.198504
  4  0.241252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953760': 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) = 6224.87230081
delta logL = 0.0567960794842

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.418e+01  4.103e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.542e+00  1.178e+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:  7.798e-01  2.413e-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.267e+00  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/953760/cmap_HighResolution_653788801_654048001_4FGL_J1326.0+3507_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-09-23 00:41:42.270336', job_id='953760', GAL2='0.78', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632382902.27', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.68e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1599' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:41:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 953760: <4FGL_J1326.0+3507_daily_bin1599> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 23 00:26:50 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:27:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:27:06 2021
Terminated at Thu Sep 23 00:41:42 2021
Results reported at Thu Sep 23 00:41:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1599 201.501 35.1218 653788801 654048001 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 :                                   858.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            892 sec.

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

