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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin181
RA = 197.632, Dec = 32.3547
tmin = 286243201, tmax = 286502401
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='287154', job_status='RUN', time_executed='2021-09-07 01:21:40.548624', time_epoch_executed='1631002900.55' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287154/ft1_4FGL_J1310.5+3221_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287154/ft2_4FGL_J1310.5+3221_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287154/ft1_4FGL_J1310.5+3221_daily_bin181.fits outfile=/scratch/kocevski/287154/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin181.fits ra=197.632 dec=32.3547 rad=12.0 tmin=286243201.0 tmax=286502401.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.56
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287154/ft2_4FGL_J1310.5+3221_daily_bin181.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/287154/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin181.fits evtable="EVENTS" outfile="/scratch/kocevski/287154/ft1_filtered_4FGL_J1310.5+3221_daily_bin181.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.77
user 0.37
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287154/ft1_filtered_4FGL_J1310.5+3221_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/287154/ft2_4FGL_J1310.5+3221_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/287154/ltcube_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.fits outfile=/scratch/kocevski/287154/expmap_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.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/287154/ltcube_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.fits
.....................!
real 195.39
user 190.00
sys 4.66

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/287154/ft1_filtered_4FGL_J1310.5+3221_daily_bin181.fits scfile=/scratch/kocevski/287154/ft2_4FGL_J1310.5+3221_daily_bin181.fits outfile=/scratch/kocevski/287154/cmap_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287154/ft1_filtered_4FGL_J1310.5+3221_daily_bin181.fits scfile=/scratch/kocevski/287154/ft2_4FGL_J1310.5+3221_daily_bin181.fits outfile=/scratch/kocevski/287154/cmap_HighResolution_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.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.61
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/287154/ft1_filtered_4FGL_J1310.5+3221_daily_bin181.fits', '/scratch/kocevski/287154/ft2_4FGL_J1310.5+3221_daily_bin181.fits', expMap='/scratch/kocevski/287154/expmap_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.fits', expCube='/scratch/kocevski/287154/ltcube_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/287154/Model_4FGL_J1310.5+3221_daily_bin181.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/287154/ft1_filtered_4FGL_J1310.5+3221_daily_bin181.fits
Spacecraft file(s): /scratch/kocevski/287154/ft2_4FGL_J1310.5+3221_daily_bin181.fits
Exposure map: /scratch/kocevski/287154/expmap_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.fits
Exposure cube: /scratch/kocevski/287154/ltcube_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/287154/Model_4FGL_J1310.5+3221_daily_bin181.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) = 5452.04135755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7875       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5938       1.0000         .10000E-03   10000.    
     5 'norm      '    8.9903       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0459       1.0000         .10000E-03   10000.    
    11 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36694       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5171       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.094       1.0000         .10000E-03   10000.    
    15 'norm      '    .12155E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.947       1.0000         .10000E-03   10000.    
    17 'norm      '    .14718E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1583       1.0000         .10000E-03   10000.    
    19 'norm      '    55.700       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0479       1.0000         .10000E-03   10000.    
    22 'norm      '    .10548E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    52.643       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .45623E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .59261       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3426       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=   5451.953     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4027 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6139        3.5034       -.18158E-07   -.90546E-04
   2  Prefactor     .10000E-03    3.3972       -.35482E-07** at limit **
   3  Prefactor     4.7873        2.7444        .16526E-07   -.28324E-04
   4  Prefactor     2.5935        2.2912       -.28217E-07   -.22179E-03
   5  norm          8.9898        4.9910       -.91165E-07    .11115E-03
   6  Prefactor     21.867        12.150        .11120E-06   -.89183E-04
   7  Prefactor     .10000E-03    7.1893       -.19935E-05** at limit **
   8  Prefactor     .10000E-03    32.536       -.48805E-06** at limit **
   9  Prefactor     .10000E-03    4.1788       -.95359E-07** at limit **
  10  Prefactor     6.0460        5.7202       -.42393E-06    .13486E-03
  11  norm          .10000E-03    3.7101        .17074E-07** at limit **
  12  Prefactor     .41391        23.777        .16132E-05   -.38879E-03
  13  norm          1.5168        2.3836       -.14444E-06   -.31508E-03
  14  Prefactor     26.082        19.648       -.34240E-06   -.20697E-03
  15  norm          .10000E-03    4.4305        .76041E-07** at limit **
  16  norm          12.945        13.875       -.13891E-06    .22972E-04
  17  norm          .10000E-03    2.1357        .21143E-05** at limit **
  18  norm          5.1687        5.5404       -.38706E-05   -.22607E-03
  19  norm          55.700        27.812        .15817E-06   -.93845E-04
  20  Prefactor     .10000E-03    1.2177        .11793E-07** at limit **
  21  Prefactor     6.0592        12.929       -.27435E-06   -.39768E-03
  22  norm          .10000E-03    6.2617        .15723E-05** at limit **
  23  Prefactor     .10000E-03    14.782       -.95394E-06** at limit **
  24  norm          52.643        13.930        .84496E-07   -.28408E-03
  25  Prefactor     .10004E-03    10.858        .16131E-06** at limit **
  26  Prefactor     .10000E-03    8.8157        .40565E-07** at limit **
  27  Prefactor     .10000E-03    73.962        .92277E-06** at limit **
  28  Prefactor     .10000E-03    1.2691        .86205E-08** at limit **
  29  Normalizat    .59246        .16690       -.89199E-06   -.43000E-03
  30  Prefactor     1.3430        .20936        .68815E-06   -.46229E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.61392
  Prefactor  = 0.0001
  Prefactor  = 4.78726
  Prefactor  = 2.59353
  norm       = 8.98982
  Prefactor  = 21.867
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.046
  norm       = 0.0001
  Prefactor  = 0.413908
  norm       = 1.51677
  Prefactor  = 26.0817
  norm       = 0.0001
  norm       = 12.9446
  norm       = 0.000100003
  norm       = 5.16869
  norm       = 55.6996
  Prefactor  = 0.0001
  Prefactor  = 6.05922
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 52.6429
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.592465
  Prefactor  = 1.34301
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.953     FROM HESSE     STATUS=OK           596 CALLS     4623 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6139        3.5117        .10963E-03   -1.5278    
   2  Prefactor     .10000E-03    3.4064        .13290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7873        2.7540        .84496E-04   -1.5270    
   4  Prefactor     2.5935        2.2797        .99759E-04   -1.5386    
   5  norm          8.9898        4.9889        .11912E-03   -1.5108    
   6  Prefactor     21.867        12.143        .85651E-04   -1.4772    
   7  Prefactor     .10000E-03    7.0898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2106        .14738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0460        5.7013        .15813E-03   -1.5216    
  11  norm          .10000E-03    3.8050        .27630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .41391        29.480        .89815E-01   -1.5579    
  13  norm          1.5168        2.3577        .13862E-03   -1.5462    
  14  Prefactor     26.082        19.636        .78421E-04   -1.4686    
  15  norm          .10000E-03    4.4806        .15118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.945        13.876        .11132E-03   -1.4988    
  17  norm          .10000E-03    16.833        .18461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1687        5.7051        .17450E-03   -1.5253    
  19  norm          55.700        27.792        .53748E-04   -1.4214    
  20  Prefactor     .10000E-03    1.2265        .79315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0592        12.856        .16326E-03   -1.5216    
  22  norm          .10000E-03    6.2440        .17905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          52.643        13.901        .55278E-04   -1.4256    
  25  Prefactor     .10004E-03    15.999        .71000E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.8404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    74.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.2887        .81208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .59246        .19914        .27425E-03   -1.0830    
  30  Prefactor     1.3430        .25016        .24595E-03   -.82037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45866e-09
