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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin1009
RA = 198.169, Dec = 48.4701
tmin = 500860801, tmax = 501120001
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='362704', job_status='RUN', time_executed='2021-09-07 05:31:24.745710', time_epoch_executed='1631017884.75' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362704

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362704/ft1_4FGL_J1312.6+4828_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362704/ft1_4FGL_J1312.6+4828_daily_bin1009.fits outfile=/scratch/kocevski/362704/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1009.fits ra=198.169 dec=48.4701 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.62
user 4.35
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.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/362704/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1009.fits evtable="EVENTS" outfile="/scratch/kocevski/362704/ft1_filtered_4FGL_J1312.6+4828_daily_bin1009.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362704/ft1_filtered_4FGL_J1312.6+4828_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/362704/ltcube_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.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/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits
.....................!
real 17.34
user 16.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362704/ft1_filtered_4FGL_J1312.6+4828_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/362704/ltcube_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.fits outfile=/scratch/kocevski/362704/expmap_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.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/362704/ltcube_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.fits
.....................!
real 192.90
user 187.60
sys 4.70

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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1312.6+4828 @ 198.169 48.4701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/362704/ft1_filtered_4FGL_J1312.6+4828_daily_bin1009.fits scfile=/scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits outfile=/scratch/kocevski/362704/cmap_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.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.169 yref=48.4701 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362704/ft1_filtered_4FGL_J1312.6+4828_daily_bin1009.fits scfile=/scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits outfile=/scratch/kocevski/362704/cmap_HighResolution_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.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.169 yref=48.4701 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362704/ft1_filtered_4FGL_J1312.6+4828_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362704/Model_4FGL_J1312.6+4828_daily_bin1009.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/362704/ft1_filtered_4FGL_J1312.6+4828_daily_bin1009.fits.....................!
real 45.96
user 44.52
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362704/ft1_filtered_4FGL_J1312.6+4828_daily_bin1009.fits', '/scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits', expMap='/scratch/kocevski/362704/expmap_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.fits', expCube='/scratch/kocevski/362704/ltcube_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362704/Model_4FGL_J1312.6+4828_daily_bin1009.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1312.6+4828'

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  4.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/362704/ft1_filtered_4FGL_J1312.6+4828_daily_bin1009.fits
Spacecraft file(s): /scratch/kocevski/362704/ft2_4FGL_J1312.6+4828_daily_bin1009.fits
Exposure map: /scratch/kocevski/362704/expmap_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.fits
Exposure cube: /scratch/kocevski/362704/ltcube_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362704/Model_4FGL_J1312.6+4828_daily_bin1009.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) = 5068.0966164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9258       1.0000         .10000E-03   10000.    
     2 'norm      '    25.020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5624       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4724       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.122       1.0000         .10000E-03   10000.    
     7 'norm      '    6.1723       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8099       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    30.154       1.0000         .10000E-03   10000.    
    12 'norm      '    .61055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.191       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.062       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84039       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.596       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.5884       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.4277       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    80.411       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.5746       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.386       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77199       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70885       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5068.080     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     3244 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9263        2.5626        .94392E-07    .31817E-04
   2  norm          25.021        1.0493        .27122E-06    .94259E-03
   3  Prefactor     .10000E-03    8.0031       -.83872E-05** at limit **
   4  Prefactor     5.5632        1.0275       -.33214E-07   -.99070E-04
   5  norm          3.4724        2.0756        .16661E-06    .43298E-04
   6  Prefactor     34.123        1.0092        .10439E-06   -.12382E-03
   7  norm          6.1722        2.8597        .49933E-06    .54253E-05
   8  Prefactor     .10001E-03    35.788        .53795E-04** at limit **
   9  Prefactor     1.8096        1.0547       -.46426E-06   -.24442E-03
  10  Prefactor     .10000E-03    10.231        .47738E-05** at limit **
  11  norm          30.153        1.0007        .17025E-07   -.65861E-04
  12  norm          .61035        2.3430       -.15359E-06    .33952E-04
  13  Prefactor     19.187        1.0418        .18725E-06   -.42495E-03
  14  Prefactor     14.063        1.0060        .11247E-06    .14755E-04
  15  Prefactor     .82755        1.4578       -.21532E-05   -.27088E-04
  16  norm          .10000E-03    1.6262        .31915E-06** at limit **
  17  Prefactor     31.599        1.2603        .80176E-06   -.13197E-02
  18  Prefactor     23.177        4.2913        .50618E-05   -.68579E-02
  19  Prefactor     .10013E-03    11.640        .37656E-06** at limit **
  20  norm          9.5888        2.3092        .14158E-07   -.64456E-05
  21  norm          .10011E-03    17.477       -.24243E-04** at limit **
  22  norm          7.4284        4.1826        .34671E-05    .20308E-03
  23  norm          .10000E-03    7.4234        .47175E-05** at limit **
  24  Prefactor     80.411        1.0035        .60287E-07   -.27712E-03
  25  Prefactor     .10010E-03    66.591       -.52432E-04** at limit **
  26  Prefactor     3.5748        3.4228        .51699E-05    .13677E-03
  27  Prefactor     20.391        1.2294        .82856E-06   -.46282E-03
  28  Prefactor     .10000E-03    2.9796       -.11660E-06** at limit **
  29  Normalizat    .77164        .18465       -.25643E-05    .58129E-05
  30  Prefactor     .70928        .22687       -.34740E-06   -.10670E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.9263
  norm       = 25.0209
  Prefactor  = 0.0001
  Prefactor  = 5.56319
  norm       = 3.47238
  Prefactor  = 34.1234
  norm       = 6.17224
  Prefactor  = 0.000100007
  Prefactor  = 1.80959
  Prefactor  = 0.0001
  norm       = 30.1533
  norm       = 0.610355
  Prefactor  = 19.1873
  Prefactor  = 14.063
  Prefactor  = 0.827548
  norm       = 0.0001
  Prefactor  = 31.5986
  Prefactor  = 23.1774
  Prefactor  = 0.000100131
  norm       = 9.58879
  norm       = 0.000100108
  norm       = 7.4284
  norm       = 0.0001
  Prefactor  = 80.4109
  Prefactor  = 0.000100101
  Prefactor  = 3.57479
  Prefactor  = 20.391
  Prefactor  = 0.0001
  Normalizat = 0.771637
  Prefactor  = 0.709279
 **********
 **   18 **HESSE 
 **********

 FCN=   5068.080     FROM HESSE     STATUS=OK           658 CALLS     3902 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9263        2.5709        .50902E-02   -1.5312    
   2  norm          25.021        8.6530        .20021E-02   -1.4707    
   3  Prefactor     .10000E-03    7.9969        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5632        7.5135        .42586E-02   -1.5236    
   5  norm          3.4724        2.2311        .54252E-02   -1.5335    
   6  Prefactor     34.123        19.753        .17150E-02   -1.4539    
   7  norm          6.1722        2.8683        .40397E-02   -1.5211    
   8  Prefactor     .10001E-03    38.577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8096        5.7195        .77642E-02   -1.5439    
  10  Prefactor     .10000E-03    10.198        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          30.153        16.747        .18241E-02   -1.4609    
  12  norm          .61035        2.4157        .11714E-01   -1.5552    
  13  Prefactor     19.187        28.606        .22857E-02   -1.4832    
  14  Prefactor     14.063        11.155        .26703E-02   -1.4958    
  15  Prefactor     .82755        23.974        .12590       -1.5526    
  16  norm          .10000E-03    1.6076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.599        39.495        .17821E-02   -1.4583    
  18  Prefactor     23.177        69.224        .20807E-02   -1.4745    
  19  Prefactor     .10013E-03    27.809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.5888        2.3354        .32354E-02   -1.5089    
  21  norm          .10011E-03    26.100        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.4284        4.2289        .36790E-02   -1.5163    
  23  norm          .10000E-03    7.4172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     80.411        56.701        .11197E-02   -1.3912    
  25  Prefactor     .10010E-03    66.970        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5748        3.4438        .53438E-02   -1.5330    
  27  Prefactor     20.391        21.685        .22177E-02   -1.4805    
  28  Prefactor     .10000E-03    2.9402        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77164        .16599        .43244E-01   -1.0113    
  30  Prefactor     .70928        .19545        .65459E-01   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36583e-06
