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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin740
RA = 198.169, Dec = 48.4701
tmin = 431136001, tmax = 431395201
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='361029', job_status='RUN', time_executed='2021-09-07 05:26:03.979787', time_epoch_executed='1631017563.98' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361029/ft1_4FGL_J1312.6+4828_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361029/ft2_4FGL_J1312.6+4828_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361029/ft1_4FGL_J1312.6+4828_daily_bin740.fits outfile=/scratch/kocevski/361029/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin740.fits ra=198.169 dec=48.4701 rad=12.0 tmin=431136001.0 tmax=431395201.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.77
user 5.48
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361029/ft1_filtered_4FGL_J1312.6+4828_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/361029/ft2_4FGL_J1312.6+4828_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/361029/ltcube_431136001_431395201_4FGL_J1312.6+4828_daily_bin740.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/361029/ft2_4FGL_J1312.6+4828_daily_bin740.fits
.....................!
real 15.02
user 14.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361029/ft1_filtered_4FGL_J1312.6+4828_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/361029/ft2_4FGL_J1312.6+4828_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/361029/ltcube_431136001_431395201_4FGL_J1312.6+4828_daily_bin740.fits outfile=/scratch/kocevski/361029/expmap_431136001_431395201_4FGL_J1312.6+4828_daily_bin740.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/361029/ltcube_431136001_431395201_4FGL_J1312.6+4828_daily_bin740.fits
.....................!
real 192.20
user 186.73
sys 4.79

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/361029/ft1_filtered_4FGL_J1312.6+4828_daily_bin740.fits scfile=/scratch/kocevski/361029/ft2_4FGL_J1312.6+4828_daily_bin740.fits outfile=/scratch/kocevski/361029/cmap_431136001_431395201_4FGL_J1312.6+4828_daily_bin740.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361029/ft1_filtered_4FGL_J1312.6+4828_daily_bin740.fits scfile=/scratch/kocevski/361029/ft2_4FGL_J1312.6+4828_daily_bin740.fits outfile=/scratch/kocevski/361029/cmap_HighResolution_431136001_431395201_4FGL_J1312.6+4828_daily_bin740.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6137       1.0000         .10000E-03   10000.    
     2 'norm      '    9.3116       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6122       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13978E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.0425       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.888       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.691       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    129.72       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.611       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.8161       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.1896       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.292       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.072       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88692       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87332       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=   3598.397     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3901 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6139        4.0028       -.12553E-07   -.91167E-04
   2  norm          9.3120        8.6195       -.12479E-05   -.13685E-02
   3  Prefactor     .10000E-03    10.819       -.31675E-05** at limit **
   4  Prefactor     .10000E-03    3.7289       -.17095E-07** at limit **
   5  norm          3.6121        2.7242       -.50304E-06   -.21678E-02
   6  Prefactor     .10000E-03    11.429        .97533E-06** at limit **
   7  norm          1.7105        2.2094       -.12052E-06   -.16795E-03
   8  Prefactor     .10005E-03    575.77        .20854E-05** at limit **
   9  Prefactor     .10000E-03    8.0704        .19441E-07** at limit **
  10  Prefactor     .10000E-03    9.9354       -.30073E-05** at limit **
  11  norm          6.0318        27.846       -.11646E-04    .64136E-04
  12  norm          .10000E-03    2.1595       -.74086E-07** at limit **
  13  Prefactor     .10000E-03    17.731        .17134E-06** at limit **
  14  Prefactor     13.890        17.479        .18373E-05   -.11376E-03
  15  Prefactor     31.690        55.596        .93205E-06   -.17893E-04
  16  norm          .10000E-03    1.9252       -.10679E-06** at limit **
  17  Prefactor     129.74        76.787        .53218E-05   -.12626E-03
  18  Prefactor     51.614        82.519        .24212E-05   -.16930E-04
  19  Prefactor     .10000E-03    162.69        .48859E-05** at limit **
  20  norm          3.8161        2.1416       -.36841E-07   -.10133E-03
  21  norm          .10000E-03    39.277       -.48590E-06** at limit **
  22  norm          7.1900        5.2828        .18767E-07   -.15618E-03
  23  norm          .10000E-03    6.1010        .63544E-07** at limit **
  24  Prefactor     19.328        55.325        .20006E-05   -.17763E-04
  25  Prefactor     .10000E-03    45.233       -.12166E-05** at limit **
  26  Prefactor     11.072        6.9123       -.32128E-06   -.52365E-03
  27  Prefactor     .10000E-03    10.363        .56027E-05** at limit **
  28  Prefactor     .10000E-03    1.7284       -.10559E-06** at limit **
  29  Normalizat    .88684        .21018       -.50734E-06    .14793E-04
  30  Prefactor     .87339        .25203        .19025E-05   -.52311E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.61389
  norm       = 9.31199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.61212
  Prefactor  = 0.0001
  norm       = 1.71049
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.03177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8903
  Prefactor  = 31.6904
  norm       = 0.0001
  Prefactor  = 129.742
  Prefactor  = 51.6142
  Prefactor  = 0.000100003
  norm       = 3.81609
  norm       = 0.0001
  norm       = 7.19
  norm       = 0.0001
  Prefactor  = 19.3278
  Prefactor  = 0.0001
  Prefactor  = 11.072
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.886841
  Prefactor  = 0.873388
 **********
 **   18 **HESSE 
 **********

 FCN=   3598.397     FROM HESSE     STATUS=OK           582 CALLS     4483 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6139        4.0050        .96646E-04   -1.5234    
   2  norm          9.3120        9.1643        .65668E-03   -1.5098    
   3  Prefactor     .10000E-03    10.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7481        .11306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6121        2.8239        .43096E-03   -1.5328    
   6  Prefactor     .10000E-03    11.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7105        2.1930        .97938E-04   -1.5446    
   8  Prefactor     .10005E-03    586.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1672        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.0318        27.468        .16334E-03   -1.5217    
  12  norm          .10000E-03    2.1863        .86070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.890        17.400        .10748E-03   -1.4962    
  15  Prefactor     31.690        55.619        .71176E-04   -1.4581    
  16  norm          .10000E-03    1.9275        .81206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     129.74        75.761        .35350E-04   -1.3425    
  18  Prefactor     51.614        82.430        .55826E-04   -1.4270    
  19  Prefactor     .10000E-03    163.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.8161        2.1390        .61808E-04   -1.5317    
  21  norm          .10000E-03    39.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.1900        5.2795        .11345E-03   -1.5172    
  23  norm          .10000E-03    6.1015        .14472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.328        55.246        .91189E-04   -1.4828    
  25  Prefactor     .10000E-03    45.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.072        6.9510        .60200E-03   -1.5042    
  27  Prefactor     .10000E-03    10.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.7317        .76994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88684        .24803        .22500E-03   -.96924    
  30  Prefactor     .87339        .29507        .27733E-03   -.97077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45383e-09
