/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 200 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1311.0+3233_daily_bin392
RA = 197.76, Dec = 32.5565
tmin = 340934401, tmax = 341193601
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='331569', job_status='RUN', time_executed='2021-09-07 03:54:21.507733', time_epoch_executed='1631012061.51' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331569/ft1_4FGL_J1311.0+3233_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331569/ft2_4FGL_J1311.0+3233_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331569/ft1_4FGL_J1311.0+3233_daily_bin392.fits outfile=/scratch/kocevski/331569/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin392.fits ra=197.76 dec=32.5565 rad=12.0 tmin=340934401.0 tmax=341193601.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.42
user 3.18
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331569/ft1_filtered_4FGL_J1311.0+3233_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/331569/ft2_4FGL_J1311.0+3233_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/331569/ltcube_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.fits outfile=/scratch/kocevski/331569/expmap_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.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/331569/ltcube_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.fits
.....................!
real 192.45
user 186.83
sys 4.68

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/331569/ft1_filtered_4FGL_J1311.0+3233_daily_bin392.fits scfile=/scratch/kocevski/331569/ft2_4FGL_J1311.0+3233_daily_bin392.fits outfile=/scratch/kocevski/331569/cmap_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.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 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331569/ft1_filtered_4FGL_J1311.0+3233_daily_bin392.fits scfile=/scratch/kocevski/331569/ft2_4FGL_J1311.0+3233_daily_bin392.fits outfile=/scratch/kocevski/331569/cmap_HighResolution_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/331569/ft1_filtered_4FGL_J1311.0+3233_daily_bin392.fits', '/scratch/kocevski/331569/ft2_4FGL_J1311.0+3233_daily_bin392.fits', expMap='/scratch/kocevski/331569/expmap_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.fits', expCube='/scratch/kocevski/331569/ltcube_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/331569/Model_4FGL_J1311.0+3233_daily_bin392.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/331569/ft1_filtered_4FGL_J1311.0+3233_daily_bin392.fits
Spacecraft file(s): /scratch/kocevski/331569/ft2_4FGL_J1311.0+3233_daily_bin392.fits
Exposure map: /scratch/kocevski/331569/expmap_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.fits
Exposure cube: /scratch/kocevski/331569/ltcube_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/331569/Model_4FGL_J1311.0+3233_daily_bin392.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) = 5890.72515267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9071       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4324       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7219       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.254       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.235       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1210       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5051       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7780       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    20.495       1.0000         .10000E-03   10000.    
    20 'norm      '    10.397       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    16.071       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.6424       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    78.687       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .97467       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1232       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=   5890.722     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4061 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9068        2.8575        .64701E-07    .44726E-04
   2  Prefactor     2.4324        6.3533        .27967E-06   -.13153E-03
   3  Prefactor     8.7215        3.1184       -.42289E-07   -.86406E-04
   4  Prefactor     .10000E-03    1.4867        .12488E-07** at limit **
   5  norm          .10000E-03    2.5854       -.12394E-06** at limit **
   6  Prefactor     10.252        8.8000        .62343E-07   -.57833E-05
   7  Prefactor     .10000E-03    5.1230       -.25092E-06** at limit **
   8  Prefactor     .10000E-03    28.816        .63161E-05** at limit **
   9  Prefactor     12.235        8.8744        .76861E-07   -.18526E-04
  10  Prefactor     2.1212        4.4501       -.25917E-06   -.18400E-03
  11  norm          .10000E-03    2.9776        .20090E-06** at limit **
  12  Prefactor     .10000E-03    45.171       -.36097E-05** at limit **
  13  Prefactor     .10000E-03    6.3968        .62807E-06** at limit **
  14  norm          5.5052        3.2009       -.90088E-07   -.10622E-03
  15  Prefactor     3.7793        7.9426        .28108E-05   -.96656E-03
  16  norm          .10000E-03    1.4115       -.49273E-07** at limit **
  17  norm          .10000E-03    16.046       -.53532E-05** at limit **
  18  norm          .10000E-03    3.5213        .57406E-07** at limit **
  19  norm          20.501        7.8645       -.68801E-07   -.78107E-04
  20  norm          10.397        13.538        .38290E-07   -.37041E-05
  21  Prefactor     .10000E-03    .66306       -.63165E-08** at limit **
  22  Prefactor     .10000E-03    8.3297       -.10568E-05** at limit **
  23  norm          16.072        7.8895        .56425E-07   -.56993E-05
  24  Prefactor     .10000E-03    25.414       -.16975E-05** at limit **
  25  norm          .10000E-03    2.9816       -.35296E-06** at limit **
  26  Prefactor     7.6392        15.698        .16338E-06   -.58637E-04
  27  Prefactor     .10000E-03    13.392        .43550E-05** at limit **
  28  Prefactor     78.696        73.993        .50208E-05    .14681E-03
  29  Prefactor     .10000E-03    2.6659        .28962E-06** at limit **
  30  Normalizat    .97458        .17165       -.85222E-06    .19080E-04
  31  Prefactor     1.1233        .21247        .13835E-06   -.36915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.9068
  Prefactor  = 2.43244
  Prefactor  = 8.72151
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.252
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 12.2353
  Prefactor  = 2.12119
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.5052
  Prefactor  = 3.77929
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 20.5007
  norm       = 10.397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0717
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.6392
  Prefactor  = 0.000100002
  Prefactor  = 78.6963
  Prefactor  = 0.0001
  Normalizat = 0.974578
  Prefactor  = 1.12332
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.722     FROM HESSE     STATUS=OK           618 CALLS     4679 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9068        2.8603        .10502E-03   -1.5313    
   2  Prefactor     2.4324        6.3520        .26238E-03   -1.5396    
   3  Prefactor     8.7215        3.1203        .76386E-04   -1.5117    
   4  Prefactor     .10000E-03    1.5228        .18243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6638        .24098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.252        8.7944        .12513E-03   -1.5067    
   7  Prefactor     .10000E-03    5.1242        .16967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.235        8.8754        .11452E-03   -1.5008    
  10  Prefactor     2.1212        4.4430        .22127E-03   -1.5417    
  11  norm          .10000E-03    3.0700        .25853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5052        3.2025        .10158E-03   -1.5239    
  15  Prefactor     3.7793        11.467        .10385E-02   -1.5319    
  16  norm          .10000E-03    1.4151        .89051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.5819        .27813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          20.501        7.7797        .88473E-04   -1.4802    
  20  norm          10.397        13.534        .12426E-03   -1.5063    
  21  Prefactor     .10000E-03    .66427        .61024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.072        7.8872        .99907E-04   -1.4906    
  24  Prefactor     .10000E-03    25.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.9885        .12941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.6392        15.721        .14506E-03   -1.5155    
  27  Prefactor     .10000E-03    13.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     78.696        74.728        .45272E-04   -1.3931    
  29  Prefactor     .10000E-03    2.7443        .24463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .97458        .20474        .23859E-03   -.93887    
  31  Prefactor     1.1233        .25324        .28303E-03   -.88725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86529e-09
