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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1226
RA = 201.501, Dec = 35.1218
tmin = 557107201, tmax = 557366401
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='555591', job_status='RUN', time_executed='2021-09-07 16:09:42.732537', time_epoch_executed='1631056182.73' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555591

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555591/ft1_4FGL_J1326.0+3507_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555591/ft2_4FGL_J1326.0+3507_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555591/ft1_4FGL_J1326.0+3507_daily_bin1226.fits outfile=/scratch/kocevski/555591/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1226.fits ra=201.501 dec=35.1218 rad=12.0 tmin=557107201.0 tmax=557366401.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.70
user 3.45
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555591/ft1_filtered_4FGL_J1326.0+3507_daily_bin1226.fits" evtable="EVENTS" scfile=/scratch/kocevski/555591/ft2_4FGL_J1326.0+3507_daily_bin1226.fits sctable="SC_DATA" outfile=/scratch/kocevski/555591/ltcube_557107201_557366401_4FGL_J1326.0+3507_daily_bin1226.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/555591/ft2_4FGL_J1326.0+3507_daily_bin1226.fits
.....................!
real 17.60
user 17.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555591/ft1_filtered_4FGL_J1326.0+3507_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/555591/ft2_4FGL_J1326.0+3507_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/555591/ltcube_557107201_557366401_4FGL_J1326.0+3507_daily_bin1226.fits outfile=/scratch/kocevski/555591/expmap_557107201_557366401_4FGL_J1326.0+3507_daily_bin1226.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/555591/ltcube_557107201_557366401_4FGL_J1326.0+3507_daily_bin1226.fits
.....................!
real 192.04
user 186.73
sys 4.89

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/555591/ft1_filtered_4FGL_J1326.0+3507_daily_bin1226.fits scfile=/scratch/kocevski/555591/ft2_4FGL_J1326.0+3507_daily_bin1226.fits outfile=/scratch/kocevski/555591/cmap_557107201_557366401_4FGL_J1326.0+3507_daily_bin1226.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.55
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.3849       1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.215       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    30.416       1.0000         .10000E-03   10000.    
    10 'norm      '    14.309       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5048       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11549E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    124.80       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0582       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.428       1.0000         .10000E-03   10000.    
    27 'norm      '    4.7994       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .63164       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3804       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=   4570.416     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3635 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.963       -.82923E-06** at limit **
   2  Prefactor     25.073        77.301        .27415E-06    .71644E-05
   3  Prefactor     .10000E-03    3.8320       -.87794E-07** at limit **
   4  norm          9.3850        7.2010       -.10679E-06   -.33716E-04
   5  Prefactor     74.225        58.164        .24079E-06    .30132E-04
   6  Prefactor     .10000E-03    38.819       -.42642E-06** at limit **
   7  norm          .10000E-03    1.8031       -.45248E-07** at limit **
   8  Prefactor     .10000E-03    13.305       -.82455E-07** at limit **
   9  norm          30.418        10.230       -.31708E-07   -.19743E-04
  10  norm          14.309        17.213       -.47423E-09    .42360E-05
  11  norm          1.5059        4.9430        .17774E-05    .66936E-04
  12  norm          .10000E-03    9.1855       -.61622E-06** at limit **
  13  norm          .10000E-03    17.513       -.24543E-06** at limit **
  14  Prefactor     .10000E-03    3.8080       -.77347E-07** at limit **
  15  Prefactor     .10000E-03    32.914       -.24426E-07** at limit **
  16  Prefactor     26.922        68.337        .13520E-05    .34866E-05
  17  Prefactor     .10000E-03    5.3928       -.10435E-06** at limit **
  18  Prefactor     .10000E-03    50.508       -.11294E-05** at limit **
  19  Prefactor     124.87        85.610        .15836E-05    .13802E-03
  20  norm          2.0593        1.6556        .13972E-06    .39373E-04
  21  Prefactor     .10000E-03    1.1314       -.76000E-07** at limit **
  22  norm          .10000E-03    8.2589        .86368E-07** at limit **
  23  Prefactor     .10000E-03    6.1871        .68672E-09** at limit **
  24  norm          .10000E-03    2.3964       -.20750E-06** at limit **
  25  Prefactor     .10000E-03    10.667       -.13437E-06** at limit **
  26  Prefactor     13.436        14.188        .12327E-06    .13726E-04
  27  norm          4.7983        9.0221        .31705E-05    .44507E-04
  28  Normalizat    .63095        .20335       -.35686E-05    .89338E-04
  29  Prefactor     1.3811        .24693        .25891E-05   -.10081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.0729
  Prefactor  = 0.0001
  norm       = 9.38495
  Prefactor  = 74.2249
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 30.4182
  norm       = 14.3089
  norm       = 1.50588
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 124.87
  norm       = 2.0593
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4359
  norm       = 4.79831
  Normalizat = 0.630947
  Prefactor  = 1.38107
 **********
 **   18 **HESSE 
 **********

 FCN=   4570.416     FROM HESSE     STATUS=OK           545 CALLS     4180 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.073        77.279        .80014E-04   -1.4706    
   3  Prefactor     .10000E-03    3.8429        .12923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.3850        7.1625        .13082E-03   -1.5095    
   5  Prefactor     74.225        58.175        .23303E-03   -1.3983    
   6  Prefactor     .10000E-03    38.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8053        .88656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          30.418        10.200        .72649E-04   -1.4604    
  10  norm          14.309        17.217        .10588E-03   -1.4951    
  11  norm          1.5059        4.9110        .24834E-03   -1.5463    
  12  norm          .10000E-03    9.3048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8650        .12823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.922        68.138        .77209E-04   -1.4670    
  17  Prefactor     .10000E-03    5.3984        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    52.502        .42898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     124.87        86.255        .18016E-03   -1.3468    
  20  norm          2.0593        1.6447        .73549E-04   -1.5421    
  21  Prefactor     .10000E-03    1.1402        .70198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.2933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.1926        .16424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.4650        .20435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.436        14.152        .10931E-03   -1.4975    
  27  norm          4.7983        9.1287        .91821E-03   -1.5270    
  28  Normalizat    .63095        .23262        .27053E-03   -1.0669    
  29  Prefactor     1.3811        .28595        .24348E-03   -.80927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81063e-10
