aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 82 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7681
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1312.4-2156_daily_bin1780
RA = 198.111, Dec = -21.938
tmin = 700704001, tmax = 700963201
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='63949', job_status='RUN', time_executed='2023-03-20 00:56:45.456475', time_epoch_executed='1679299005.46' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63949

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63949/ft1_4FGL_J1312.4-2156_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63949/ft1_4FGL_J1312.4-2156_daily_bin1780.fits outfile=/scratch/kocevski/63949/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin1780.fits ra=198.111 dec=-21.938 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.09
user 3.88
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.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/63949/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/63949/ft1_filtered_4FGL_J1312.4-2156_daily_bin1780.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.48
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 432

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63949/ft1_filtered_4FGL_J1312.4-2156_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/63949/ltcube_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.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/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits
.....................!
real 12.50
user 12.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63949/ft1_filtered_4FGL_J1312.4-2156_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/63949/ltcube_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.fits outfile=/scratch/kocevski/63949/expmap_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.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/63949/ltcube_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.fits
.....................!
real 191.29
user 186.48
sys 4.38

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 186 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1312.4-2156 @ 198.111 -21.938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/63949/ft1_filtered_4FGL_J1312.4-2156_daily_bin1780.fits scfile=/scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits outfile=/scratch/kocevski/63949/cmap_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.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.111 yref=-21.938 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63949/ft1_filtered_4FGL_J1312.4-2156_daily_bin1780.fits scfile=/scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits outfile=/scratch/kocevski/63949/cmap_HighResolution_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.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.111 yref=-21.938 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63949/ft1_filtered_4FGL_J1312.4-2156_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63949/Model_4FGL_J1312.4-2156_daily_bin1780.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/63949/ft1_filtered_4FGL_J1312.4-2156_daily_bin1780.fits.....................!
real 82.64
user 81.31
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/63949/ft1_filtered_4FGL_J1312.4-2156_daily_bin1780.fits', '/scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits', expMap='/scratch/kocevski/63949/expmap_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.fits', expCube='/scratch/kocevski/63949/ltcube_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/63949/Model_4FGL_J1312.4-2156_daily_bin1780.xml', optimizer='MINUIT')

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

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.303e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
270        alpha:  1.827e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.515e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/63949/ft1_filtered_4FGL_J1312.4-2156_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/63949/ft2_4FGL_J1312.4-2156_daily_bin1780.fits
Exposure map: /scratch/kocevski/63949/expmap_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.fits
Exposure cube: /scratch/kocevski/63949/ltcube_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/63949/Model_4FGL_J1312.4-2156_daily_bin1780.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) = 4549.2513757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1737       1.0000          .0000       .10000E+07
     2 'norm      '    .49370       1.0000          .0000       .10000E+07
     3 'Prefactor '    .25970E-03   1.0000          .0000       .10000E+07
     4 'norm      '    6.7325       1.0000          .0000       .10000E+07
     5 'norm      '    .53456E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .19488E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .20692       1.0000          .0000       .10000E+07
     8 'norm      '    3.9938       1.0000          .0000       .10000E+07
     9 'norm      '    .67086       1.0000          .0000       .10000E+07
    10 'Prefactor '    11.030       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.339       1.0000          .0000       .10000E+07
    12 'norm      '    3.6686       1.0000          .0000       .10000E+07
    13 'norm      '    13.545       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.0860       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13389E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    21.460       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.875       1.0000          .0000       .10000E+07
    18 'norm      '    .19501E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .43002E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .14567E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    9.4336       1.0000          .0000       .10000E+07
    22 'Normalizat'    .88334       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88668       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4549.218     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1843 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1710        11.174       -.51638E-07   -.16982E-02
   2  norm          .49166        .98946       -.22564E-07   -.11089E-03
   3  Prefactor     .66613E-09    40.051        .25336E-05** at limit **
   4  norm          6.7511        9.7273       -.73165E-06    .17133E-03
   5  norm           .0000        2.5554        .48122E-07** at limit **
   6  Prefactor     .22204E-09    2.6494       -.15008E-07** at limit **
   7  norm          .20391        13.013       -.33843E-06** at limit **
   8  norm          3.9974        3.2015       -.22481E-07    .11742E-02
   9  norm          .64923        2.4369        .74877E-06   -.37074E-02
  10  Prefactor     11.047        4.4982        .27595E-07    .33754E-01
  11  Prefactor     11.542        3.9374       -.26207E-06    .15728E-01
  12  norm          3.6339        4.0277       -.35821E-06   -.54283E-02
  13  norm          13.549        8.7328        .11165E-05    .11905E-01
  14  Prefactor     7.5689        16.032       -.18419E-05    .90486E-03
  15  Prefactor     .43299E-08    27.422       -.12219E-05** at limit **
  16  Prefactor     21.413        15.396       -.12422E-05    .20324E-02
  17  Prefactor     14.524        13.318        .81583E-07    .31897E-02
  18  norm           .0000        1.5131       -.25956E-08** at limit **
  19  norm          .13101E-07    53.761       -.18341E-05** at limit **
  20  norm          .44409E-09    6.5386       -.71148E-08** at limit **
  21  Prefactor     9.4072        5.8266        .69026E-07   -.23401E-02
  22  Normalizat    .88283        .32502        .78035E-05   -.16827E-03
  23  Prefactor     .88688        .15366       -.56873E-06   -.41100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17103
  norm       = 0.491661
  Prefactor  = 6.66134e-10
  norm       = 6.75106
  norm       = 0
  Prefactor  = 2.22045e-10
  norm       = 0.203913
  norm       = 3.99742
  norm       = 0.649227
  Prefactor  = 11.0472
  Prefactor  = 11.5418
  norm       = 3.63393
  norm       = 13.5486
  Prefactor  = 7.56886
  Prefactor  = 4.32987e-09
  Prefactor  = 21.413
  Prefactor  = 14.5239
  norm       = 0
  norm       = 1.31006e-08
  norm       = 4.44089e-10
  Prefactor  = 9.40724
  Normalizat = 0.882831
  Prefactor  = 0.886876
 **********
 **   18 **HESSE 
 **********

 FCN=   4549.218     FROM HESSE     STATUS=OK           428 CALLS     2271 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1710        11.320        .10576E-02   -1.5686    
   2  norm          .49166        1.0171        .79346E-03   -1.5694    
   3  Prefactor     .66613E-09    40.327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.7511        9.8492        .38647E-03   -1.5656    
   5  norm           .0000        2.5541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22204E-09    2.6493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .20391        2.8279        .59051E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9974        3.2062        .50442E-03   -1.5668    
   9  norm          .64923        13.674        .63106E-03   -1.5692    
  10  Prefactor     11.047        10.601        .30142E-03   -1.5641    
  11  Prefactor     11.542        21.077        .29727E-03   -1.5640    
  12  norm          3.6339        5.0670        .52711E-03   -1.5670    
  13  norm          13.549        9.0471        .27190E-03   -1.5634    
  14  Prefactor     7.5689        16.778        .37661E-03   -1.5653    
  15  Prefactor     .43299E-08    27.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.413        15.567        .21593E-03   -1.5615    
  17  Prefactor     14.524        14.127        .25943E-03   -1.5632    
  18  norm           .0000        1.5127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13101E-07    53.809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .44409E-09    6.5329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.4072        5.8186        .32604E-03   -1.5647    
  22  Normalizat    .88283        .27970        .79980E-01   -.97066    
  23  Prefactor     .88688        .12992        .44835E-01   -.96601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90537e-06
