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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin873
RA = 201.501, Dec = 35.1218
tmin = 465609601, tmax = 465868801
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='553923', job_status='RUN', time_executed='2021-09-07 16:01:06.478591', time_epoch_executed='1631055666.48' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/553923

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/553923/ft1_4FGL_J1326.0+3507_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/553923/ft2_4FGL_J1326.0+3507_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/553923/ft1_4FGL_J1326.0+3507_daily_bin873.fits outfile=/scratch/kocevski/553923/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin873.fits ra=201.501 dec=35.1218 rad=12.0 tmin=465609601.0 tmax=465868801.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.57
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/553923/ft2_4FGL_J1326.0+3507_daily_bin873.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/553923/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin873.fits evtable="EVENTS" outfile="/scratch/kocevski/553923/ft1_filtered_4FGL_J1326.0+3507_daily_bin873.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.51
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/553923/ft1_filtered_4FGL_J1326.0+3507_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/553923/ft2_4FGL_J1326.0+3507_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/553923/ltcube_465609601_465868801_4FGL_J1326.0+3507_daily_bin873.fits outfile=/scratch/kocevski/553923/expmap_465609601_465868801_4FGL_J1326.0+3507_daily_bin873.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/553923/ltcube_465609601_465868801_4FGL_J1326.0+3507_daily_bin873.fits
.....................!
real 193.60
user 187.30
sys 5.67

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/553923/ft1_filtered_4FGL_J1326.0+3507_daily_bin873.fits scfile=/scratch/kocevski/553923/ft2_4FGL_J1326.0+3507_daily_bin873.fits outfile=/scratch/kocevski/553923/cmap_465609601_465868801_4FGL_J1326.0+3507_daily_bin873.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/553923/ft1_filtered_4FGL_J1326.0+3507_daily_bin873.fits scfile=/scratch/kocevski/553923/ft2_4FGL_J1326.0+3507_daily_bin873.fits outfile=/scratch/kocevski/553923/cmap_HighResolution_465609601_465868801_4FGL_J1326.0+3507_daily_bin873.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.59
user 0.39
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5419       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9711       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26540       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.1574       1.0000         .10000E-03   10000.    
    10 'norm      '    .11125E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5804       1.0000         .10000E-03   10000.    
    13 'norm      '    17.787       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1272       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.643       1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.069       1.0000         .10000E-03   10000.    
    20 'norm      '    9.5584       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5427       1.0000         .10000E-03   10000.    
    22 'norm      '    9.3602       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.5838       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.3433       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84407       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1047       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=   5987.773     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     3080 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.022        1.3117       -.15790E-06    .65346E-03
   2  Prefactor     .10003E-03    50.977       -.12537E-05** at limit **
   3  Prefactor     6.5427        1.4138        .68634E-07   -.56800E-04
   4  norm          1.9797        5.7022        .48182E-06   -.17896E-03
   5  Prefactor     37.682        18.340        .22134E-05   -.22394E-02
   6  Prefactor     .17633        486.99        .31657E-04    .46265E-03
   7  norm          .10000E-03    2.5794        .34237E-06** at limit **
   8  Prefactor     .10000E-03    4.9023        .11348E-06** at limit **
   9  norm          5.1599        4.3098       -.47470E-06   -.99869E-03
  10  norm          .10002E-03    8.6330        .81430E-06** at limit **
  11  norm          .10000E-03    1.5008        .11095E-06** at limit **
  12  norm          6.5807        4.1707       -.64720E-06   -.62106E-02
  13  norm          17.782        1.3944        .18139E-06   -.91794E-03
  14  Prefactor     7.1269        3.6163        .24057E-06    .14243E-02
  15  Prefactor     .10000E-03    4.6705        .16831E-06** at limit **
  16  Prefactor     .10002E-03    63.624        .47615E-05** at limit **
  17  Prefactor     .10000E-03    27.851        .11077E-05** at limit **
  18  Prefactor     36.649        1.8787       -.23789E-06    .23983E-02
  19  Prefactor     64.201        30.664       -.28055E-05    .27289E-02
  20  norm          9.5584        2.0973        .20025E-07    .63084E-04
  21  Prefactor     4.5426        3.6307        .23983E-06   -.79902E-04
  22  norm          9.3640        6.3934        .10754E-05   -.54595E-02
  23  Prefactor     .10002E-03    7.1939        .16956E-06** at limit **
  24  norm          4.5841        3.8623       -.26939E-06   -.30028E-03
  25  Prefactor     .10000E-03    5.8404       -.46268E-06** at limit **
  26  Prefactor     .10004E-03    7.1961       -.81357E-07** at limit **
  27  norm          9.3524        1.7171       -.21470E-06    .13668E-02
  28  Normalizat    .84415        .20054        .52520E-07    .86164E-04
  29  Prefactor     1.1045        .25078        .26039E-07    .64535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.022
  Prefactor  = 0.000100027
  Prefactor  = 6.54269
  norm       = 1.97968
  Prefactor  = 37.6819
  Prefactor  = 0.176333
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.15991
  norm       = 0.000100019
  norm       = 0.0001
  norm       = 6.5807
  norm       = 17.782
  Prefactor  = 7.12686
  Prefactor  = 0.000100001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100002
  Prefactor  = 36.6491
  Prefactor  = 64.201
  norm       = 9.55838
  Prefactor  = 4.54257
  norm       = 9.36398
  Prefactor  = 0.000100019
  norm       = 4.58405
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  norm       = 9.35245
  Normalizat = 0.844147
  Prefactor  = 1.10452
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.773     FROM HESSE     STATUS=OK           621 CALLS     3701 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.022        22.284        .21341E-02   -1.4769    
   2  Prefactor     .10003E-03    51.678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5427        5.4584        .39226E-02   -1.5196    
   4  norm          1.9797        6.4976        .73834E-02   -1.5427    
   5  Prefactor     37.682        48.985        .16306E-02   -1.4479    
   6  Prefactor     .17633        31.396        .11542       -1.5624    
   7  norm          .10000E-03    2.5522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.3719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.1599        4.4381        .44256E-02   -1.5254    
  10  norm          .10002E-03    8.8873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5807        4.6393        .39110E-02   -1.5195    
  13  norm          17.782        22.249        .23741E-02   -1.4864    
  14  Prefactor     7.1269        3.6470        .37564E-02   -1.5174    
  15  Prefactor     .10000E-03    9.3749        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    64.348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.649        26.517        .16552E-02   -1.4496    
  19  Prefactor     64.201        51.003        .12534E-02   -1.4104    
  20  norm          9.5584        2.0981        .32405E-02   -1.5090    
  21  Prefactor     4.5426        3.6434        .47220E-02   -1.5282    
  22  norm          9.3640        10.485        .32748E-02   -1.5096    
  23  Prefactor     .10002E-03    7.4553        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.5841        3.8891        .47003E-02   -1.5280    
  25  Prefactor     .10000E-03    5.8188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10004E-03    7.6885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.3524        12.261        .32778E-02   -1.5096    
  28  Normalizat    .84415        .17150        .44183E-01   -.98451    
  29  Prefactor     1.1045        .21097        .62727E-01   -.89322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44803e-07
