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


Performing analysis on: 4FGL_J1312.8-0425_daily_bin895
RA = 198.217, Dec = -4.4196
tmin = 471312001, tmax = 471571201
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='373607', job_status='RUN', time_executed='2021-09-07 06:06:35.011651', time_epoch_executed='1631019995.01' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373607/ft1_4FGL_J1312.8-0425_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373607/ft1_4FGL_J1312.8-0425_daily_bin895.fits outfile=/scratch/kocevski/373607/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin895.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=471312001.0 tmax=471571201.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.20
user 4.88
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.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/373607/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin895.fits evtable="EVENTS" outfile="/scratch/kocevski/373607/ft1_filtered_4FGL_J1312.8-0425_daily_bin895.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373607/ft1_filtered_4FGL_J1312.8-0425_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/373607/ltcube_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.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/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits
.....................!
real 15.46
user 15.05
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373607/ft1_filtered_4FGL_J1312.8-0425_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/373607/ltcube_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.fits outfile=/scratch/kocevski/373607/expmap_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.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/373607/ltcube_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.fits
.....................!
real 192.00
user 186.78
sys 4.81

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

Setting source of interest to:
4FGL J1312.8-0425 @ 198.217 -4.4196

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/373607/ft1_filtered_4FGL_J1312.8-0425_daily_bin895.fits scfile=/scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits outfile=/scratch/kocevski/373607/cmap_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.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=198.217 yref=-4.4196 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373607/ft1_filtered_4FGL_J1312.8-0425_daily_bin895.fits scfile=/scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits outfile=/scratch/kocevski/373607/cmap_HighResolution_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.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=198.217 yref=-4.4196 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.62
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373607/ft1_filtered_4FGL_J1312.8-0425_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373607/Model_4FGL_J1312.8-0425_daily_bin895.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/373607/ft1_filtered_4FGL_J1312.8-0425_daily_bin895.fits.....................!
real 60.98
user 59.27
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/373607/ft1_filtered_4FGL_J1312.8-0425_daily_bin895.fits', '/scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits', expMap='/scratch/kocevski/373607/expmap_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.fits', expCube='/scratch/kocevski/373607/ltcube_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/373607/Model_4FGL_J1312.8-0425_daily_bin895.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1312.8-0425'

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  7.815e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.205e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/373607/ft1_filtered_4FGL_J1312.8-0425_daily_bin895.fits
Spacecraft file(s): /scratch/kocevski/373607/ft2_4FGL_J1312.8-0425_daily_bin895.fits
Exposure map: /scratch/kocevski/373607/expmap_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.fits
Exposure cube: /scratch/kocevski/373607/ltcube_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/373607/Model_4FGL_J1312.8-0425_daily_bin895.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) = 7467.98915488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3914       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6807       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.048       1.0000         .10000E-03   10000.    
     6 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2063       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.512       1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4900       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8341       1.0000         .10000E-03   10000.    
    18 'norm      '    .12258E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5698       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7467.943     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2027 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3948        5.5194       -.55861E-05   -.64308E-03
   2  Prefactor     5.6832        9.4116        .18688E-06   -.11977E-03
   3  Prefactor     .10000E-03    2.7360        .23640E-07** at limit **
   4  Prefactor     .10000E-03    27.237        .64951E-05** at limit **
   5  Prefactor     11.821        53.887       -.30774E-05    .13406E-04
   6  norm          .10000E-03    12.051        .97150E-05** at limit **
   7  norm          2.2073        .36493        .23564E-07   -.16091E-03
   8  Prefactor     .10000E-03    27.638       -.69468E-05** at limit **
   9  norm          11.509        9.7770       -.10445E-05   -.11890E-02
  10  norm          .10000E-03    18.516        .62864E-06** at limit **
  11  Prefactor     .10000E-03    6.5877       -.14170E-06** at limit **
  12  Prefactor     .10000E-03    7.6650        .14838E-06** at limit **
  13  Prefactor     .10000E-03    3.0668        .11948E-08** at limit **
  14  Prefactor     .10000E-03    11.487       -.75965E-05** at limit **
  15  norm          .10000E-03    .35729        .14107E-08** at limit **
  16  norm          3.4900        2.8207       -.65537E-07    .25230E-03
  17  norm          5.8384        5.2543        .21232E-06   -.71929E-04
  18  norm          .10000E-03    81.335        .10859E-05** at limit **
  19  Prefactor     .10000E-03    2.0439       -.10722E-07** at limit **
  20  Prefactor     .10000E-03    13.098       -.27180E-05** at limit **
  21  Normalizat    1.5697        .20683        .22579E-06    .93604E-04
  22  Prefactor     .74421        .13840        .29648E-06    .83490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39477
  Prefactor  = 5.68319
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.8214
  norm       = 0.000100003
  norm       = 2.20727
  Prefactor  = 0.000100002
  norm       = 11.5085
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 3.48997
  norm       = 5.83842
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.5697
  Prefactor  = 0.744208
 **********
 **   18 **HESSE 
 **********

 FCN=   7467.943     FROM HESSE     STATUS=OK           334 CALLS     2361 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3948        6.2848        .36836E-03   -1.5472    
   2  Prefactor     5.6832        9.4028        .16853E-03   -1.5231    
   3  Prefactor     .10000E-03    2.7440        .13959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.821        55.328        .11541E-03   -1.5020    
   6  norm          .10000E-03    11.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2073        .37078        .18815E-04   -1.5411    
   8  Prefactor     .10000E-03    27.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.509        10.074        .59036E-03   -1.5029    
  10  norm          .10000E-03    19.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.6636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0757        .14776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .36190        .50409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4900        2.8143        .12069E-03   -1.5334    
  17  norm          5.8384        5.2442        .16627E-03   -1.5225    
  18  norm          .10000E-03    83.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0601        .12063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5697        .24184        .27717E-03   -.75838    
  22  Prefactor     .74421        .16143        .25684E-03   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95991e-09
