/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 211 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1312.6+4828_daily_bin75
RA = 198.169, Dec = 48.4701
tmin = 258768001, tmax = 259027201
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='355796', job_status='RUN', time_executed='2021-09-07 05:12:42.514538', time_epoch_executed='1631016762.51' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355796

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355796/ft1_4FGL_J1312.6+4828_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355796/ft2_4FGL_J1312.6+4828_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355796/ft1_4FGL_J1312.6+4828_daily_bin75.fits outfile=/scratch/kocevski/355796/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin75.fits ra=198.169 dec=48.4701 rad=12.0 tmin=258768001.0 tmax=259027201.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.26
user 0.96
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355796/ft2_4FGL_J1312.6+4828_daily_bin75.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/355796/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/355796/ft1_filtered_4FGL_J1312.6+4828_daily_bin75.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355796/ft1_filtered_4FGL_J1312.6+4828_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/355796/ft2_4FGL_J1312.6+4828_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/355796/ltcube_258768001_259027201_4FGL_J1312.6+4828_daily_bin75.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/355796/ft2_4FGL_J1312.6+4828_daily_bin75.fits
.....................!
real 12.01
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355796/ft1_filtered_4FGL_J1312.6+4828_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/355796/ft2_4FGL_J1312.6+4828_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/355796/ltcube_258768001_259027201_4FGL_J1312.6+4828_daily_bin75.fits outfile=/scratch/kocevski/355796/expmap_258768001_259027201_4FGL_J1312.6+4828_daily_bin75.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/355796/ltcube_258768001_259027201_4FGL_J1312.6+4828_daily_bin75.fits
.....................!
real 192.30
user 186.90
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/355796/ft1_filtered_4FGL_J1312.6+4828_daily_bin75.fits scfile=/scratch/kocevski/355796/ft2_4FGL_J1312.6+4828_daily_bin75.fits outfile=/scratch/kocevski/355796/cmap_258768001_259027201_4FGL_J1312.6+4828_daily_bin75.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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355796/ft1_filtered_4FGL_J1312.6+4828_daily_bin75.fits scfile=/scratch/kocevski/355796/ft2_4FGL_J1312.6+4828_daily_bin75.fits outfile=/scratch/kocevski/355796/cmap_HighResolution_258768001_259027201_4FGL_J1312.6+4828_daily_bin75.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7666       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8543       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11662E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11973E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4726       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.388       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7641       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9175       1.0000         .10000E-03   10000.    
    11 'norm      '    22.439       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    125.21       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5364       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    20.228       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.595       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70362       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=   3281.566     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3913 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7666        3.7323       -.64026E-08   -.21729E-03
   2  norm          3.8357        7.4693        .11053E-05    .20563E-03
   3  Prefactor     .10000E-03    100.28        .50904E-05** at limit **
   4  Prefactor     .10004E-03    47.975        .15498E-04** at limit **
   5  norm          6.4723        4.1477        .87618E-07   -.73713E-03
   6  Prefactor     .10000E-03    9.1911       -.35383E-06** at limit **
   7  norm          .10000E-03    .92059        .12597E-07** at limit **
   8  Prefactor     67.385        71.300        .79387E-06    .34370E-04
   9  Prefactor     6.7637        14.582       -.79244E-07    .32635E-03
  10  Prefactor     4.9178        18.147       -.30084E-07    .99858E-07
  11  norm          22.440        20.347       -.76955E-07   -.15606E-04
  12  norm          3.9640        5.4040        .10434E-05    .65739E-03
  13  Prefactor     .10000E-03    19.059        .17235E-05** at limit **
  14  Prefactor     .10000E-03    19.735       -.16846E-06** at limit **
  15  Prefactor     .10000E-03    20.571       -.17163E-05** at limit **
  16  norm          .10000E-03    1.9908       -.16735E-07** at limit **
  17  Prefactor     .10000E-03    26.839        .17180E-05** at limit **
  18  Prefactor     125.22        106.04       -.99972E-06   -.67641E-04
  19  Prefactor     .10000E-03    44.788       -.12886E-05** at limit **
  20  norm          3.5368        2.2681        .37399E-07    .40519E-04
  21  norm          .10002E-03    34.279        .57486E-05** at limit **
  22  norm          .10000E-03    1.3422        .39736E-08** at limit **
  23  norm          20.229        19.322        .37764E-07   -.96060E-05
  24  Prefactor     .10000E-03    22.270       -.25316E-05** at limit **
  25  Prefactor     20.599        45.024       -.10420E-05   -.58378E-04
  26  Prefactor     .10000E-03    1.8215       -.18888E-08** at limit **
  27  Prefactor     .10000E-03    8.1224        .14105E-06** at limit **
  28  Prefactor     .10000E-03    1.5630        .12468E-07** at limit **
  29  Normalizat    1.0509        .21164       -.87301E-06   -.34790E-03
  30  Prefactor     .70360        .25010        .54176E-06   -.18284E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.76655
  norm       = 3.83571
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  norm       = 6.47231
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.3851
  Prefactor  = 6.76369
  Prefactor  = 4.91777
  norm       = 22.4398
  norm       = 3.96402
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 125.221
  Prefactor  = 0.000100001
  norm       = 3.53682
  norm       = 0.000100016
  norm       = 0.0001
  norm       = 20.2292
  Prefactor  = 0.000100003
  Prefactor  = 20.5993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05088
  Prefactor  = 0.703601
 **********
 **   18 **HESSE 
 **********

 FCN=   3281.566     FROM HESSE     STATUS=OK           574 CALLS     4487 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7666        3.7337        .94706E-04   -1.5271    
   2  norm          3.8357        7.4624        .20556E-03   -1.5316    
   3  Prefactor     .10000E-03    101.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    51.198        .34971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4723        4.0159        .84175E-04   -1.5199    
   6  Prefactor     .10000E-03    9.2069        .16970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .92736        .53672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     67.385        71.430        .48893E-04   -1.4064    
   9  Prefactor     6.7637        15.117        .77138E-03   -1.5188    
  10  Prefactor     4.9178        18.150        .18137E-03   -1.5264    
  11  norm          22.440        20.343        .84558E-04   -1.4760    
  12  norm          3.9640        5.5010        .15083E-03   -1.5310    
  13  Prefactor     .10000E-03    19.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9971        .78918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     125.22        106.50        .35973E-04   -1.3465    
  19  Prefactor     .10000E-03    44.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5368        2.2667        .65085E-04   -1.5332    
  21  norm          .10002E-03    35.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.3452        .64813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          20.229        19.320        .89054E-04   -1.4808    
  24  Prefactor     .10000E-03    22.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.599        45.071        .88259E-04   -1.4800    
  26  Prefactor     .10000E-03    1.8222        .75497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.1278        .15948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.5700        .69936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0509        .25066        .20393E-03   -.91345    
  30  Prefactor     .70360        .29243        .29889E-03   -1.0339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06013e-09
