/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7467
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1312.6+4828_daily_bin71
RA = 198.169, Dec = 48.4701
tmin = 257731201, tmax = 257990401
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='355791', job_status='RUN', time_executed='2021-09-07 05:09:59.658197', time_epoch_executed='1631016599.66' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355791/ft1_4FGL_J1312.6+4828_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355791/ft2_4FGL_J1312.6+4828_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355791/ft1_4FGL_J1312.6+4828_daily_bin71.fits outfile=/scratch/kocevski/355791/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin71.fits ra=198.169 dec=48.4701 rad=12.0 tmin=257731201.0 tmax=257990401.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 1.52
user 1.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355791/ft1_filtered_4FGL_J1312.6+4828_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/355791/ft2_4FGL_J1312.6+4828_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/355791/ltcube_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.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/355791/ft2_4FGL_J1312.6+4828_daily_bin71.fits
.....................!
real 19.03
user 18.37
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355791/ft1_filtered_4FGL_J1312.6+4828_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/355791/ft2_4FGL_J1312.6+4828_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/355791/ltcube_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.fits outfile=/scratch/kocevski/355791/expmap_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.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/355791/ltcube_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.fits
.....................!
real 193.06
user 187.13
sys 5.31

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/355791/ft1_filtered_4FGL_J1312.6+4828_daily_bin71.fits scfile=/scratch/kocevski/355791/ft2_4FGL_J1312.6+4828_daily_bin71.fits outfile=/scratch/kocevski/355791/cmap_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355791/ft1_filtered_4FGL_J1312.6+4828_daily_bin71.fits scfile=/scratch/kocevski/355791/ft2_4FGL_J1312.6+4828_daily_bin71.fits outfile=/scratch/kocevski/355791/cmap_HighResolution_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.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.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/355791/ft1_filtered_4FGL_J1312.6+4828_daily_bin71.fits', '/scratch/kocevski/355791/ft2_4FGL_J1312.6+4828_daily_bin71.fits', expMap='/scratch/kocevski/355791/expmap_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.fits', expCube='/scratch/kocevski/355791/ltcube_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/355791/Model_4FGL_J1312.6+4828_daily_bin71.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/355791/ft1_filtered_4FGL_J1312.6+4828_daily_bin71.fits
Spacecraft file(s): /scratch/kocevski/355791/ft2_4FGL_J1312.6+4828_daily_bin71.fits
Exposure map: /scratch/kocevski/355791/expmap_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.fits
Exposure cube: /scratch/kocevski/355791/ltcube_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/355791/Model_4FGL_J1312.6+4828_daily_bin71.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) = 5582.10753308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.533       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8125       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6017       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1784       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11421E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.3163       1.0000         .10000E-03   10000.    
    12 'norm      '    .10410E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.645       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.081       1.0000         .10000E-03   10000.    
    20 'norm      '    7.6679       1.0000         .10000E-03   10000.    
    21 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .12294E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2266       1.0000         .10000E-03   10000.    
    24 'Prefactor '    86.794       1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.848       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17768E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88351       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1796       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5582.099     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3879 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .72848       -.68496E-07** at limit **
   2  norm          14.533        8.6400        .90344E-07    .34562E-04
   3  Prefactor     21.326        25.591        .59776E-06    .20949E-04
   4  Prefactor     .10000E-03    2.0683       -.59857E-07** at limit **
   5  norm          3.8123        2.3331       -.28254E-07    .23730E-04
   6  Prefactor     .10000E-03    8.5265       -.25421E-06** at limit **
   7  norm          4.6018        2.3385        .39952E-07    .22176E-04
   8  Prefactor     .10000E-03    30.120       -.38030E-07** at limit **
   9  Prefactor     9.1798        12.111        .15758E-05    .11781E-04
  10  Prefactor     .10000E-03    51.216       -.16832E-05** at limit **
  11  norm          5.3153        16.638        .23088E-05    .51295E-05
  12  norm          .10000E-03    4.7682        .33044E-06** at limit **
  13  Prefactor     33.441        33.699        .38664E-06    .14259E-03
  14  Prefactor     .10000E-03    8.0245        .15291E-06** at limit **
  15  Prefactor     .10000E-03    35.242        .66181E-06** at limit **
  16  norm          .10000E-03    1.7520        .29850E-07** at limit **
  17  Prefactor     .10000E-03    27.431        .20760E-05** at limit **
  18  Prefactor     35.621        58.143        .18919E-05   -.83418E-04
  19  Prefactor     16.132        58.987       -.11537E-04   -.11396E-03
  20  norm          7.6682        2.1605        .16577E-07    .13514E-03
  21  norm          .10000E-03    28.518        .40876E-06** at limit **
  22  norm          .10007E-03    2.5612        .25194E-05** at limit **
  23  norm          1.2261        35.925        .27381E-04   -.37725E-04
  24  Prefactor     86.788        71.069       -.10082E-06   -.22063E-03
  25  Prefactor     31.862        31.525       -.57585E-06    .27556E-04
  26  Prefactor     .10000E-03    2.0444        .39415E-07** at limit **
  27  Prefactor     .10000E-03    10.362        .10597E-06** at limit **
  28  Prefactor     .10000E-03    4.0314        .85433E-06** at limit **
  29  Normalizat    .88321        .18389       -.38682E-05   -.52007E-03
  30  Prefactor     1.1799        .22005        .27039E-05   -.29668E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 14.5334
  Prefactor  = 21.3264
  Prefactor  = 0.0001
  norm       = 3.81226
  Prefactor  = 0.0001
  norm       = 4.60178
  Prefactor  = 0.0001
  Prefactor  = 9.17983
  Prefactor  = 0.000100001
  norm       = 5.31532
  norm       = 0.0001
  Prefactor  = 33.4411
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 35.6212
  Prefactor  = 16.132
  norm       = 7.66818
  norm       = 0.0001
  norm       = 0.000100066
  norm       = 1.22611
  Prefactor  = 86.7876
  Prefactor  = 31.8616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.883213
  Prefactor  = 1.17992
 **********
 **   18 **HESSE 
 **********

 FCN=   5582.099     FROM HESSE     STATUS=OK           576 CALLS     4455 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .73329        .62269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.533        8.6329        .10506E-03   -1.4945    
   3  Prefactor     21.326        25.604        .86736E-04   -1.4784    
   4  Prefactor     .10000E-03    2.0765        .10490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8123        2.3299        .85272E-04   -1.5317    
   6  Prefactor     .10000E-03    8.5356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6018        2.3384        .78953E-04   -1.5279    
   8  Prefactor     .10000E-03    30.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.1798        12.118        .66145E-03   -1.5102    
  10  Prefactor     .10000E-03    52.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.3153        16.654        .87155E-03   -1.5247    
  12  norm          .10000E-03    4.9537        .31790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.441        33.632        .69307E-04   -1.4551    
  14  Prefactor     .10000E-03    8.0678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7751        .96552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.621        58.245        .67124E-04   -1.4514    
  19  Prefactor     16.132        59.258        .99877E-04   -1.4904    
  20  norm          7.6682        2.1621        .55633E-04   -1.5154    
  21  norm          .10000E-03    28.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10007E-03    19.510        .21756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2261        36.297        .20326E-02   -1.5487    
  24  Prefactor     86.788        67.596        .43124E-04   -1.3842    
  25  Prefactor     31.862        31.509        .35501E-03   -1.4578    
  26  Prefactor     .10000E-03    2.0533        .10432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.930        .27555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88321        .21773        .24715E-03   -.97053    
  30  Prefactor     1.1799        .26155        .27500E-03   -.86951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31638e-09
