/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 1 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 = 7354
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1312.4-2156_daily_bin553
RA = 198.111, Dec = -21.938
tmin = 382665601, tmax = 382924801
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='344083', job_status='RUN', time_executed='2021-09-07 04:38:56.794382', time_epoch_executed='1631014736.79' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344083

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344083/ft1_4FGL_J1312.4-2156_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344083/ft2_4FGL_J1312.4-2156_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344083/ft1_4FGL_J1312.4-2156_daily_bin553.fits outfile=/scratch/kocevski/344083/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin553.fits ra=198.111 dec=-21.938 rad=12.0 tmin=382665601.0 tmax=382924801.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.35
user 3.14
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344083/ft2_4FGL_J1312.4-2156_daily_bin553.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/344083/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin553.fits evtable="EVENTS" outfile="/scratch/kocevski/344083/ft1_filtered_4FGL_J1312.4-2156_daily_bin553.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/344083/ft1_filtered_4FGL_J1312.4-2156_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/344083/ft2_4FGL_J1312.4-2156_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/344083/ltcube_382665601_382924801_4FGL_J1312.4-2156_daily_bin553.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/344083/ft2_4FGL_J1312.4-2156_daily_bin553.fits
.....................!
real 14.42
user 14.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344083/ft1_filtered_4FGL_J1312.4-2156_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/344083/ft2_4FGL_J1312.4-2156_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/344083/ltcube_382665601_382924801_4FGL_J1312.4-2156_daily_bin553.fits outfile=/scratch/kocevski/344083/expmap_382665601_382924801_4FGL_J1312.4-2156_daily_bin553.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/344083/ltcube_382665601_382924801_4FGL_J1312.4-2156_daily_bin553.fits
.....................!
real 191.51
user 186.38
sys 4.72

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/344083/ft1_filtered_4FGL_J1312.4-2156_daily_bin553.fits scfile=/scratch/kocevski/344083/ft2_4FGL_J1312.4-2156_daily_bin553.fits outfile=/scratch/kocevski/344083/cmap_382665601_382924801_4FGL_J1312.4-2156_daily_bin553.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344083/ft1_filtered_4FGL_J1312.4-2156_daily_bin553.fits scfile=/scratch/kocevski/344083/ft2_4FGL_J1312.4-2156_daily_bin553.fits outfile=/scratch/kocevski/344083/cmap_HighResolution_382665601_382924801_4FGL_J1312.4-2156_daily_bin553.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/344083/ft1_filtered_4FGL_J1312.4-2156_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/344083/ft2_4FGL_J1312.4-2156_daily_bin553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/344083/Model_4FGL_J1312.4-2156_daily_bin553.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/344083/ft1_filtered_4FGL_J1312.4-2156_daily_bin553.fits.....................!
real 108.91
user 107.45
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1866       1.0000         .10000E-03   10000.    
     2 'norm      '    6.6099       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.098       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6591       1.0000         .10000E-03   10000.    
     5 'norm      '    .11383E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.888       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .78651       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.534       1.0000         .10000E-03   10000.    
    12 'norm      '    .93370E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0855       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.333       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    36.496       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.896       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84105       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6481       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .59874       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=   6444.134     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2815 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1890        17.434       -.38694E-06    .43737E-04
   2  norm          6.6100        1.7011        .13594E-07    .10647E-03
   3  Prefactor     30.052        86.811        .38812E-05   -.50479E-04
   4  norm          2.6590        7.2973        .41590E-05   -.44555E-03
   5  norm          .10000E-03    6.9173       -.26389E-05** at limit **
   6  Prefactor     12.887        7.6459       -.17198E-06    .24571E-03
   7  norm          .10000E-03    1.5676        .15394E-07** at limit **
   8  norm          .78637        2.4039        .29462E-06   -.43125E-04
   9  norm          .10000E-03    2.7469        .17691E-07** at limit **
  10  Prefactor     .10000E-03    3.3501       -.93149E-08** at limit **
  11  Prefactor     44.573        26.174        .14429E-05    .86273E-03
  12  norm          .10023E-03    3.2492       -.10530E-05** at limit **
  13  norm          3.8959        7.9256        .45039E-06    .43796E-03
  14  Prefactor     .10000E-03    8.4550        .10652E-08** at limit **
  15  Prefactor     .10000E-03    20.486       -.14854E-06** at limit **
  16  Prefactor     3.0795        16.733        .10070E-05   -.40232E-04
  17  Prefactor     20.331        13.571        .90916E-07    .26901E-04
  18  norm          .10000E-03    2.1322        .99097E-08** at limit **
  19  norm          36.491        33.913        .65181E-07   -.16169E-04
  20  Prefactor     .10000E-03    52.563       -.57299E-08** at limit **
  21  norm          14.891        13.280        .26033E-06   -.13340E-03
  22  Prefactor     .84656        3.9259        .54004E-07   -.19359E-03
  23  Normalizat    1.6479        .26400       -.27297E-06    .25278E-03
  24  Prefactor     .59879        .11350       -.44201E-06    .24975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.18896
  norm       = 6.61
  Prefactor  = 30.0519
  norm       = 2.65898
  norm       = 0.000100003
  Prefactor  = 12.8872
  norm       = 0.0001
  norm       = 0.786368
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5729
  norm       = 0.000100229
  norm       = 3.89594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.0795
  Prefactor  = 20.3311
  norm       = 0.0001
  norm       = 36.4909
  Prefactor  = 0.0001
  norm       = 14.8915
  Prefactor  = 0.846562
  Normalizat = 1.64788
  Prefactor  = 0.598787
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.134     FROM HESSE     STATUS=OK           405 CALLS     3220 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1890        17.458        .16140E-03   -1.5210    
   2  norm          6.6100        1.7021        .50377E-04   -1.5194    
   3  Prefactor     30.052        86.310        .73030E-04   -1.4611    
   4  norm          2.6590        7.2557        .12498E-02   -1.5382    
   5  norm          .10000E-03    7.3283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.887        7.6104        .11158E-03   -1.4990    
   7  norm          .10000E-03    1.5699        .98153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .78637        2.3674        .20745E-03   -1.5531    
   9  norm          .10000E-03    2.7564        .12993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3592        .14349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.573        31.724        .60078E-04   -1.4372    
  12  norm          .10023E-03    10.910        .38083E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8959        7.8673        .20447E-03   -1.5313    
  14  Prefactor     .10000E-03    8.4810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0795        16.502        .23089E-03   -1.5357    
  17  Prefactor     20.331        13.586        .88825E-04   -1.4806    
  18  norm          .10000E-03    2.1421        .11445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          36.491        33.935        .66339E-04   -1.4499    
  20  Prefactor     .10000E-03    52.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.891        13.189        .51888E-03   -1.4936    
  22  Prefactor     .84656        3.8174        .29559E-03   -1.5524    
  23  Normalizat    1.6479        .31432        .30896E-03   -.73704    
  24  Prefactor     .59879        .13355        .21215E-03   -1.0764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39462e-09