Minuit parameter uncertainties:
  1  3.51185
  2  3.57659e-06
  3  2.7541
  4  2.27977
  5  4.98916
  6  12.1442
  7  0.000208326
  8  9.80544e-05
  9  7.79397e-06
  10  5.70185
  11  9.2453e-06
  12  6.98905
  13  2.35786
  14  19.6404
  15  6.3171e-06
  16  13.8792
  17  0.000437055
  18  5.70574
  19  27.7989
  20  2.01917e-06
  21  12.8623
  22  0.000164984
  23  0.00014458
  24  13.9022
  25  0.00162788
  26  5.64235e-06
  27  0.00028604
  28  1.7995e-07
  29  0.199377
  30  0.25038
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  4.371e-04  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:  1.343e+00  2.504e-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:  5.925e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/287154/likelihoodResults_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.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) = 5451.95353098
delta logL = -0.00028729677706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5451.95324737
delta logL = -3.68210385204e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37796E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3139       1.0000          .0000       5.0000    
     3 'Normalizat'    .59247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3431       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5451.953     FROM MIGRAD    STATUS=FAILED        97 CALLS      275 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10531E-03    280.28        .20113E-02** at limit **
   2  alpha         2.1747        3.8142        .50000        .24569E-05
   3  Normalizat    .59247        .97449E-02    .27425E-03    .25751E-03
   4  Prefactor     1.3430        .12747E-01    .24595E-03    .24275E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5451.953     FROM SIMPLEX   STATUS=UNCHANGED    113 CALLS      388 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10531E-03    280.28        .13523E-02** at limit **
   2  alpha         2.1747        3.8142        .86846E-04    .24569E-05
   3  Normalizat    .59247        .97449E-02    .45704E-06    .25751E-03
   4  Prefactor     1.3430        .12747E-01    .51714E-06    .24275E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5451.953     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      424 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10105E-03    1196.0        .40226E-03** at limit **
   2  alpha         2.1918        3.9037        .50000        .42557E-05
   3  Normalizat    .59247        .20882E-01    .10970E-04    .25266E-03
   4  Prefactor     1.3430        .27314E-01    .49190E-04    .23680E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101052
  alpha      = 2.19185
  Normalizat = 0.592467
  Prefactor  = 1.34301
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.953     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      453 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10105E-03    6747.8        .80452E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1918        2.7337        .50000       -.12358    
   3  Normalizat    .59247        .40496E-01    .21940E-05   -1.0830    
   4  Prefactor     1.3430        .52954E-01    .98380E-05   -.82037    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73871e-08
Minuit parameter uncertainties:
  1  0.129764
  2  857.826
  3  0.0404977
  4  0.0529564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287154': 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) = 5451.95324178
delta logL = 1.9063545551e-06

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.011e-04  1.298e-01  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.192e+00  8.578e+02  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:  1.343e+00  5.296e-02  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:  5.925e-01  4.050e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/287154/cmap_HighResolution_286243201_286502401_4FGL_J1310.5+3221_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-07 01:35:48.886981', job_id='287154', GAL2='1.34', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1631003748.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='181' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:35:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 287154: <4FGL_J1310.5+3221_daily_bin181> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin181> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 01:20:45 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:21:26 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:26 2021
Terminated at Tue Sep  7 01:35:49 2021
Results reported at Tue Sep  7 01:35:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin181 197.632 32.3547 286243201 286502401 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 :                                   840.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            904 sec.

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

