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


Performing analysis on: 4FGL_J1312.4-2156_daily_bin195
RA = 198.111, Dec = -21.938
tmin = 289872001, tmax = 290131201
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='341577', job_status='RUN', time_executed='2021-09-07 04:28:13.023225', time_epoch_executed='1631014093.02' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341577

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341577/ft1_4FGL_J1312.4-2156_daily_bin195.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341577/ft2_4FGL_J1312.4-2156_daily_bin195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341577/ft1_4FGL_J1312.4-2156_daily_bin195.fits outfile=/scratch/kocevski/341577/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin195.fits ra=198.111 dec=-21.938 rad=12.0 tmin=289872001.0 tmax=290131201.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.54
user 3.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341577/ft2_4FGL_J1312.4-2156_daily_bin195.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/341577/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin195.fits evtable="EVENTS" outfile="/scratch/kocevski/341577/ft1_filtered_4FGL_J1312.4-2156_daily_bin195.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341577/ft1_filtered_4FGL_J1312.4-2156_daily_bin195.fits" evtable="EVENTS" scfile=/scratch/kocevski/341577/ft2_4FGL_J1312.4-2156_daily_bin195.fits sctable="SC_DATA" outfile=/scratch/kocevski/341577/ltcube_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.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/341577/ft2_4FGL_J1312.4-2156_daily_bin195.fits
.....................!
real 14.38
user 14.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341577/ft1_filtered_4FGL_J1312.4-2156_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/341577/ft2_4FGL_J1312.4-2156_daily_bin195.fits sctable="SC_DATA" expcube=/scratch/kocevski/341577/ltcube_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.fits outfile=/scratch/kocevski/341577/expmap_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.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/341577/ltcube_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.fits
.....................!
real 191.13
user 186.23
sys 4.30

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_archive_v18/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/341577/ft1_filtered_4FGL_J1312.4-2156_daily_bin195.fits scfile=/scratch/kocevski/341577/ft2_4FGL_J1312.4-2156_daily_bin195.fits outfile=/scratch/kocevski/341577/cmap_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341577/ft1_filtered_4FGL_J1312.4-2156_daily_bin195.fits scfile=/scratch/kocevski/341577/ft2_4FGL_J1312.4-2156_daily_bin195.fits outfile=/scratch/kocevski/341577/cmap_HighResolution_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.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.67
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341577/ft1_filtered_4FGL_J1312.4-2156_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/341577/ft2_4FGL_J1312.4-2156_daily_bin195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341577/Model_4FGL_J1312.4-2156_daily_bin195.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/341577/ft1_filtered_4FGL_J1312.4-2156_daily_bin195.fits.....................!
real 111.98
user 110.08
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/341577/ft1_filtered_4FGL_J1312.4-2156_daily_bin195.fits', '/scratch/kocevski/341577/ft2_4FGL_J1312.4-2156_daily_bin195.fits', expMap='/scratch/kocevski/341577/expmap_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.fits', expCube='/scratch/kocevski/341577/ltcube_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/341577/Model_4FGL_J1312.4-2156_daily_bin195.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  1.000e-04  1.000e+04 ( 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  0.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/341577/ft1_filtered_4FGL_J1312.4-2156_daily_bin195.fits
Spacecraft file(s): /scratch/kocevski/341577/ft2_4FGL_J1312.4-2156_daily_bin195.fits
Exposure map: /scratch/kocevski/341577/expmap_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.fits
Exposure cube: /scratch/kocevski/341577/ltcube_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/341577/Model_4FGL_J1312.4-2156_daily_bin195.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) = 6898.84016628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.546       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6381       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .24989E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.3735       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4844       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0475       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1819       1.0000         .10000E-03   10000.    
    13 'norm      '    25.402       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1679       1.0000         .10000E-03   10000.    
    18 'norm      '    2.1178       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    22.950       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17388E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97252       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0815       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6898.759     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2325 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.547        11.625       -.12266E-07   -.48996E-04
   2  norm          2.6381        1.4047        .50717E-07   -.17435E-03
   3  Prefactor     .10000E-03    47.443        .14513E-04** at limit **
   4  norm          .10006E-03    5.8572        .92455E-06** at limit **
   5  norm          7.3747        5.8704       -.12800E-06   -.18528E-03
   6  Prefactor     1.4848        3.8123        .69949E-07   -.22548E-03
   7  norm          .10000E-03    3.0702        .23743E-07** at limit **
   8  norm          1.0475        2.3079        .68829E-07   -.26871E-03
   9  norm          .10000E-03    2.3964        .30061E-07** at limit **
  10  Prefactor     7.3228        10.843        .11350E-06   -.29649E-04
  11  Prefactor     .10000E-03    23.855        .98828E-06** at limit **
  12  norm          4.1789        5.1669        .16789E-05    .13821E-03
  13  norm          25.400        12.846        .20106E-06    .10667E-03
  14  Prefactor     .10000E-03    7.2137        .42951E-06** at limit **
  15  Prefactor     .10000E-03    8.5191        .38969E-05** at limit **
  16  Prefactor     .10000E-03    4.3973       -.45920E-07** at limit **
  17  Prefactor     2.1627        6.4171        .26869E-05   -.11731E-02
  18  norm          2.1185        4.2615       -.31597E-08   -.12305E-03
  19  norm          .10000E-03    8.1154       -.44451E-05** at limit **
  20  Prefactor     .10000E-03    52.935       -.16705E-04** at limit **
  21  norm          22.940        18.740       -.77538E-06    .10130E-03
  22  Prefactor     .10014E-03    2.9697       -.58079E-06** at limit **
  23  Normalizat    .97263        .27344       -.12283E-05   -.50086E-04
  24  Prefactor     1.0815        .12476       -.94129E-08   -.11024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5468
  norm       = 2.6381
  Prefactor  = 0.000100003
  norm       = 0.000100056
  norm       = 7.37466
  Prefactor  = 1.48476
  norm       = 0.0001
  norm       = 1.04746
  norm       = 0.0001
  Prefactor  = 7.32284
  Prefactor  = 0.000100001
  norm       = 4.17886
  norm       = 25.3998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16272
  norm       = 2.11848
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 22.9397
  Prefactor  = 0.000100142
  Normalizat = 0.972633
  Prefactor  = 1.08148
 **********
 **   18 **HESSE 
 **********

 FCN=   6898.759     FROM HESSE     STATUS=OK           401 CALLS     2726 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.547        11.632        .98462E-04   -1.4894    
   2  norm          2.6381        1.3993        .67889E-04   -1.5383    
   3  Prefactor     .10000E-03    47.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10006E-03    41.643        .37989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.3747        5.8399        .14770E-03   -1.5165    
   6  Prefactor     1.4848        3.7556        .24825E-03   -1.5464    
   7  norm          .10000E-03    3.0968        .14210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0475        2.2548        .18097E-03   -1.5503    
   9  norm          .10000E-03    2.4021        .12557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3228        10.846        .14819E-03   -1.5167    
  11  Prefactor     .10000E-03    23.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1789        5.1246        .18117E-03   -1.5299    
  13  norm          25.400        12.781        .79481E-04   -1.4700    
  14  Prefactor     .10000E-03    7.2323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4061        .17009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1627        17.580        .13985E-02   -1.5414    
  18  norm          2.1185        4.2358        .23442E-03   -1.5417    
  19  norm          .10000E-03    8.1405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          22.940        17.884        .83612E-04   -1.4750    
  22  Prefactor     .10014E-03    23.891        .26061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97263        .31301        .40873E-03   -.93953    
  24  Prefactor     1.0815        .14477        .18134E-03   -.90061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69325e-08