Minuit parameter uncertainties:
  1  17.472
  2  1.7021
  3  86.6715
  4  7.25805
  5  0.000315434
  6  7.61093
  7  9.40954e-07
  8  2.36764
  9  1.65704e-06
  10  1.4955e-06
  11  31.7364
  12  0.00316519
  13  7.86942
  14  1.15831e-06
  15  2.63701e-05
  16  14.263
  17  13.5877
  18  4.58375e-07
  19  33.9528
  20  6.36698e-05
  21  13.1913
  22  3.59555
  23  0.314702
  24  0.133623
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  7.864e-01  2.368e+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:  5.988e-01  1.336e-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:  1.648e+00  3.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/344083/likelihoodResults_382665601_382924801_4FGL_J1312.4-2156_daily_bin553.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) = 6444.09282613
delta logL = 0.0411920088072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6444.09255316
delta logL = 0.0414649783052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80722       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4421       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59833       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6444.093     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      247 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81119        3.0930        .16092E-03    .33981E-04
   2  alpha         2.4357        3.7127        .38904E-01    .18963E-05
   3  Normalizat    1.6408        .31344        .30949E-03   -.16220E-03
   4  Prefactor     .59831        .13431        .21220E-03   -.16217E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.811186
  alpha      = 2.43572
  Normalizat = 1.64081
  Prefactor  = 0.598312
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.093     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81119        2.4130        .64369E-05   -1.5528    
   2  alpha         2.4357        3.6101        .15562E-02   -.25716E-01
   3  Normalizat    1.6408        .30374        .61897E-04   -.73895    
   4  Prefactor     .59831        .13223        .84882E-05   -1.0766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32165e-11
Minuit parameter uncertainties:
  1  2.41332
  2  2.81599
  3  0.304085
  4  0.132299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344083': 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) = 6444.09255045
delta logL = 0.0414676915052

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  8.112e-01  2.413e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  2.436e+00  2.816e+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:  5.983e-01  1.323e-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:  1.641e+00  3.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/344083/cmap_HighResolution_382665601_382924801_4FGL_J1312.4-2156_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-05', job_status='DONE', photon_flux_upper_limit='7.07e-08', time_completed='2021-09-07 04:52:00.625723', job_id='344083', GAL2='0.60', fit_tolerance='1e-08', EG2='1.64', EG='1.65', time_epoch_completed='1631015520.63', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='4.15e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='553' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:52:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 344083: <4FGL_J1312.4-2156_daily_bin553> in cluster <slac> Done

Job <4FGL_J1312.4-2156_daily_bin553> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 04:35:36 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:38:44 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:38:44 2021
Terminated at Tue Sep  7 04:52:01 2021
Results reported at Tue Sep  7 04:52:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin553 198.111 -21.938 382665601 382924801 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            985 sec.

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

