/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin998
RA = 197.76, Dec = 32.5565
tmin = 498009601, tmax = 498268801
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='337145', job_status='RUN', time_executed='2021-09-07 04:11:37.501726', time_epoch_executed='1631013097.5' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/337145

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/337145/ft1_4FGL_J1311.0+3233_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/337145/ft1_4FGL_J1311.0+3233_daily_bin998.fits outfile=/scratch/kocevski/337145/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin998.fits ra=197.76 dec=32.5565 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.05
user 7.68
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.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/337145/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/337145/ft1_filtered_4FGL_J1311.0+3233_daily_bin998.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/337145/ft1_filtered_4FGL_J1311.0+3233_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/337145/ltcube_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.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/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits
.....................!
real 15.56
user 15.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/337145/ft1_filtered_4FGL_J1311.0+3233_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/337145/ltcube_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.fits outfile=/scratch/kocevski/337145/expmap_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.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/337145/ltcube_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.fits
.....................!
real 192.59
user 186.87
sys 5.27

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1311.0+3233 @ 197.76 32.5565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/337145/ft1_filtered_4FGL_J1311.0+3233_daily_bin998.fits scfile=/scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits outfile=/scratch/kocevski/337145/cmap_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.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=197.76 yref=32.5565 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 3.36
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/337145/ft1_filtered_4FGL_J1311.0+3233_daily_bin998.fits scfile=/scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits outfile=/scratch/kocevski/337145/cmap_HighResolution_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.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=197.76 yref=32.5565 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/337145/ft1_filtered_4FGL_J1311.0+3233_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/337145/Model_4FGL_J1311.0+3233_daily_bin998.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/337145/ft1_filtered_4FGL_J1311.0+3233_daily_bin998.fits.....................!
real 47.02
user 45.61
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/337145/ft1_filtered_4FGL_J1311.0+3233_daily_bin998.fits', '/scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits', expMap='/scratch/kocevski/337145/expmap_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.fits', expCube='/scratch/kocevski/337145/ltcube_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/337145/Model_4FGL_J1311.0+3233_daily_bin998.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1311.0+3233'

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/337145/ft1_filtered_4FGL_J1311.0+3233_daily_bin998.fits
Spacecraft file(s): /scratch/kocevski/337145/ft2_4FGL_J1311.0+3233_daily_bin998.fits
Exposure map: /scratch/kocevski/337145/expmap_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.fits
Exposure cube: /scratch/kocevski/337145/ltcube_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/337145/Model_4FGL_J1311.0+3233_daily_bin998.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) = 5597.31521954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.028       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4641       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0952       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.905       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7327       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7757       1.0000         .10000E-03   10000.    
    16 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11255E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5365       1.0000         .10000E-03   10000.    
    23 'norm      '    12.907       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.695       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.1489       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    46.458       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.0888       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67880       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5597.313     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4099 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.031        4.0983        .60011E-07    .27340E-03
   2  Prefactor     .10000E-03    10.306        .10040E-05** at limit **
   3  Prefactor     .10000E-03    1.4347        .29976E-07** at limit **
   4  Prefactor     1.4641        1.5471       -.27266E-07    .81459E-05
   5  norm          .10000E-03    2.7127        .93742E-10** at limit **
   6  Prefactor     .10000E-03    9.5120       -.70119E-06** at limit **
   7  Prefactor     .10000E-03    14.905       -.20908E-05** at limit **
   8  Prefactor     .10000E-03    64.295       -.11498E-05** at limit **
   9  Prefactor     .10000E-03    4.4079        .35137E-06** at limit **
  10  Prefactor     .10000E-03    7.5707       -.19623E-05** at limit **
  11  norm          7.0941        5.3816        .13662E-05   -.12346E-02
  12  Prefactor     .10000E-03    24.851        .13766E-05** at limit **
  13  Prefactor     30.903        29.234       -.19809E-05   -.69427E-04
  14  norm          3.7330        3.1769       -.21880E-06   -.40909E-03
  15  Prefactor     7.7760        15.438       -.11021E-07    .33334E-04
  16  norm          .10000E-03    1.6520        .13874E-08** at limit **
  17  norm          .10000E-03    5.2060       -.72351E-06** at limit **
  18  norm          .10000E-03    1.9571       -.59835E-07** at limit **
  19  norm          .10000E-03    2.0644       -.15865E-07** at limit **
  20  norm          .10000E-03    4.4979       -.22451E-06** at limit **
  21  Prefactor     .10000E-03    1.5382        .17598E-06** at limit **
  22  Prefactor     1.5393        11.292        .14189E-05   -.19041E-03
  23  norm          12.908        7.4310        .43044E-08   -.18922E-04
  24  Prefactor     .10000E-03    10.811        .17154E-05** at limit **
  25  norm          12.695        9.9442        .26941E-07   -.18377E-04
  26  Prefactor     4.1497        11.321        .17802E-06   -.42770E-04
  27  Prefactor     .10000E-03    6.7726        .13258E-05** at limit **
  28  Prefactor     46.455        51.264       -.82958E-06   -.66647E-04
  29  Prefactor     7.0888        4.7036       -.74691E-08   -.14243E-03
  30  Normalizat    .67887        .16948        .13715E-06   -.41304E-04
  31  Prefactor     1.4297        .21167       -.28759E-06    .10293E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.46414
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.09409
  Prefactor  = 0.000100001
  Prefactor  = 30.9028
  norm       = 3.73304
  Prefactor  = 7.77598
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.53927
  norm       = 12.9077
  Prefactor  = 0.000100001
  norm       = 12.6951
  Prefactor  = 4.14965
  Prefactor  = 0.000100001
  Prefactor  = 46.4551
  Prefactor  = 7.08884
  Normalizat = 0.678874
  Prefactor  = 1.42971
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.313     FROM HESSE     STATUS=OK           620 CALLS     4719 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.031        3.9542        .86472E-04   -1.5044    
   2  Prefactor     .10000E-03    10.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4813        .16805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4641        1.5479        .92809E-04   -1.5466    
   5  norm          .10000E-03    2.7484        .12033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    64.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4630        .15361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0941        5.8796        .68801E-03   -1.5175    
  12  Prefactor     .10000E-03    25.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.903        29.473        .72073E-04   -1.4596    
  14  norm          3.7330        3.1943        .12007E-03   -1.5322    
  15  Prefactor     7.7760        15.370        .14380E-03   -1.5150    
  16  norm          .10000E-03    1.6540        .93822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.2672        .16761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9877        .10192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0678        .10495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.5031        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4314        .16816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5393        10.559        .34411E-03   -1.5460    
  23  norm          12.908        7.4337        .11149E-03   -1.4989    
  24  Prefactor     .10000E-03    11.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.695        9.9472        .11242E-03   -1.4995    
  26  Prefactor     4.1497        11.307        .19789E-03   -1.5301    
  27  Prefactor     .10000E-03    6.9595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     46.455        51.584        .58826E-04   -1.4344    
  29  Prefactor     7.0888        4.7095        .12570E-03   -1.5175    
  30  Normalizat    .67887        .20113        .26734E-03   -1.0473    
  31  Prefactor     1.4297        .25251        .24837E-03   -.79528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80274e-09
