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


Performing analysis on: 4FGL_J1312.8-0425_daily_bin879
RA = 198.217, Dec = -4.4196
tmin = 467164801, tmax = 467424001
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='373581', job_status='RUN', time_executed='2021-09-07 06:06:30.019073', time_epoch_executed='1631019990.02' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='879'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373581/ft1_4FGL_J1312.8-0425_daily_bin879.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373581/ft2_4FGL_J1312.8-0425_daily_bin879.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373581/ft1_4FGL_J1312.8-0425_daily_bin879.fits outfile=/scratch/kocevski/373581/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin879.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=467164801.0 tmax=467424001.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.61
user 3.37
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373581/ft2_4FGL_J1312.8-0425_daily_bin879.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/373581/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin879.fits evtable="EVENTS" outfile="/scratch/kocevski/373581/ft1_filtered_4FGL_J1312.8-0425_daily_bin879.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 1.21
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373581/ft1_filtered_4FGL_J1312.8-0425_daily_bin879.fits" evtable="EVENTS" scfile=/scratch/kocevski/373581/ft2_4FGL_J1312.8-0425_daily_bin879.fits sctable="SC_DATA" outfile=/scratch/kocevski/373581/ltcube_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.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/373581/ft2_4FGL_J1312.8-0425_daily_bin879.fits
.....................!
real 14.64
user 14.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373581/ft1_filtered_4FGL_J1312.8-0425_daily_bin879.fits evtable="EVENTS" scfile=/scratch/kocevski/373581/ft2_4FGL_J1312.8-0425_daily_bin879.fits sctable="SC_DATA" expcube=/scratch/kocevski/373581/ltcube_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.fits outfile=/scratch/kocevski/373581/expmap_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.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/373581/ltcube_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.fits
.....................!
real 190.62
user 185.13
sys 5.09

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/373581/ft1_filtered_4FGL_J1312.8-0425_daily_bin879.fits scfile=/scratch/kocevski/373581/ft2_4FGL_J1312.8-0425_daily_bin879.fits outfile=/scratch/kocevski/373581/cmap_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373581/ft1_filtered_4FGL_J1312.8-0425_daily_bin879.fits scfile=/scratch/kocevski/373581/ft2_4FGL_J1312.8-0425_daily_bin879.fits outfile=/scratch/kocevski/373581/cmap_HighResolution_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373581/ft1_filtered_4FGL_J1312.8-0425_daily_bin879.fits evtable="EVENTS" scfile=/scratch/kocevski/373581/ft2_4FGL_J1312.8-0425_daily_bin879.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373581/Model_4FGL_J1312.8-0425_daily_bin879.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/373581/ft1_filtered_4FGL_J1312.8-0425_daily_bin879.fits.....................!
real 75.71
user 74.13
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/373581/ft1_filtered_4FGL_J1312.8-0425_daily_bin879.fits', '/scratch/kocevski/373581/ft2_4FGL_J1312.8-0425_daily_bin879.fits', expMap='/scratch/kocevski/373581/expmap_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.fits', expCube='/scratch/kocevski/373581/ltcube_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/373581/Model_4FGL_J1312.8-0425_daily_bin879.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/373581/ft1_filtered_4FGL_J1312.8-0425_daily_bin879.fits
Spacecraft file(s): /scratch/kocevski/373581/ft2_4FGL_J1312.8-0425_daily_bin879.fits
Exposure map: /scratch/kocevski/373581/expmap_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.fits
Exposure cube: /scratch/kocevski/373581/ltcube_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/373581/Model_4FGL_J1312.8-0425_daily_bin879.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) = 9594.91101927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96826E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4197       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.357       1.0000         .10000E-03   10000.    
     6 'norm      '    19.344       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7870       1.0000         .10000E-03   10000.    
    10 'norm      '    6.6282       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9672       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.962       1.0000         .10000E-03   10000.    
    15 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1471       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2500       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.988       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1943       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0854       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9594.894     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2407 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11076E-03    5.6364         .0000    ** at limit **
   2  Prefactor     .10000E-03    6.2107         .0000    ** at limit **
   3  Prefactor     6.4210        6.9805         .0000        .31328E-03
   4  Prefactor     5.4937        29.642         .0000        .37906E-03
   5  Prefactor     47.357        45.833         .0000       -.31176E-03
   6  norm          19.343        19.946         .0000        .47889E-04
   7  norm          2.4677        .35726         .0000       -.40775E-03
   8  Prefactor     .10002E-03    25.775         .0000    ** at limit **
   9  norm          9.7864        8.7130         .0000        .15297E-03
  10  norm          6.6268        9.9217         .0000        .33707E-03
  11  Prefactor     .10000E-03    2.3490         .0000    ** at limit **
  12  Prefactor     9.9663        17.239         .0000        .15026E-03
  13  Prefactor     2.5548        7.8274         .0000        .10163E-01
  14  Prefactor     32.922        26.646         .0000        .13900E-01
  15  norm          .10000E-03    .45434         .0000    ** at limit **
  16  norm          3.1598        6.7824         .0000        .21007E-01
  17  norm          2.2358        6.5710         .0000        .14357E-02
  18  norm          .10000E-03    11.574         .0000    ** at limit **
  19  Prefactor     20.989        7.0559         .0000        .29248E-02
  20  Prefactor     6.1924        17.469         .0000        .10281E-02
  21  Normalizat    1.2609        .20969         .0000       -.27191E-03
  22  Prefactor     1.0855        .13837         .0000       -.34503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110757
  Prefactor  = 0.0001
  Prefactor  = 6.42096
  Prefactor  = 5.49373
  Prefactor  = 47.357
  norm       = 19.3432
  norm       = 2.46774
  Prefactor  = 0.000100017
  norm       = 9.78641
  norm       = 6.62675
  Prefactor  = 0.0001
  Prefactor  = 9.96628
  Prefactor  = 2.55476
  Prefactor  = 32.9223
  norm       = 0.0001
  norm       = 3.15976
  norm       = 2.23579
  norm       = 0.0001
  Prefactor  = 20.989
  Prefactor  = 6.1924
  Normalizat = 1.26093
  Prefactor  = 1.08546
 **********
 **   18 **HESSE 
 **********

 FCN=   9594.894     FROM HESSE     STATUS=OK           350 CALLS     2757 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11076E-03    70.550        .44358E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4210        6.9300        .15841E-03   -1.5201    
   4  Prefactor     5.4937        29.595        .17139E-03   -1.5239    
   5  Prefactor     47.357        46.166        .58267E-04   -1.4331    
   6  norm          19.343        19.942        .91066E-04   -1.4828    
   7  norm          2.4677        .36124        .20117E-04   -1.5394    
   8  Prefactor     .10002E-03    25.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7864        8.7077        .12809E-03   -1.5082    
  10  norm          6.6268        9.9192        .15587E-03   -1.5193    
  11  Prefactor     .10000E-03    2.3537        .14659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9663        17.301        .12692E-03   -1.5076    
  13  Prefactor     2.5548        7.8318        .12768E-02   -1.5388    
  14  Prefactor     32.922        25.856        .69794E-04   -1.4560    
  15  norm          .10000E-03    .71771        .12759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1598        6.4302        .91410E-03   -1.5352    
  17  norm          2.2358        6.3080        .27393E-03   -1.5409    
  18  norm          .10000E-03    11.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.989        7.0435        .87429E-04   -1.4791    
  20  Prefactor     6.1924        17.466        .80649E-03   -1.5210    
  21  Normalizat    1.2609        .24812        .33192E-03   -.84740    
  22  Prefactor     1.0855        .16467        .24668E-03   -.89933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89426e-07
