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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1131
RA = 201.501, Dec = 35.1218
tmin = 532483201, tmax = 532742401
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='555435', job_status='RUN', time_executed='2021-09-07 16:07:04.481810', time_epoch_executed='1631056024.48' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555435/ft1_4FGL_J1326.0+3507_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555435/ft2_4FGL_J1326.0+3507_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555435/ft1_4FGL_J1326.0+3507_daily_bin1131.fits outfile=/scratch/kocevski/555435/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1131.fits ra=201.501 dec=35.1218 rad=12.0 tmin=532483201.0 tmax=532742401.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.58
user 3.29
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555435/ft1_filtered_4FGL_J1326.0+3507_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/555435/ft2_4FGL_J1326.0+3507_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/555435/ltcube_532483201_532742401_4FGL_J1326.0+3507_daily_bin1131.fits outfile=/scratch/kocevski/555435/expmap_532483201_532742401_4FGL_J1326.0+3507_daily_bin1131.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/555435/ltcube_532483201_532742401_4FGL_J1326.0+3507_daily_bin1131.fits
.....................!
real 192.04
user 186.95
sys 4.56

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/555435/ft1_filtered_4FGL_J1326.0+3507_daily_bin1131.fits scfile=/scratch/kocevski/555435/ft2_4FGL_J1326.0+3507_daily_bin1131.fits outfile=/scratch/kocevski/555435/cmap_532483201_532742401_4FGL_J1326.0+3507_daily_bin1131.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555435/ft1_filtered_4FGL_J1326.0+3507_daily_bin1131.fits scfile=/scratch/kocevski/555435/ft2_4FGL_J1326.0+3507_daily_bin1131.fits outfile=/scratch/kocevski/555435/cmap_HighResolution_532483201_532742401_4FGL_J1326.0+3507_daily_bin1131.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.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.898       1.0000         .10000E-03   10000.    
    11 'norm      '    .10303E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .67785       1.0000         .10000E-03   10000.    
    13 'norm      '    10.693       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.752       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4721       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9118       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.8544       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.867       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10741E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2906       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84431       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=   6339.168     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3673 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.758       -.42021E-06** at limit **
   2  Prefactor     .10000E-03    39.896       -.12954E-05** at limit **
   3  Prefactor     .10000E-03    2.9921        .93467E-07** at limit **
   4  norm          .10000E-03    1.1247        .14925E-07** at limit **
   5  Prefactor     .10000E-03    44.232        .15351E-05** at limit **
   6  Prefactor     .10000E-03    7.2711       -.29312E-06** at limit **
   7  norm          .10000E-03    3.1399        .57872E-06** at limit **
   8  Prefactor     .10000E-03    4.8620       -.35611E-06** at limit **
   9  norm          .10000E-03    1.4167       -.18097E-07** at limit **
  10  norm          12.898        11.930       -.10206E-07   -.10572E-04
  11  norm          .10000E-03    1.4223       -.97146E-08** at limit **
  12  norm          .67681        2.4779        .35364E-06    .62686E-04
  13  norm          10.694        14.385        .35132E-07   -.85539E-05
  14  Prefactor     .10000E-03    1.8426       -.12564E-05** at limit **
  15  Prefactor     .10000E-03    6.3530        .76926E-07** at limit **
  16  Prefactor     31.726        47.392        .50221E-05    .62566E-04
  17  Prefactor     2.4724        8.1134        .48430E-05   -.58770E-04
  18  Prefactor     .10000E-03    9.1866        .18510E-06** at limit **
  19  Prefactor     .10000E-03    24.413        .89753E-06** at limit **
  20  norm          3.9119        1.4632        .30316E-08    .53189E-05
  21  Prefactor     .10000E-03    3.3031        .74208E-07** at limit **
  22  norm          .10000E-03    4.1053        .54890E-07** at limit **
  23  Prefactor     .10000E-03    4.0670        .11332E-06** at limit **
  24  norm          3.8547        4.3054        .67430E-07   -.14425E-05
  25  Prefactor     14.862        11.639        .73151E-07    .31487E-04
  26  Prefactor     .10000E-03    25.651       -.37783E-06** at limit **
  27  norm          .10000E-03    5.5521        .22360E-06** at limit **
  28  Normalizat    1.2905        .16297        .41923E-06    .33063E-03
  29  Prefactor     .84432        .20083       -.91227E-06    .18366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.898
  norm       = 0.0001
  norm       = 0.676805
  norm       = 10.6939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7262
  Prefactor  = 2.47242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.91188
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.85466
  Prefactor  = 14.8622
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.29048
  Prefactor  = 0.844324
 **********
 **   18 **HESSE 
 **********

 FCN=   6339.168     FROM HESSE     STATUS=OK           545 CALLS     4218 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0472        .13447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1278        .82452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.0127        .27097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8635        .17137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4210        .92533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.898        11.930        .11153E-03   -1.4990    
  11  norm          .10000E-03    2.8554        .17655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .67681        2.5047        .22297E-02   -1.5543    
  13  norm          10.694        14.363        .12252E-03   -1.5054    
  14  Prefactor     .10000E-03    3.3073        .20255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.726        47.966        .71108E-04   -1.4581    
  17  Prefactor     2.4724        8.2060        .13003E-02   -1.5393    
  18  Prefactor     .10000E-03    9.2108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9119        1.4634        .57087E-04   -1.5312    
  21  Prefactor     .10000E-03    3.4097        .28235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.1123        .15755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.0671        .15681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.8547        4.2956        .16784E-03   -1.5315    
  25  Prefactor     14.862        11.612        .10388E-03   -1.4937    
  26  Prefactor     .10000E-03    25.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.5509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2905        .19569        .21024E-03   -.83851    
  29  Prefactor     .84432        .24096        .31143E-03   -.98115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00058e-10