Minuit parameter uncertainties:
  1  4.00523
  2  9.16563
  3  0.000105725
  4  5.78508e-06
  5  2.82402
  6  2.55845e-05
  7  2.19309
  8  0.0114009
  9  1.53596e-06
  10  8.04637e-05
  11  25.7628
  12  4.76308e-07
  13  1.93443e-05
  14  17.4068
  15  55.7101
  16  1.16194e-05
  17  75.8181
  18  82.6126
  19  0.0014849
  20  2.139
  21  2.25262e-05
  22  5.27988
  23  2.59276e-06
  24  55.3927
  25  1.49839e-05
  26  6.95152
  27  0.000154488
  28  3.30733e-06
  29  0.248345
  30  0.295613
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.000e-04  4.763e-07  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:  8.734e-01  2.956e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  8.868e-01  2.483e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361029/likelihoodResults_431136001_431395201_4FGL_J1312.6+4828_daily_bin740.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) = 3598.3996346
delta logL = -0.00215689261177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3598.39746111
delta logL = 1.65943870343e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11722E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3358       1.0000          .0000       5.0000    
     3 'Normalizat'    .88680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87337       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=   3598.397     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      318 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10438E-03    1.2140        .12946E-01** at limit **
   2  alpha         3.9927        3.2486        .17808        .10133E-05
   3  Normalizat    .88684        .78354E-02    .22500E-03    .12778E-02
   4  Prefactor     .87339        .96445E-02    .27733E-03    .71397E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000104377
  alpha      = 3.99274
  Normalizat = 0.886836
  Prefactor  = 0.873394
 **********
 **   18 **HESSE 
 **********

 FCN=   3598.397     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      351 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10438E-03    2.2403        .11987E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.9927        2.7931        .71231E-02    .63988    
   3  Normalizat    .88684        .10096E-01    .45000E-04   -.96924    
   4  Prefactor     .87339        .12423E-01    .55465E-04   -.97077    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42061e-08
Minuit parameter uncertainties:
  1  0.00626292
  2  213.521
  3  0.0100961
  4  0.0124235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361029': 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) = 3598.39745103
delta logL = 2.66804981948e-05

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.044e-04  6.263e-03  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  3.993e+00  2.135e+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:  8.734e-01  1.242e-02  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.868e-01  1.010e-02  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/361029/cmap_HighResolution_431136001_431395201_4FGL_J1312.6+4828_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-09-07 05:37:50.300359', job_id='361029', GAL2='0.87', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631018270.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.67e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='740' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:37:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 361029: <4FGL_J1312.6+4828_daily_bin740> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin740 198.169 48.4701 431136001 431395201 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 :                                   701.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            749 sec.

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

