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


Performing analysis on: 4FGL_J1312.4-2156_daily_bin415
RA = 198.111, Dec = -21.938
tmin = 346896001, tmax = 347155201
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='343877', job_status='RUN', time_executed='2021-09-07 04:35:54.208652', time_epoch_executed='1631014554.21' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343877/ft1_4FGL_J1312.4-2156_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343877/ft2_4FGL_J1312.4-2156_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343877/ft1_4FGL_J1312.4-2156_daily_bin415.fits outfile=/scratch/kocevski/343877/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin415.fits ra=198.111 dec=-21.938 rad=12.0 tmin=346896001.0 tmax=347155201.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.47
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/343877/ft1_filtered_4FGL_J1312.4-2156_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/343877/ft2_4FGL_J1312.4-2156_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/343877/ltcube_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.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/343877/ft2_4FGL_J1312.4-2156_daily_bin415.fits
.....................!
real 16.08
user 15.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343877/ft1_filtered_4FGL_J1312.4-2156_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/343877/ft2_4FGL_J1312.4-2156_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/343877/ltcube_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.fits outfile=/scratch/kocevski/343877/expmap_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.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/343877/ltcube_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.fits
.....................!
real 192.37
user 186.94
sys 4.42

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/343877/ft1_filtered_4FGL_J1312.4-2156_daily_bin415.fits scfile=/scratch/kocevski/343877/ft2_4FGL_J1312.4-2156_daily_bin415.fits outfile=/scratch/kocevski/343877/cmap_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.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.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/343877/ft1_filtered_4FGL_J1312.4-2156_daily_bin415.fits scfile=/scratch/kocevski/343877/ft2_4FGL_J1312.4-2156_daily_bin415.fits outfile=/scratch/kocevski/343877/cmap_HighResolution_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/343877/ft1_filtered_4FGL_J1312.4-2156_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/343877/ft2_4FGL_J1312.4-2156_daily_bin415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/343877/Model_4FGL_J1312.4-2156_daily_bin415.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/343877/ft1_filtered_4FGL_J1312.4-2156_daily_bin415.fits.....................!
real 139.06
user 136.81
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/343877/ft1_filtered_4FGL_J1312.4-2156_daily_bin415.fits', '/scratch/kocevski/343877/ft2_4FGL_J1312.4-2156_daily_bin415.fits', expMap='/scratch/kocevski/343877/expmap_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.fits', expCube='/scratch/kocevski/343877/ltcube_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/343877/Model_4FGL_J1312.4-2156_daily_bin415.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/343877/ft1_filtered_4FGL_J1312.4-2156_daily_bin415.fits
Spacecraft file(s): /scratch/kocevski/343877/ft2_4FGL_J1312.4-2156_daily_bin415.fits
Exposure map: /scratch/kocevski/343877/expmap_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.fits
Exposure cube: /scratch/kocevski/343877/ltcube_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/343877/Model_4FGL_J1312.4-2156_daily_bin415.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) = 8629.7059842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    36.265       1.0000         .10000E-03   10000.    
     5 'norm      '    .19320       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.7994       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3406       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0887       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6660       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7095       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9118       1.0000         .10000E-03   10000.    
    19 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.560       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0319       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=   8629.645     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2375 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.321       -.43188E-05** at limit **
   2  norm          5.2092        1.2605       -.44962E-08    .10048E-03
   3  Prefactor     .10000E-03    17.954       -.28754E-06** at limit **
   4  norm          36.269        10.734       -.62299E-07    .41041E-04
   5  norm          .17761        2.3676       -.66631E-07   -.78418E-04
   6  Prefactor     .10000E-03    1.9316       -.35254E-06** at limit **
   7  norm          7.8020        5.0778       -.26510E-07   -.15202E-04
   8  norm          2.3405        2.1020       -.49310E-07   -.34840E-04
   9  norm          3.0882        6.0448       -.46798E-07   -.71723E-04
  10  Prefactor     .10000E-03    25.099       -.60472E-05** at limit **
  11  Prefactor     .10000E-03    21.161        .54841E-05** at limit **
  12  norm          1.6650        2.5531       -.18355E-06   -.25080E-03
  13  norm          1.7093        1.4006        .39665E-06   -.31102E-02
  14  Prefactor     .10000E-03    6.3563       -.20597E-05** at limit **
  15  Prefactor     .10000E-03    8.8030       -.15143E-05** at limit **
  16  Prefactor     .10000E-03    4.8212        .37407E-06** at limit **
  17  Prefactor     .10000E-03    7.3987        .14467E-05** at limit **
  18  norm          5.9114        5.0964        .43011E-06   -.20369E-04
  19  norm          .10000E-03    7.4273        .13567E-05** at limit **
  20  Prefactor     61.549        39.215       -.95476E-05   -.94868E-04
  21  norm          .10000E-03    3.5363        .25411E-08** at limit **
  22  Prefactor     .10000E-03    1.7913       -.24040E-06** at limit **
  23  Normalizat    .91541        .21917       -.60287E-06    .11014E-03
  24  Prefactor     1.0319        .10506        .33259E-06    .11051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.20925
  Prefactor  = 0.0001
  norm       = 36.2693
  norm       = 0.177605
  Prefactor  = 0.0001
  norm       = 7.80196
  norm       = 2.34047
  norm       = 3.08818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66499
  norm       = 1.70928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.91142
  norm       = 0.0001
  Prefactor  = 61.5493
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.915408
  Prefactor  = 1.03191
 **********
 **   18 **HESSE 
 **********

 FCN=   8629.645     FROM HESSE     STATUS=OK           399 CALLS     2774 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.777        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2092        1.2597        .49339E-04   -1.5251    
   3  Prefactor     .10000E-03    17.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          36.269        10.732        .66550E-04   -1.4503    
   5  norm          .17761        8.7222        .27602E-02   -1.5624    
   6  Prefactor     .10000E-03    1.9525        .12596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.8020        5.0763        .14358E-03   -1.5149    
   8  norm          2.3405        2.0955        .12364E-03   -1.5402    
   9  norm          3.0882        6.0374        .23077E-03   -1.5356    
  10  Prefactor     .10000E-03    25.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6650        2.5592        .17570E-03   -1.5450    
  13  norm          1.7093        3.7135        .12640E-02   -1.5446    
  14  Prefactor     .10000E-03    6.3922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9114        5.0937        .16516E-03   -1.5222    
  19  norm          .10000E-03    7.4308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     61.549        39.352        .25570E-03   -1.4137    
  21  norm          .10000E-03    3.5410        .17060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6876        .24024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91541        .25231        .38963E-03   -.95921    
  24  Prefactor     1.0319        .12283        .17649E-03   -.91673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43271e-08
