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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin1202
RA = 198.169, Dec = 48.4701
tmin = 550886401, tmax = 551145601
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='362965', job_status='RUN', time_executed='2021-09-07 05:36:50.608070', time_epoch_executed='1631018210.61' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362965/ft1_4FGL_J1312.6+4828_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362965/ft2_4FGL_J1312.6+4828_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362965/ft1_4FGL_J1312.6+4828_daily_bin1202.fits outfile=/scratch/kocevski/362965/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1202.fits ra=198.169 dec=48.4701 rad=12.0 tmin=550886401.0 tmax=551145601.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 3.05
user 2.84
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362965/ft2_4FGL_J1312.6+4828_daily_bin1202.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/362965/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/362965/ft1_filtered_4FGL_J1312.6+4828_daily_bin1202.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.46
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362965/ft1_filtered_4FGL_J1312.6+4828_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/362965/ft2_4FGL_J1312.6+4828_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/362965/ltcube_550886401_551145601_4FGL_J1312.6+4828_daily_bin1202.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/362965/ft2_4FGL_J1312.6+4828_daily_bin1202.fits
.....................!
real 12.54
user 12.21
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362965/ft1_filtered_4FGL_J1312.6+4828_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/362965/ft2_4FGL_J1312.6+4828_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/362965/ltcube_550886401_551145601_4FGL_J1312.6+4828_daily_bin1202.fits outfile=/scratch/kocevski/362965/expmap_550886401_551145601_4FGL_J1312.6+4828_daily_bin1202.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/362965/ltcube_550886401_551145601_4FGL_J1312.6+4828_daily_bin1202.fits
.....................!
real 154.57
user 150.03
sys 4.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/362965/ft1_filtered_4FGL_J1312.6+4828_daily_bin1202.fits scfile=/scratch/kocevski/362965/ft2_4FGL_J1312.6+4828_daily_bin1202.fits outfile=/scratch/kocevski/362965/cmap_550886401_551145601_4FGL_J1312.6+4828_daily_bin1202.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.51
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362965/ft1_filtered_4FGL_J1312.6+4828_daily_bin1202.fits scfile=/scratch/kocevski/362965/ft2_4FGL_J1312.6+4828_daily_bin1202.fits outfile=/scratch/kocevski/362965/cmap_HighResolution_550886401_551145601_4FGL_J1312.6+4828_daily_bin1202.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.51
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62104       1.0000         .10000E-03   10000.    
     2 'norm      '    .21602E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7605       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2209       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    104.12       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    125.31       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49855E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    18.780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.154       1.0000         .10000E-03   10000.    
    20 'norm      '    6.1021       1.0000         .10000E-03   10000.    
    21 'norm      '    .12444E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.181       1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    80.119       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.6678       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1604       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92755       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=   1909.295     FROM MIGRAD    STATUS=CONVERGED   1429 CALLS     5164 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61918        8.7846        .19506E-02    .12256E-02
   2  norm          .10000E-03    59.722        .32670E-02** at limit **
   3  Prefactor     .10000E-03    34.010        .18142E-02** at limit **
   4  Prefactor     2.7592        11.446        .24498E-03    .44201E-05
   5  norm          4.2205        4.0818        .82888E-04   -.46188E-04
   6  Prefactor     .10000E-03    21.067        .18142E-02** at limit **
   7  norm          3.9172        3.9014        .83424E-04   -.55703E-04
   8  Prefactor     104.07        123.92        .39406E-04    .48901E-05
   9  Prefactor     .10000E-03    12.446        .15042E-02** at limit **
  10  Prefactor     .10000E-03    14.711        .16369E-02** at limit **
  11  norm          .10000E-03    15.400        .16749E-02** at limit **
  12  norm          .10000E-03    3.2411        .76797E-03** at limit **
  13  Prefactor     125.07        109.99        .17979E-03    .37402E-04
  14  Prefactor     .10000E-03    20.293        .18142E-02** at limit **
  15  Prefactor     .10000E-03    256.39        .14425    ** at limit **
  16  norm          18.775        10.646        .92421E-04    .12516E-04
  17  Prefactor     .10000E-03    120.90        .18142E-02** at limit **
  18  Prefactor     .10000E-03    67.817        .18142E-02** at limit **
  19  Prefactor     26.172        80.892        .78333E-04   -.13316E-04
  20  norm          6.0984        4.0137        .65988E-04    .25830E-03
  21  norm          .10000E-03    134.69        .18142E-02** at limit **
  22  norm          14.179        10.739        .10636E-03   -.65442E-04
  23  norm          .10000E-03    12.905        .15334E-02** at limit **
  24  Prefactor     80.075        108.38        .44869E-04    .30151E-05
  25  Prefactor     .10000E-03    38.272        .18142E-02** at limit **
  26  Prefactor     .10000E-03    3.7644        .82793E-03** at limit **
  27  Prefactor     .10000E-03    73.941        .18142E-02** at limit **
  28  Prefactor     6.6669        8.5886        .13588E-03   -.21021E-04
  29  Normalizat    1.1609        .40580        .24030E-03   -.28055E-04
  30  Prefactor     .92690        .47168        .32660E-03   -.27708E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.619178
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75916
  norm       = 4.22046
  Prefactor  = 0.0001
  norm       = 3.9172
  Prefactor  = 104.07
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 125.072
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 18.7746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1722
  norm       = 6.09844
  norm       = 0.0001
  norm       = 14.1795
  norm       = 0.0001
  Prefactor  = 80.0747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.66691
  Normalizat = 1.1609
  Prefactor  = 0.9269
 **********
 **   18 **HESSE 
 **********

 FCN=   1909.295     FROM HESSE     STATUS=OK           568 CALLS     5732 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61918        8.7681        .39013E-03   -1.5551    
   2  norm          .10000E-03    60.450        .65340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7592        11.442        .97994E-05   -1.5376    
   5  norm          4.2205        4.0815        .33155E-05   -1.5297    
   6  Prefactor     .10000E-03    21.068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9172        3.9014        .33370E-05   -1.5312    
   8  Prefactor     104.07        123.92        .78812E-05   -1.3664    
   9  Prefactor     .10000E-03    12.446        .30084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.711        .32739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    15.400        .33498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.2411        .15359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     125.07        110.65        .71917E-05   -1.3467    
  14  Prefactor     .10000E-03    20.294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    295.76        .13362       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.775        10.646        .36968E-05   -1.4841    
  17  Prefactor     .10000E-03    120.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    67.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.172        80.897        .31333E-05   -1.4684    
  20  norm          6.0984        4.0150        .26395E-05   -1.5214    
  21  norm          .10000E-03    134.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.179        10.738        .42545E-05   -1.4955    
  23  norm          .10000E-03    12.905        .30668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     80.075        108.37        .89738E-05   -1.3916    
  25  Prefactor     .10000E-03    38.272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.7644        .16559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    73.952        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.6669        8.5884        .54352E-05   -1.5192    
  29  Normalizat    1.1609        .40595        .96120E-05   -.87820    
  30  Prefactor     .92690        .47208        .13064E-04   -.95207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33088e-11
