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


Performing analysis on: 4FGL_J1312.8-0425_daily_bin931
RA = 198.217, Dec = -4.4196
tmin = 480643201, tmax = 480902401
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='373665', job_status='RUN', time_executed='2021-09-07 06:06:47.595611', time_epoch_executed='1631020007.6' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373665/ft1_4FGL_J1312.8-0425_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373665/ft2_4FGL_J1312.8-0425_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373665/ft1_4FGL_J1312.8-0425_daily_bin931.fits outfile=/scratch/kocevski/373665/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin931.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=480643201.0 tmax=480902401.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.64
user 3.38
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373665/ft2_4FGL_J1312.8-0425_daily_bin931.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/373665/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin931.fits evtable="EVENTS" outfile="/scratch/kocevski/373665/ft1_filtered_4FGL_J1312.8-0425_daily_bin931.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.57
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373665/ft1_filtered_4FGL_J1312.8-0425_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/373665/ft2_4FGL_J1312.8-0425_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/373665/ltcube_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.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/373665/ft2_4FGL_J1312.8-0425_daily_bin931.fits
.....................!
real 17.96
user 17.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373665/ft1_filtered_4FGL_J1312.8-0425_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/373665/ft2_4FGL_J1312.8-0425_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/373665/ltcube_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.fits outfile=/scratch/kocevski/373665/expmap_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.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/373665/ltcube_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.fits
.....................!
real 194.72
user 188.30
sys 5.70

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/373665/ft1_filtered_4FGL_J1312.8-0425_daily_bin931.fits scfile=/scratch/kocevski/373665/ft2_4FGL_J1312.8-0425_daily_bin931.fits outfile=/scratch/kocevski/373665/cmap_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373665/ft1_filtered_4FGL_J1312.8-0425_daily_bin931.fits scfile=/scratch/kocevski/373665/ft2_4FGL_J1312.8-0425_daily_bin931.fits outfile=/scratch/kocevski/373665/cmap_HighResolution_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373665/ft1_filtered_4FGL_J1312.8-0425_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/373665/ft2_4FGL_J1312.8-0425_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373665/Model_4FGL_J1312.8-0425_daily_bin931.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/373665/ft1_filtered_4FGL_J1312.8-0425_daily_bin931.fits.....................!
real 63.86
user 60.86
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/373665/ft1_filtered_4FGL_J1312.8-0425_daily_bin931.fits', '/scratch/kocevski/373665/ft2_4FGL_J1312.8-0425_daily_bin931.fits', expMap='/scratch/kocevski/373665/expmap_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.fits', expCube='/scratch/kocevski/373665/ltcube_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/373665/Model_4FGL_J1312.8-0425_daily_bin931.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/373665/ft1_filtered_4FGL_J1312.8-0425_daily_bin931.fits
Spacecraft file(s): /scratch/kocevski/373665/ft2_4FGL_J1312.8-0425_daily_bin931.fits
Exposure map: /scratch/kocevski/373665/expmap_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.fits
Exposure cube: /scratch/kocevski/373665/ltcube_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/373665/Model_4FGL_J1312.8-0425_daily_bin931.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) = 7884.34775137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.084       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.612       1.0000         .10000E-03   10000.    
     9 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.934       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.117       1.0000         .10000E-03   10000.    
    15 'norm      '    .27066       1.0000         .10000E-03   10000.    
    16 'norm      '    9.4489       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2153       1.0000         .10000E-03   10000.    
    18 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4311       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2315       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93258       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=   7884.336     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2340 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.085        12.633        .22249E-06   -.24383E-04
   2  Prefactor     .10000E-03    3.5679        .42340E-07** at limit **
   3  Prefactor     .10000E-03    2.3657        .79883E-08** at limit **
   4  Prefactor     .10000E-03    36.593       -.10727E-07** at limit **
   5  Prefactor     .10000E-03    11.540       -.13193E-06** at limit **
   6  norm          .10000E-03    7.7345        .76667E-06** at limit **
   7  norm          2.2468        .33408        .31294E-07   -.22315E-03
   8  Prefactor     11.608        52.478       -.83011E-05   -.31697E-05
   9  norm          .10000E-03    3.9671       -.24392E-07** at limit **
  10  norm          .10000E-03    2.2747        .46162E-08** at limit **
  11  Prefactor     .10000E-03    4.6714        .18500E-07** at limit **
  12  Prefactor     16.944        26.250        .73855E-05    .17542E-04
  13  Prefactor     .10000E-03    7.1005       -.10825E-05** at limit **
  14  Prefactor     23.126        27.428        .68634E-05   -.11897E-04
  15  norm          .27203        .87635       -.57603E-06   -.12745E-02
  16  norm          9.4488        6.4287       -.97312E-06   -.47783E-04
  17  norm          3.2135        6.2600        .35232E-07   -.55573E-03
  18  norm          .10000E-03    61.056        .97702E-06** at limit **
  19  Prefactor     5.4318        4.3227        .21537E-06   -.19503E-03
  20  Prefactor     .10000E-03    7.0886        .40682E-06** at limit **
  21  Normalizat    1.2309        .21844       -.22012E-05    .18641E-03
  22  Prefactor     .93300        .13974        .23983E-06    .16912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.24681
  Prefactor  = 11.6081
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9441
  Prefactor  = 0.0001
  Prefactor  = 23.1263
  norm       = 0.272026
  norm       = 9.4488
  norm       = 3.21347
  norm       = 0.0001
  Prefactor  = 5.43175
  Prefactor  = 0.0001
  Normalizat = 1.23086
  Prefactor  = 0.932999
 **********
 **   18 **HESSE 
 **********

 FCN=   7884.336     FROM HESSE     STATUS=OK           342 CALLS     2682 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.085        12.627        .83371E-04   -1.4747    
   2  Prefactor     .10000E-03    3.5780        .16379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3702        .13336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.7403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2468        .33522        .18645E-04   -1.5408    
   8  Prefactor     11.608        52.628        .11756E-03   -1.5026    
   9  norm          .10000E-03    3.9801        .17268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.2752        .13079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.944        26.292        .97328E-04   -1.4884    
  13  Prefactor     .10000E-03    7.3346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.126        27.518        .83310E-04   -1.4746    
  15  norm          .27203        1.2197        .14333E-02   -1.5604    
  16  norm          9.4488        6.4548        .11352E-03   -1.5093    
  17  norm          3.2135        6.2242        .22593E-03   -1.5349    
  18  norm          .10000E-03    61.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4318        4.3144        .15859E-03   -1.5242    
  20  Prefactor     .10000E-03    7.0960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2309        .25766        .30901E-03   -.85654    
  22  Prefactor     .93300        .16612        .23901E-03   -.94997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10685e-09
