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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin977
RA = 201.501, Dec = 35.1218
tmin = 492566401, tmax = 492825601
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='555180', job_status='RUN', time_executed='2021-09-07 16:05:40.035316', time_epoch_executed='1631055940.04' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='977'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555180/ft1_4FGL_J1326.0+3507_daily_bin977.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555180/ft2_4FGL_J1326.0+3507_daily_bin977.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555180/ft1_4FGL_J1326.0+3507_daily_bin977.fits outfile=/scratch/kocevski/555180/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin977.fits ra=201.501 dec=35.1218 rad=12.0 tmin=492566401.0 tmax=492825601.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.60
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555180/ft1_filtered_4FGL_J1326.0+3507_daily_bin977.fits" evtable="EVENTS" scfile=/scratch/kocevski/555180/ft2_4FGL_J1326.0+3507_daily_bin977.fits sctable="SC_DATA" outfile=/scratch/kocevski/555180/ltcube_492566401_492825601_4FGL_J1326.0+3507_daily_bin977.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/555180/ft2_4FGL_J1326.0+3507_daily_bin977.fits
.....................!
real 16.82
user 16.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555180/ft1_filtered_4FGL_J1326.0+3507_daily_bin977.fits evtable="EVENTS" scfile=/scratch/kocevski/555180/ft2_4FGL_J1326.0+3507_daily_bin977.fits sctable="SC_DATA" expcube=/scratch/kocevski/555180/ltcube_492566401_492825601_4FGL_J1326.0+3507_daily_bin977.fits outfile=/scratch/kocevski/555180/expmap_492566401_492825601_4FGL_J1326.0+3507_daily_bin977.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/555180/ltcube_492566401_492825601_4FGL_J1326.0+3507_daily_bin977.fits
.....................!
real 192.25
user 187.60
sys 4.12

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/555180/ft1_filtered_4FGL_J1326.0+3507_daily_bin977.fits scfile=/scratch/kocevski/555180/ft2_4FGL_J1326.0+3507_daily_bin977.fits outfile=/scratch/kocevski/555180/cmap_492566401_492825601_4FGL_J1326.0+3507_daily_bin977.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555180/ft1_filtered_4FGL_J1326.0+3507_daily_bin977.fits scfile=/scratch/kocevski/555180/ft2_4FGL_J1326.0+3507_daily_bin977.fits outfile=/scratch/kocevski/555180/cmap_HighResolution_492566401_492825601_4FGL_J1326.0+3507_daily_bin977.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.160       1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.6725       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.895       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2354       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9529       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13103E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.616       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5636       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6129       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12292E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1198       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.7940       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2477       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65698       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=   5477.890     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3167 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.160        16.377        .91493E-07    .48358E-05
   2  Prefactor     61.685        59.725       -.20642E-05    .92557E-05
   3  Prefactor     .10000E-03    2.3495       -.26419E-08** at limit **
   4  norm          4.6724        4.0434        .11021E-06    .10718E-03
   5  Prefactor     .10000E-03    36.271       -.36984E-05** at limit **
   6  Prefactor     26.887        22.598       -.16618E-05    .72898E-04
   7  norm          1.2353        3.3865       -.31698E-07   -.21678E-04
   8  Prefactor     1.9582        2.3013        .69631E-07   -.14003E-03
   9  norm          .10000E-03    1.2061       -.30665E-08** at limit **
  10  norm          .10000E-03    4.6293        .10758E-05** at limit **
  11  norm          .10000E-03    3.2410       -.60407E-06** at limit **
  12  norm          10.606        6.9882        .22356E-06    .45582E-03
  13  norm          .10000E-03    4.8230       -.22023E-06** at limit **
  14  Prefactor     2.5628        2.8754        .59473E-07    .14347E-03
  15  Prefactor     .10000E-03    9.3826        .73983E-07** at limit **
  16  Prefactor     .10000E-03    25.734        .17423E-06** at limit **
  17  Prefactor     .10000E-03    3.9240       -.62152E-06** at limit **
  18  Prefactor     .10000E-03    5.6496        .74231E-06** at limit **
  19  Prefactor     .10000E-03    64.492       -.49675E-06** at limit **
  20  norm          3.6132        1.6218       -.10908E-07    .96796E-05
  21  Prefactor     .10000E-03    1.9794        .19906E-06** at limit **
  22  norm          1.1143        49.658       -.80068E-06   -.13417E-04
  23  Prefactor     10.237        11.676        .52021E-07   -.13071E-04
  24  norm          .10000E-03    .98564        .26781E-09** at limit **
  25  Prefactor     .10000E-03    6.7304       -.27180E-06** at limit **
  26  Prefactor     .10000E-03    38.206        .38539E-05** at limit **
  27  norm          6.7937        11.101        .97415E-07   -.21569E-04
  28  Normalizat    1.2477        .16770        .32917E-06    .34961E-04
  29  Prefactor     .65704        .20224       -.91499E-07    .31007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.16
  Prefactor  = 61.6848
  Prefactor  = 0.0001
  norm       = 4.67237
  Prefactor  = 0.0001
  Prefactor  = 26.8872
  norm       = 1.23534
  Prefactor  = 1.95821
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 10.6063
  norm       = 0.0001
  Prefactor  = 2.56276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.61317
  Prefactor  = 0.0001
  norm       = 1.11432
  Prefactor  = 10.2374
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.7937
  Normalizat = 1.24767
  Prefactor  = 0.657036
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.890     FROM HESSE     STATUS=OK           551 CALLS     3718 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.160        16.412        .11042E-03   -1.4982    
   2  Prefactor     61.685        59.758        .51088E-04   -1.4136    
   3  Prefactor     .10000E-03    2.3567        .11077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.6724        4.0371        .12941E-03   -1.5276    
   5  Prefactor     .10000E-03    36.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.887        22.468        .77247E-04   -1.4670    
   7  norm          1.2353        3.3483        .21901E-03   -1.5486    
   8  Prefactor     1.9582        23.044        .14846E-02   -1.5428    
   9  norm          .10000E-03    1.2072        .79374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.6411        .15568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.0164        .22495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.606        6.3634        .12297E-03   -1.5057    
  13  norm          .10000E-03    4.8236        .15876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5628        2.8534        .12572E-03   -1.5388    
  15  Prefactor     .10000E-03    9.4471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9324        .14327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.6595        .17186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    64.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6132        1.6218        .60900E-04   -1.5328    
  21  Prefactor     .10000E-03    3.8261        .20041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1143        52.127        .44399E-02   -1.5497    
  23  Prefactor     10.237        11.663        .12524E-03   -1.5068    
  24  norm          .10000E-03    .98837        .71756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.7591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    39.153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.7937        11.084        .15393E-03   -1.5187    
  28  Normalizat    1.2477        .19378        .19613E-03   -.85142    
  29  Prefactor     .65704        .23039        .32181E-03   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74738e-08