Minuit parameter uncertainties:
  1  4.6605
  2  5.70483e-05
  3  3.86956e-05
  4  11.2411
  5  4.08176
  6  3.5785e-06
  7  3.90168
  8  124.229
  9  1.9765e-05
  10  3.33672e-06
  11  2.12518e-05
  12  5.37487e-06
  13  110.834
  14  0.000107293
  15  0.00212705
  16  10.6467
  17  0.000408892
  18  9.91755e-05
  19  81.2386
  20  4.01515
  21  0.00039188
  22  10.7395
  23  5.96173e-06
  24  108.641
  25  8.98198e-05
  26  2.63139e-06
  27  0.000173959
  28  8.58999
  29  0.407051
  30  0.474189
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.000e-04  5.375e-06  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:  9.269e-01  4.742e-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.161e+00  4.071e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362965/likelihoodResults_550886401_551145601_4FGL_J1312.6+4828_daily_bin1202.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) = 1909.29662716
delta logL = -0.00123685937456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1909.29539029
delta logL = 1.07015694084e-08

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 'alpha     '    2.0621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92690       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=   1909.295     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9633        .76864E-03** at limit **
   2  alpha         1.8897        3.3994        .16792       -.62542E-07
   3  Normalizat    1.1609        .37716        .24030E-03    .38037E-04
   4  Prefactor     .92690        .46465        .32659E-03    .28605E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.88965
  Normalizat = 1.1609
  Prefactor  = 0.926901
 **********
 **   18 **HESSE 
 **********

 FCN=   1909.295     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3003        .15373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8897        3.3750        .67166E-02   -.24663    
   3  Normalizat    1.1609        .37754        .96120E-05   -.87820    
   4  Prefactor     .92690        .46511        .13064E-04   -.95207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45206e-11
Minuit parameter uncertainties:
  1  1.48925e-05
  2  230.886
  3  0.378423
  4  0.467126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362965': 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) = 1909.29539003
delta logL = 2.76547325484e-07

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.000e-04  1.489e-05  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  1.890e+00  2.309e+02  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:  9.269e-01  4.671e-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.161e+00  3.784e-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/362965/cmap_HighResolution_550886401_551145601_4FGL_J1312.6+4828_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-07 05:45:44.622768', job_id='362965', GAL2='0.93', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631018744.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1202' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:45:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 362965: <4FGL_J1312.6+4828_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin1202> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 05:31:02 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:35:29 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:35:29 2021
Terminated at Tue Sep  7 05:45:45 2021
Results reported at Tue Sep  7 05:45:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin1202 198.169 48.4701 550886401 551145601 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 :                                   466.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            883 sec.

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