Minuit parameter uncertainties:
  1  12.628
  2  3.70732e-06
  3  1.80862e-06
  4  3.84401e-05
  5  2.46313e-06
  6  2.65187e-06
  7  0.335218
  8  49.5053
  9  3.66694e-06
  10  5.95723e-07
  11  1.04943e-05
  12  26.3095
  13  4.37837e-06
  14  27.5334
  15  1.15185
  16  6.45523
  17  6.22546
  18  5.27943e-05
  19  4.31463
  20  3.5226e-06
  21  0.25793
  22  0.166215
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.000e-04  3.667e-06  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:  9.330e-01  1.662e-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.231e+00  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 198.217 -4.420
Photon Flux Upper Limit: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373665/likelihoodResults_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.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) = 7884.33685327
delta logL = -0.00119477186945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7884.33565851
delta logL = -7.36508809496e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2071       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93301       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=   7884.336     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      236 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9313        .17270E-02** at limit **
   2  alpha         2.3399        3.6313        .16606       -.25810E-07
   3  Normalizat    1.2309        .23755        .30901E-03   -.49557E-04
   4  Prefactor     .93300        .16352        .23901E-03   -.65641E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.33989
  Normalizat = 1.23086
  Prefactor  = 0.933001
 **********
 **   18 **HESSE 
 **********

 FCN=   7884.336     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9995        .34539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3399        3.0325        .66423E-02   -.64087E-01
   3  Normalizat    1.2309        .23778        .12360E-04   -.85655    
   4  Prefactor     .93300        .16368        .95603E-05   -.94997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09607e-11
Minuit parameter uncertainties:
  1  7.45236e-06
  2  413.969
  3  0.237988
  4  0.163765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373665': 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) = 7884.33565844
delta logL = 5.90798663325e-08

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.000e-04  7.452e-06  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.340e+00  4.140e+02  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:  9.330e-01  1.638e-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.231e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 198.217 -4.420

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/373665/cmap_HighResolution_480643201_480902401_4FGL_J1312.8-0425_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-05', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-07 06:19:10.897487', job_id='373665', GAL2='0.93', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631020750.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='5.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='931' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:19:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 373665: <4FGL_J1312.8-0425_daily_bin931> in cluster <slac> Done

Job <4FGL_J1312.8-0425_daily_bin931> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 06:05:41 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:06:38 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:38 2021
Terminated at Tue Sep  7 06:19:11 2021
Results reported at Tue Sep  7 06:19:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin931 198.217 -4.4196 480643201 480902401 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 :                                   735.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            810 sec.

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

