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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin675
RA = 197.76, Dec = 32.5565
tmin = 414288001, tmax = 414547201
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='334259', job_status='RUN', time_executed='2021-09-07 04:03:18.501985', time_epoch_executed='1631012598.5' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334259/ft1_4FGL_J1311.0+3233_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334259/ft2_4FGL_J1311.0+3233_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334259/ft1_4FGL_J1311.0+3233_daily_bin675.fits outfile=/scratch/kocevski/334259/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin675.fits ra=197.76 dec=32.5565 rad=12.0 tmin=414288001.0 tmax=414547201.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.54
user 5.26
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334259/ft2_4FGL_J1311.0+3233_daily_bin675.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/334259/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin675.fits evtable="EVENTS" outfile="/scratch/kocevski/334259/ft1_filtered_4FGL_J1311.0+3233_daily_bin675.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334259/ft1_filtered_4FGL_J1311.0+3233_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/334259/ft2_4FGL_J1311.0+3233_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/334259/ltcube_414288001_414547201_4FGL_J1311.0+3233_daily_bin675.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/334259/ft2_4FGL_J1311.0+3233_daily_bin675.fits
.....................!
real 17.37
user 16.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334259/ft1_filtered_4FGL_J1311.0+3233_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/334259/ft2_4FGL_J1311.0+3233_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/334259/ltcube_414288001_414547201_4FGL_J1311.0+3233_daily_bin675.fits outfile=/scratch/kocevski/334259/expmap_414288001_414547201_4FGL_J1311.0+3233_daily_bin675.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/334259/ltcube_414288001_414547201_4FGL_J1311.0+3233_daily_bin675.fits
.....................!
real 192.62
user 187.54
sys 4.42

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/334259/ft1_filtered_4FGL_J1311.0+3233_daily_bin675.fits scfile=/scratch/kocevski/334259/ft2_4FGL_J1311.0+3233_daily_bin675.fits outfile=/scratch/kocevski/334259/cmap_414288001_414547201_4FGL_J1311.0+3233_daily_bin675.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334259/ft1_filtered_4FGL_J1311.0+3233_daily_bin675.fits scfile=/scratch/kocevski/334259/ft2_4FGL_J1311.0+3233_daily_bin675.fits outfile=/scratch/kocevski/334259/cmap_HighResolution_414288001_414547201_4FGL_J1311.0+3233_daily_bin675.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/334259/ft1_filtered_4FGL_J1311.0+3233_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/334259/ft2_4FGL_J1311.0+3233_daily_bin675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334259/Model_4FGL_J1311.0+3233_daily_bin675.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/334259/ft1_filtered_4FGL_J1311.0+3233_daily_bin675.fits.....................!
real 37.41
user 36.01
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7256       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3139       1.0000         .10000E-03   10000.    
     5 'norm      '    9.3795       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9086       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.937       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.424       1.0000         .10000E-03   10000.    
    14 'norm      '    .84304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2204       1.0000         .10000E-03   10000.    
    17 'norm      '    8.7219       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9027       1.0000         .10000E-03   10000.    
    19 'norm      '    18.478       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.116       1.0000         .10000E-03   10000.    
    23 'norm      '    12.535       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.221       1.0000         .10000E-03   10000.    
    28 'Prefactor '    66.377       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.1596       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1020       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .53278       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=   3815.731     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4117 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7255        4.9844       -.70077E-07    .35057E-04
   2  Prefactor     3.4066        7.4927        .36552E-06   -.28129E-05
   3  Prefactor     2.4105        3.0872        .83746E-08    .16948E-04
   4  Prefactor     2.3143        2.6108       -.31090E-07    .18671E-04
   5  norm          9.3797        6.5682       -.64080E-07    .24390E-04
   6  Prefactor     .10000E-03    21.328        .41599E-07** at limit **
   7  Prefactor     .10000E-03    47.925       -.14867E-06** at limit **
   8  Prefactor     8.8929        74.608        .35822E-05    .10629E-04
   9  Prefactor     23.937        12.455       -.21672E-06    .45030E-04
  10  Prefactor     .10000E-03    2.5345       -.59420E-07** at limit **
  11  norm          .10000E-03    3.2056       -.84280E-06** at limit **
  12  Prefactor     .10000E-03    25.974        .16849E-06** at limit **
  13  Prefactor     37.393        25.229        .13652E-05    .60849E-04
  14  norm          .84777        4.9771       -.10675E-06    .54477E-04
  15  Prefactor     .10000E-03    5.6976       -.68662E-07** at limit **
  16  norm          3.2200        4.0359        .62996E-07    .21250E-04
  17  norm          8.7220        8.9563       -.30269E-07    .34756E-05
  18  norm          1.9181        10.024       -.21266E-05   -.86726E-05
  19  norm          18.441        17.208        .15711E-05    .98064E-04
  20  norm          .10000E-03    10.577        .35040E-08** at limit **
  21  Prefactor     .10000E-03    1.7094       -.57843E-07** at limit **
  22  Prefactor     21.104        15.613        .35946E-06    .46298E-04
  23  norm          12.534        8.2524       -.92681E-07    .29902E-04
  24  Prefactor     .10000E-03    46.971        .15051E-06** at limit **
  25  norm          .10000E-03    4.7343        .24299E-07** at limit **
  26  Prefactor     .10000E-03    8.2850        .51549E-08** at limit **
  27  Prefactor     15.214        25.183        .23577E-07    .16034E-05
  28  Prefactor     66.344        80.223       -.50223E-06   -.81059E-05
  29  Prefactor     3.1588        5.0195        .16925E-06    .71420E-05
  30  Normalizat    1.1023        .21737        .16903E-05    .39387E-04
  31  Prefactor     .53237        .25070       -.29451E-05    .97036E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.72549
  Prefactor  = 3.40663
  Prefactor  = 2.41048
  Prefactor  = 2.31426
  norm       = 9.37965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.89286
  Prefactor  = 23.9371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3927
  norm       = 0.847767
  Prefactor  = 0.0001
  norm       = 3.22003
  norm       = 8.72197
  norm       = 1.91811
  norm       = 18.4407
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1044
  norm       = 12.5335
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2137
  Prefactor  = 66.3439
  Prefactor  = 3.15877
  Normalizat = 1.10235
  Prefactor  = 0.532365
 **********
 **   18 **HESSE 
 **********

 FCN=   3815.731     FROM HESSE     STATUS=OK           628 CALLS     4745 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7255        4.9808        .93932E-04   -1.5117    
   2  Prefactor     3.4066        7.4732        .21917E-03   -1.5339    
   3  Prefactor     2.4105        3.0716        .11080E-03   -1.5397    
   4  Prefactor     2.3143        2.5926        .10075E-03   -1.5404    
   5  norm          9.3797        6.5663        .12807E-03   -1.5095    
   6  Prefactor     .10000E-03    21.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8929        74.797        .13429E-03   -1.5111    
   9  Prefactor     23.937        12.352        .81872E-04   -1.4729    
  10  Prefactor     .10000E-03    2.5444        .96040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.3454        .20565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.393        25.652        .65515E-04   -1.4484    
  14  norm          .84777        8.3067        .25139E-02   -1.5524    
  15  Prefactor     .10000E-03    5.7067        .14399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2200        4.0259        .13445E-03   -1.5349    
  17  norm          8.7220        8.9588        .13573E-03   -1.5117    
  18  norm          1.9181        9.1273        .20683E-03   -1.5431    
  19  norm          18.441        16.642        .93174E-04   -1.4849    
  20  norm          .10000E-03    10.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7309        .78735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.104        15.619        .87165E-04   -1.4789    
  23  norm          12.534        8.2390        .11314E-03   -1.5000    
  24  Prefactor     .10000E-03    47.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.7540        .13117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.2980        .17363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.214        25.164        .10266E-03   -1.4928    
  28  Prefactor     66.344        80.363        .49262E-04   -1.4077    
  29  Prefactor     3.1588        5.0327        .16482E-03   -1.5352    
  30  Normalizat    1.1023        .24460        .20139E-03   -.89677    
  31  Prefactor     .53237        .27674        .33805E-03   -1.1051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30453e-10
