/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7432
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1326.0+3507_daily_bin514
RA = 201.501, Dec = 35.1218
tmin = 372556801, tmax = 372816001
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='550886', job_status='RUN', time_executed='2021-09-07 15:53:20.554023', time_epoch_executed='1631055200.55' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550886/ft1_4FGL_J1326.0+3507_daily_bin514.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550886/ft2_4FGL_J1326.0+3507_daily_bin514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550886/ft1_4FGL_J1326.0+3507_daily_bin514.fits outfile=/scratch/kocevski/550886/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin514.fits ra=201.501 dec=35.1218 rad=12.0 tmin=372556801.0 tmax=372816001.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.44
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550886/ft1_filtered_4FGL_J1326.0+3507_daily_bin514.fits" evtable="EVENTS" scfile=/scratch/kocevski/550886/ft2_4FGL_J1326.0+3507_daily_bin514.fits sctable="SC_DATA" outfile=/scratch/kocevski/550886/ltcube_372556801_372816001_4FGL_J1326.0+3507_daily_bin514.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/550886/ft2_4FGL_J1326.0+3507_daily_bin514.fits
.....................!
real 16.87
user 16.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550886/ft1_filtered_4FGL_J1326.0+3507_daily_bin514.fits evtable="EVENTS" scfile=/scratch/kocevski/550886/ft2_4FGL_J1326.0+3507_daily_bin514.fits sctable="SC_DATA" expcube=/scratch/kocevski/550886/ltcube_372556801_372816001_4FGL_J1326.0+3507_daily_bin514.fits outfile=/scratch/kocevski/550886/expmap_372556801_372816001_4FGL_J1326.0+3507_daily_bin514.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/550886/ltcube_372556801_372816001_4FGL_J1326.0+3507_daily_bin514.fits
.....................!
real 192.45
user 187.68
sys 4.35

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/550886/ft1_filtered_4FGL_J1326.0+3507_daily_bin514.fits scfile=/scratch/kocevski/550886/ft2_4FGL_J1326.0+3507_daily_bin514.fits outfile=/scratch/kocevski/550886/cmap_372556801_372816001_4FGL_J1326.0+3507_daily_bin514.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550886/ft1_filtered_4FGL_J1326.0+3507_daily_bin514.fits scfile=/scratch/kocevski/550886/ft2_4FGL_J1326.0+3507_daily_bin514.fits outfile=/scratch/kocevski/550886/cmap_HighResolution_372556801_372816001_4FGL_J1326.0+3507_daily_bin514.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.57
user 0.43
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8000       1.0000         .10000E-03   10000.    
     4 'norm      '    .41441E-01   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      '    .38668E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .30344E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.687       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6401       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0030       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.891       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.882       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3348       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5629       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.854       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.8431       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1999       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68392       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=   5870.420     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3717 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9747       -.30223E-06** at limit **
   2  Prefactor     .10000E-03    43.994        .90018E-05** at limit **
   3  Prefactor     2.8002        4.0350        .14035E-07   -.25625E-04
   4  norm          .10000E-03    2.7750       -.23304E-07** at limit **
   5  Prefactor     .10000E-03    15.878       -.54375E-05** at limit **
   6  Prefactor     .10000E-03    12.796        .92524E-06** at limit **
   7  norm          .10001E-03    2.6434        .27643E-06** at limit **
   8  Prefactor     .10000E-03    4.5629        .28595E-07** at limit **
   9  norm          .10000E-03    2.6382        .74172E-07** at limit **
  10  norm          12.685        11.212       -.65853E-07    .77317E-05
  11  norm          3.6417        3.5585       -.12216E-06   -.67222E-04
  12  norm          .10000E-03    3.7054        .22694E-06** at limit **
  13  norm          .10000E-03    7.0610        .13467E-05** at limit **
  14  Prefactor     2.0030        3.3267       -.12819E-06   -.64608E-04
  15  Prefactor     .10000E-03    6.3029       -.43884E-06** at limit **
  16  Prefactor     .10000E-03    25.099        .16759E-05** at limit **
  17  Prefactor     10.083        19.982        .28505E-05    .57684E-05
  18  Prefactor     19.881        28.574       -.44340E-05   -.12951E-04
  19  Prefactor     .10000E-03    30.389       -.13717E-04** at limit **
  20  norm          15.881        2.6782       -.20799E-07    .50497E-04
  21  Prefactor     2.3323        3.6714        .22268E-06   -.90786E-03
  22  norm          1.5615        5.7282       -.23077E-06   -.48163E-03
  23  Prefactor     .10000E-03    8.2304       -.68912E-06** at limit **
  24  norm          16.853        5.7779       -.40020E-07   -.13740E-03
  25  Prefactor     9.8434        12.771       -.60958E-07   -.19658E-03
  26  Prefactor     .10000E-03    12.656        .18699E-05** at limit **
  27  norm          .10000E-03    21.975        .87502E-05** at limit **
  28  Normalizat    1.2002        .17944        .18598E-06   -.63020E-04
  29  Prefactor     .68375        .21198        .25951E-07   -.32736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80015
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.6848
  norm       = 3.64168
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.00297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0825
  Prefactor  = 19.8813
  Prefactor  = 0.0001
  norm       = 15.8813
  Prefactor  = 2.33226
  norm       = 1.56149
  Prefactor  = 0.0001
  norm       = 16.8534
  Prefactor  = 9.84336
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20023
  Prefactor  = 0.683748
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.420     FROM HESSE     STATUS=OK           559 CALLS     4276 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9759        .16690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8002        4.0070        .17848E-03   -1.5373    
   4  norm          .10000E-03    7.7720        .39065E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    16.067        .24083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5663        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.698        .23452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.685        11.218        .11246E-03   -1.4996    
  11  norm          3.6417        3.5364        .13183E-03   -1.5326    
  12  norm          .10000E-03    3.7159        .14354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0030        3.2413        .16344E-03   -1.5425    
  15  Prefactor     .10000E-03    6.3091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.083        19.935        .12616E-03   -1.5073    
  18  Prefactor     19.881        28.596        .89805E-04   -1.4816    
  19  Prefactor     .10000E-03    30.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.881        2.6807        .49492E-04   -1.4911    
  21  Prefactor     2.3323        4.8035        .11191E-02   -1.5403    
  22  norm          1.5615        12.245        .17015E-02   -1.5458    
  23  Prefactor     .10000E-03    8.2390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.853        5.7766        .97558E-04   -1.4887    
  25  Prefactor     9.8434        12.723        .12772E-03   -1.5080    
  26  Prefactor     .10000E-03    12.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    22.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2002        .21179        .21252E-03   -.86596    
  29  Prefactor     .68375        .24441        .33547E-03   -1.0417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25464e-09
