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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin606
RA = 197.76, Dec = 32.5565
tmin = 396403201, tmax = 396662401
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='332942', job_status='RUN', time_executed='2021-09-07 03:56:25.062656', time_epoch_executed='1631012185.06' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332942/ft1_4FGL_J1311.0+3233_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332942/ft2_4FGL_J1311.0+3233_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332942/ft1_4FGL_J1311.0+3233_daily_bin606.fits outfile=/scratch/kocevski/332942/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin606.fits ra=197.76 dec=32.5565 rad=12.0 tmin=396403201.0 tmax=396662401.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 4.61
user 4.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332942/ft1_filtered_4FGL_J1311.0+3233_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/332942/ft2_4FGL_J1311.0+3233_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/332942/ltcube_396403201_396662401_4FGL_J1311.0+3233_daily_bin606.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/332942/ft2_4FGL_J1311.0+3233_daily_bin606.fits
.....................!
real 12.19
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332942/ft1_filtered_4FGL_J1311.0+3233_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/332942/ft2_4FGL_J1311.0+3233_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/332942/ltcube_396403201_396662401_4FGL_J1311.0+3233_daily_bin606.fits outfile=/scratch/kocevski/332942/expmap_396403201_396662401_4FGL_J1311.0+3233_daily_bin606.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/332942/ltcube_396403201_396662401_4FGL_J1311.0+3233_daily_bin606.fits
.....................!
real 191.32
user 185.83
sys 4.86

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/332942/ft1_filtered_4FGL_J1311.0+3233_daily_bin606.fits scfile=/scratch/kocevski/332942/ft2_4FGL_J1311.0+3233_daily_bin606.fits outfile=/scratch/kocevski/332942/cmap_396403201_396662401_4FGL_J1311.0+3233_daily_bin606.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332942/ft1_filtered_4FGL_J1311.0+3233_daily_bin606.fits scfile=/scratch/kocevski/332942/ft2_4FGL_J1311.0+3233_daily_bin606.fits outfile=/scratch/kocevski/332942/cmap_HighResolution_396403201_396662401_4FGL_J1311.0+3233_daily_bin606.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2781       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1759       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.709       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3090       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.3168       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1112       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9924       1.0000         .10000E-03   10000.    
    23 'norm      '    3.3972       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11956       1.0000         .10000E-03   10000.    
    25 'norm      '    2.4786       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3158       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1527       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82180       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=   5892.068     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     3588 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2715        3.5933       -.15972E-07    .35128E-05
   2  Prefactor     .10000E-03    1.7002       -.89417E-08** at limit **
   3  Prefactor     .10000E-03    1.3952       -.66983E-08** at limit **
   4  Prefactor     .10000E-03    1.2162       -.62867E-07** at limit **
   5  norm          6.1764        4.9454        .39159E-06   -.96578E-04
   6  Prefactor     1.8356        4.0412        .22897E-06   -.84057E-03
   7  Prefactor     12.710        12.097        .70253E-07   -.12921E-04
   8  Prefactor     .10000E-03    25.567        .86870E-05** at limit **
   9  Prefactor     .10000E-03    5.1252        .74835E-06** at limit **
  10  Prefactor     .10000E-03    3.8320        .34245E-07** at limit **
  11  norm          .10000E-03    1.9762       -.75361E-08** at limit **
  12  Prefactor     .10000E-03    30.101       -.50347E-05** at limit **
  13  Prefactor     .10000E-03    17.961        .14396E-08** at limit **
  14  norm          .10000E-03    1.9137        .12829E-07** at limit **
  15  Prefactor     .10000E-03    12.481       -.25322E-06** at limit **
  16  norm          1.3103        3.2855       -.13640E-07   -.12001E-03
  17  norm          .10000E-03    5.8645       -.70214E-06** at limit **
  18  norm          .10001E-03    2.8114        .11970E-05** at limit **
  19  norm          8.3240        5.3781       -.22071E-05   -.38256E-03
  20  norm          .10000E-03    13.511        .42974E-06** at limit **
  21  Prefactor     4.0996        3.9391        .19083E-06   -.38151E-03
  22  Prefactor     9.9896        10.850       -.42959E-07   -.16756E-03
  23  norm          3.3980        5.5180       -.22878E-05    .94375E-04
  24  Prefactor     .72390        69.149       -.42429E-06   -.17559E-04
  25  norm          2.4785        4.7655        .16979E-05   -.80464E-04
  26  Prefactor     .10000E-03    22.705       -.51545E-05** at limit **
  27  Prefactor     2.3102        13.901        .31773E-06   -.28077E-03
  28  Prefactor     .10000E-03    37.413        .13888E-05** at limit **
  29  Prefactor     .10000E-03    1.5603       -.77574E-08** at limit **
  30  Normalizat    1.1526        .15943        .35609E-07   -.16179E-03
  31  Prefactor     .82172        .19498        .29290E-06   -.85110E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.27151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.17641
  Prefactor  = 1.8356
  Prefactor  = 12.7103
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31027
  norm       = 0.0001
  norm       = 0.000100007
  norm       = 8.32397
  norm       = 0.0001
  Prefactor  = 4.09957
  Prefactor  = 9.9896
  norm       = 3.39802
  Prefactor  = 0.723904
  norm       = 2.47846
  Prefactor  = 0.000100001
  Prefactor  = 2.31019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15263
  Prefactor  = 0.82172
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.068     FROM HESSE     STATUS=OK           628 CALLS     4216 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2715        3.3610        .87012E-04   -1.5133    
   2  Prefactor     .10000E-03    1.7019        .97746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9857        .16496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2563        .16508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1764        4.9415        .14779E-03   -1.5211    
   6  Prefactor     1.8356        9.0335        .15394E-02   -1.5437    
   7  Prefactor     12.710        12.096        .11236E-03   -1.4995    
   8  Prefactor     .10000E-03    25.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2785        .33914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8971        .14665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9939        .10531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9341        .10366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3103        3.2363        .21177E-03   -1.5479    
  17  norm          .10000E-03    5.8698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    5.1700        .23662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.3240        5.3303        .13737E-03   -1.5131    
  20  norm          .10000E-03    13.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.0996        3.8796        .12084E-03   -1.5303    
  22  Prefactor     9.9896        10.820        .63381E-03   -1.5076    
  23  norm          3.3980        5.4590        .21585E-03   -1.5339    
  24  Prefactor     .72390        63.149        .15680       -1.5538    
  25  norm          2.4785        4.7234        .22100E-03   -1.5393    
  26  Prefactor     .10000E-03    22.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3102        16.981        .13479E-02   -1.5404    
  28  Prefactor     .10000E-03    37.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.5871        .93604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1526        .18633        .20476E-03   -.88080    
  31  Prefactor     .82172        .22876        .29447E-03   -.98933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74456e-09
