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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin761
RA = 198.169, Dec = 48.4701
tmin = 436579201, tmax = 436838401
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='361060', job_status='RUN', time_executed='2021-09-07 05:26:18.559073', time_epoch_executed='1631017578.56' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361060/ft1_4FGL_J1312.6+4828_daily_bin761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361060/ft2_4FGL_J1312.6+4828_daily_bin761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361060/ft1_4FGL_J1312.6+4828_daily_bin761.fits outfile=/scratch/kocevski/361060/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin761.fits ra=198.169 dec=48.4701 rad=12.0 tmin=436579201.0 tmax=436838401.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.65
user 5.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361060/ft1_filtered_4FGL_J1312.6+4828_daily_bin761.fits" evtable="EVENTS" scfile=/scratch/kocevski/361060/ft2_4FGL_J1312.6+4828_daily_bin761.fits sctable="SC_DATA" outfile=/scratch/kocevski/361060/ltcube_436579201_436838401_4FGL_J1312.6+4828_daily_bin761.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/361060/ft2_4FGL_J1312.6+4828_daily_bin761.fits
.....................!
real 14.00
user 13.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361060/ft1_filtered_4FGL_J1312.6+4828_daily_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/361060/ft2_4FGL_J1312.6+4828_daily_bin761.fits sctable="SC_DATA" expcube=/scratch/kocevski/361060/ltcube_436579201_436838401_4FGL_J1312.6+4828_daily_bin761.fits outfile=/scratch/kocevski/361060/expmap_436579201_436838401_4FGL_J1312.6+4828_daily_bin761.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/361060/ltcube_436579201_436838401_4FGL_J1312.6+4828_daily_bin761.fits
.....................!
real 193.25
user 187.59
sys 5.21

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/361060/ft1_filtered_4FGL_J1312.6+4828_daily_bin761.fits scfile=/scratch/kocevski/361060/ft2_4FGL_J1312.6+4828_daily_bin761.fits outfile=/scratch/kocevski/361060/cmap_436579201_436838401_4FGL_J1312.6+4828_daily_bin761.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.68
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361060/ft1_filtered_4FGL_J1312.6+4828_daily_bin761.fits scfile=/scratch/kocevski/361060/ft2_4FGL_J1312.6+4828_daily_bin761.fits outfile=/scratch/kocevski/361060/cmap_HighResolution_436579201_436838401_4FGL_J1312.6+4828_daily_bin761.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    4.7537       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10707E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13631       1.0000         .10000E-03   10000.    
     5 'norm      '    5.5605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67085       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9574       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2874       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.968       1.0000         .10000E-03   10000.    
    12 'norm      '    .55364E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8149       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .37924E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.061       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.410       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.3352       1.0000         .10000E-03   10000.    
    21 'norm      '    .11215E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.6603       1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.317       1.0000         .10000E-03   10000.    
    25 'Prefactor '    53.308       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .56532       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2879       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .47901       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=   4377.541     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4040 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .71833       -.50348E-08** at limit **
   2  norm          4.7550        8.4339       -.29130E-05    .22092E-03
   3  Prefactor     .10000E-03    39.852       -.13853E-05** at limit **
   4  Prefactor     .14553        56.056       -.24107E-04   -.54892E-04
   5  norm          5.5589        3.1116        .54141E-06    .96211E-03
   6  Prefactor     .67041        14.629        .14853E-05    .36784E-04
   7  norm          3.9578        3.1406       -.12460E-07    .22624E-03
   8  Prefactor     .10000E-03    13.530        .25254E-06** at limit **
   9  Prefactor     5.2723        15.921        .22651E-05    .18688E-03
  10  Prefactor     .10000E-03    4.6271        .42702E-07** at limit **
  11  norm          11.969        11.532        .15836E-06    .99231E-05
  12  norm          .10000E-03    2.8858       -.28498E-06** at limit **
  13  Prefactor     6.1907        63.587       -.32516E-05   -.39211E-04
  14  Prefactor     4.8222        11.829       -.65059E-06   -.66777E-04
  15  Prefactor     .10000E-03    16.303        .13241E-07** at limit **
  16  norm          .10006E-03    6.6784        .69581E-05** at limit **
  17  Prefactor     20.091        59.079        .11874E-05   -.52651E-04
  18  Prefactor     24.385        87.349       -.42576E-05    .56120E-04
  19  Prefactor     .10000E-03    29.507       -.54217E-06** at limit **
  20  norm          6.3365        2.1452       -.33619E-07    .30786E-03
  21  norm          .10000E-03    264.72        .31549E-06** at limit **
  22  norm          6.6531        5.5595       -.28319E-06    .22564E-04
  23  norm          .10000E-03    13.613        .29070E-06** at limit **
  24  Prefactor     38.302        67.470       -.22761E-05    .66491E-04
  25  Prefactor     53.345        52.099        .34764E-05    .22743E-03
  26  Prefactor     .56167        5.9574       -.37288E-06    .20479E-03
  27  Prefactor     .10000E-03    6.7364        .74038E-08** at limit **
  28  Prefactor     .10000E-03    1.6480        .33658E-06** at limit **
  29  Normalizat    1.2872        .21767        .20553E-05    .37168E-03
  30  Prefactor     .47986        .24180       -.63755E-06    .21962E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.75501
  Prefactor  = 0.0001
  Prefactor  = 0.145533
  norm       = 5.55894
  Prefactor  = 0.670412
  norm       = 3.95782
  Prefactor  = 0.0001
  Prefactor  = 5.27227
  Prefactor  = 0.0001
  norm       = 11.9688
  norm       = 0.000100001
  Prefactor  = 6.19067
  Prefactor  = 4.82221
  Prefactor  = 0.0001
  norm       = 0.000100059
  Prefactor  = 20.0913
  Prefactor  = 24.3851
  Prefactor  = 0.0001
  norm       = 6.33649
  norm       = 0.000100001
  norm       = 6.65307
  norm       = 0.0001
  Prefactor  = 38.3023
  Prefactor  = 53.3446
  Prefactor  = 0.561673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28718
  Prefactor  = 0.479855
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.541     FROM HESSE     STATUS=OK           590 CALLS     4630 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .72040        .54756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7550        8.4411        .92271E-03   -1.5272    
   3  Prefactor     .10000E-03    40.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .14553        68.798        .33411E-02   -1.5632    
   5  norm          5.5589        3.1172        .77391E-04   -1.5236    
   6  Prefactor     .67041        97.051        .47490E-02   -1.5544    
   7  norm          3.9578        3.1316        .99018E-04   -1.5310    
   8  Prefactor     .10000E-03    13.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2723        15.831        .17479E-03   -1.5249    
  10  Prefactor     .10000E-03    4.6277        .13900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.969        11.534        .57898E-03   -1.5016    
  12  norm          .10000E-03    9.9207        .20889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1907        60.031        .16139E-03   -1.5210    
  14  Prefactor     4.8222        11.618        .18334E-03   -1.5269    
  15  Prefactor     .10000E-03    16.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10006E-03    27.988        .18556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.091        58.949        .89425E-04   -1.4811    
  18  Prefactor     24.385        87.784        .81077E-04   -1.4720    
  19  Prefactor     .10000E-03    29.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.3365        2.1479        .53852E-04   -1.5204    
  21  norm          .10000E-03    265.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.6531        5.5477        .13331E-03   -1.5192    
  23  norm          .10000E-03    13.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.302        67.425        .64749E-04   -1.4469    
  25  Prefactor     53.345        51.960        .54934E-04   -1.4246    
  26  Prefactor     .56167        12.029        .28822E-02   -1.5558    
  27  Prefactor     .10000E-03    6.7393        .16772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.6543        .82895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2872        .24249        .19288E-03   -.83950    
  30  Prefactor     .47986        .26696        .36589E-03   -1.1291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03941e-08