Minuit parameter uncertainties:
  1  4.98101
  2  7.47524
  3  3.07178
  4  2.59277
  5  6.56684
  6  4.13126e-05
  7  2.5267e-05
  8  51.6685
  9  12.3535
  10  1.30307e-06
  11  8.43006e-05
  12  5.05839e-05
  13  25.6591
  14  5.30807
  15  4.70826e-06
  16  4.02622
  17  8.96022
  18  8.37016
  19  16.6466
  20  6.58388e-06
  21  3.02465e-06
  22  15.6222
  23  8.23978
  24  3.6591e-05
  25  4.06004e-08
  26  3.67817e-06
  27  25.1811
  28  80.4952
  29  5.03337
  30  0.244849
  31  0.277442
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.844e+01  1.665e+01  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:  5.324e-01  2.774e-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:  1.102e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.39
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.09e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 3.32e-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) = 3815.7031947
delta logL = 0.0274724974774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3815.7008166
delta logL = 0.029850600205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.953       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1338       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53011       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.

 FCN=   3815.701     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      255 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.985        262.82        .21876E-02   -.10425E-03
   2  alpha         2.1357        3.3997        .22942        .18376E-04
   3  Normalizat    1.1069        .12296        .37729E-01    .18635E-03
   4  Prefactor     .52974        .11257        .76528E-01    .12393E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.985
  alpha      = 2.13572
  Normalizat = 1.10686
  Prefactor  = 0.529735
 **********
 **   18 **HESSE 
 **********

 FCN=   3815.701     FROM HESSE     STATUS=OK            29 CALLS      284 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.985        15.488        .87503E-04   -1.4791    
   2  alpha         2.1357        .57585        .87611E-02   -.14623    
   3  Normalizat    1.1069        .22536        .20107E-03   -.89532    
   4  Prefactor     .52974        .27073        .33889E-03   -1.1063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19486e-11
