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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin15
RA = 197.632, Dec = 32.3547
tmin = 243216001, tmax = 243475201
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='285686', job_status='RUN', time_executed='2021-09-07 01:20:32.597310', time_epoch_executed='1631002832.6' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285686

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285686/ft1_4FGL_J1310.5+3221_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285686/ft2_4FGL_J1310.5+3221_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285686/ft1_4FGL_J1310.5+3221_daily_bin15.fits outfile=/scratch/kocevski/285686/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin15.fits ra=197.632 dec=32.3547 rad=12.0 tmin=243216001.0 tmax=243475201.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.41
user 1.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285686/ft2_4FGL_J1310.5+3221_daily_bin15.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/285686/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/285686/ft1_filtered_4FGL_J1310.5+3221_daily_bin15.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285686/ft1_filtered_4FGL_J1310.5+3221_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/285686/ft2_4FGL_J1310.5+3221_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/285686/ltcube_243216001_243475201_4FGL_J1310.5+3221_daily_bin15.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/285686/ft2_4FGL_J1310.5+3221_daily_bin15.fits
.....................!
real 19.06
user 17.41
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285686/ft1_filtered_4FGL_J1310.5+3221_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/285686/ft2_4FGL_J1310.5+3221_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/285686/ltcube_243216001_243475201_4FGL_J1310.5+3221_daily_bin15.fits outfile=/scratch/kocevski/285686/expmap_243216001_243475201_4FGL_J1310.5+3221_daily_bin15.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/285686/ltcube_243216001_243475201_4FGL_J1310.5+3221_daily_bin15.fits
.....................!
real 192.59
user 185.90
sys 5.57

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/285686/ft1_filtered_4FGL_J1310.5+3221_daily_bin15.fits scfile=/scratch/kocevski/285686/ft2_4FGL_J1310.5+3221_daily_bin15.fits outfile=/scratch/kocevski/285686/cmap_243216001_243475201_4FGL_J1310.5+3221_daily_bin15.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.70
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285686/ft1_filtered_4FGL_J1310.5+3221_daily_bin15.fits scfile=/scratch/kocevski/285686/ft2_4FGL_J1310.5+3221_daily_bin15.fits outfile=/scratch/kocevski/285686/cmap_HighResolution_243216001_243475201_4FGL_J1310.5+3221_daily_bin15.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.462       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7805       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4125       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9673       1.0000         .10000E-03   10000.    
     5 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0630       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5076       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7680       1.0000         .10000E-03   10000.    
    11 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.699       1.0000         .10000E-03   10000.    
    13 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.174       1.0000         .10000E-03   10000.    
    17 'norm      '    11.368       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1122       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4349       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.2622       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12545E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .12140E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.177       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.6304       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0393       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68832       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=   6386.494     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3363 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.462        4.6389        .49510E-06    .84404E-04
   2  Prefactor     8.7803        6.5908        .18053E-07   -.14167E-04
   3  Prefactor     1.4127        1.7917       -.26254E-06   -.20291E-03
   4  Prefactor     5.9671        2.6188       -.15939E-06    .13266E-03
   5  norm          .10002E-03    2.0600       -.70251E-06** at limit **
   6  Prefactor     3.0629        4.0113        .85655E-06    .14106E-04
   7  Prefactor     .10000E-03    17.407        .13498E-04** at limit **
   8  Prefactor     .10000E-03    59.411        .10270E-04** at limit **
   9  Prefactor     5.5079        4.6701        .24915E-05   -.31128E-05
  10  Prefactor     6.7680        4.7995       -.10392E-05   -.24870E-03
  11  norm          .10000E-03    1.9067        .63378E-07** at limit **
  12  Prefactor     14.698        17.902        .60434E-08   -.24418E-05
  13  norm          .10000E-03    1.3255       -.14921E-06** at limit **
  14  Prefactor     .10000E-03    5.3680        .11242E-06** at limit **
  15  norm          .10000E-03    1.2647        .26632E-07** at limit **
  16  norm          14.173        12.925       -.93052E-07    .13446E-05
  17  norm          11.367        5.3464       -.62098E-07    .10166E-03
  18  norm          4.1120        6.2898       -.36710E-06   -.18640E-03
  19  norm          .10000E-03    10.321        .50384E-05** at limit **
  20  Prefactor     2.4318        2.9720        .15853E-06   -.43230E-04
  21  Prefactor     .10000E-03    14.453       -.69986E-05** at limit **
  22  norm          3.2641        3.3198       -.40445E-06   -.15195E-03
  23  Prefactor     .10000E-03    103.80       -.11786E-04** at limit **
  24  norm          .10002E-03    5.3660        .98878E-06** at limit **
  25  Prefactor     11.175        14.415       -.22729E-06    .94895E-06
  26  Prefactor     .10000E-03    8.7070       -.12824E-05** at limit **
  27  Prefactor     .10000E-03    22.437       -.10201E-04** at limit **
  28  Prefactor     7.6300        3.8755       -.23902E-06   -.35595E-04
  29  Normalizat    1.0394        .15626        .43174E-06   -.26940E-05
  30  Prefactor     .68823        .18326       -.83803E-06   -.63083E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.462
  Prefactor  = 8.7803
  Prefactor  = 1.41271
  Prefactor  = 5.96712
  norm       = 0.000100023
  Prefactor  = 3.06289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5079
  Prefactor  = 6.76797
  norm       = 0.0001
  Prefactor  = 14.6979
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.1732
  norm       = 11.3671
  norm       = 4.11199
  norm       = 0.0001
  Prefactor  = 2.4318
  Prefactor  = 0.0001
  norm       = 3.26414
  Prefactor  = 0.0001
  norm       = 0.000100023
  Prefactor  = 11.1754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.63005
  Normalizat = 1.03937
  Prefactor  = 0.688233
 **********
 **   18 **HESSE 
 **********

 FCN=   6386.494     FROM HESSE     STATUS=OK           596 CALLS     3959 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.462        4.6266        .81015E-04   -1.4872    
   2  Prefactor     8.7803        6.5892        .13527E-03   -1.5115    
   3  Prefactor     1.4127        1.7700        .11157E-03   -1.5470    
   4  Prefactor     5.9671        2.6117        .81145E-04   -1.5219    
   5  norm          .10002E-03    11.107        .22094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0629        4.0027        .17817E-03   -1.5358    
   7  Prefactor     .10000E-03    17.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5079        4.6722        .15404E-03   -1.5239    
  10  Prefactor     6.7680        4.8102        .14325E-03   -1.5188    
  11  norm          .10000E-03    1.9259        .10766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.698        17.885        .10447E-03   -1.4941    
  13  norm          .10000E-03    2.1532        .17864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3785        .18080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2664        .87752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.173        12.924        .10639E-03   -1.4955    
  17  norm          11.367        5.3605        .10157E-03   -1.5034    
  18  norm          4.1120        6.3102        .19879E-03   -1.5302    
  19  norm          .10000E-03    10.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4318        2.9461        .14227E-03   -1.5396    
  21  Prefactor     .10000E-03    14.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2641        3.2742        .14052E-03   -1.5347    
  23  Prefactor     .10000E-03    104.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10002E-03    24.936        .35055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.175        14.428        .11983E-03   -1.5039    
  26  Prefactor     .10000E-03    8.7232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.6300        3.8748        .10792E-03   -1.5155    
  29  Normalizat    1.0394        .18408        .21524E-03   -.91723    
  30  Prefactor     .68823        .21415        .31022E-03   -1.0399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0015e-09