Minuit parameter uncertainties:
  1  0.0551617
  2  9.44843e-06
  3  6.93091
  4  25.5215
  5  46.2009
  6  19.9489
  7  0.361237
  8  0.00131713
  9  8.70887
  10  9.92165
  11  2.35159e-05
  12  17.3092
  13  7.83498
  14  25.8651
  15  2.36152e-06
  16  6.43163
  17  6.30992
  18  0.000146673
  19  7.04375
  20  17.48
  21  0.24835
  22  0.164752
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  9.786e+00  8.709e+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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.085e+00  1.648e-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.261e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 198.217 -4.420
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.07e-05

TS (Fixed Index): 2.17
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/373581/likelihoodResults_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.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) = 9594.8624901
delta logL = 0.0319504302661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9594.86140124
delta logL = 0.0330392950527

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9594.861     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      277 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5716        8.6612        .12954E-03    .34753E-04
   2  alpha         2.4339        .88772        .27432E-01    .11257E-03
   3  Normalizat    1.2522        .23426        .33287E-03    .46312E-04
   4  Prefactor     1.0891        .16220        .24631E-03   -.63142E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.57158
  alpha      = 2.4339
  Normalizat = 1.25221
  Prefactor  = 1.08912
 **********
 **   18 **HESSE 
 **********

 FCN=   9594.861     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5716        8.5358        .51817E-05   -1.5089    
   2  alpha         2.4339        .87497        .54863E-02   -.26441E-01
   3  Normalizat    1.2522        .23434        .13315E-04   -.85004    
   4  Prefactor     1.0891        .16228        .98524E-05   -.89815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23186e-11
Minuit parameter uncertainties:
  1  8.53687
  2  0.893912
  3  0.234542
  4  0.162355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373581': 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) = 9594.86140084
delta logL = 0.0330396901063

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  9.572e+00  8.537e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.434e+00  8.939e-01  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:  1.089e+00  1.624e-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.252e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 198.217 -4.420
Photon Index (Free Index): 2.43 +/- 0.89
Photon Flux (Free Index): 3.96e-08 +/- 4.32e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.03e-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/373581/cmap_HighResolution_467164801_467424001_4FGL_J1312.8-0425_daily_bin879.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-05', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='1.19e-05', photon_flux_error='2.89e-08', dlogl='3.30e-02', energy_flux='1.21e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2021-09-07 06:20:37.410884', photon_index_error2='0.89', photon_index2='2.43', ts='2.17', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.03e-05', EG='1.26', time_epoch_completed='1631020837.41', return_code='0', job_id='373581', GAL2='1.09', EG2='1.25', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.32e-08', ts2='2.24', photon_index='2.21' WHERE bin_id='879' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:20:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 373581: <4FGL_J1312.8-0425_daily_bin879> in cluster <slac> Done

Job <4FGL_J1312.8-0425_daily_bin879> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 06:05:35 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:06:13 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:13 2021
Terminated at Tue Sep  7 06:20:38 2021
Results reported at Tue Sep  7 06:20:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin879 198.217 -4.4196 467164801 467424001 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 :                                   841.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            903 sec.

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