Minuit parameter uncertainties:
  1  3.95434
  2  0.00011131
  3  1.60225e-05
  4  1.54794
  5  5.93233e-07
  6  8.4188e-05
  7  0.000311748
  8  0.000367982
  9  2.98789e-05
  10  0.000186484
  11  5.88005
  12  0.000276185
  13  29.4871
  14  3.19441
  15  15.3778
  16  6.82269e-07
  17  6.72032e-05
  18  2.15346e-06
  19  6.62082e-07
  20  1.87857e-05
  21  0.000188639
  22  8.06463
  23  7.43423
  24  0.00023013
  25  9.94845
  26  11.3124
  27  0.00014006
  28  51.6333
  29  4.7097
  30  0.201353
  31  0.252725
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  6.621e-07  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.430e+00  2.527e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  6.789e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.760 32.556
Photon Flux Upper Limit: 2.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/337145/likelihoodResults_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.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) = 5597.31497991
delta logL = -0.00218680746002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5597.31279301
delta logL = 9.22063918551e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2604       1.0000          .0000       5.0000    
     3 'Normalizat'    .67889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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=   5597.313     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      233 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    169.08        .10567E-01** at limit **
   2  alpha         1.4734        3.3146        .16557        .35087E-07
   3  Normalizat    .67887        .35556E-01    .26734E-03    .44056E-04
   4  Prefactor     1.4297        .46361E-01    .24837E-03    .46395E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.47344
  Normalizat = 0.678875
  Prefactor  = 1.42971
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.313     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6159        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4734        3.1318        .66229E-02   -.42314    
   3  Normalizat    .67887        .19229        .10694E-04   -1.0473    
   4  Prefactor     1.4297        .25076        .49675E-04   -.79528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0919e-11
Minuit parameter uncertainties:
  1  1.08143e-05
  2  245.159
  3  0.192482
  4  0.25097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/337145': 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) = 5597.31278806
delta logL = 5.04449053551e-06

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.081e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.473e+00  2.452e+02  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.430e+00  2.510e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  6.789e-01  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.760 32.556

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/337145/cmap_HighResolution_498009601_498268801_4FGL_J1311.0+3233_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', job_status='DONE', photon_flux_upper_limit='2.96e-08', time_completed='2021-09-07 04:26:26.220964', job_id='337145', GAL2='1.43', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1631013986.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='5.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='998' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:26:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 337145: <4FGL_J1311.0+3233_daily_bin998> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin998> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 04:10:31 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:10:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 04:10:35 2021
Terminated at Tue Sep  7 04:26:27 2021
Results reported at Tue Sep  7 04:26:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin998 197.76 32.5565 498009601 498268801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1311.0+3233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   868.00 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             329.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            956 sec.

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

