/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7468
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1312.8-0425_daily_bin967
RA = 198.217, Dec = -4.4196
tmin = 489974401, tmax = 490233601
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='373721', job_status='RUN', time_executed='2021-09-07 06:07:07.871543', time_epoch_executed='1631020027.87' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373721

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373721/ft1_4FGL_J1312.8-0425_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373721/ft2_4FGL_J1312.8-0425_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373721/ft1_4FGL_J1312.8-0425_daily_bin967.fits outfile=/scratch/kocevski/373721/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin967.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=489974401.0 tmax=490233601.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.77
user 3.51
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373721/ft2_4FGL_J1312.8-0425_daily_bin967.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/373721/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin967.fits evtable="EVENTS" outfile="/scratch/kocevski/373721/ft1_filtered_4FGL_J1312.8-0425_daily_bin967.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/373721/ft1_filtered_4FGL_J1312.8-0425_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/373721/ft2_4FGL_J1312.8-0425_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/373721/ltcube_489974401_490233601_4FGL_J1312.8-0425_daily_bin967.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/373721/ft2_4FGL_J1312.8-0425_daily_bin967.fits
.....................!
real 15.18
user 14.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373721/ft1_filtered_4FGL_J1312.8-0425_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/373721/ft2_4FGL_J1312.8-0425_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/373721/ltcube_489974401_490233601_4FGL_J1312.8-0425_daily_bin967.fits outfile=/scratch/kocevski/373721/expmap_489974401_490233601_4FGL_J1312.8-0425_daily_bin967.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/373721/ltcube_489974401_490233601_4FGL_J1312.8-0425_daily_bin967.fits
.....................!
real 192.11
user 186.10
sys 5.53

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/373721/ft1_filtered_4FGL_J1312.8-0425_daily_bin967.fits scfile=/scratch/kocevski/373721/ft2_4FGL_J1312.8-0425_daily_bin967.fits outfile=/scratch/kocevski/373721/cmap_489974401_490233601_4FGL_J1312.8-0425_daily_bin967.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373721/ft1_filtered_4FGL_J1312.8-0425_daily_bin967.fits scfile=/scratch/kocevski/373721/ft2_4FGL_J1312.8-0425_daily_bin967.fits outfile=/scratch/kocevski/373721/cmap_HighResolution_489974401_490233601_4FGL_J1312.8-0425_daily_bin967.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373721/ft1_filtered_4FGL_J1312.8-0425_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/373721/ft2_4FGL_J1312.8-0425_daily_bin967.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373721/Model_4FGL_J1312.8-0425_daily_bin967.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/373721/ft1_filtered_4FGL_J1312.8-0425_daily_bin967.fits.....................!
real 65.85
user 64.28
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.242       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.025       1.0000         .10000E-03   10000.    
     6 'norm      '    42.530       1.0000         .10000E-03   10000.    
     7 'norm      '    .89202       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4391       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8045       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.461       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0591       1.0000         .10000E-03   10000.    
    16 'norm      '    24.467       1.0000         .10000E-03   10000.    
    17 'norm      '    .28289E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.365       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13762E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98727       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1221       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=   8622.792     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2064 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.242        8.7507       -.14555E-07   -.77958E-04
   2  Prefactor     3.3815        5.0235        .54115E-06    .27590E-03
   3  Prefactor     .10000E-03    3.1046       -.20901E-07** at limit **
   4  Prefactor     .10001E-03    15.885        .28502E-05** at limit **
   5  Prefactor     11.023        26.636       -.62394E-06   -.64210E-04
   6  norm          42.532        23.541        .15384E-06    .51196E-04
   7  norm          .89204        .22535        .46870E-08   -.67966E-04
   8  Prefactor     .10001E-03    18.102       -.42409E-05** at limit **
   9  norm          .10000E-03    2.9468       -.91175E-08** at limit **
  10  norm          4.7009        4.2568       -.17897E-05    .10521E-02
  11  Prefactor     3.4393        6.7477        .16052E-05    .59686E-03
  12  Prefactor     .10000E-03    4.7190       -.11304E-07** at limit **
  13  Prefactor     3.8035        8.2094        .79743E-06    .19999E-03
  14  Prefactor     22.451        20.648       -.69167E-06    .25434E-03
  15  norm          4.0591        1.7478        .31723E-07    .36341E-04
  16  norm          24.457        6.4436        .71865E-07    .24741E-02
  17  norm          .10009E-03    5.8996       -.22687E-05** at limit **
  18  norm          11.366        26.156       -.45552E-08   -.15513E-04
  19  Prefactor     .10010E-03    3.2370       -.17369E-06** at limit **
  20  Prefactor     .10001E-03    29.706        .32219E-05** at limit **
  21  Normalizat    .98733        .20429       -.19186E-06    .14541E-03
  22  Prefactor     1.1221        .14189       -.96572E-07    .26258E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2421
  Prefactor  = 3.38155
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 11.0234
  norm       = 42.5322
  norm       = 0.892036
  Prefactor  = 0.000100015
  norm       = 0.0001
  norm       = 4.70093
  Prefactor  = 3.43925
  Prefactor  = 0.0001
  Prefactor  = 3.80348
  Prefactor  = 22.4513
  norm       = 4.05911
  norm       = 24.4574
  norm       = 0.000100087
  norm       = 11.3657
  Prefactor  = 0.000100099
  Prefactor  = 0.000100008
  Normalizat = 0.98733
  Prefactor  = 1.12207
 **********
 **   18 **HESSE 
 **********

 FCN=   8622.792     FROM HESSE     STATUS=OK           354 CALLS     2418 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.242        8.7500        .12520E-03   -1.5068    
   2  Prefactor     3.3815        5.0276        .22004E-03   -1.5340    
   3  Prefactor     .10000E-03    3.1249        .15973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    16.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.023        26.710        .12066E-03   -1.5044    
   6  norm          42.532        23.546        .61470E-04   -1.4403    
   7  norm          .89204        .22597        .20816E-04   -1.5519    
   8  Prefactor     .10001E-03    19.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9576        .15566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7009        4.7019        .92801E-03   -1.5274    
  11  Prefactor     3.4393        6.8396        .21810E-03   -1.5337    
  12  Prefactor     .10000E-03    4.7267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8035        8.1904        .20694E-03   -1.5318    
  14  Prefactor     22.451        20.796        .84517E-04   -1.4760    
  15  norm          4.0591        1.7483        .75227E-04   -1.5305    
  16  norm          24.457        6.1963        .80984E-04   -1.4718    
  17  norm          .10009E-03    17.904        .37023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.366        26.172        .11883E-03   -1.5034    
  19  Prefactor     .10010E-03    3.5166        .49019E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    30.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98733        .23706        .33432E-03   -.93456    
  22  Prefactor     1.1221        .16498        .22441E-03   -.88764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64508e-09