Minuit parameter uncertainties:
  1  2.57099
  2  8.65347
  3  5.26541e-05
  4  7.51474
  5  2.23112
  6  19.7571
  7  2.86839
  8  0.00103698
  9  5.72119
  10  6.32658e-05
  11  16.7495
  12  2.41607
  13  28.6269
  14  11.1571
  15  8.91167
  16  8.81789e-07
  17  39.5274
  18  69.4654
  19  0.00381693
  20  2.33538
  21  0.00335982
  22  4.22907
  23  3.59807e-05
  24  56.7395
  25  0.0052098
  26  3.44394
  27  21.6933
  28  1.81424e-06
  29  0.166101
  30  0.195636
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  6.104e-01  2.416e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  7.093e-01  1.956e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  7.716e-01  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 198.169 48.470
Photon Flux Upper Limit: 4.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362704/likelihoodResults_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.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) = 5068.07903159
delta logL = 0.00117189772664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5068.07900934
delta logL = 0.0011941512621

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5068.079     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      271 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62511        2.3985        .21099E-03   -.42574E-03
   2  alpha         1.9832        1.5641        .39671E-01   -.17380E-04
   3  Normalizat    .77198        .18128        .22483E-03   -.65735E-06
   4  Prefactor     .70898        .22613        .28966E-03    .11775E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.625115
  alpha      = 1.98324
  Normalizat = 0.771975
  Prefactor  = 0.708984
 **********
 **   18 **HESSE 
 **********

 FCN=   5068.079     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62511        2.3729        .84394E-05   -1.5550    
   2  alpha         1.9832        1.5522        .15869E-02   -.20821    
   3  Normalizat    .77198        .18141        .89932E-05   -1.0112    
   4  Prefactor     .70898        .22628        .11586E-04   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97971e-10
Minuit parameter uncertainties:
  1  2.37321
  2  1.68151
  3  0.181556
  4  0.226577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362704': 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) = 5068.07900932
delta logL = 0.00119416756115

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  6.251e-01  2.373e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  1.983e+00  1.682e+00  0.000e+00  5.000e+00 ( 1.000e+00)
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  7.090e-01  2.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  7.720e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 198.169 48.470

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/362704/cmap_HighResolution_500860801_501120001_4FGL_J1312.6+4828_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-09-07 05:45:20.563093', job_id='362704', GAL2='0.71', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1631018720.56', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.19e-03', ts2='0.08', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1009' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 362704: <4FGL_J1312.6+4828_daily_bin1009> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin1009> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 05:30:38 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:31:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 05:31:07 2021
Terminated at Tue Sep  7 05:45:21 2021
Results reported at Tue Sep  7 05:45:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin1009 198.169 48.4701 500860801 501120001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.6+4828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   825.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            883 sec.

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

