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


Performing analysis on: 4FGL_J1312.8-0425_daily_bin905
RA = 198.217, Dec = -4.4196
tmin = 473904001, tmax = 474163201
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='373623', job_status='RUN', time_executed='2021-09-07 06:08:56.729536', time_epoch_executed='1631020136.73' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373623/ft1_4FGL_J1312.8-0425_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373623/ft2_4FGL_J1312.8-0425_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373623/ft1_4FGL_J1312.8-0425_daily_bin905.fits outfile=/scratch/kocevski/373623/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin905.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.24
user 4.83
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373623/ft1_filtered_4FGL_J1312.8-0425_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/373623/ft2_4FGL_J1312.8-0425_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/373623/ltcube_473904001_474163201_4FGL_J1312.8-0425_daily_bin905.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/373623/ft2_4FGL_J1312.8-0425_daily_bin905.fits
.....................!
real 13.88
user 13.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373623/ft1_filtered_4FGL_J1312.8-0425_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/373623/ft2_4FGL_J1312.8-0425_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/373623/ltcube_473904001_474163201_4FGL_J1312.8-0425_daily_bin905.fits outfile=/scratch/kocevski/373623/expmap_473904001_474163201_4FGL_J1312.8-0425_daily_bin905.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/373623/ltcube_473904001_474163201_4FGL_J1312.8-0425_daily_bin905.fits
.....................!
real 191.92
user 186.33
sys 4.80

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/373623/ft1_filtered_4FGL_J1312.8-0425_daily_bin905.fits scfile=/scratch/kocevski/373623/ft2_4FGL_J1312.8-0425_daily_bin905.fits outfile=/scratch/kocevski/373623/cmap_473904001_474163201_4FGL_J1312.8-0425_daily_bin905.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373623/ft1_filtered_4FGL_J1312.8-0425_daily_bin905.fits scfile=/scratch/kocevski/373623/ft2_4FGL_J1312.8-0425_daily_bin905.fits outfile=/scratch/kocevski/373623/cmap_HighResolution_473904001_474163201_4FGL_J1312.8-0425_daily_bin905.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373623/ft1_filtered_4FGL_J1312.8-0425_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/373623/ft2_4FGL_J1312.8-0425_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373623/Model_4FGL_J1312.8-0425_daily_bin905.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/373623/ft1_filtered_4FGL_J1312.8-0425_daily_bin905.fits.....................!
real 43.10
user 41.65
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15440E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.369       1.0000         .10000E-03   10000.    
     6 'norm      '    5.3301       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9691       1.0000         .10000E-03   10000.    
     8 'Prefactor '    85.168       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.255       1.0000         .10000E-03   10000.    
    15 'norm      '    .88687E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    10.802       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8289       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46392E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5568       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74483       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=   4786.206     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2394 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7908        .90075E-07** at limit **
   2  Prefactor     55.921        24.909        .11197E-06   -.27491E-04
   3  Prefactor     .10000E-03    7.9810        .25413E-06** at limit **
   4  Prefactor     28.049        52.276       -.63236E-06   -.75989E-04
   5  Prefactor     71.413        90.694        .36164E-05    .58211E-04
   6  norm          5.3286        34.376        .77621E-06    .27808E-05
   7  norm          1.9682        .51818       -.15227E-06   -.38434E-02
   8  Prefactor     85.179        68.811        .35789E-06    .63575E-05
   9  norm          .10000E-03    5.0280        .85624E-07** at limit **
  10  norm          1.2074        28.657        .50772E-05    .13704E-03
  11  Prefactor     .10000E-03    7.5377       -.15777E-06** at limit **
  12  Prefactor     .10000E-03    10.123        .12612E-06** at limit **
  13  Prefactor     .10000E-03    10.392       -.34972E-06** at limit **
  14  Prefactor     39.226        44.613       -.11706E-05   -.16965E-03
  15  norm          .89182E-01    1.6787       -.11775E-05    .13296E-02
  16  norm          10.811        10.318       -.94593E-07   -.22528E-03
  17  norm          3.8135        15.947        .19457E-05    .48913E-04
  18  norm          .10000E-03    10.717        .56917E-07** at limit **
  19  Prefactor     .10000E-03    5.8193       -.49698E-06** at limit **
  20  Prefactor     .10011E-03    23.514        .39696E-05** at limit **
  21  Normalizat    1.5573        .29883        .23343E-05   -.28040E-03
  22  Prefactor     .74436        .19578       -.34588E-05   -.31839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 55.921
  Prefactor  = 0.0001
  Prefactor  = 28.0495
  Prefactor  = 71.4132
  norm       = 5.32855
  norm       = 1.96825
  Prefactor  = 85.1795
  norm       = 0.0001
  norm       = 1.20742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.2262
  norm       = 0.0891823
  norm       = 10.8106
  norm       = 3.81352
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100111
  Normalizat = 1.55734
  Prefactor  = 0.744363
 **********
 **   18 **HESSE 
 **********

 FCN=   4786.206     FROM HESSE     STATUS=OK           340 CALLS     2734 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8179        .16261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.921        24.925        .53643E-04   -1.4211    
   3  Prefactor     .10000E-03    131.05        .37086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.049        52.301        .75576E-04   -1.4648    
   5  Prefactor     71.413        92.380        .47519E-04   -1.4016    
   6  norm          5.3286        34.073        .17408E-03   -1.5246    
   7  norm          1.9682        .52720        .21696E-04   -1.5427    
   8  Prefactor     85.179        68.912        .21765E-03   -1.3859    
   9  norm          .10000E-03    5.0352        .15151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2074        30.703        .41008E-03   -1.5488    
  11  Prefactor     .10000E-03    7.5577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.226        44.614        .63974E-04   -1.4455    
  15  norm          .89182E-01    5.3104        .12779E-02   -1.5648    
  16  norm          10.811        10.255        .12190E-03   -1.5050    
  17  norm          3.8135        15.548        .20626E-03   -1.5317    
  18  norm          .10000E-03    10.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8893        .16296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10011E-03    80.655        .55445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5573        .33836        .29418E-03   -.76180    
  22  Prefactor     .74436        .22484        .27373E-03   -1.0181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0387e-09