Minuit parameter uncertainties:
  1  22.2927
  2  0.00234394
  3  5.45882
  4  6.49995
  5  49.0369
  6  4.70699
  7  1.24584e-05
  8  0.000286499
  9  4.43836
  10  0.00082676
  11  3.84522e-06
  12  4.63959
  13  22.2595
  14  3.64711
  15  0.000230315
  16  0.00199117
  17  0.000423835
  18  26.5256
  19  51.038
  20  2.09816
  21  3.64354
  22  10.4866
  23  0.000761146
  24  3.8893
  25  4.73972e-05
  26  0.00104958
  27  12.2644
  28  0.171611
  29  0.21113
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.991e-03  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.105e+00  2.111e-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:  8.441e-01  1.716e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/553923/likelihoodResults_465609601_465868801_4FGL_J1326.0+3507_daily_bin873.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) = 5987.77315952
delta logL = -7.36844676794e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5987.0884515
delta logL = 0.684634330996

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     '    7.4692       1.0000          .0000       10.000    
     3 'Normalizat'    .78100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1607       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=   5987.773     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      422 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.223        .90712E-02** at limit **
   2  Index         1.8160        5.8580        .50000       -.16046E-05
   3  Normalizat    .84415        .18517        .43362E-01    .80921E-04
   4  Prefactor     1.1045        .23827        .62725E-01    .26235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81596
  Normalizat = 0.844145
  Prefactor  = 1.10452
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.773     FROM HESSE     STATUS=OK            33 CALLS      455 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8160        5.8779        .50000       -6.9735    
   3  Normalizat    .84415        .19319        .24447E-03   -2.1571    
   4  Prefactor     1.1045        .24847        .27744E-03   -.89322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91018e-11
Minuit parameter uncertainties:
  1  0.000300187
  2  3.99272
  3  0.193344
  4  0.248726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/553923': 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) = 5987.77308583
delta logL = 9.27957444219e-09

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.002e-04  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.816e+00  3.993e+00  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.105e+00  2.487e-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:  8.441e-01  1.933e-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/553923/cmap_HighResolution_465609601_465868801_4FGL_J1326.0+3507_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2021-09-07 16:14:35.707137', job_id='553923', GAL2='1.10', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631056475.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='9.28e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='873' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:14:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 553923: <4FGL_J1326.0+3507_daily_bin873> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin873> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 16:00:44 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:00:51 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:00:51 2021
Terminated at Tue Sep  7 16:14:36 2021
Results reported at Tue Sep  7 16:14:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin873 201.501 35.1218 465609601 465868801 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 :                                   808.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            832 sec.

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

