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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1282
RA = 201.501, Dec = 35.1218
tmin = 571622401, tmax = 571881601
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='555746', job_status='RUN', time_executed='2021-09-07 16:08:12.269371', time_epoch_executed='1631056092.27' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555746/ft1_4FGL_J1326.0+3507_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555746/ft2_4FGL_J1326.0+3507_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555746/ft1_4FGL_J1326.0+3507_daily_bin1282.fits outfile=/scratch/kocevski/555746/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1282.fits ra=201.501 dec=35.1218 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.82
user 2.56
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555746/ft2_4FGL_J1326.0+3507_daily_bin1282.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/555746/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/555746/ft1_filtered_4FGL_J1326.0+3507_daily_bin1282.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.53
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555746/ft1_filtered_4FGL_J1326.0+3507_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/555746/ft2_4FGL_J1326.0+3507_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/555746/ltcube_571622401_571881601_4FGL_J1326.0+3507_daily_bin1282.fits outfile=/scratch/kocevski/555746/expmap_571622401_571881601_4FGL_J1326.0+3507_daily_bin1282.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/555746/ltcube_571622401_571881601_4FGL_J1326.0+3507_daily_bin1282.fits
.....................!
real 193.80
user 186.84
sys 5.55

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/555746/ft1_filtered_4FGL_J1326.0+3507_daily_bin1282.fits scfile=/scratch/kocevski/555746/ft2_4FGL_J1326.0+3507_daily_bin1282.fits outfile=/scratch/kocevski/555746/cmap_571622401_571881601_4FGL_J1326.0+3507_daily_bin1282.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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555746/ft1_filtered_4FGL_J1326.0+3507_daily_bin1282.fits scfile=/scratch/kocevski/555746/ft2_4FGL_J1326.0+3507_daily_bin1282.fits outfile=/scratch/kocevski/555746/cmap_HighResolution_571622401_571881601_4FGL_J1326.0+3507_daily_bin1282.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7840       1.0000         .10000E-03   10000.    
     4 'norm      '    .60052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.605       1.0000         .10000E-03   10000.    
     7 'norm      '    .13901E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.4345       1.0000         .10000E-03   10000.    
    10 'norm      '    29.639       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3979       1.0000         .10000E-03   10000.    
    12 'norm      '    .14023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11445E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-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 '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    26.255       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.237       1.0000         .10000E-03   10000.    
    22 'norm      '    12.299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.2585       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.468       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11384E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0952       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81877       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=   5111.767     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3748 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.788        .21652E-06** at limit **
   2  Prefactor     .10000E-03    113.73        .10031E-06** at limit **
   3  Prefactor     4.7828        7.6020       -.72818E-07   -.14461E-05
   4  norm          .10000E-03    9.2136        .61160E-06** at limit **
   5  Prefactor     39.388        65.825        .55739E-05    .29257E-04
   6  Prefactor     41.617        49.286       -.46758E-06   -.96259E-05
   7  norm          .10000E-03    3.9894       -.10467E-06** at limit **
   8  Prefactor     .10000E-03    11.786       -.91921E-07** at limit **
   9  norm          4.4346        8.8410        .20401E-05    .25477E-04
  10  norm          29.641        22.412       -.49650E-06   -.47429E-05
  11  norm          1.3883        5.1475        .10315E-06   -.25931E-03
  12  norm          .10001E-03    9.5584        .64766E-06** at limit **
  13  norm          11.523        23.601        .94015E-07    .28191E-05
  14  Prefactor     2.6288        4.8549       -.11945E-06    .12670E-04
  15  Prefactor     .10000E-03    37.826       -.14272E-05** at limit **
  16  Prefactor     .10000E-03    22.438       -.20397E-06** at limit **
  17  Prefactor     .10000E-03    4.4320       -.21317E-08** at limit **
  18  Prefactor     .10000E-03    5.3301       -.19948E-08** at limit **
  19  Prefactor     .10000E-03    36.078        .76973E-07** at limit **
  20  norm          26.255        3.5635       -.21989E-08   -.15732E-04
  21  Prefactor     12.236        5.9078        .79490E-07    .13607E-04
  22  norm          12.297        12.330        .52753E-08   -.84046E-05
  23  Prefactor     .10000E-03    6.7597        .15673E-07** at limit **
  24  norm          3.2588        4.7365       -.10447E-06   -.34583E-04
  25  Prefactor     10.465        13.541        .12430E-06   -.53815E-04
  26  Prefactor     .10000E-03    31.754        .17906E-05** at limit **
  27  norm          .10000E-03    8.8742        .51776E-07** at limit **
  28  Normalizat    1.0955        .20355       -.96432E-07    .55343E-05
  29  Prefactor     .81855        .23665       -.27734E-06   -.73412E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.78282
  norm       = 0.000100002
  Prefactor  = 39.3876
  Prefactor  = 41.6172
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.43458
  norm       = 29.641
  norm       = 1.38834
  norm       = 0.000100008
  norm       = 11.5227
  Prefactor  = 2.6288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.2546
  Prefactor  = 12.2355
  norm       = 12.2968
  Prefactor  = 0.0001
  norm       = 3.25877
  Prefactor  = 10.4645
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09548
  Prefactor  = 0.818549
 **********
 **   18 **HESSE 
 **********

 FCN=   5111.767     FROM HESSE     STATUS=OK           557 CALLS     4305 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    113.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7828        7.5809        .18394E-03   -1.5271    
   4  norm          .10000E-03    16.705        .35523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.388        65.505        .63830E-04   -1.4452    
   6  Prefactor     41.617        45.709        .62147E-04   -1.4417    
   7  norm          .10000E-03    11.880        .27651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.4346        8.9010        .95614E-03   -1.5287    
  10  norm          29.641        22.416        .73593E-04   -1.4619    
  11  norm          1.3883        4.2219        .23235E-03   -1.5472    
  12  norm          .10001E-03    21.778        .34120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.523        23.546        .11800E-03   -1.5029    
  14  Prefactor     2.6288        4.7506        .18354E-03   -1.5384    
  15  Prefactor     .10000E-03    38.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4340        .14700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3310        .16122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          26.255        3.5688        .47615E-04   -1.4683    
  21  Prefactor     12.236        5.9263        .11326E-03   -1.5008    
  22  norm          12.297        12.340        .11422E-03   -1.5006    
  23  Prefactor     .10000E-03    6.7617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.2588        4.7222        .17661E-03   -1.5347    
  25  Prefactor     10.465        13.505        .61918E-03   -1.5061    
  26  Prefactor     .10000E-03    31.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    8.8822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0955        .24538        .24598E-03   -.89897    
  29  Prefactor     .81855        .28161        .33437E-03   -.99048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87723e-10