Minuit parameter uncertainties:
  1  1.46284e-05
  2  1.25974
  3  1.24887e-06
  4  10.7324
  5  2.48895
  6  9.78382e-08
  7  5.07659
  8  2.09553
  9  6.03854
  10  6.45103e-05
  11  8.96265e-05
  12  2.55937
  13  3.71397
  14  7.66242e-06
  15  8.81489e-06
  16  3.09042e-06
  17  1.62793e-05
  18  5.09403
  19  8.79158e-06
  20  39.3685
  21  4.9987e-07
  22  5.23689e-05
  23  0.25264
  24  0.122867
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  2.340e+00  2.096e+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.032e+00  1.229e-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.154e-01  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 198.111 -21.938
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 2.23e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.86e-05

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

Saving results to:
/scratch/kocevski/343877/likelihoodResults_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.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) = 8629.55849214
delta logL = 0.0863882193626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8629.55626414
delta logL = 0.0886162182942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2112       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1176       1.0000          .0000       5.0000    
     3 'Normalizat'    .91116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0311       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=   8629.556     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2101        43.406        .69153E-02    .43734E-03
   2  alpha         2.1183        3.3905        .41777        .36919E-04
   3  Normalizat    .91117        .90307E-01    .88158E-01    .31934E-04
   4  Prefactor     1.0311        .34150E-01    .41172E-01   -.10820E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.21009
  alpha      = 2.11827
  Normalizat = 0.911166
  Prefactor  = 1.03111
 **********
 **   18 **HESSE 
 **********

 FCN=   8629.556     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2101        2.0607        .11312E-03   -1.5411    
   2  alpha         2.1183        .69477        .16608E-01   -.15329    
   3  Normalizat    .91117        .25101        .39041E-03   -.96069    
   4  Prefactor     1.0311        .12123        .17653E-03   -.91699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80741e-12
Minuit parameter uncertainties:
  1  2.06078
  2  0.704265
  3  0.251336
  4  0.121258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343877': 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) = 8629.55626356
delta logL = 0.088616795003

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  2.210e+00  2.061e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  2.118e+00  7.043e-01  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.031e+00  1.213e-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.112e-01  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 198.111 -21.938
Photon Index (Free Index): 2.12 +/- 0.70
Photon Flux (Free Index): 3.14e-08 +/- 3.39e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.66e-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/343877/cmap_HighResolution_346896001_347155201_4FGL_J1312.4-2156_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-05', comment='SUCCESS', photon_flux='2.23e-08', energy_flux2='1.80e-05', photon_flux_error='1.99e-08', dlogl='8.86e-02', energy_flux='2.08e-05', photon_flux2='3.14e-08', job_status='DONE', time_completed='2021-09-07 04:50:57.291384', photon_index_error2='0.70', photon_index2='2.12', ts='2.25', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.13e-08', energy_flux_error2='1.66e-05', EG='0.92', time_epoch_completed='1631015457.29', return_code='0', job_id='343877', GAL2='1.03', EG2='0.91', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='3.39e-08', ts2='2.42', photon_index='1.83' WHERE bin_id='415' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 343877: <4FGL_J1312.4-2156_daily_bin415> in cluster <slac> Done

Job <4FGL_J1312.4-2156_daily_bin415> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 04:35:21 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:35:35 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:35:35 2021
Terminated at Tue Sep  7 04:50:58 2021
Results reported at Tue Sep  7 04:50:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin415 198.111 -21.938 346896001 347155201 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 :                                   898.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            937 sec.

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