Minuit parameter uncertainties:
  1  16.4175
  2  59.816
  3  1.34877e-06
  4  4.03736
  5  3.66829e-06
  6  22.4751
  7  3.34884
  8  13.4411
  9  6.67385e-07
  10  2.28687e-07
  11  0.000141363
  12  6.36385
  13  6.16934e-08
  14  2.85354
  15  3.3478e-06
  16  1.23484e-06
  17  2.74938e-07
  18  6.16901e-07
  19  9.30945e-06
  20  1.62187
  21  4.92663e-05
  22  15.2563
  23  11.6655
  24  2.89425e-07
  25  5.16777e-06
  26  0.00010447
  27  11.0877
  28  0.193896
  29  0.230719
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.235e-06  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:  6.570e-01  2.307e-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.248e+00  1.939e-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: 4.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555180/likelihoodResults_492566401_492825601_4FGL_J1326.0+3507_daily_bin977.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) = 5477.89036689
delta logL = -0.000184905766218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5477.89018226
delta logL = -2.81317625195e-07

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 'Index     '    2.2317       1.0000          .0000       10.000    
     3 'Normalizat'    1.2477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65704       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=   5477.890     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      272 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    27.551        .18142E-02** at limit **
   2  Index         2.1913        6.0829        .50000        .14576E-04
   3  Normalizat    1.2477        .18533        .19613E-03   -.15460E-03
   4  Prefactor     .65704        .22809        .32181E-03   -.85067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.19127
  Normalizat = 1.24767
  Prefactor  = 0.657036
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.890     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    24.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1913        6.0946        .50000       -.59650    
   3  Normalizat    1.2477        .18546        .39226E-04   -.85142    
   4  Prefactor     .65704        .22826        .12873E-04   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82308e-10
Minuit parameter uncertainties:
  1  0.00070463
  2  4.15168
  3  0.185556
  4  0.22858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555180': 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) = 5477.89018212
delta logL = -1.36513335747e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  7.046e-04  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.191e+00  4.152e+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:  6.570e-01  2.286e-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.248e+00  1.856e-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/555180/cmap_HighResolution_492566401_492825601_4FGL_J1326.0+3507_daily_bin977.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-03', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-07 16:18:16.728160', job_id='555180', GAL2='0.66', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631056696.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-1.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='977' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:18:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 555180: <4FGL_J1326.0+3507_daily_bin977> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin977> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:23 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:05:27 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:05:27 2021
Terminated at Tue Sep  7 16:18:17 2021
Results reported at Tue Sep  7 16:18:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin977 201.501 35.1218 492566401 492825601 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 :                                   754.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            774 sec.

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

