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


Performing analysis on: 4FGL_J1312.8-0425_daily_bin923
RA = 198.217, Dec = -4.4196
tmin = 478569601, tmax = 478828801
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='373651', job_status='RUN', time_executed='2021-09-07 06:06:49.278633', time_epoch_executed='1631020009.28' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373651

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373651/ft1_4FGL_J1312.8-0425_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373651/ft2_4FGL_J1312.8-0425_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373651/ft1_4FGL_J1312.8-0425_daily_bin923.fits outfile=/scratch/kocevski/373651/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin923.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=478569601.0 tmax=478828801.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 2.88
user 2.66
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373651/ft1_filtered_4FGL_J1312.8-0425_daily_bin923.fits" evtable="EVENTS" scfile=/scratch/kocevski/373651/ft2_4FGL_J1312.8-0425_daily_bin923.fits sctable="SC_DATA" outfile=/scratch/kocevski/373651/ltcube_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.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/373651/ft2_4FGL_J1312.8-0425_daily_bin923.fits
.....................!
real 14.78
user 14.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373651/ft1_filtered_4FGL_J1312.8-0425_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/373651/ft2_4FGL_J1312.8-0425_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/373651/ltcube_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.fits outfile=/scratch/kocevski/373651/expmap_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.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/373651/ltcube_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.fits
.....................!
real 157.33
user 152.51
sys 4.25

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J1312.8-0425 @ 198.217 -4.4196

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/373651/ft1_filtered_4FGL_J1312.8-0425_daily_bin923.fits scfile=/scratch/kocevski/373651/ft2_4FGL_J1312.8-0425_daily_bin923.fits outfile=/scratch/kocevski/373651/cmap_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=198.217 yref=-4.4196 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373651/ft1_filtered_4FGL_J1312.8-0425_daily_bin923.fits scfile=/scratch/kocevski/373651/ft2_4FGL_J1312.8-0425_daily_bin923.fits outfile=/scratch/kocevski/373651/cmap_HighResolution_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=198.217 yref=-4.4196 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.51
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373651/ft1_filtered_4FGL_J1312.8-0425_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/373651/ft2_4FGL_J1312.8-0425_daily_bin923.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373651/Model_4FGL_J1312.8-0425_daily_bin923.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/373651/ft1_filtered_4FGL_J1312.8-0425_daily_bin923.fits.....................!
real 40.76
user 38.88
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/373651/ft1_filtered_4FGL_J1312.8-0425_daily_bin923.fits', '/scratch/kocevski/373651/ft2_4FGL_J1312.8-0425_daily_bin923.fits', expMap='/scratch/kocevski/373651/expmap_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.fits', expCube='/scratch/kocevski/373651/ltcube_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/373651/Model_4FGL_J1312.8-0425_daily_bin923.xml', optimizer='MINUIT')

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

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  7.815e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.205e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/373651/ft1_filtered_4FGL_J1312.8-0425_daily_bin923.fits
Spacecraft file(s): /scratch/kocevski/373651/ft2_4FGL_J1312.8-0425_daily_bin923.fits
Exposure map: /scratch/kocevski/373651/expmap_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.fits
Exposure cube: /scratch/kocevski/373651/ltcube_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/373651/Model_4FGL_J1312.8-0425_daily_bin923.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) = 5905.78763259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0378       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.395       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20804E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    82.178       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3915       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13765E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6063       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0953       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4779       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7614       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .32588E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2102       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96946       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5905.720     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2438 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0382        8.7929       -.57946E-06   -.25194E-04
   2  Prefactor     22.394        15.658       -.56790E-06    .18999E-04
   3  Prefactor     .10000E-03    5.6477       -.71220E-07** at limit **
   4  Prefactor     .10000E-03    43.813        .47767E-06** at limit **
   5  Prefactor     .10000E-03    393.59       -.11594E-04** at limit **
   6  norm          82.150        43.475        .91537E-06   -.85994E-05
   7  norm          1.3911        .33898       -.10415E-07    .14095E-02
   8  Prefactor     .10000E-03    50.582       -.12317E-05** at limit **
   9  norm          3.6103        10.237       -.38380E-05    .61864E-06
  10  norm          .10000E-03    4.3268        .82179E-08** at limit **
  11  Prefactor     .10000E-03    3.7633       -.20511E-07** at limit **
  12  Prefactor     6.0959        25.586       -.21885E-04    .14083E-03
  13  Prefactor     1.0956        5.8703       -.29699E-05   -.10032E-02
  14  Prefactor     .10000E-03    11.205        .30052E-07** at limit **
  15  norm          1.4782        1.4525        .21295E-07   -.17474E-03
  16  norm          2.7619        2.7767       -.16327E-06   -.13774E-03
  17  norm          .10000E-03    2.0696       -.10141E-07** at limit **
  18  norm          .10000E-03    10.882       -.56190E-07** at limit **
  19  Prefactor     .10001E-03    2.9995       -.18973E-06** at limit **
  20  Prefactor     .10000E-03    18.533       -.21119E-06** at limit **
  21  Normalizat    1.2101        .24276        .43714E-05    .25650E-04
  22  Prefactor     .96941        .15918       -.29703E-06    .29251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.03815
  Prefactor  = 22.3938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 82.1499
  norm       = 1.39107
  Prefactor  = 0.0001
  norm       = 3.61027
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.09594
  Prefactor  = 1.09564
  Prefactor  = 0.0001
  norm       = 1.47815
  norm       = 2.76193
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Normalizat = 1.21011
  Prefactor  = 0.969414
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.720     FROM HESSE     STATUS=OK           348 CALLS     2786 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0382        8.7933        .15122E-03   -1.5177    
   2  Prefactor     22.394        15.667        .84641E-04   -1.4761    
   3  Prefactor     .10000E-03    5.6660        .17827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    402.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          82.150        43.453        .44308E-04   -1.3893    
   7  norm          1.3911        .33891        .20844E-04   -1.5472    
   8  Prefactor     .10000E-03    50.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6103        10.247        .21277E-03   -1.5328    
  10  norm          .10000E-03    4.3332        .15612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7743        .14558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0959        24.368        .16277E-03   -1.5214    
  13  Prefactor     1.0956        6.6370        .38319E-03   -1.5499    
  14  Prefactor     .10000E-03    11.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4782        1.4345        .87492E-04   -1.5465    
  16  norm          2.7619        2.7658        .12401E-03   -1.5376    
  17  norm          .10000E-03    2.0739        .10794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    5.4013        .46842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2101        .28521        .30702E-03   -.86291    
  22  Prefactor     .96941        .18859        .23230E-03   -.93756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30288e-09