Minuit parameter uncertainties:
  1  5.43303e-07
  2  2.75961e-05
  3  7.58238
  4  0.000396651
  5  65.6249
  6  45.7472
  7  5.14256e-05
  8  1.55281e-05
  9  8.90364
  10  22.4227
  11  4.2228
  12  0.000844512
  13  23.5649
  14  4.75123
  15  0.000101314
  16  9.2535e-06
  17  3.85896e-07
  18  1.91854e-07
  19  6.11769e-07
  20  3.56884
  21  5.92659
  22  12.3422
  23  8.25003e-07
  24  4.72273
  25  13.5091
  26  5.95894e-05
  27  3.40554e-06
  28  0.245633
  29  0.282109
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  9.253e-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:  8.185e-01  2.821e-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.095e+00  2.456e-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: 5.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555746/likelihoodResults_571622401_571881601_4FGL_J1326.0+3507_daily_bin1282.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) = 5111.76725126
delta logL = -0.000211743875298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5111.76704141
delta logL = -1.90126138477e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13100E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4287       1.0000          .0000       10.000    
     3 'Normalizat'    1.0955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81855       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=   5111.767     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      277 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10276E-03    6.3271        .18142E-01** at limit **
   2  Index         2.3517        5.9816        .50000        .16664E-04
   3  Normalizat    1.0955        .29300E-02    .24598E-03   -.17536E-03
   4  Prefactor     .81855        .35076E-02    .33437E-03   -.13110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102759
  Index      = 2.35165
  Normalizat = 1.09547
  Prefactor  = 0.818549
 **********
 **   18 **HESSE 
 **********

 FCN=   5111.767     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10276E-03    68.906        .29323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3517        6.7101        .50000       -.55821    
   3  Normalizat    1.0955        .97058E-02    .49197E-04   -.89897    
   4  Prefactor     .81855        .11619E-01    .13375E-04   -.99048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.27306e-09
Minuit parameter uncertainties:
  1  0.0276072
  2  210.152
  3  0.00970584
  4  0.0116195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555746': 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) = 5111.76704019
delta logL = -6.82143763697e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.028e-04  2.761e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.352e+00  2.102e+02  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:  8.185e-01  1.162e-02  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.095e+00  9.706e-03  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/555746/cmap_HighResolution_571622401_571881601_4FGL_J1326.0+3507_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2021-09-07 16:20:56.156200', job_id='555746', GAL2='0.82', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631056856.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-6.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1282' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:20:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 555746: <4FGL_J1326.0+3507_daily_bin1282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1282 201.501 35.1218 571622401 571881601 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 :                                   761.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            870 sec.

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