Minuit parameter uncertainties:
  1  7.28167
  2  1.01711
  3  0.000333547
  4  9.84926
  5  6.2892e-06
  6  4.9594e-05
  7  1.51873
  8  3.20617
  9  5.95912
  10  10.6012
  11  21.0771
  12  5.067
  13  9.04708
  14  16.7786
  15  0.000689781
  16  15.5674
  17  14.1273
  18  1.46243e-06
  19  0.00168025
  20  0.000108932
  21  5.81863
  22  0.280157
  23  0.129965
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  3.997e+00  3.206e+00  0.000e+00  1.000e+06 ( 1.000e-12)
270        alpha:  1.827e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.515e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  8.869e-01  1.300e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  8.828e-01  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.99
Ra Dec: 198.111 -21.938
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 3.80e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 3.55e-05 +/- 2.85e-05

TS (Fixed Index): 2.99
Ra Dec: 198.111 -21.938
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63949/likelihoodResults_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.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) = 4548.65732965
delta logL = 0.560235907742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4548.65355428
delta logL = 0.564011283171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5665       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6876       1.0000          .0000       5.0000    
     3 'Normalizat'    .82503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4548.654     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      233 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5666        30.245        .63691E-03   -.36193E-02
   2  alpha         2.6877        3.8326        .25463        .53199E-04
   3  Normalizat    .82505        .11856        .82405E-01    .18471E-04
   4  Prefactor     .89668        .44605E-01    .44963E-01    .13378E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56655
  alpha      = 2.68765
  Normalizat = 0.825045
  Prefactor  = 0.896682
 **********
 **   18 **HESSE 
 **********

 FCN=   4548.654     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5666        3.1713        .66308E-05   -1.5676    
   2  alpha         2.6877        .85059        .90633E-02    .75131E-01
   3  Normalizat    .82505        .32513        .36484E-03   -.99146    
   4  Prefactor     .89668        .15334        .16793E-03   -.96257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18696e-10
Minuit parameter uncertainties:
  1  3.17128
  2  0.868027
  3  0.325897
  4  0.153414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63949': 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) = 4548.65355421
delta logL = 0.564011344084

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  2.567e+00  3.171e+00  0.000e+00  1.000e+06 ( 1.000e-12)
270        alpha:  2.688e+00  8.680e-01  0.000e+00  5.000e+00 ( 1.000e+00)
271         beta:  1.515e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  8.967e-01  1.534e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  8.250e-01  3.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 198.111 -21.938
Photon Index (Free Index): 2.69 +/- 0.87
Photon Flux (Free Index): 9.68e-08 +/- 8.32e-08
Energy Flux (Free Index): 2.93e-05 +/- 1.93e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/63949/cmap_HighResolution_700704001_700963201_4FGL_J1312.4-2156_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-04', comment='SUCCESS', photon_flux='3.80e-08', energy_flux2='2.93e-05', photon_flux_error='3.05e-08', dlogl='5.64e-01', energy_flux='3.55e-05', photon_flux2='9.68e-08', job_status='DONE', time_completed='2023-03-20 01:06:18.097025', photon_index_error2='0.87', photon_index2='2.69', ts='2.99', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.93e-05', EG='0.88', time_epoch_completed='1679299578.1', return_code='0', job_id='63949', GAL2='0.90', EG2='0.83', return_code2='0', energy_flux_error='2.85e-05', photon_flux_error2='8.32e-08', ts2='4.09', photon_index='1.83' WHERE bin_id='1780' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:06:18 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 63949: <4FGL_J1312.4-2156_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1312.4-2156_daily_bin1780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 20 00:55:14 2023
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:55:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:55:15 2023
Terminated at Mon Mar 20 01:06:18 2023
Results reported at Mon Mar 20 01:06:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin1780 198.111 -21.938 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.4-2156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   574.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            664 sec.

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

