/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 8 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 = 7480
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin744
RA = 197.632, Dec = 32.3547
tmin = 432172801, tmax = 432432001
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='290059', job_status='RUN', time_executed='2021-09-07 01:31:54.777167', time_epoch_executed='1631003514.78' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290059/ft1_4FGL_J1310.5+3221_daily_bin744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290059/ft2_4FGL_J1310.5+3221_daily_bin744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290059/ft1_4FGL_J1310.5+3221_daily_bin744.fits outfile=/scratch/kocevski/290059/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin744.fits ra=197.632 dec=32.3547 rad=12.0 tmin=432172801.0 tmax=432432001.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 5.39
user 4.81
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290059/ft2_4FGL_J1310.5+3221_daily_bin744.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/290059/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin744.fits evtable="EVENTS" outfile="/scratch/kocevski/290059/ft1_filtered_4FGL_J1310.5+3221_daily_bin744.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.76
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290059/ft1_filtered_4FGL_J1310.5+3221_daily_bin744.fits" evtable="EVENTS" scfile=/scratch/kocevski/290059/ft2_4FGL_J1310.5+3221_daily_bin744.fits sctable="SC_DATA" outfile=/scratch/kocevski/290059/ltcube_432172801_432432001_4FGL_J1310.5+3221_daily_bin744.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/290059/ft2_4FGL_J1310.5+3221_daily_bin744.fits
.....................!
real 15.31
user 14.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290059/ft1_filtered_4FGL_J1310.5+3221_daily_bin744.fits evtable="EVENTS" scfile=/scratch/kocevski/290059/ft2_4FGL_J1310.5+3221_daily_bin744.fits sctable="SC_DATA" expcube=/scratch/kocevski/290059/ltcube_432172801_432432001_4FGL_J1310.5+3221_daily_bin744.fits outfile=/scratch/kocevski/290059/expmap_432172801_432432001_4FGL_J1310.5+3221_daily_bin744.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/290059/ltcube_432172801_432432001_4FGL_J1310.5+3221_daily_bin744.fits
.....................!
real 195.05
user 186.54
sys 4.10

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/290059/ft1_filtered_4FGL_J1310.5+3221_daily_bin744.fits scfile=/scratch/kocevski/290059/ft2_4FGL_J1310.5+3221_daily_bin744.fits outfile=/scratch/kocevski/290059/cmap_432172801_432432001_4FGL_J1310.5+3221_daily_bin744.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.67
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290059/ft1_filtered_4FGL_J1310.5+3221_daily_bin744.fits scfile=/scratch/kocevski/290059/ft2_4FGL_J1310.5+3221_daily_bin744.fits outfile=/scratch/kocevski/290059/cmap_HighResolution_432172801_432432001_4FGL_J1310.5+3221_daily_bin744.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.64
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0171       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.314       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.185       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2861       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .57191       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15441E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.640       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.142       1.0000         .10000E-03   10000.    
    15 'norm      '    .13728E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.125       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8371       1.0000         .10000E-03   10000.    
    18 'norm      '    19.790       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4469       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.600       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0453       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92266       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=   4068.041     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     3967 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0171        2.6989        .58413E-02   -.56492E-04
   2  Prefactor     12.313        9.5316        .28538E-02   -.14455E-02
   3  Prefactor     .10000E-03    1.1075        .90712E-02** at limit **
   4  Prefactor     .10000E-03    2.8886        .90712E-02** at limit **
   5  norm          15.185        8.0980        .25696E-02   -.10223E-03
   6  Prefactor     6.2836        12.539        .40026E-02   -.15069E-03
   7  Prefactor     .10000E-03    7.3450        .90712E-02** at limit **
   8  Prefactor     .10000E-03    221.93        .90712E-02** at limit **
   9  Prefactor     .51944        6.5378        .87999E-01    .22736E-03
  10  Prefactor     .10000E-03    2.6325        .90712E-02** at limit **
  11  norm          .10000E-03    4.8147        .44410E-01** at limit **
  12  Prefactor     29.609        34.988        .18398E-02   -.17755E-03
  13  norm          .10000E-03    2.4646        .90712E-02** at limit **
  14  Prefactor     13.155        15.169        .27623E-02   -.26893E-03
  15  norm          .10000E-03    4.6823        .46775E-01** at limit **
  16  norm          13.123        17.839        .27641E-02   -.95189E-04
  17  norm          3.8289        11.163        .51507E-02   -.33232E-03
  18  norm          19.801        20.766        .22508E-02    .14067E-02
  19  norm          3.4462        63.468        .54461E-02    .60155E-04
  20  Prefactor     .10000E-03    2.5626        .90712E-02** at limit **
  21  Prefactor     .10000E-03    9.0372        .90712E-02** at limit **
  22  norm          13.600        9.5091        .27153E-02    .19913E-03
  23  Prefactor     .10000E-03    36.615        .90712E-02** at limit **
  24  norm          .10000E-03    3.5531        .90712E-02** at limit **
  25  Prefactor     .10000E-03    4.0336        .90712E-02** at limit **
  26  Prefactor     .10000E-03    8.0819        .90712E-02** at limit **
  27  Prefactor     .10000E-03    57.793        .90712E-02** at limit **
  28  Prefactor     .10000E-03    5.1943        .90712E-02** at limit **
  29  Normalizat    1.0450        .19911        .40882E-01    .46369E-05
  30  Prefactor     .92310        .24016        .65178E-01    .97368E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.01705
  Prefactor  = 12.313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.1855
  Prefactor  = 6.28363
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.519436
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 29.6087
  norm       = 0.0001
  Prefactor  = 13.1546
  norm       = 0.000100001
  norm       = 13.1227
  norm       = 3.82894
  norm       = 19.8006
  norm       = 3.44618
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 13.6
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.04503
  Prefactor  = 0.923098
 **********
 **   18 **HESSE 
 **********

 FCN=   4068.041     FROM HESSE     STATUS=OK           584 CALLS     4551 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0171        2.7007        .96179E-04   -1.5361    
   2  Prefactor     12.313        9.5317        .11415E-03   -1.5006    
   3  Prefactor     .10000E-03    1.1149        .65500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0115        .21114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.185        8.0943        .10278E-03   -1.4928    
   6  Prefactor     6.2836        12.510        .16010E-03   -1.5207    
   7  Prefactor     .10000E-03    7.3474        .16884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    224.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .51944        38.364        .31304E-02   -1.5564    
  10  Prefactor     .10000E-03    2.6369        .10104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.7618        .26042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.609        33.741        .73592E-04   -1.4619    
  13  norm          .10000E-03    2.4974        .97737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.155        14.985        .11049E-03   -1.4982    
  15  norm          .10000E-03    10.022        .26250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.123        17.842        .11056E-03   -1.4983    
  17  norm          3.8289        10.707        .18198E-03   -1.5317    
  18  norm          19.801        20.116        .90033E-04   -1.4818    
  19  norm          3.4462        62.356        .21784E-03   -1.5337    
  20  Prefactor     .10000E-03    2.6334        .19898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.600        9.4254        .10861E-03   -1.4970    
  23  Prefactor     .10000E-03    36.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.5567        .11739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.0345        .12511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.0878        .17710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    57.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.4229        .28359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0450        .23510        .22213E-03   -.91537    
  30  Prefactor     .92310        .28408        .28828E-03   -.95339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17644e-08