Minuit parameter uncertainties:
  1  3.36107
  2  1.5649e-07
  3  1.83756e-06
  4  7.65681e-07
  5  4.9418
  6  8.14592
  7  12.0982
  8  0.000323435
  9  1.92507e-05
  10  2.54243e-06
  11  1.55261e-06
  12  0.000202161
  13  1.15824e-05
  14  7.10511e-07
  15  5.8662e-07
  16  3.23669
  17  1.21536e-05
  18  0.000374703
  19  5.3306
  20  1.5416e-05
  21  3.87982
  22  10.8218
  23  5.4598
  24  13.5362
  25  4.72411
  26  0.000228667
  27  12.5313
  28  7.13023e-05
  29  5.10129e-07
  30  0.186435
  31  0.229023
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  8.324e+00  5.331e+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:  8.217e-01  2.290e-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.153e+00  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.92
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.06e-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) = 5891.91090777
delta logL = 0.157455245893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5891.90543843
delta logL = 0.162924586024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3197       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7142       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82963       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=   5891.905     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3070        62.128        .43563E-02   -.16341E-04
   2  alpha         2.7155        3.8385        .27432        .51030E-04
   3  Normalizat    1.1394        .79100E-01    .36584E-01   -.30844E-04
   4  Prefactor     .82964        .73213E-01    .66256E-01   -.11745E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.30701
  alpha      = 2.71546
  Normalizat = 1.13936
  Prefactor  = 0.829645
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.905     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3070        6.9160        .10307E-03   -1.5247    
   2  alpha         2.7155        .87717        .96188E-02    .86293E-01
   3  Normalizat    1.1394        .18596        .20570E-03   -.88498    
   4  Prefactor     .82964        .22755        .29310E-03   -.98645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73119e-09
Minuit parameter uncertainties:
  1  6.91703
  2  0.896396
  3  0.186069
  4  0.227809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332942': 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) = 5891.90543621
delta logL = 0.162926805455

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  5.307e+00  6.917e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.715e+00  8.964e-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:  8.296e-01  2.278e-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.139e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.24
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.72 +/- 0.90
Photon Flux (Free Index): 3.48e-08 +/- 3.31e-08
Energy Flux (Free Index): 1.51e-05 +/- 9.32e-06

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/332942/cmap_HighResolution_396403201_396662401_4FGL_J1311.0+3233_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='1.51e-05', photon_flux_error='1.47e-08', dlogl='1.63e-01', energy_flux='1.66e-05', photon_flux2='3.48e-08', job_status='DONE', time_completed='2021-09-07 04:08:43.693050', photon_index_error2='0.90', photon_index2='2.72', ts='8.92', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='9.32e-06', EG='1.15', time_epoch_completed='1631012923.69', return_code='0', job_id='332942', GAL2='0.83', EG2='1.14', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.31e-08', ts2='9.24', photon_index='2.27' WHERE bin_id='606' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:08:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 332942: <4FGL_J1311.0+3233_daily_bin606> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin606> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 03:55:34 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:56:08 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:56:08 2021
Terminated at Tue Sep  7 04:08:44 2021
Results reported at Tue Sep  7 04:08:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin606 197.76 32.5565 396403201 396662401 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 :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            790 sec.

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

