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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1461
RA = 201.501, Dec = 35.1218
tmin = 618019201, tmax = 618278401
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='556663', job_status='RUN', time_executed='2021-09-07 16:12:55.304069', time_epoch_executed='1631056375.3' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/556663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/556663/ft1_4FGL_J1326.0+3507_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/556663/ft2_4FGL_J1326.0+3507_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/556663/ft1_4FGL_J1326.0+3507_daily_bin1461.fits outfile=/scratch/kocevski/556663/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1461.fits ra=201.501 dec=35.1218 rad=12.0 tmin=618019201.0 tmax=618278401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.16
user 4.91
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/556663/ft1_filtered_4FGL_J1326.0+3507_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/556663/ft2_4FGL_J1326.0+3507_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/556663/ltcube_618019201_618278401_4FGL_J1326.0+3507_daily_bin1461.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/556663/ft2_4FGL_J1326.0+3507_daily_bin1461.fits
.....................!
real 13.73
user 13.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/556663/ft1_filtered_4FGL_J1326.0+3507_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/556663/ft2_4FGL_J1326.0+3507_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/556663/ltcube_618019201_618278401_4FGL_J1326.0+3507_daily_bin1461.fits outfile=/scratch/kocevski/556663/expmap_618019201_618278401_4FGL_J1326.0+3507_daily_bin1461.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/556663/ltcube_618019201_618278401_4FGL_J1326.0+3507_daily_bin1461.fits
.....................!
real 191.17
user 185.68
sys 4.91

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/556663/ft1_filtered_4FGL_J1326.0+3507_daily_bin1461.fits scfile=/scratch/kocevski/556663/ft2_4FGL_J1326.0+3507_daily_bin1461.fits outfile=/scratch/kocevski/556663/cmap_618019201_618278401_4FGL_J1326.0+3507_daily_bin1461.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/556663/ft1_filtered_4FGL_J1326.0+3507_daily_bin1461.fits scfile=/scratch/kocevski/556663/ft2_4FGL_J1326.0+3507_daily_bin1461.fits outfile=/scratch/kocevski/556663/cmap_HighResolution_618019201_618278401_4FGL_J1326.0+3507_daily_bin1461.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    161.38       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.995       1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.936       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.4752       1.0000         .10000E-03   10000.    
    13 'norm      '    17.351       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5751       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.880       1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.232       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .52620       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.8387       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.949       1.0000         .10000E-03   10000.    
    24 'norm      '    5.4749       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .36578E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.287       1.0000         .10000E-03   10000.    
    27 'norm      '    16.847       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94243       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0239       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=   4872.932     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3675 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3323        .46341E-06** at limit **
   2  Prefactor     161.38        100.02        .25269E-06    .14441E-04
   3  Prefactor     .10000E-03    3.9124       -.34257E-06** at limit **
   4  norm          3.7942        4.1437       -.42467E-06    .20433E-04
   5  Prefactor     .10000E-03    20.738       -.24549E-06** at limit **
   6  Prefactor     .10000E-03    7.5737       -.31387E-06** at limit **
   7  norm          .10000E-03    2.5325       -.14326E-06** at limit **
   8  Prefactor     39.994        23.431        .54336E-06    .20862E-03
   9  norm          .10000E-03    6.5547        .52568E-06** at limit **
  10  norm          15.935        13.599       -.91132E-07    .18958E-04
  11  norm          .10000E-03    3.9221       -.74762E-06** at limit **
  12  norm          6.4752        6.7101       -.10445E-05   -.53813E-03
  13  norm          17.351        18.151       -.43971E-07    .44702E-05
  14  Prefactor     4.5742        7.0233       -.92949E-06   -.15078E-03
  15  Prefactor     29.883        27.117        .83480E-06   -.38921E-04
  16  Prefactor     49.235        78.505        .96491E-06    .81685E-05
  17  Prefactor     28.210        26.075       -.66603E-07    .51468E-04
  18  Prefactor     .10000E-03    38.236       -.14267E-05** at limit **
  19  Prefactor     .10000E-03    37.467        .70271E-06** at limit **
  20  norm          .52605        1.2079       -.52678E-06   -.70002E-03
  21  Prefactor     .10000E-03    3.2197       -.43142E-06** at limit **
  22  norm          8.8379        20.371       -.12328E-06    .52348E-04
  23  Prefactor     18.948        20.910        .43234E-06    .99011E-04
  24  norm          5.4743        6.3773       -.23988E-05    .58543E-03
  25  Prefactor     .10000E-03    138.69       -.15414E-04** at limit **
  26  Prefactor     18.273        31.438       -.12435E-05    .24467E-03
  27  norm          16.839        25.264        .25801E-06    .16629E-03
  28  Normalizat    .94232        .20477       -.11169E-05    .30586E-03
  29  Prefactor     1.0240        .24180        .33047E-05    .22174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 161.384
  Prefactor  = 0.0001
  norm       = 3.79422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.9939
  norm       = 0.0001
  norm       = 15.9355
  norm       = 0.0001
  norm       = 6.47517
  norm       = 17.3515
  Prefactor  = 4.57416
  Prefactor  = 29.8832
  Prefactor  = 49.2346
  Prefactor  = 28.2104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.526049
  Prefactor  = 0.0001
  norm       = 8.83787
  Prefactor  = 18.9477
  norm       = 5.47431
  Prefactor  = 0.000100001
  Prefactor  = 18.2732
  norm       = 16.8392
  Normalizat = 0.942324
  Prefactor  = 1.024
 **********
 **   18 **HESSE 
 **********

 FCN=   4872.932     FROM HESSE     STATUS=OK           547 CALLS     4222 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     161.38        99.908        .31745E-04   -1.3160    
   3  Prefactor     .10000E-03    3.9297        .13468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7942        4.1363        .14065E-03   -1.5318    
   5  Prefactor     .10000E-03    20.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5458        .10851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.994        23.382        .63381E-04   -1.4442    
   9  norm          .10000E-03    6.6456        .17398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.935        13.601        .10033E-03   -1.4909    
  11  norm          .10000E-03    3.9178        .26605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.4752        6.6755        .15772E-03   -1.5199    
  13  norm          17.351        18.152        .96151E-04   -1.4875    
  14  Prefactor     4.5742        6.9759        .16476E-03   -1.5280    
  15  Prefactor     29.883        26.935        .73296E-04   -1.4614    
  16  Prefactor     49.235        78.298        .57152E-04   -1.4303    
  17  Prefactor     28.210        26.067        .75430E-04   -1.4645    
  18  Prefactor     .10000E-03    38.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .52605        1.0953        .11261E-02   -1.5563    
  21  Prefactor     .10000E-03    3.2710        .12247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.8379        20.350        .13482E-03   -1.5113    
  23  Prefactor     18.948        20.822        .92009E-04   -1.4837    
  24  norm          5.4743        6.3908        .85861E-03   -1.5240    
  25  Prefactor     .10000E-03    136.42        .59276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.273        27.686        .93659E-04   -1.4853    
  27  norm          16.839        24.125        .97580E-04   -1.4887    
  28  Normalizat    .94232        .24459        .24943E-03   -.94988    
  29  Prefactor     1.0240        .28656        .28806E-03   -.91934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64211e-10