Minuit parameter uncertainties:
  1  2.70077
  2  9.53291
  3  8.71311e-07
  4  3.47934e-07
  5  8.09484
  6  12.5156
  7  1.6502e-05
  8  0.00171939
  9  8.9332
  10  9.98881e-07
  11  0.00036836
  12  33.7625
  13  1.0208e-06
  14  14.9893
  15  0.000211276
  16  17.8494
  17  10.7124
  18  20.1231
  19  29.3536
  20  8.20917e-07
  21  0.000198436
  22  9.42642
  23  5.1623e-05
  24  4.17941e-07
  25  1.82504e-06
  26  7.13103e-05
  27  0.000406335
  28  2.01205e-06
  29  0.235333
  30  0.284538
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.829e+00  1.071e+01  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.231e-01  2.845e-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.045e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290059/likelihoodResults_432172801_432432001_4FGL_J1310.5+3221_daily_bin744.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) = 4067.89627179
delta logL = 0.144416515344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4067.87295754
delta logL = 0.1677307584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90098       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1757       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94274       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=   4067.873     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      254 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89688        21.815        .12811E-01    .71716E-03
   2  alpha         3.1778        3.8902        .19229        .65635E-04
   3  Normalizat    1.0228        .43869E-01    .42977E-01    .46617E-05
   4  Prefactor     .94285        .54091E-01    .45548E-01    .86662E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.896877
  alpha      = 3.17777
  Normalizat = 1.02276
  Prefactor  = 0.94285
 **********
 **   18 **HESSE 
 **********

 FCN=   4067.873     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89688        63.957        .70278E-04   -1.5519    
   2  alpha         3.1778        3.6668        .95786E-02    .27454    
   3  Normalizat    1.0228        .19899        .22412E-03   -.92272    
   4  Prefactor     .94285        .24590        .28546E-03   -.94659    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.22408e-10
Minuit parameter uncertainties:
  1  15.1635
  2  6.47834
  3  0.199135
  4  0.246194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290059': 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) = 4067.87295614
delta logL = 0.167732160273

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  8.969e-01  1.516e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  3.178e+00  6.478e+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.428e-01  2.462e-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.023e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/290059/cmap_HighResolution_432172801_432432001_4FGL_J1310.5+3221_daily_bin744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-05', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-07 01:43:41.616875', job_id='290059', GAL2='0.94', fit_tolerance='1e-08', EG2='1.02', EG='1.05', time_epoch_completed='1631004221.62', return_code2='102', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.68e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='744' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:43:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 290059: <4FGL_J1310.5+3221_daily_bin744> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin744> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:31:03 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:31:23 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:31:23 2021
Terminated at Tue Sep  7 01:43:42 2021
Results reported at Tue Sep  7 01:43:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin744 197.632 32.3547 432172801 432432001 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 :                                   697.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            759 sec.

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

