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


Performing analysis on: 4FGL_J1312.8-0425_daily_bin398
RA = 198.217, Dec = -4.4196
tmin = 342489601, tmax = 342748801
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='368586', job_status='RUN', time_executed='2021-09-07 05:51:00.513248', time_epoch_executed='1631019060.51' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368586/ft1_4FGL_J1312.8-0425_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368586/ft2_4FGL_J1312.8-0425_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368586/ft1_4FGL_J1312.8-0425_daily_bin398.fits outfile=/scratch/kocevski/368586/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin398.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=342489601.0 tmax=342748801.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.52
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368586/ft2_4FGL_J1312.8-0425_daily_bin398.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/368586/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin398.fits evtable="EVENTS" outfile="/scratch/kocevski/368586/ft1_filtered_4FGL_J1312.8-0425_daily_bin398.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.53
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368586/ft1_filtered_4FGL_J1312.8-0425_daily_bin398.fits" evtable="EVENTS" scfile=/scratch/kocevski/368586/ft2_4FGL_J1312.8-0425_daily_bin398.fits sctable="SC_DATA" outfile=/scratch/kocevski/368586/ltcube_342489601_342748801_4FGL_J1312.8-0425_daily_bin398.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/368586/ft2_4FGL_J1312.8-0425_daily_bin398.fits
.....................!
real 15.04
user 14.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368586/ft1_filtered_4FGL_J1312.8-0425_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/368586/ft2_4FGL_J1312.8-0425_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/368586/ltcube_342489601_342748801_4FGL_J1312.8-0425_daily_bin398.fits outfile=/scratch/kocevski/368586/expmap_342489601_342748801_4FGL_J1312.8-0425_daily_bin398.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/368586/ltcube_342489601_342748801_4FGL_J1312.8-0425_daily_bin398.fits
.....................!
real 192.34
user 187.50
sys 4.37

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/368586/ft1_filtered_4FGL_J1312.8-0425_daily_bin398.fits scfile=/scratch/kocevski/368586/ft2_4FGL_J1312.8-0425_daily_bin398.fits outfile=/scratch/kocevski/368586/cmap_342489601_342748801_4FGL_J1312.8-0425_daily_bin398.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368586/ft1_filtered_4FGL_J1312.8-0425_daily_bin398.fits scfile=/scratch/kocevski/368586/ft2_4FGL_J1312.8-0425_daily_bin398.fits outfile=/scratch/kocevski/368586/cmap_HighResolution_342489601_342748801_4FGL_J1312.8-0425_daily_bin398.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368586/ft1_filtered_4FGL_J1312.8-0425_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/368586/ft2_4FGL_J1312.8-0425_daily_bin398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368586/Model_4FGL_J1312.8-0425_daily_bin398.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/368586/ft1_filtered_4FGL_J1312.8-0425_daily_bin398.fits.....................!
real 57.52
user 55.90
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.176       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4109       1.0000         .10000E-03   10000.    
     5 'Prefactor '    86.677       1.0000         .10000E-03   10000.    
     6 'norm      '    .21407E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .24099       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.1897       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8996       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4875       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0641       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0028       1.0000         .10000E-03   10000.    
    18 'norm      '    11.723       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.902       1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.986       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4829       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82718       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=   7367.005     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2733 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.203        10.826       -.14719E-05   -.70820E-04
   2  Prefactor     17.267        13.695        .11619E-05   -.49628E-04
   3  Prefactor     18.172        11.089       -.68534E-05   -.62422E-03
   4  Prefactor     4.4118        31.624       -.42357E-05   -.38965E-04
   5  Prefactor     86.669        52.918       -.43886E-05   -.80546E-04
   6  norm          .10058E-03    17.240        .47352E-05** at limit **
   7  norm          .24106        .23425        .17798E-06   -.14989E-02
   8  Prefactor     .10000E-03    15.123        .11756E-06** at limit **
   9  norm          5.1890        7.7901        .17076E-05   -.18266E-03
  10  norm          .10000E-03    2.1259       -.83166E-08** at limit **
  11  Prefactor     .10000E-03    2.6549       -.31436E-07** at limit **
  12  Prefactor     2.8970        35.409        .92013E-05   -.76325E-04
  13  Prefactor     4.4862        7.6987        .37629E-05   -.25653E-03
  14  Prefactor     .10000E-03    32.684        .11891E-05** at limit **
  15  norm          .10000E-03    .39414       -.42426E-07** at limit **
  16  norm          2.0639        2.2627       -.95314E-07   -.28659E-03
  17  norm          3.0028        4.1232       -.20953E-05   -.44969E-03
  18  norm          11.726        20.015       -.54121E-05   -.11350E-04
  19  Prefactor     14.902        6.0714        .94113E-06   -.11402E-04
  20  Prefactor     43.982        30.010        .75415E-06   -.11988E-04
  21  Normalizat    1.4831        .22467       -.68094E-06   -.18681E-03
  22  Prefactor     .82700        .14497        .89961E-06   -.32745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2034
  Prefactor  = 17.2672
  Prefactor  = 18.1716
  Prefactor  = 4.41184
  Prefactor  = 86.6694
  norm       = 0.000100577
  norm       = 0.241062
  Prefactor  = 0.0001
  norm       = 5.18901
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89699
  Prefactor  = 4.48625
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.06393
  norm       = 3.00283
  norm       = 11.7257
  Prefactor  = 14.9025
  Prefactor  = 43.982
  Normalizat = 1.48312
  Prefactor  = 0.826997
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.005     FROM HESSE     STATUS=OK           358 CALLS     3091 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.203        10.813        .85005E-04   -1.4765    
   2  Prefactor     17.267        13.704        .96383E-04   -1.4877    
   3  Prefactor     18.172        11.383        .93945E-04   -1.4855    
   4  Prefactor     4.4118        31.646        .19175E-03   -1.5288    
   5  Prefactor     86.669        52.436        .43152E-04   -1.3843    
   6  norm          .10058E-03    18.859        .12055       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .24106        .22134        .35830E-03   -1.5610    
   8  Prefactor     .10000E-03    15.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.1890        7.7615        .17646E-03   -1.5252    
  10  norm          .10000E-03    2.1260        .12222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6615        .13657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8970        35.252        .23863E-03   -1.5368    
  13  Prefactor     4.4862        7.6511        .19007E-03   -1.5284    
  14  Prefactor     .10000E-03    33.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .40058        .52585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0639        2.2421        .12926E-03   -1.5421    
  17  norm          3.0028        4.1285        .19731E-03   -1.5361    
  18  norm          11.726        19.999        .11700E-03   -1.5023    
  19  Prefactor     14.902        6.0701        .10375E-03   -1.4936    
  20  Prefactor     43.982        30.080        .60449E-04   -1.4381    
  21  Normalizat    1.4831        .26584        .28934E-03   -.78254    
  22  Prefactor     .82700        .17052        .25118E-03   -.98741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76301e-10