Minuit parameter uncertainties:
  1  11.6337
  2  1.39929
  3  0.000809556
  4  0.00306841
  5  5.84038
  6  3.75615
  7  1.89169e-06
  8  2.25503
  9  1.09238e-06
  10  10.8486
  11  0.000246284
  12  5.1251
  13  12.7823
  14  1.08548e-05
  15  9.41851e-05
  16  3.13125e-06
  17  12.3368
  18  4.2364
  19  0.000101415
  20  0.000964412
  21  17.8884
  22  0.00367934
  23  0.313603
  24  0.144818
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.047e+00  2.255e+00  1.000e-04  1.000e+04 ( 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  0.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:  1.081e+00  1.448e-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:  9.726e-01  3.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 198.111 -21.938
Photon Flux Upper Limit: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341577/likelihoodResults_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.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) = 6898.6679422
delta logL = 0.0913503976126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6898.66717624
delta logL = 0.092116359122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99006       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4958       1.0000          .0000       5.0000    
     3 'Normalizat'    .96272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0811       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=   6898.667     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98954        35.537        .13130E-01    .10941E-02
   2  alpha         2.4964        3.4981        .41152        .29449E-04
   3  Normalizat    .96276        .56379E-01    .92701E-01    .24087E-04
   4  Prefactor     1.0811        .24302E-01    .38353E-01   -.27710E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.989536
  alpha      = 2.49636
  Normalizat = 0.962761
  Prefactor  = 1.08109
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98954        2.3990        .13300E-03   -1.5509    
   2  alpha         2.4964        1.7297        .24646E-01   -.14573E-02
   3  Normalizat    .96276        .30943        .41060E-03   -.94289    
   4  Prefactor     1.0811        .14379        .18134E-03   -.90073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27052e-09
Minuit parameter uncertainties:
  1  2.39927
  2  1.91023
  3  0.310004
  4  0.143841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341577': 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) = 6898.66717615
delta logL = 0.0921164550118

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  9.895e-01  2.399e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  2.496e+00  1.910e+00  0.000e+00  5.000e+00 ( 1.000e+00)
271         beta:  1.515e-01  0.000e+00  0.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:  1.081e+00  1.438e-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:  9.628e-01  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 198.111 -21.938

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/341577/cmap_HighResolution_289872001_290131201_4FGL_J1312.4-2156_daily_bin195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-05', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-07 04:40:51.725825', job_id='341577', GAL2='1.08', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1631014851.73', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.21e-02', ts2='0.46', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='195' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:40:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 341577: <4FGL_J1312.4-2156_daily_bin195> in cluster <slac> Done

Job <4FGL_J1312.4-2156_daily_bin195> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 04:25:37 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:25:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 04:25:48 2021
Terminated at Tue Sep  7 04:40:52 2021
Results reported at Tue Sep  7 04:40:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin195 198.111 -21.938 289872001 290131201 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 :                                   756.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            915 sec.

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

