/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 121 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 = 7467
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1326.0+3507_daily_bin71
RA = 201.501, Dec = 35.1218
tmin = 257731201, tmax = 257990401
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='549067', job_status='RUN', time_executed='2021-09-07 15:47:30.726337', time_epoch_executed='1631054850.73' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549067

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549067/ft1_4FGL_J1326.0+3507_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549067/ft2_4FGL_J1326.0+3507_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549067/ft1_4FGL_J1326.0+3507_daily_bin71.fits outfile=/scratch/kocevski/549067/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin71.fits ra=201.501 dec=35.1218 rad=12.0 tmin=257731201.0 tmax=257990401.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 1.45
user 1.23
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549067/ft1_filtered_4FGL_J1326.0+3507_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/549067/ft2_4FGL_J1326.0+3507_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/549067/ltcube_257731201_257990401_4FGL_J1326.0+3507_daily_bin71.fits outfile=/scratch/kocevski/549067/expmap_257731201_257990401_4FGL_J1326.0+3507_daily_bin71.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/549067/ltcube_257731201_257990401_4FGL_J1326.0+3507_daily_bin71.fits
.....................!
real 191.52
user 185.95
sys 4.79

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/549067/ft1_filtered_4FGL_J1326.0+3507_daily_bin71.fits scfile=/scratch/kocevski/549067/ft2_4FGL_J1326.0+3507_daily_bin71.fits outfile=/scratch/kocevski/549067/cmap_257731201_257990401_4FGL_J1326.0+3507_daily_bin71.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549067/ft1_filtered_4FGL_J1326.0+3507_daily_bin71.fits scfile=/scratch/kocevski/549067/ft2_4FGL_J1326.0+3507_daily_bin71.fits outfile=/scratch/kocevski/549067/cmap_HighResolution_257731201_257990401_4FGL_J1326.0+3507_daily_bin71.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.069       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.641       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3987       1.0000         .10000E-03   10000.    
     7 'norm      '    6.7381       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.388       1.0000         .10000E-03   10000.    
    10 'norm      '    6.6914       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7366       1.0000         .10000E-03   10000.    
    12 'norm      '    11.000       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1865       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.778       1.0000         .10000E-03   10000.    
    20 'norm      '    8.4613       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .19331E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96183       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97634       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=   5305.882     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3147 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.069        17.816       -.92912E-07   -.24416E-04
   2  Prefactor     29.718        44.669        .31188E-06    .25569E-04
   3  Prefactor     10.640        6.6937        .78538E-08    .96201E-05
   4  norm          .10000E-03    1.3057        .17460E-07** at limit **
   5  Prefactor     .10000E-03    23.624       -.35911E-05** at limit **
   6  Prefactor     8.3980        25.911        .15724E-05    .13855E-03
   7  norm          6.7381        4.4688        .29752E-06    .50072E-03
   8  Prefactor     .10000E-03    8.3488        .28918E-06** at limit **
   9  norm          17.388        7.8660       -.11008E-07    .15632E-03
  10  norm          6.6901        16.494       -.26270E-06    .53080E-04
  11  norm          1.7377        6.5847       -.10865E-05    .62994E-03
  12  norm          10.999        10.449        .80163E-06    .51515E-03
  13  norm          .10000E-03    12.854       -.13210E-05** at limit **
  14  Prefactor     4.1869        3.7768        .26725E-06    .58898E-03
  15  Prefactor     .10000E-03    12.085        .25283E-06** at limit **
  16  Prefactor     .10000E-03    191.53        .12602E-05** at limit **
  17  Prefactor     .10000E-03    10.360        .10531E-05** at limit **
  18  Prefactor     .10000E-03    10.431        .10660E-05** at limit **
  19  Prefactor     26.776        50.537        .74274E-06    .37761E-04
  20  norm          8.4614        2.3059        .12629E-07    .13851E-03
  21  Prefactor     .10000E-03    2.4154       -.50658E-07** at limit **
  22  norm          .10000E-03    12.396       -.85323E-06** at limit **
  23  Prefactor     .10000E-03    9.5743       -.95286E-06** at limit **
  24  norm          .10000E-03    21.648       -.11394E-04** at limit **
  25  Prefactor     .10000E-03    11.209        .92298E-06** at limit **
  26  Prefactor     .10000E-03    23.231       -.11074E-06** at limit **
  27  norm          .10000E-03    9.5216       -.11283E-05** at limit **
  28  Normalizat    .96175        .17928       -.19486E-06    .19522E-03
  29  Prefactor     .97644        .21670       -.22057E-07    .10705E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0693
  Prefactor  = 29.7178
  Prefactor  = 10.6405
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 8.39804
  norm       = 6.73807
  Prefactor  = 0.0001
  norm       = 17.3882
  norm       = 6.69013
  norm       = 1.73774
  norm       = 10.9994
  norm       = 0.000100001
  Prefactor  = 4.18686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7758
  norm       = 8.46135
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.961753
  Prefactor  = 0.976436
 **********
 **   18 **HESSE 
 **********

 FCN=   5305.882     FROM HESSE     STATUS=OK           547 CALLS     3694 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.069        17.815        .91718E-04   -1.4834    
   2  Prefactor     29.718        44.661        .73495E-04   -1.4617    
   3  Prefactor     10.640        6.6919        .12283E-03   -1.5055    
   4  norm          .10000E-03    1.3066        .81218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3980        25.843        .13833E-03   -1.5128    
   7  norm          6.7381        4.4864        .12229E-03   -1.5189    
   8  Prefactor     .10000E-03    8.3674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.388        7.8522        .96048E-04   -1.4874    
  10  norm          6.6901        16.460        .15512E-03   -1.5191    
  11  norm          1.7377        6.7345        .23897E-03   -1.5444    
  12  norm          10.999        10.501        .12080E-03   -1.5045    
  13  norm          .10000E-03    12.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1869        3.7632        .12209E-03   -1.5299    
  15  Prefactor     .10000E-03    12.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    193.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.776        50.691        .77415E-04   -1.4673    
  20  norm          8.4614        2.3073        .55582E-04   -1.5126    
  21  Prefactor     .10000E-03    2.4646        .11048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    12.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.6443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    21.807        .23722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    23.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.5941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96175        .21126        .22850E-03   -.94323    
  29  Prefactor     .97644        .25565        .28347E-03   -.93519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19946e-09