Minuit parameter uncertainties:
  1  15.4907
  2  0.581188
  3  0.22556
  4  0.27139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334259': 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) = 3815.7007919
delta logL = 0.0298753002421

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.098e+01  1.549e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.136e+00  5.812e-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:  5.297e-01  2.714e-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:  1.107e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.57
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.14 +/- 0.58
Photon Flux (Free Index): 4.59e-08 +/- 3.19e-08
Energy Flux (Free Index): 4.00e-05 +/- 2.65e-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/334259/cmap_HighResolution_414288001_414547201_4FGL_J1311.0+3233_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.09e-08', energy_flux2='4.00e-05', photon_flux_error='4.60e-08', dlogl='2.99e-02', energy_flux='3.68e-05', photon_flux2='4.59e-08', job_status='DONE', time_completed='2021-09-07 04:13:55.055631', photon_index_error2='0.58', photon_index2='2.14', ts='8.39', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='1.10', time_epoch_completed='1631013235.06', return_code='0', job_id='334259', GAL2='0.53', EG2='1.11', return_code2='0', energy_flux_error='3.32e-05', photon_flux_error2='3.19e-08', ts2='8.57', photon_index='2.27' WHERE bin_id='675' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:13:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 334259: <4FGL_J1311.0+3233_daily_bin675> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin675> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:34 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:01:02 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:01:02 2021
Terminated at Tue Sep  7 04:13:57 2021
Results reported at Tue Sep  7 04:13:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin675 197.76 32.5565 414288001 414547201 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            803 sec.

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