Minuit parameter uncertainties:
  1  1.71885e-05
  2  24.9301
  3  0.000383899
  4  52.3863
  5  92.5668
  6  26.971
  7  0.527199
  8  68.9769
  9  1.07119e-05
  10  12.1838
  11  7.7898e-06
  12  1.44197e-05
  13  3.30645e-05
  14  44.6521
  15  1.37571
  16  10.2568
  17  15.407
  18  1.52641e-05
  19  5.42685e-05
  20  0.00598386
  21  0.338857
  22  0.225116
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.000e-04  1.071e-05  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:  7.444e-01  2.251e-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.557e+00  3.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 198.217 -4.420
Photon Flux Upper Limit: 8.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373623/likelihoodResults_473904001_474163201_4FGL_J1312.8-0425_daily_bin905.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) = 4786.20699892
delta logL = -0.000928510234189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4786.20607041
delta logL = -1.81717041414e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2087       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74438       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4786.206     FROM MIGRAD    STATUS=FAILED        84 CALLS      229 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10023E-03    10.709        .15159E-02** at limit **
   2  alpha         2.2749        3.6006        .16604       -.18170E-05
   3  Normalizat    1.5573        .32677        .29417E-03    .91205E-05
   4  Prefactor     .74436        .22072        .27373E-03    .96771E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4786.206     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      350 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10023E-03    10.709        .30813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2749        3.6006        .44172E-03   -.90175E-01
   3  Normalizat    1.5573        .32677        .47650E-04   -.76180    
   4  Prefactor     .74436        .22072        .58206E-04   -1.0181    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4786.206     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      382 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0976        .30317E-03** at limit **
   2  alpha         2.3489        3.5062        .33208E-01   -.13694E-08
   3  Normalizat    1.5573        .32710        .11767E-04   -.13140E-04
   4  Prefactor     .74436        .22095        .10949E-04   -.12460E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.34885
  Normalizat = 1.55734
  Prefactor  = 0.744364
 **********
 **   18 **HESSE 
 **********

 FCN=   4786.206     FROM HESSE     STATUS=OK            23 CALLS      405 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0874        .60634E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3489        3.0455        .13283E-02   -.60496E-01
   3  Normalizat    1.5573        .32758        .23534E-05   -.76180    
   4  Prefactor     .74436        .22126        .21898E-05   -1.0181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05134e-13
Minuit parameter uncertainties:
  1  1.07892e-06
  2  319.976
  3  0.328034
  4  0.221526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373623': 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) = 4786.20607031
delta logL = 1.01637851913e-07

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.000e-04  1.079e-06  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.349e+00  3.200e+02  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:  7.444e-01  2.215e-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.557e+00  3.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/373623/cmap_HighResolution_473904001_474163201_4FGL_J1312.8-0425_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-05', job_status='DONE', photon_flux_upper_limit='8.18e-08', time_completed='2021-09-07 06:19:10.621871', job_id='373623', GAL2='0.74', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1631020750.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='905' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:19:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 373623: <4FGL_J1312.8-0425_daily_bin905> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin905 198.217 -4.4196 473904001 474163201 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 :                                   585.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             248.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            813 sec.

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