Minuit parameter uncertainties:
  1  17.8203
  2  44.7114
  3  6.69237
  4  1.02038e-06
  5  0.00065648
  6  25.8776
  7  4.48658
  8  3.29241e-05
  9  7.85262
  10  16.4711
  11  6.73741
  12  10.5025
  13  0.000194129
  14  3.76345
  15  5.56555e-05
  16  0.000465919
  17  0.000122148
  18  0.000119448
  19  50.7725
  20  2.3073
  21  1.63001e-06
  22  9.13364e-05
  23  0.00011019
  24  0.000513558
  25  0.000138294
  26  1.95705e-06
  27  0.000133243
  28  0.21144
  29  0.255968
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.659e-04  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:  9.764e-01  2.560e-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:  9.618e-01  2.114e-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: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549067/likelihoodResults_257731201_257990401_4FGL_J1326.0+3507_daily_bin71.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) = 5305.88184548
delta logL = -2.454920741e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5305.88182122
delta logL = -2.95702193398e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16200E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1193       1.0000          .0000       10.000    
     3 'Normalizat'    .96175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97644       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=   5305.412     FROM MIGRAD    STATUS=CONVERGED    152 CALLS      327 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7511        88.388        .36285E-02    .97989E-03
   2  Index         3.6451        3.2536        .92103E-01    .31297E-03
   3  Normalizat    .90975        .53356E-01    .22850E-03    .16439E-03
   4  Prefactor     1.0129        .65435E-01    .28347E-03    .31757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75106
  Index      = 3.6451
  Normalizat = 0.909746
  Prefactor  = 1.01289
 **********
 **   18 **HESSE 
 **********

 FCN=   5305.412     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      356 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7511        168.27        .12815E-03   -1.5376    
   2  Index         3.6451        6.8215        .50451E-02   -.27441    
   3  Normalizat    .90975        .17996        .91399E-05   -.96119    
   4  Prefactor     1.0129        .22371        .56694E-04   -.92301    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.27036e-09
Minuit parameter uncertainties:
  1  43.1585
  2  6.09977
  3  0.180075
  4  0.223913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549067': 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) = 5305.41196574
delta logL = 0.469855185688

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  2.751e+00  4.316e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  3.645e+00  6.100e+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.013e+00  2.239e-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:  9.097e-01  1.801e-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/549067/cmap_HighResolution_257731201_257990401_4FGL_J1326.0+3507_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-07 15:59:32.178954', job_id='549067', GAL2='1.01', fit_tolerance='1e-08', EG2='0.91', EG='0.96', time_epoch_completed='1631055572.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.70e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='71' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:59:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 549067: <4FGL_J1326.0+3507_daily_bin71> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin71> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:45:18 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:45:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 15:45:20 2021
Terminated at Tue Sep  7 15:59:32 2021
Results reported at Tue Sep  7 15:59:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin71 201.501 35.1218 257731201 257990401 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 :                                   721.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