Minuit parameter uncertainties:
  1  4.6267
  2  6.58973
  3  1.77004
  4  2.61177
  5  0.00100797
  6  4.00305
  7  7.94893e-06
  8  8.09974e-06
  9  4.67246
  10  4.81045
  11  8.04039e-07
  12  17.8912
  13  6.6799e-06
  14  8.92328e-06
  15  1.5955e-06
  16  12.9267
  17  5.36073
  18  6.31123
  19  4.89751e-06
  20  2.94632
  21  3.79539e-05
  22  3.27438
  23  0.000149447
  24  0.0015149
  25  14.4327
  26  3.41076e-06
  27  5.26257e-06
  28  3.8749
  29  0.184195
  30  0.214409
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.137e+01  5.361e+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:  6.882e-01  2.144e-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.039e+00  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.38
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 9.96e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 1.68e-05

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) = 6386.49291029
delta logL = 0.00139329429658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6386.4891973
delta logL = 0.00510628470238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.050       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3855       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68516       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.

 FCN=   6386.489     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.053        72.913        .28850E-02    .14123E-03
   2  alpha         2.3855        2.0762        .14936        .10709E-03
   3  Normalizat    1.0431        .93862E-01    .41035E-01    .61994E-05
   4  Prefactor     .68528        .81308E-01    .70237E-01    .21281E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0528
  alpha      = 2.38549
  Normalizat = 1.04312
  Prefactor  = 0.685277
 **********
 **   18 **HESSE 
 **********

 FCN=   6386.489     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.053        9.1793        .10554E-03   -1.5013    
   2  alpha         2.3855        .42436        .59946E-02   -.45820E-01
   3  Normalizat    1.0431        .18294        .21492E-03   -.91599    
   4  Prefactor     .68528        .21429        .31084E-03   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86218e-12
Minuit parameter uncertainties:
  1  9.18039
  2  0.426428
  3  0.183052
  4  0.214545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285686': 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) = 6386.48919696
delta logL = 0.00510662147644

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.205e+01  9.180e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.385e+00  4.264e-01  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:  6.853e-01  2.145e-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.043e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.58
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.39 +/- 0.43
Photon Flux (Free Index): 9.66e-08 +/- 4.89e-08
Energy Flux (Free Index): 3.64e-05 +/- 1.73e-05

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/285686/cmap_HighResolution_243216001_243475201_4FGL_J1310.5+3221_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.96e-08', energy_flux2='3.64e-05', photon_flux_error='4.69e-08', dlogl='5.11e-03', energy_flux='3.56e-05', photon_flux2='9.66e-08', job_status='DONE', time_completed='2021-09-07 01:32:32.259649', photon_index_error2='0.43', photon_index2='2.39', ts='15.38', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.04', time_epoch_completed='1631003552.26', return_code='0', job_id='285686', GAL2='0.69', EG2='1.04', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='4.89e-08', ts2='15.58', photon_index='2.42' WHERE bin_id='15' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:32:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 285686: <4FGL_J1310.5+3221_daily_bin15> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin15> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:16:06 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:16:40 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:16:40 2021
Terminated at Tue Sep  7 01:32:33 2021
Results reported at Tue Sep  7 01:32:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin15 197.632 32.3547 243216001 243475201 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 :                                   716.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            987 sec.

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

