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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1153
RA = 201.501, Dec = 35.1218
tmin = 538185601, tmax = 538444801
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='555471', job_status='RUN', time_executed='2021-09-07 16:09:48.614259', time_epoch_executed='1631056188.61' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555471

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555471/ft1_4FGL_J1326.0+3507_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555471/ft2_4FGL_J1326.0+3507_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555471/ft1_4FGL_J1326.0+3507_daily_bin1153.fits outfile=/scratch/kocevski/555471/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1153.fits ra=201.501 dec=35.1218 rad=12.0 tmin=538185601.0 tmax=538444801.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.45
user 5.13
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555471/ft1_filtered_4FGL_J1326.0+3507_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/555471/ft2_4FGL_J1326.0+3507_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/555471/ltcube_538185601_538444801_4FGL_J1326.0+3507_daily_bin1153.fits outfile=/scratch/kocevski/555471/expmap_538185601_538444801_4FGL_J1326.0+3507_daily_bin1153.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/555471/ltcube_538185601_538444801_4FGL_J1326.0+3507_daily_bin1153.fits
.....................!
real 193.20
user 187.41
sys 5.30

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/555471/ft1_filtered_4FGL_J1326.0+3507_daily_bin1153.fits scfile=/scratch/kocevski/555471/ft2_4FGL_J1326.0+3507_daily_bin1153.fits outfile=/scratch/kocevski/555471/cmap_538185601_538444801_4FGL_J1326.0+3507_daily_bin1153.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.837       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.431       1.0000         .10000E-03   10000.    
     9 'norm      '    17.123       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6834       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89165E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35411E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9598       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .31063       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.460       1.0000         .10000E-03   10000.    
    24 'norm      '    23.997       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13655E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.218       1.0000         .10000E-03   10000.    
    27 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.8093       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .10927E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1765.609     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     3792 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.011       -.63806E-06** at limit **
   2  Prefactor     20.841        1.5167        .14775E-06   -.80238E-03
   3  Prefactor     .10031E-03    26.208       -.50085E-05** at limit **
   4  norm          1.7633        9.0696        .20861E-05    .37171E-04
   5  Prefactor     .10015E-03    24.894       -.14873E-06** at limit **
   6  Prefactor     .10234E-03    51.740        .93958E-05** at limit **
   7  norm          .10000E-03    4.3964       -.12398E-05** at limit **
   8  Prefactor     48.454        3.0625        .94315E-07   -.10043E-02
   9  norm          17.125        1.1520       -.55840E-07   -.18915E-05
  10  norm          2.6574        3.0330       -.83152E-06   -.28954E-03
  11  norm          .10000E-03    2.8494        .13025E-05** at limit **
  12  norm          .10000E-03    3.7192        .63927E-06** at limit **
  13  norm          .10090E-03    45.323        .24545E-05** at limit **
  14  Prefactor     .10000E-03    3.6707       -.17493E-05** at limit **
  15  Prefactor     .10000E-03    19.943       -.32440E-05** at limit **
  16  Prefactor     .39864E-02    11.981       -.10540E-05    .61334E-03
  17  Prefactor     29.274        4.2157        .17189E-06   -.84606E-03
  18  Prefactor     .20807E-03    329.90        .59234E-05** at limit **
  19  Prefactor     .11096E-03    87.204       -.85440E-05** at limit **
  20  norm          4.9588        3.9092        .50396E-06    .59050E-04
  21  Prefactor     .10000E-03    4.3785        .14629E-05** at limit **
  22  norm          .72647        748.99       -.82625E-05    .17423E-03
  23  Prefactor     18.416        14.458       -.17583E-05    .70946E-02
  24  norm          23.998        1.4520        .10822E-06   -.71578E-03
  25  Prefactor     .11529E-03    113.84        .19102E-05** at limit **
  26  Prefactor     28.158        15.655       -.14892E-05    .11404E-01
  27  norm          .10094E-03    12.998       -.63334E-06** at limit **
  28  Normalizat    1.8081        .37629       -.12730E-04   -.73603E-04
  29  Prefactor     .11909E-01    6.3925        .12781E-03   -.13378E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.8408
  Prefactor  = 0.000100311
  norm       = 1.76335
  Prefactor  = 0.000100147
  Prefactor  = 0.000102339
  norm       = 0.0001
  Prefactor  = 48.4541
  norm       = 17.1255
  norm       = 2.6574
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00398635
  Prefactor  = 29.2744
  Prefactor  = 0.000208066
  Prefactor  = 0.000110961
  norm       = 4.95882
  Prefactor  = 0.0001
  norm       = 0.726474
  Prefactor  = 18.4163
  norm       = 23.9981
  Prefactor  = 0.000115292
  Prefactor  = 28.1578
  norm       = 0.000100941
  Normalizat = 1.80814
  Prefactor  = 0.0119092
 **********
 **   18 **HESSE 
 **********

 FCN=   1765.609     FROM HESSE     STATUS=NOT POSDEF   631 CALLS     4423 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.154        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.841        230.30        .21936E-02   -1.4795    
   3  Prefactor     .10031E-03    26.324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7633        9.9473        .78994E-02   -1.5442    
   5  Prefactor     .10015E-03    29.659        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10234E-03    49.595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.0277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.454        41.598        .14405E-02   -1.4315    
   9  norm          17.125        13.226        .24197E-02   -1.4880    
  10  norm          2.6574        50.224        .62185E-02   -1.5382    
  11  norm          .10000E-03    2.6018        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.3957        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10090E-03    43.391        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39864E-02    133.31        .14525       -1.5695    
  17  Prefactor     29.274        41.303        .18522E-02   -1.4625    
  18  Prefactor     .20807E-03    191.84        .11668       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11096E-03    85.268        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9588        4.2548        .45146E-02   -1.5263    
  21  Prefactor     .10000E-03    3.9947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .72647        111.86        .12103       -1.5538    
  23  Prefactor     18.416        59.866        .23305E-02   -1.4849    
  24  norm          23.998        14.913        .20443E-02   -1.4728    
  25  Prefactor     .11529E-03    109.25        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.158        99.564        .18855E-02   -1.4646    
  27  norm          .10094E-03    28.121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.8081        2.0879        .41919E-01   -.69451    
  29  Prefactor     .11909E-01    9.0148        .22072       -1.5018    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.77532e-06