Minuit parameter uncertainties:
  1  10.8138
  2  13.7064
  3  11.3844
  4  23.6495
  5  52.4642
  6  0.00659719
  7  0.22134
  8  7.43032e-06
  9  7.76303
  10  2.05261e-06
  11  6.89362e-06
  12  20.2257
  13  7.65279
  14  1.38934e-05
  15  2.51733e-06
  16  2.24218
  17  4.12884
  18  20.0105
  19  6.07037
  20  30.0903
  21  0.266087
  22  0.170627
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  5.189e+00  7.763e+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:  8.270e-01  1.706e-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.483e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/368586/likelihoodResults_342489601_342748801_4FGL_J1312.8-0425_daily_bin398.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) = 7366.43590129
delta logL = 0.568899268962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7365.86264364
delta logL = 1.14215692391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33940       1.0000         .10000E-03   10000.    
     2 'alpha     '    .30713E-05   1.0000          .0000       5.0000    
     3 'Normalizat'    1.4755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83814       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=   7365.863     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      255 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33926        .24855        .25021E-07   -.47581E-03
   2  alpha         .34552E-10    .48738        .22430E-05** at limit **
   3  Normalizat    1.4756        .21170        .28592E-08    .66814E-05
   4  Prefactor     .83804        .14303       -.32916E-08   -.49034E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.339255
  alpha      = 3.45524e-11
  Normalizat = 1.47557
  Prefactor  = 0.838036
 **********
 **   18 **HESSE 
 **********

 FCN=   7365.863     FROM HESSE     STATUS=OK            35 CALLS      290 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33926        .37876        .54944E-03   -1.5591    
   2  alpha         .34552E-10    3.1167        .49307E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4756        .24906        .28971E-03   -.78467    
   4  Prefactor     .83804        .16843        .24977E-03   -.98341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31275e-11
Minuit parameter uncertainties:
  1  0.378763
  2  1.36632e-05
  3  0.24927
  4  0.168538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368586': 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) = 7365.86264224
delta logL = 1.14215831885

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  3.393e-01  3.788e-01  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  3.455e-11  1.366e-05  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:  8.380e-01  1.685e-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.476e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 198.217 -4.420
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.53e-09 +/- 3.94e-09
Energy Flux (Free Index): 6.61e-05 +/- 7.38e-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/368586/cmap_HighResolution_342489601_342748801_4FGL_J1312.8-0425_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-05', comment='SUCCESS', energy_flux2='6.61e-05', dlogl='1.14e+00', photon_flux2='3.53e-09', job_status='DONE', time_completed='2021-09-07 06:03:10.106581', photon_index_error2='0.00', photon_index2='0.00', ts='0.70', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='7.38e-05', EG='1.48', time_epoch_completed='1631019790.11', return_code='0', job_id='368586', GAL2='0.84', EG2='1.48', return_code2='0', photon_flux_error2='3.94e-09', ts2='2.97', photon_index='2.21' WHERE bin_id='398' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 368586: <4FGL_J1312.8-0425_daily_bin398> in cluster <slac> Done

Job <4FGL_J1312.8-0425_daily_bin398> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 05:50:39 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:50:47 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:50:47 2021
Terminated at Tue Sep  7 06:03:10 2021
Results reported at Tue Sep  7 06:03:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin398 198.217 -4.4196 342489601 342748801 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 :                                   725.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            751 sec.

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