Minuit parameter uncertainties:
  1  4.18692e-07
  2  4.83599e-06
  3  4.00738
  4  0.000383282
  5  4.52774e-06
  6  8.33361e-07
  7  0.000579908
  8  5.66344e-07
  9  6.8935e-05
  10  11.2198
  11  3.53655
  12  3.20174e-06
  13  1.08899e-06
  14  3.24154
  15  8.00266e-08
  16  2.20792e-06
  17  19.948
  18  28.6161
  19  1.35885e-05
  20  2.68068
  21  4.80427
  22  8.74742
  23  1.68128e-06
  24  5.77678
  25  12.7261
  26  8.37226e-06
  27  2.03532e-05
  28  0.21194
  29  0.244789
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.208e-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:  6.837e-01  2.448e-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.200e+00  2.119e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550886/likelihoodResults_372556801_372816001_4FGL_J1326.0+3507_daily_bin514.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) = 5870.41969743
delta logL = -0.000189609056179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5870.41950791
delta logL = -8.73515091371e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2333       1.0000          .0000       10.000    
     3 'Normalizat'    1.2002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68375       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=   5870.420     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6690.5        .90712E-02** at limit **
   2  Index         2.2214        5.1473        .50000        .40364E-05
   3  Normalizat    1.2002        .68511E-01    .34886E-01    .65134E-05
   4  Prefactor     .68375        .84217E-01    .75779E-01    .28950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22144
  Normalizat = 1.20023
  Prefactor  = 0.683748
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.420     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2214        6.0494        .50000       -.58922    
   3  Normalizat    1.2002        .19656        .21252E-03   -.86596    
   4  Prefactor     .68375        .24108        .33547E-03   -1.0417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49623e-11
Minuit parameter uncertainties:
  1  1.14272e-05
  2  5.00259
  3  0.196679
  4  0.24145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550886': 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) = 5870.41950788
delta logL = -6.31225702818e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  6.837e-01  2.414e-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.200e+00  1.967e-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/550886/cmap_HighResolution_372556801_372816001_4FGL_J1326.0+3507_daily_bin514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2021-09-07 16:06:54.799146', job_id='550886', GAL2='0.68', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631056014.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-6.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='514' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:06:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 550886: <4FGL_J1326.0+3507_daily_bin514> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin514> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 15:50:51 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:52:13 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:52:13 2021
Terminated at Tue Sep  7 16:06:55 2021
Results reported at Tue Sep  7 16:06:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin514 201.501 35.1218 372556801 372816001 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 :                                   813.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            964 sec.

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