Minuit parameter uncertainties:
  1  7.79335e-05
  2  0.000138133
  3  1.13605e-06
  4  7.13591e-07
  5  0.000137036
  6  1.33037e-05
  7  4.5105e-05
  8  1.06143e-05
  9  4.93417e-07
  10  11.9326
  11  8.8401e-06
  12  2.5051
  13  14.3677
  14  1.70551e-05
  15  3.47252e-05
  16  48.0246
  17  8.2097
  18  3.58659e-06
  19  7.45737e-05
  20  1.46337
  21  1.59509e-06
  22  9.01583e-07
  23  3.01209e-06
  24  4.29597
  25  11.6142
  26  2.32208e-05
  27  7.39636e-06
  28  0.1958
  29  0.241266
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  3.173e+01  4.802e+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:  8.443e-01  2.413e-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.290e+00  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/555435/likelihoodResults_532483201_532742401_4FGL_J1326.0+3507_daily_bin1131.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) = 6339.14100926
delta logL = 0.0268815219642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6339.12251762
delta logL = 0.045373167206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.425       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4681       1.0000          .0000       10.000    
     3 'Normalizat'    1.2835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84995       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=   6339.123     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      268 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.415        61.324        .86533E-04   -.33284E-03
   2  Index         2.4652        1.3703        .87044E-02   -.11679E-03
   3  Normalizat    1.2837        .19749        .21072E-03   -.25962E-04
   4  Prefactor     .84989        .24111        .31049E-03   -.70447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4148
  Index      = 2.46517
  Normalizat = 1.28366
  Prefactor  = 0.849886
 **********
 **   18 **HESSE 
 **********

 FCN=   6339.123     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.415        49.047        .17307E-04   -1.4782    
   2  Index         2.4652        1.1010        .34818E-03   -.53166    
   3  Normalizat    1.2837        .19700        .42143E-04   -.84055    
   4  Prefactor     .84989        .24061        .12420E-04   -.97915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.408e-10
Minuit parameter uncertainties:
  1  49.1398
  2  1.11336
  3  0.197112
  4  0.240908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555435': 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) = 6339.12250728
delta logL = 0.045383501174

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  2.141e+01  4.914e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.465e+00  1.113e+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:  8.499e-01  2.409e-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.284e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.62
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/555435/cmap_HighResolution_532483201_532742401_4FGL_J1326.0+3507_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2021-09-07 16:21:06.854193', job_id='555435', GAL2='0.85', fit_tolerance='1e-08', EG2='1.28', EG='1.29', time_epoch_completed='1631056866.85', return_code2='0', ts='0.62', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.54e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1131' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:21:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 555435: <4FGL_J1326.0+3507_daily_bin1131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1131 201.501 35.1218 532483201 532742401 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 :                                   840.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            920 sec.

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