Minuit parameter uncertainties:
  1  5.92225
  2  9.40525
  3  4.24555e-06
  4  0.000364923
  5  51.2265
  6  0.000362212
  7  0.370779
  8  0.000408723
  9  10.0759
  10  4.61388e-05
  11  2.78147e-06
  12  4.32598e-06
  13  2.8101e-07
  14  0.000288154
  15  1.02746e-07
  16  2.81439
  17  5.24466
  18  0.000185757
  19  9.68242e-07
  20  0.000105718
  21  0.242022
  22  0.161536
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.151e+01  1.008e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.205e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.442e-01  1.615e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.570e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 198.217 -4.420
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.83e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.24e-05

TS (Fixed Index): 1.88
Ra Dec: 198.217 -4.420
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373607/likelihoodResults_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.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) = 7467.89222177
delta logL = 0.0506939702136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7467.88660765
delta logL = 0.0563080842276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.602       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5111       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75039       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+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=   7467.887     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      235 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.600        10.524        .12305E-03    .18923E-02
   2  alpha         2.5117        .97212        .23534E-01    .17560E-03
   3  Normalizat    1.5569        .24408        .27806E-03   -.32560E-03
   4  Prefactor     .75038        .16206        .25588E-03   -.51439E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.6002
  alpha      = 2.51171
  Normalizat = 1.5569
  Prefactor  = 0.750377
 **********
 **   18 **HESSE 
 **********

 FCN=   7467.887     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.600        10.166        .24611E-04   -1.5057    
   2  alpha         2.5117        .93988        .94138E-03    .46832E-02
   3  Normalizat    1.5569        .24398        .55613E-04   -.76192    
   4  Prefactor     .75038        .16201        .51177E-04   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68471e-09
Minuit parameter uncertainties:
  1  10.168
  2  0.96356
  3  0.244164
  4  0.162108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373607': 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) = 7467.88660744
delta logL = 0.0563082923081

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.060e+01  1.017e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.512e+00  9.636e-01  0.000e+00  5.000e+00 ( 1.000e+00)
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.504e-01  1.621e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.557e+00  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 198.217 -4.420
Photon Index (Free Index): 2.51 +/- 0.96
Photon Flux (Free Index): 4.75e-08 +/- 4.83e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/373607/cmap_HighResolution_471312001_471571201_4FGL_J1312.8-0425_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', comment='SUCCESS', photon_flux='3.83e-08', energy_flux2='1.35e-05', photon_flux_error='3.35e-08', dlogl='5.63e-02', energy_flux='1.42e-05', photon_flux2='4.75e-08', job_status='DONE', time_completed='2021-09-07 06:18:05.264243', photon_index_error2='0.96', photon_index2='2.51', ts='1.88', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.16e-05', EG='1.57', time_epoch_completed='1631020685.26', return_code='0', job_id='373607', GAL2='0.75', EG2='1.56', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.83e-08', ts2='1.99', photon_index='2.21' WHERE bin_id='895' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:18:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 373607: <4FGL_J1312.8-0425_daily_bin895> in cluster <slac> Done

Job <4FGL_J1312.8-0425_daily_bin895> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 06:05:37 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:06:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 06:06:21 2021
Terminated at Tue Sep  7 06:18:06 2021
Results reported at Tue Sep  7 06:18:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin895 198.217 -4.4196 471312001 471571201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.8-0425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   686.00 sec.
    Max Memory :                                 1075 MB
    Average Memory :                             337.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            749 sec.

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

