/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 2 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 = 7245
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin198
RA = 197.632, Dec = 32.3547
tmin = 290649601, tmax = 290908801
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='287181', job_status='RUN', time_executed='2021-09-07 01:21:51.613726', time_epoch_executed='1631002911.61' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287181

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287181/ft1_4FGL_J1310.5+3221_daily_bin198.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287181/ft1_4FGL_J1310.5+3221_daily_bin198.fits outfile=/scratch/kocevski/287181/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin198.fits ra=197.632 dec=32.3547 rad=12.0 tmin=290649601.0 tmax=290908801.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.43
user 3.19
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.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/287181/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin198.fits evtable="EVENTS" outfile="/scratch/kocevski/287181/ft1_filtered_4FGL_J1310.5+3221_daily_bin198.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287181/ft1_filtered_4FGL_J1310.5+3221_daily_bin198.fits" evtable="EVENTS" scfile=/scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits sctable="SC_DATA" outfile=/scratch/kocevski/287181/ltcube_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.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/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits
.....................!
real 16.75
user 16.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287181/ft1_filtered_4FGL_J1310.5+3221_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits sctable="SC_DATA" expcube=/scratch/kocevski/287181/ltcube_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.fits outfile=/scratch/kocevski/287181/expmap_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.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/287181/ltcube_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.fits
.....................!
real 193.59
user 187.85
sys 4.88

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1310.5+3221 @ 197.632 32.3547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/287181/ft1_filtered_4FGL_J1310.5+3221_daily_bin198.fits scfile=/scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits outfile=/scratch/kocevski/287181/cmap_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.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=197.632 yref=32.3547 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287181/ft1_filtered_4FGL_J1310.5+3221_daily_bin198.fits scfile=/scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits outfile=/scratch/kocevski/287181/cmap_HighResolution_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.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=197.632 yref=32.3547 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287181/ft1_filtered_4FGL_J1310.5+3221_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287181/Model_4FGL_J1310.5+3221_daily_bin198.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/287181/ft1_filtered_4FGL_J1310.5+3221_daily_bin198.fits.....................!
real 47.01
user 45.14
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/287181/ft1_filtered_4FGL_J1310.5+3221_daily_bin198.fits', '/scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits', expMap='/scratch/kocevski/287181/expmap_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.fits', expCube='/scratch/kocevski/287181/ltcube_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/287181/Model_4FGL_J1310.5+3221_daily_bin198.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1310.5+3221'

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.555e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.425e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
333         beta:  5.326e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/287181/ft1_filtered_4FGL_J1310.5+3221_daily_bin198.fits
Spacecraft file(s): /scratch/kocevski/287181/ft2_4FGL_J1310.5+3221_daily_bin198.fits
Exposure map: /scratch/kocevski/287181/expmap_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.fits
Exposure cube: /scratch/kocevski/287181/ltcube_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/287181/Model_4FGL_J1310.5+3221_daily_bin198.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) = 5204.31717238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3767       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7612       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2516       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.751       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0132       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0702       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3932       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4663       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0119       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49104E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9652       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    11.960       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12516E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.866       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.497       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99222       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92003       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5204.290     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3977 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3768        2.7383        .16986E-07   -.14456E-03
   2  Prefactor     .10000E-03    6.9646        .17216E-05** at limit **
   3  Prefactor     .10000E-03    1.3554        .32626E-07** at limit **
   4  Prefactor     8.7616        3.5099       -.69678E-07   -.50911E-04
   5  norm          2.2515        4.2990        .55396E-06   -.41185E-03
   6  Prefactor     14.751        9.5508       -.42760E-07    .46874E-05
   7  Prefactor     .10000E-03    7.2840       -.21091E-05** at limit **
   8  Prefactor     .10000E-03    28.545       -.16740E-05** at limit **
   9  Prefactor     .10000E-03    12.147       -.34370E-05** at limit **
  10  Prefactor     .10000E-03    3.9660       -.48806E-06** at limit **
  11  norm          4.0134        3.0876        .16900E-06    .30411E-03
  12  Prefactor     .10000E-03    8.9768       -.20039E-05** at limit **
  13  norm          2.0705        3.1612       -.17271E-06   -.39733E-03
  14  Prefactor     .10000E-03    11.080        .56049E-06** at limit **
  15  norm          .10000E-03    3.3314        .10475E-07** at limit **
  16  norm          .10000E-03    9.2872        .14993E-05** at limit **
  17  norm          1.4044        5.8324       -.33942E-05   -.68653E-04
  18  norm          4.4455        8.2062        .28848E-05   -.10020E-03
  19  norm          .10000E-03    9.4497        .23395E-05** at limit **
  20  Prefactor     2.0050        3.5446        .85578E-06    .80241E-03
  21  Prefactor     .17976E-03    11.997       -.29629E-05** at limit **
  22  norm          3.9656        4.8197        .21561E-05   -.86059E-04
  23  Prefactor     .10000E-03    86.206        .60516E-05** at limit **
  24  norm          11.961        8.9671        .15505E-06   -.72092E-04
  25  Prefactor     .10000E-03    13.637        .34305E-05** at limit **
  26  Prefactor     23.847        22.822       -.96718E-06    .47169E-05
  27  Prefactor     .10000E-03    65.287       -.10915E-05** at limit **
  28  Prefactor     11.498        5.3551        .10813E-05    .13820E-04
  29  Normalizat    .99191        .17691        .38916E-06    .42090E-03
  30  Prefactor     .92037        .21703       -.70646E-06    .28022E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.37676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.76156
  norm       = 2.25147
  Prefactor  = 14.7512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.01336
  Prefactor  = 0.0001
  norm       = 2.07051
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.40438
  norm       = 4.44548
  norm       = 0.0001
  Prefactor  = 2.005
  Prefactor  = 0.000179764
  norm       = 3.96561
  Prefactor  = 0.0001
  norm       = 11.9606
  Prefactor  = 0.0001
  Prefactor  = 23.847
  Prefactor  = 0.0001
  Prefactor  = 11.4979
  Normalizat = 0.991912
  Prefactor  = 0.92037
 **********
 **   18 **HESSE 
 **********

 FCN=   5204.290     FROM HESSE     STATUS=OK           594 CALLS     4571 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3768        2.7261        .12177E-03   -1.5400    
   2  Prefactor     .10000E-03    7.0141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3725        .81851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7616        3.5013        .79861E-04   -1.5116    
   5  norm          2.2515        4.2526        .19816E-03   -1.5408    
   6  Prefactor     14.751        9.5483        .10429E-03   -1.4940    
   7  Prefactor     .10000E-03    7.2776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.468        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.470        .27741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0134        3.0902        .10757E-03   -1.5307    
  12  Prefactor     .10000E-03    8.9604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0705        3.1527        .15310E-03   -1.5420    
  14  Prefactor     .10000E-03    11.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4502        .25692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.3207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4044        7.8128        .18467E-03   -1.5471    
  18  norm          4.4455        9.4553        .15567E-03   -1.5286    
  19  norm          .10000E-03    9.4360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0050        3.5092        .14855E-03   -1.5425    
  21  Prefactor     .17976E-03    26.531        .62736E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9656        4.7645        .16301E-03   -1.5310    
  23  Prefactor     .10000E-03    87.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.961        8.9485        .11584E-03   -1.5016    
  25  Prefactor     .10000E-03    13.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     23.847        22.850        .81995E-04   -1.4731    
  27  Prefactor     .10000E-03    65.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.498        5.3127        .10733E-03   -1.5030    
  29  Normalizat    .99191        .21527        .22105E-03   -.93302    
  30  Prefactor     .92037        .26334        .28663E-03   -.95433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45796e-09