Minuit parameter uncertainties:
  1  8.75104
  2  5.02826
  3  6.62276e-07
  4  0.000667139
  5  26.7393
  6  23.551
  7  0.225967
  8  0.00107505
  9  3.73741e-08
  10  4.70228
  11  6.84115
  12  2.37038e-07
  13  8.19278
  14  20.8024
  15  1.74829
  16  6.19642
  17  0.00249159
  18  26.1979
  19  0.00118211
  20  0.00101727
  21  0.237312
  22  0.165053
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.000e-04  3.737e-08  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:  1.122e+00  1.651e-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:  9.873e-01  2.373e-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: 4.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373721/likelihoodResults_489974401_490233601_4FGL_J1312.8-0425_daily_bin967.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8622.7931777
delta logL = -0.00160417189181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8622.79157337
delta logL = 1.56094756676e-07

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.2208       1.0000          .0000       5.0000    
     3 'Normalizat'    .98734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1221       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.

 FCN=   8622.792     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      194 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3365        .90712E-02** at limit **
   2  alpha         2.2366        3.5143        .41481       -.26382E-04
   3  Normalizat    .98733        .19563        .75550E-01   -.27386E-04
   4  Prefactor     1.1221        .13975        .36803E-01    .31094E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.23655
  Normalizat = 0.987329
  Prefactor  = 1.12207
 **********
 **   18 **HESSE 
 **********

 FCN=   8622.792     FROM HESSE     STATUS=OK            27 CALLS      221 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0169        .15718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2366        3.4858        .16592E-01   -.10558    
   3  Normalizat    .98733        .22611        .33432E-03   -.93456    
   4  Prefactor     1.1221        .16182        .22441E-03   -.88764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75174e-10
Minuit parameter uncertainties:
  1  6.90313e-05
  2  2.48769
  3  0.226331
  4  0.161895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373721': 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) = 8622.79157319
delta logL = 3.31232513417e-07

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.000e-04  6.903e-05  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.237e+00  2.488e+00  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:  1.122e+00  1.619e-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:  9.873e-01  2.263e-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/373721/cmap_HighResolution_489974401_490233601_4FGL_J1312.8-0425_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-05', job_status='DONE', photon_flux_upper_limit='4.49e-08', time_completed='2021-09-07 06:19:35.675683', job_id='373721', GAL2='1.12', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631020775.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='967' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:19:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 373721: <4FGL_J1312.8-0425_daily_bin967> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin967 198.217 -4.4196 489974401 490233601 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 :                                   739.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            830 sec.

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