Minuit parameter uncertainties:
  1  3.73384
  2  7.46421
  3  0.000275946
  4  0.00291908
  5  4.01608
  6  5.95983e-05
  7  4.79313e-07
  8  71.5206
  9  15.1259
  10  18.1704
  11  20.3495
  12  5.5017
  13  0.000301384
  14  4.78674e-05
  15  0.000353893
  16  3.21217e-06
  17  0.000396945
  18  106.664
  19  0.000353472
  20  2.26671
  21  0.00150854
  22  1.01159e-06
  23  19.3262
  24  0.000510923
  25  45.1454
  26  2.34266e-06
  27  2.20915e-05
  28  2.8976e-06
  29  0.250947
  30  0.293075
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  3.964e+00  5.502e+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.036e-01  2.931e-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.051e+00  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.69
Ra Dec: 198.169 48.470
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355796/likelihoodResults_258768001_259027201_4FGL_J1312.6+4828_daily_bin75.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) = 3281.55861675
delta logL = 0.00756586233365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3281.55830221
delta logL = 0.00788041126316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0796       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9585       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70122       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=   3281.558     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0795        5.6498        .15290E-03    .26819E-03
   2  alpha         1.9581        .83363        .15476E-01    .58926E-05
   3  Normalizat    1.0538        .23761        .20367E-03    .38544E-04
   4  Prefactor     .70109        .29124        .29936E-03    .22463E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.07946
  alpha      = 1.9581
  Normalizat = 1.05384
  Prefactor  = 0.701089
 **********
 **   18 **HESSE 
 **********

 FCN=   3281.558     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0795        5.6327        .61162E-05   -1.5304    
   2  alpha         1.9581        .83120        .61904E-03   -.21849    
   3  Normalizat    1.0538        .23778        .81466E-05   -.91248    
   4  Prefactor     .70109        .29143        .11975E-04   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62263e-11
Minuit parameter uncertainties:
  1  5.63346
  2  0.848167
  3  0.238019
  4  0.292063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355796': 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) = 3281.55830194
delta logL = 0.00788067665917

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  4.079e+00  5.633e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  1.958e+00  8.482e-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:  7.011e-01  2.921e-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.054e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.69
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/355796/cmap_HighResolution_258768001_259027201_4FGL_J1312.6+4828_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-07 05:24:16.439662', job_id='355796', GAL2='0.70', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631017456.44', return_code2='0', ts='0.69', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='7.88e-03', ts2='0.70', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='75' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:24:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 355796: <4FGL_J1312.6+4828_daily_bin75> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin75> 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) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:08:57 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:57 2021
Terminated at Tue Sep  7 05:24:17 2021
Results reported at Tue Sep  7 05:24:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin75 198.169 48.4701 258768001 259027201 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 :                                   651.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            923 sec.

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