Minuit parameter uncertainties:
  1  2.7262
  2  2.49884e-06
  3  8.21827e-07
  4  3.50141
  5  4.2532
  6  9.54933
  7  2.53755e-06
  8  9.57304e-06
  9  4.03288e-05
  10  0.000399459
  11  3.09035
  12  2.76092e-05
  13  3.15293
  14  1.59975e-05
  15  4.48049e-06
  16  3.38183e-07
  17  6.62596
  18  9.45846
  19  1.60917e-05
  20  3.50955
  21  0.0920451
  22  4.76493
  23  4.66482e-05
  24  8.94951
  25  2.42645e-06
  26  22.8586
  27  8.98579e-06
  28  5.31294
  29  0.215462
  30  0.263711
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.404e+00  6.626e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.425e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
333         beta:  5.326e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.204e-01  2.637e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  9.919e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287181/likelihoodResults_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.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) = 5204.25065582
delta logL = 0.0392473243701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5204.24584852
delta logL = 0.0440546237223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5360       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6919       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+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=   5204.246     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      289 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5356        5.3569        .23743E-03   -.21499E-04
   2  alpha         1.6914        1.5517        .31347E-01    .33111E-05
   3  Normalizat    1.0021        .20656        .22008E-03    .23098E-03
   4  Prefactor     .91338        .25915        .28764E-03    .19062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.53561
  alpha      = 1.69142
  Normalizat = 1.00206
  Prefactor  = 0.913376
 **********
 **   18 **HESSE 
 **********

 FCN=   5204.246     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5356        5.3530        .94972E-05   -1.5389    
   2  alpha         1.6914        1.5514        .12539E-02   -.32935    
   3  Normalizat    1.0021        .20669        .44016E-04   -.92961    
   4  Prefactor     .91338        .25941        .11506E-04   -.95675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26169e-11
Minuit parameter uncertainties:
  1  5.35403
  2  1.69202
  3  0.20686
  4  0.259759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287181': 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) = 5204.24584847
delta logL = 0.0440546754653

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.536e+00  5.354e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.691e+00  1.692e+00  0.000e+00  5.000e+00 ( 1.000e+00)
333         beta:  5.326e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.134e-01  2.598e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.002e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 197.632 32.355

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/287181/cmap_HighResolution_290649601_290908801_4FGL_J1310.5+3221_daily_bin198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-07 01:35:37.841899', job_id='287181', GAL2='0.91', fit_tolerance='1e-08', EG2='1.00', EG='0.99', time_epoch_completed='1631003737.84', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.41e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='198' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:35:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 287181: <4FGL_J1310.5+3221_daily_bin198> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin198> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 01:20:47 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:21:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:21:35 2021
Terminated at Tue Sep  7 01:35:38 2021
Results reported at Tue Sep  7 01:35:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin198 197.632 32.3547 290649601 290908801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1310.5+3221 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   819.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            891 sec.

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