Minuit parameter uncertainties:
  1  8.79494
  2  15.6699
  3  1.74557e-05
  4  0.000110285
  5  0.000366771
  6  43.4697
  7  0.338915
  8  0.000129498
  9  10.252
  10  1.3034e-06
  11  3.64284e-06
  12  24.3928
  13  5.3939
  14  1.09253e-05
  15  1.43451
  16  2.76588
  17  1.72447e-06
  18  2.40145e-07
  19  0.000416103
  20  3.12938e-05
  21  0.285575
  22  0.188717
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  3.610e+00  1.025e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.205e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.694e-01  1.887e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.210e+00  2.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 198.217 -4.420
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373651/likelihoodResults_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.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) = 5905.65055568
delta logL = 0.0697051422012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5905.64767275
delta logL = 0.0725880704031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0710       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3555       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96335       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5905.648     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0710        6.5224        .57867E-02    .10509E-02
   2  alpha         1.3551        .99309        .48658       -.44511E-04
   3  Normalizat    1.2212        .22892        .69118E-01    .99676E-05
   4  Prefactor     .96337        .15809        .45807E-01    .74603E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.07102
  alpha      = 1.35507
  Normalizat = 1.22117
  Prefactor  = 0.963372
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.648     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0710        7.7227        .23147E-03   -1.5357    
   2  alpha         1.3551        1.4193        .34729E-01   -.47571    
   3  Normalizat    1.2212        .26931        .30581E-03   -.85951    
   4  Prefactor     .96337        .18615        .23291E-03   -.93961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22604e-08
Minuit parameter uncertainties:
  1  7.72519
  2  1.53954
  3  0.26962
  4  0.186276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373651': 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) = 5905.64767268
delta logL = 0.0725881348362

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  3.071e+00  7.725e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  1.355e+00  1.540e+00  0.000e+00  5.000e+00 ( 1.000e+00)
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.634e-01  1.863e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.221e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 198.217 -4.420

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/373651/cmap_HighResolution_478569601_478828801_4FGL_J1312.8-0425_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-07 06:15:31.993502', job_id='373651', GAL2='0.96', fit_tolerance='1e-08', EG2='1.22', EG='1.21', time_epoch_completed='1631020531.99', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.26e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='923' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:15:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 373651: <4FGL_J1312.8-0425_daily_bin923> in cluster <slac> Done

Job <4FGL_J1312.8-0425_daily_bin923> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 06:05:40 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:06:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 06:06:36 2021
Terminated at Tue Sep  7 06:15:32 2021
Results reported at Tue Sep  7 06:15:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin923 198.217 -4.4196 478569601 478828801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.8-0425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   517.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            592 sec.

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

