/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 4 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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1312.8-0425_daily_bin226
RA = 198.217, Dec = -4.4196
tmin = 297907201, tmax = 298166401
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='367172', job_status='RUN', time_executed='2021-09-07 05:48:04.345521', time_epoch_executed='1631018884.35' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367172/ft1_4FGL_J1312.8-0425_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367172/ft2_4FGL_J1312.8-0425_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367172/ft1_4FGL_J1312.8-0425_daily_bin226.fits outfile=/scratch/kocevski/367172/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin226.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=297907201.0 tmax=298166401.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.61
user 3.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367172/ft1_filtered_4FGL_J1312.8-0425_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/367172/ft2_4FGL_J1312.8-0425_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/367172/ltcube_297907201_298166401_4FGL_J1312.8-0425_daily_bin226.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/367172/ft2_4FGL_J1312.8-0425_daily_bin226.fits
.....................!
real 14.79
user 14.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367172/ft1_filtered_4FGL_J1312.8-0425_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/367172/ft2_4FGL_J1312.8-0425_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/367172/ltcube_297907201_298166401_4FGL_J1312.8-0425_daily_bin226.fits outfile=/scratch/kocevski/367172/expmap_297907201_298166401_4FGL_J1312.8-0425_daily_bin226.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/367172/ltcube_297907201_298166401_4FGL_J1312.8-0425_daily_bin226.fits
.....................!
real 191.74
user 186.42
sys 4.60

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/367172/ft1_filtered_4FGL_J1312.8-0425_daily_bin226.fits scfile=/scratch/kocevski/367172/ft2_4FGL_J1312.8-0425_daily_bin226.fits outfile=/scratch/kocevski/367172/cmap_297907201_298166401_4FGL_J1312.8-0425_daily_bin226.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.63
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367172/ft1_filtered_4FGL_J1312.8-0425_daily_bin226.fits scfile=/scratch/kocevski/367172/ft2_4FGL_J1312.8-0425_daily_bin226.fits outfile=/scratch/kocevski/367172/cmap_HighResolution_297907201_298166401_4FGL_J1312.8-0425_daily_bin226.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367172/ft1_filtered_4FGL_J1312.8-0425_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/367172/ft2_4FGL_J1312.8-0425_daily_bin226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367172/Model_4FGL_J1312.8-0425_daily_bin226.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/367172/ft1_filtered_4FGL_J1312.8-0425_daily_bin226.fits....................!
real 70.03
user 68.28
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2080       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5721       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .74204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2451       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.3648       1.0000         .10000E-03   10000.    
    16 'norm      '    .11847E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.8005       1.0000         .10000E-03   10000.    
    18 'norm      '    7.2438       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .72017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.670       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98066       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99027       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=   8739.283     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2036 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2079        6.6283        .44725E-07   -.50285E-04
   2  Prefactor     17.433        9.9845        .88361E-07   -.25145E-04
   3  Prefactor     7.5716        6.6929        .56470E-07   -.17077E-04
   4  Prefactor     .10000E-03    8.6558        .57846E-07** at limit **
   5  Prefactor     .10000E-03    24.467        .36604E-05** at limit **
   6  norm          .10000E-03    33.299       -.26865E-05** at limit **
   7  norm          .74200        .19555        .17488E-07   -.18755E-03
   8  Prefactor     .10000E-03    13.808        .16500E-06** at limit **
   9  norm          5.2451        7.4350        .18447E-06   -.42555E-04
  10  norm          .10000E-03    2.6122       -.23117E-07** at limit **
  11  Prefactor     .10000E-03    4.2158       -.26012E-06** at limit **
  12  Prefactor     .10000E-03    4.4548        .30315E-06** at limit **
  13  Prefactor     9.0849        7.7873       -.72780E-08   -.42078E-04
  14  Prefactor     .10000E-03    18.736       -.13161E-05** at limit **
  15  norm          7.3648        1.7570        .79253E-08   -.14539E-03
  16  norm          .10000E-03    1.5260        .26083E-06** at limit **
  17  norm          6.8037        4.9987        .28842E-06    .35063E-03
  18  norm          7.2434        13.112        .65245E-07   -.65251E-05
  19  Prefactor     .71898        3.8532        .22711E-05   -.38219E-03
  20  Prefactor     11.670        12.573        .69146E-07   -.99065E-05
  21  Normalizat    .98060        .18144       -.49356E-06   -.64826E-04
  22  Prefactor     .99033        .12358       -.25432E-06   -.70425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.20787
  Prefactor  = 17.4328
  Prefactor  = 7.57161
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000100001
  norm       = 0.741999
  Prefactor  = 0.0001
  norm       = 5.24506
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.08489
  Prefactor  = 0.000100001
  norm       = 7.36478
  norm       = 0.000100001
  norm       = 6.80366
  norm       = 7.24336
  Prefactor  = 0.71898
  Prefactor  = 11.6697
  Normalizat = 0.980598
  Prefactor  = 0.990332
 **********
 **   18 **HESSE 
 **********

 FCN=   8739.283     FROM HESSE     STATUS=OK           348 CALLS     2384 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2079        6.6247        .14940E-03   -1.5171    
   2  Prefactor     17.433        9.9908        .95924E-04   -1.4873    
   3  Prefactor     7.5716        6.6880        .14574E-03   -1.5158    
   4  Prefactor     .10000E-03    8.6610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    34.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .74200        .19513        .20175E-04   -1.5536    
   8  Prefactor     .10000E-03    13.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2451        7.4310        .17551E-03   -1.5250    
  10  norm          .10000E-03    2.6144        .14756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0849        7.7827        .13299E-03   -1.5105    
  14  Prefactor     .10000E-03    19.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.3648        1.7615        .57149E-04   -1.5165    
  16  norm          .10000E-03    2.6938        .21321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8037        5.0062        .15386E-03   -1.5186    
  18  norm          7.2434        13.109        .14903E-03   -1.5170    
  19  Prefactor     .71898        4.4192        .37192E-03   -1.5538    
  20  Prefactor     11.670        12.573        .11727E-03   -1.5025    
  21  Normalizat    .98060        .21295        .30694E-03   -.93683    
  22  Prefactor     .99033        .14518        .21528E-03   -.93052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74108e-10