Minuit parameter uncertainties:
  1  1.94517e-07
  2  8.44318
  3  0.00025194
  4  6.33363
  5  3.11731
  6  16.1581
  7  3.13176
  8  3.66679e-05
  9  15.8435
  10  3.55372e-06
  11  11.5366
  12  0.000182478
  13  38.6059
  14  11.623
  15  4.60063e-05
  16  0.00256405
  17  59.1204
  18  88.2546
  19  0.000171255
  20  2.14791
  21  0.0010575
  22  5.54812
  23  0.000103714
  24  67.5592
  25  52.0044
  26  5.1993
  27  2.26444e-06
  28  2.08607e-05
  29  0.242703
  30  0.267659
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.000e-04  1.825e-04  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:  4.799e-01  2.677e-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:  1.287e+00  2.427e-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: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361060/likelihoodResults_436579201_436838401_4FGL_J1312.6+4828_daily_bin761.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) = 4377.5411516
delta logL = -0.000480222131955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4377.54067231
delta logL = -9.23506377148e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4377.489     FROM MIGRAD    STATUS=CONVERGED    284 CALLS      454 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24377E-01    .76327E-01    .19954E-02   -.48846E-02
   2  alpha         5.0000        4.9186        .50000    ** at limit **
   3  Normalizat    1.2656        .22887        .19288E-03   -.78157E-04
   4  Prefactor     .49659        .26615        .36588E-03   -.40922E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0243772
  alpha      = 5
  Normalizat = 1.26558
  Prefactor  = 0.496593
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.489     FROM HESSE     STATUS=OK            31 CALLS      485 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24377E-01    .88426E-01    .30360E-04   -1.5739    
   2  alpha         5.0000        4.6589        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2656        .22573        .38576E-04   -.84600    
   4  Prefactor     .49659        .26449        .14635E-04   -1.1213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38887e-11
Minuit parameter uncertainties:
  1  0.088426
  2  0.000197446
  3  0.225903
  4  0.265145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361060': 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) = 4377.48875801
delta logL = 0.0519133763919

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  2.438e-02  8.843e-02  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  5.000e+00  1.974e-04  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:  4.966e-01  2.651e-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:  1.266e+00  2.259e-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/361060/cmap_HighResolution_436579201_436838401_4FGL_J1312.6+4828_daily_bin761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-05', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-09-07 05:40:05.276570', job_id='361060', GAL2='0.50', fit_tolerance='1e-08', EG2='1.27', EG='1.29', time_epoch_completed='1631018405.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='5.19e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='761' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:40:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 361060: <4FGL_J1312.6+4828_daily_bin761> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin761> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 05:25:24 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:26:06 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:26:06 2021
Terminated at Tue Sep  7 05:40:06 2021
Results reported at Tue Sep  7 05:40:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin761 198.169 48.4701 436579201 436838401 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 :                                   820.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            882 sec.

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