Minuit parameter uncertainties:
  1  1.78544e-05
  2  100.013
  3  1.20911e-05
  4  4.13665
  5  1.58273e-05
  6  2.26839e-05
  7  1.06026e-05
  8  23.3876
  9  5.48929e-05
  10  13.6038
  11  6.38433e-05
  12  6.67626
  13  18.1579
  14  6.97712
  15  26.946
  16  78.4619
  17  26.0775
  18  0.0002474
  19  0.000169128
  20  1.09533
  21  3.39582e-05
  22  20.3655
  23  20.8303
  24  6.39156
  25  0.000718251
  26  27.7053
  27  24.1392
  28  0.244882
  29  0.286992
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  4.923e+01  7.846e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.024e+00  2.870e-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:  9.423e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 201.501 35.122
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/556663/likelihoodResults_618019201_618278401_4FGL_J1326.0+3507_daily_bin1461.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) = 4872.83478528
delta logL = 0.0974525787315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4872.81633966
delta logL = 0.115898196701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.325       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9101       1.0000          .0000       10.000    
     3 'Normalizat'    .90512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0524       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=   4872.816     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      298 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.070        570.06        .21193E-02   -.19152E-03
   2  Index         2.9160        2.8710        .14486       -.96374E-05
   3  Normalizat    .90195        .53696E-01    .44967E-01    .23516E-04
   4  Prefactor     1.0563        .60816E-01    .64230E-01   -.83757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0699
  Index      = 2.91601
  Normalizat = 0.901947
  Prefactor  = 1.05625
 **********
 **   18 **HESSE 
 **********

 FCN=   4872.816     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      329 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.070        1220.2        .84774E-04   -1.4768    
   2  Index         2.9160        6.1039        .49616E-02   -.42992    
   3  Normalizat    .90195        .33032        .25406E-03   -.96392    
   4  Prefactor     1.0563        .36066        .28410E-03   -.90877    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.28611e-10
Minuit parameter uncertainties:
  1  335.684
  2  7.63369
  3  0.331061
  4  0.361496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/556663': 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): 102
logL (Free Index) = 4872.81624856
delta logL = 0.115989296509

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  2.207e+01  3.357e+02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.916e+00  7.634e+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:  1.056e+00  3.615e-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:  9.019e-01  3.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
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/556663/cmap_HighResolution_618019201_618278401_4FGL_J1326.0+3507_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-07 16:24:54.810175', job_id='556663', GAL2='1.06', fit_tolerance='1e-08', EG2='0.90', EG='0.94', time_epoch_completed='1631057094.81', return_code2='102', ts='0.67', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.16e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1461' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:24:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 556663: <4FGL_J1326.0+3507_daily_bin1461> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1461> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 16:10:29 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:12: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:12:44 2021
Terminated at Tue Sep  7 16:24:55 2021
Results reported at Tue Sep  7 16:24:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1461 201.501 35.1218 618019201 618278401 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 :                                   714.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            866 sec.

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