Minuit parameter uncertainties:
  1  6.62541
  2  9.99175
  3  6.6887
  4  6.78506e-06
  5  0.000559676
  6  0.000424226
  7  0.19513
  8  1.91945e-05
  9  7.43229
  10  9.1885e-07
  11  1.56672e-05
  12  2.06208e-05
  13  7.78359
  14  0.00025507
  15  1.76148
  16  8.41453e-05
  17  5.00647
  18  13.1138
  19  3.56516
  20  12.5762
  21  0.213133
  22  0.145242
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  5.245e+00  7.432e+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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.903e-01  1.452e-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.806e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/367172/likelihoodResults_297907201_298166401_4FGL_J1312.8-0425_daily_bin226.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) = 8738.74074244
delta logL = 0.542425749842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8738.67202101
delta logL = 0.611147185646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2280       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0783       1.0000          .0000       5.0000    
     3 'Normalizat'    .99775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98211       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=   8738.672     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2162        3.3640        .56366E-02    .26467E-02
   2  alpha         1.0761        .53162        .50000       -.56194E-04
   3  Normalizat    .99791        .17319        .68837E-01    .23263E-04
   4  Prefactor     .98208        .12265        .46043E-01    .31628E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.21617
  alpha      = 1.07608
  Normalizat = 0.997909
  Prefactor  = 0.982082
 **********
 **   18 **HESSE 
 **********

 FCN=   8738.672     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2162        4.6390        .84812E-03   -1.5349    
   2  alpha         1.0761        .77173        .23677E-01   -.60598    
   3  Normalizat    .99791        .20304        .30451E-03   -.93100    
   4  Prefactor     .98208        .14398        .21596E-03   -.93329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33813e-09
Minuit parameter uncertainties:
  1  4.63956
  2  0.791126
  3  0.203192
  4  0.144035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367172': 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) = 8738.6720165
delta logL = 0.611151694126

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  3.216e+00  4.640e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  1.076e+00  7.911e-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:  9.821e-01  1.440e-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.979e-01  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 198.217 -4.420
Photon Index (Free Index): 1.08 +/- 0.79
Photon Flux (Free Index): 6.85e-09 +/- 8.72e-09
Energy Flux (Free Index): 1.64e-05 +/- 2.33e-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/367172/cmap_HighResolution_297907201_298166401_4FGL_J1312.8-0425_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-05', comment='SUCCESS', energy_flux2='1.64e-05', dlogl='6.11e-01', photon_flux2='6.85e-09', job_status='DONE', time_completed='2021-09-07 06:00:30.368030', photon_index_error2='0.79', photon_index2='1.08', ts='0.69', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.85e-08', energy_flux_error2='2.33e-05', EG='0.98', time_epoch_completed='1631019630.37', return_code='0', job_id='367172', GAL2='0.98', EG2='1.00', return_code2='0', photon_flux_error2='8.72e-09', ts2='1.91', photon_index='2.21' WHERE bin_id='226' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:00:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 367172: <4FGL_J1312.8-0425_daily_bin226> in cluster <slac> Done

Job <4FGL_J1312.8-0425_daily_bin226> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 05:45:38 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:47:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 05:47:49 2021
Terminated at Tue Sep  7 06:00:31 2021
Results reported at Tue Sep  7 06:00:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin226 198.217 -4.4196 297907201 298166401 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            893 sec.

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