Minuit parameter uncertainties:
  1  0.000126668
  2  139.244
  3  0.00572055
  4  8.37816
  5  0.00417167
  6  0.0215596
  7  1.22897e-05
  8  41.6232
  9  13.2286
  10  23.1274
  11  1.12312e-05
  12  7.56357e-06
  13  0.0125112
  14  1.91376e-05
  15  0.000135987
  16  1.4428
  17  41.3436
  18  0.288898
  19  0.0612305
  20  4.25506
  21  1.53782e-05
  22  18.0625
  23  60.0622
  24  14.9154
  25  0.0818962
  26  100.159
  27  0.0102924
  28  2.20766
  29  1.42355
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1765.60938736

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  3.986e-03  1.443e+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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.191e-02  1.424e+00  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.808e+00  2.208e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/555471/likelihoodResults_538185601_538444801_4FGL_J1326.0+3507_daily_bin1153.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1765.60938736
delta logL = 2.29874785873e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1765.60938736
delta logL = 3.93583832192e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39863E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1517       1.0000          .0000       10.000    
     3 'Normalizat'    1.8081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .11909E-01   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=   1765.390     FROM MIGRAD    STATUS=CONVERGED    155 CALLS      350 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60083        31.499        .97493E-02    .14435E-02
   2  Index         4.3532        3.9801        .86225E-01    .15138E-03
   3  Normalizat    1.7399        .75449E-01    .42514E-01    .32698E-05
   4  Prefactor     .60168E-01    .71987E-01    .23155        .57248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.600835
  Index      = 4.35319
  Normalizat = 1.73994
  Prefactor  = 0.0601679
 **********
 **   18 **HESSE 
 **********

 FCN=   1765.390     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      387 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60083        81.719        .52823E-03   -1.5553    
   2  Index         4.3532        6.9429        .43817E-02   -.12972    
   3  Normalizat    1.7399        .28604        .18789E-03   -.71242    
   4  Prefactor     .60168E-01    .40021        .88118E-02   -1.4155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.18528e-10
Minuit parameter uncertainties:
  1  14.0326
  2  9.3057
  3  0.286313
  4  0.313436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555471': 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) = 1765.38995872
delta logL = 0.219428636775

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  6.008e-01  1.403e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  4.353e+00  9.306e+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.017e-02  3.134e-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.740e+00  2.863e-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/555471/cmap_HighResolution_538185601_538444801_4FGL_J1326.0+3507_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-07 16:18:30.429373', job_id='555471', GAL2='0.06', fit_tolerance='1e-08', EG2='1.74', EG='1.81', time_epoch_completed='1631056710.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.01', dlogl='2.19e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1153' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:18:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 555471: <4FGL_J1326.0+3507_daily_bin1153> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1153 201.501 35.1218 538185601 538444801 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 :                                   519.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            760 sec.

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