Minuit parameter uncertainties:
  1  2.58095e-06
  2  8.63368
  3  25.6174
  4  4.44282e-06
  5  2.32996
  6  3.60807e-06
  7  2.33844
  8  6.00462e-05
  9  12.121
  10  0.000556151
  11  16.6688
  12  4.07814e-05
  13  33.6509
  14  1.3412e-06
  15  0.000681226
  16  2.31584e-06
  17  0.000351517
  18  58.3384
  19  59.4754
  20  2.16216
  21  7.05405e-05
  22  0.0022628
  23  13.3506
  24  67.6563
  25  31.5256
  26  3.31978e-06
  27  3.99612e-05
  28  5.87355e-05
  29  0.217943
  30  0.261835
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.000e-04  4.078e-05  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:  1.180e+00  2.618e-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:  8.832e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/355791/likelihoodResults_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.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): 102
logL (Free Index) = 5582.09958495
delta logL = -0.000963576396316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5581.92645786
delta logL = 0.172163514035

Fit tolerance = 1e-08

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

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

 FCN=   5581.926     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      394 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74104E-01    3.5483        .80840E-02    .25846E-02
   2  alpha         4.5562        2.8770        .50000        .30093E-04
   3  Normalizat    .85497        .34772E-01    .44324E-01   -.12017E-03
   4  Prefactor     1.2014        .43986E-01    .61699E-01   -.13678E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0741037
  alpha      = 4.55617
  Normalizat = 0.854973
  Prefactor  = 1.20142
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.926     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      425 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74104E-01    12.429        .36597E-04   -1.5654    
   2  alpha         4.5562        4.1194        .65114E-01    .96574    
   3  Normalizat    .85497        .13332        .25075E-03   -.98061    
   4  Prefactor     1.2014        .16873        .27287E-03   -.86288    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00838e-06
Minuit parameter uncertainties:
  1  1.91856
  2  14.0749
  3  0.13337
  4  0.168807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355791': 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): 102
logL (Free Index) = 5581.92645535
delta logL = 0.172166022334

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  7.410e-02  1.919e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  4.556e+00  1.407e+01  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:  1.201e+00  1.688e-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:  8.550e-01  1.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/355791/cmap_HighResolution_257731201_257990401_4FGL_J1312.6+4828_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-05', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-09-07 05:25:09.112282', job_id='355791', GAL2='1.20', fit_tolerance='1e-08', EG2='0.85', EG='0.88', time_epoch_completed='1631017509.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.72e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='71' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:25:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 355791: <4FGL_J1312.6+4828_daily_bin71> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin71> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 05:08:54 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:08:56 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:08:56 2021
Terminated at Tue Sep  7 05:25:10 2021
Results reported at Tue Sep  7 05:25:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin71 198.169 48.4701 257731201 257990401 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 :                                   904.46 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             289.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