Minuit parameter uncertainties:
  1  2.86037
  2  6.35378
  3  3.12039
  4  1.50179e-06
  5  2.46909e-06
  6  8.79548
  7  1.14712e-05
  8  0.000721228
  9  8.87637
  10  4.44372
  11  8.28841e-06
  12  0.000498507
  13  3.45432e-05
  14  3.20264
  15  11.4742
  16  1.13144e-06
  17  0.000438551
  18  8.80436e-06
  19  7.78007
  20  13.5381
  21  1.82925e-07
  22  6.03754e-05
  23  7.88768
  24  0.000185155
  25  1.22624e-05
  26  15.7291
  27  0.000334716
  28  74.8178
  29  1.04583e-05
  30  0.204903
  31  0.253511
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.050e+01  7.780e+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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.123e+00  2.535e-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:  9.746e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.46
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.66e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 4.09e-05 +/- 1.55e-05

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) = 5890.55900428
delta logL = 0.162846901529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5890.52788084
delta logL = 0.193970339506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.586       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0344       1.0000          .0000       5.0000    
     3 'Normalizat'    .98249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1203       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=   5890.528     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      275 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.584        12.814        .79195E-04    .10479E-04
   2  alpha         2.0345        .39151        .84233E-02    .40173E-04
   3  Normalizat    .98248        .19795        .23780E-03    .18745E-03
   4  Prefactor     1.1203        .25093        .28347E-03    .13451E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.5841
  alpha      = 2.03451
  Normalizat = 0.98248
  Prefactor  = 1.12027
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.528     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.584        12.540        .31678E-05   -1.4696    
   2  alpha         2.0345        .38317        .33693E-03   -.18729    
   3  Normalizat    .98248        .19814        .95120E-05   -.93620    
   4  Prefactor     1.1203        .25120        .11339E-04   -.88821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23601e-11
Minuit parameter uncertainties:
  1  12.5411
  2  0.38474
  3  0.198284
  4  0.251468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331569': 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) = 5890.52788077
delta logL = 0.193970412775

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.558e+01  1.254e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.035e+00  3.847e-01  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.120e+00  2.515e-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:  9.825e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.80
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.03 +/- 0.38
Photon Flux (Free Index): 4.77e-08 +/- 2.31e-08
Energy Flux (Free Index): 4.82e-05 +/- 2.33e-05

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/331569/cmap_HighResolution_340934401_341193601_4FGL_J1311.0+3233_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.66e-08', energy_flux2='4.82e-05', photon_flux_error='2.15e-08', dlogl='1.94e-01', energy_flux='4.09e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-09-07 04:07:13.428177', photon_index_error2='0.38', photon_index2='2.03', ts='33.46', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='0.97', time_epoch_completed='1631012833.43', return_code='0', job_id='331569', GAL2='1.12', EG2='0.98', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='2.31e-08', ts2='33.80', photon_index='2.27' WHERE bin_id='392' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:07:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 331569: <4FGL_J1311.0+3233_daily_bin392> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin392> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 03:50:46 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:50:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 03:50:49 2021
Terminated at Tue Sep  7 04:07:13 2021
Results reported at Tue Sep  7 04:07:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin392 197.76 32.5565 340934401 341193601 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 :                                   769.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