Minuit parameter uncertainties:
  1  0.000220622
  2  77.5895
  3  2.35752e-06
  4  7.1632
  5  58.2196
  6  8.05485e-05
  7  4.36863e-07
  8  2.59772e-06
  9  10.2002
  10  17.2229
  11  4.91229
  12  9.59938e-05
  13  5.11089e-05
  14  1.61668e-05
  15  6.20888e-05
  16  68.3359
  17  4.47413e-06
  18  0.000109911
  19  86.3421
  20  1.64475
  21  7.91655e-07
  22  2.25962e-05
  23  8.59336e-06
  24  3.81127e-06
  25  1.37958e-05
  26  14.1559
  27  9.13139
  28  0.232986
  29  0.286279
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  2.692e+01  6.834e+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.381e+00  2.863e-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:  6.309e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/555591/likelihoodResults_557107201_557366401_4FGL_J1326.0+3507_daily_bin1226.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) = 4570.30687136
delta logL = 0.108651245318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4570.29768236
delta logL = 0.117840247705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.635       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7802       1.0000          .0000       10.000    
     3 'Normalizat'    .61017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3960       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=   4570.298     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      324 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.572        111.87        .10129E-03    .19193E-04
   2  Index         2.7838        2.2899        .74957E-02    .27581E-04
   3  Normalizat    .60980        .23006        .27487E-03    .20386E-03
   4  Prefactor     1.3962        .29026        .24231E-03   -.26762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5721
  Index      = 2.78379
  Normalizat = 0.609799
  Prefactor  = 1.39618
 **********
 **   18 **HESSE 
 **********

 FCN=   4570.298     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.572        48.432        .40516E-05   -1.4919    
   2  Index         2.7838        1.3690        .29983E-03   -.45921    
   3  Normalizat    .60980        .22675        .10995E-04   -1.0757    
   4  Prefactor     1.3962        .28632        .48462E-04   -.80490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6136e-09
Minuit parameter uncertainties:
  1  48.5549
  2  1.39126
  3  0.227099
  4  0.286644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555591': 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) = 4570.29767598
delta logL = 0.117846632182

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.557e+01  4.855e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.784e+00  1.391e+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.396e+00  2.866e-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:  6.098e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/555591/cmap_HighResolution_557107201_557366401_4FGL_J1326.0+3507_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2021-09-07 16:21:26.597312', job_id='555591', GAL2='1.40', fit_tolerance='1e-08', EG2='0.61', EG='0.63', time_epoch_completed='1631056886.6', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='1.18e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1226' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:21:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 555591: <4FGL_J1326.0+3507_daily_bin1226> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1226 201.501 35.1218 557107201 557366401 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 :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            925 sec.

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

