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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin549
RA = 197.76, Dec = 32.5565
tmin = 381628801, tmax = 381888001
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='332852', job_status='RUN', time_executed='2021-09-07 03:58:10.354885', time_epoch_executed='1631012290.35' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332852

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332852/ft1_4FGL_J1311.0+3233_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332852/ft2_4FGL_J1311.0+3233_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332852/ft1_4FGL_J1311.0+3233_daily_bin549.fits outfile=/scratch/kocevski/332852/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin549.fits ra=197.76 dec=32.5565 rad=12.0 tmin=381628801.0 tmax=381888001.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.25
user 3.02
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332852/ft2_4FGL_J1311.0+3233_daily_bin549.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/332852/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/332852/ft1_filtered_4FGL_J1311.0+3233_daily_bin549.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.46
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332852/ft1_filtered_4FGL_J1311.0+3233_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/332852/ft2_4FGL_J1311.0+3233_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/332852/ltcube_381628801_381888001_4FGL_J1311.0+3233_daily_bin549.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/332852/ft2_4FGL_J1311.0+3233_daily_bin549.fits
.....................!
real 13.17
user 12.83
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332852/ft1_filtered_4FGL_J1311.0+3233_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/332852/ft2_4FGL_J1311.0+3233_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/332852/ltcube_381628801_381888001_4FGL_J1311.0+3233_daily_bin549.fits outfile=/scratch/kocevski/332852/expmap_381628801_381888001_4FGL_J1311.0+3233_daily_bin549.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/332852/ltcube_381628801_381888001_4FGL_J1311.0+3233_daily_bin549.fits
.....................!
real 156.03
user 151.28
sys 4.37

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/332852/ft1_filtered_4FGL_J1311.0+3233_daily_bin549.fits scfile=/scratch/kocevski/332852/ft2_4FGL_J1311.0+3233_daily_bin549.fits outfile=/scratch/kocevski/332852/cmap_381628801_381888001_4FGL_J1311.0+3233_daily_bin549.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332852/ft1_filtered_4FGL_J1311.0+3233_daily_bin549.fits scfile=/scratch/kocevski/332852/ft2_4FGL_J1311.0+3233_daily_bin549.fits outfile=/scratch/kocevski/332852/cmap_HighResolution_381628801_381888001_4FGL_J1311.0+3233_daily_bin549.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.48
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.381       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6372       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3710       1.0000         .10000E-03   10000.    
     5 'norm      '    .74204E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12397E-03   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 '    8.0893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.212       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7682       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11368E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .47468       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1422       1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.052       1.0000         .10000E-03   10000.    
    23 'norm      '    41.191       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.816       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.0700       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1403       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97555       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=   6054.437     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     3565 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.381        6.3923       -.29488E-07   -.57794E-04
   2  Prefactor     .10000E-03    2.9848        .17686E-06** at limit **
   3  Prefactor     6.6376        3.5342        .31320E-07   -.32256E-04
   4  Prefactor     1.3712        2.8445        .72892E-06    .12544E-03
   5  norm          .10000E-03    3.1616        .21022E-06** at limit **
   6  Prefactor     .10000E-03    12.473       -.29642E-06** at limit **
   7  Prefactor     .10000E-03    7.8099        .24839E-06** at limit **
   8  Prefactor     .10000E-03    55.368       -.24557E-06** at limit **
   9  Prefactor     8.0887        9.9138        .21031E-05    .17542E-05
  10  Prefactor     12.211        7.6061        .61798E-07   -.10119E-03
  11  norm          .10000E-03    2.8052        .79628E-07** at limit **
  12  Prefactor     6.7425        39.216        .54198E-05   -.24667E-04
  13  Prefactor     .10000E-03    10.856        .17353E-06** at limit **
  14  norm          .10002E-03    1.9867        .43719E-06** at limit **
  15  Prefactor     .10000E-03    6.1776        .14428E-06** at limit **
  16  norm          .10000E-03    3.7606        .23822E-06** at limit **
  17  norm          .10000E-03    4.3601       -.28969E-07** at limit **
  18  norm          .47143        23.616       -.10389E-04    .25257E-03
  19  norm          2.1454        11.081        .10452E-04    .33701E-03
  20  norm          .10000E-03    19.060        .74460E-06** at limit **
  21  Prefactor     .10000E-03    1.3830        .21628E-07** at limit **
  22  Prefactor     17.059        15.154       -.12088E-05   -.23637E-03
  23  norm          41.191        11.260       -.37472E-07   -.17429E-03
  24  Prefactor     .10000E-03    18.802        .31276E-06** at limit **
  25  norm          .10000E-03    6.1251        .21861E-06** at limit **
  26  Prefactor     .10000E-03    7.2863       -.17104E-06** at limit **
  27  Prefactor     .10000E-03    10.383        .90682E-06** at limit **
  28  Prefactor     13.702        84.312        .20038E-04   -.67937E-04
  29  Prefactor     7.0708        5.0363        .11327E-05    .14621E-03
  30  Normalizat    1.1400        .18895        .36210E-05   -.46830E-03
  31  Prefactor     .97599        .22195       -.83832E-05   -.21825E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.3813
  Prefactor  = 0.0001
  Prefactor  = 6.63763
  Prefactor  = 1.3712
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.08867
  Prefactor  = 12.211
  norm       = 0.0001
  Prefactor  = 6.74247
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.471429
  norm       = 2.14544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0592
  norm       = 41.1909
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.702
  Prefactor  = 7.07077
  Normalizat = 1.13995
  Prefactor  = 0.975993
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.437     FROM HESSE     STATUS=OK           622 CALLS     4187 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.381        6.3873        .84668E-04   -1.4761    
   2  Prefactor     .10000E-03    2.9898        .13129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6376        3.5340        .97759E-04   -1.5193    
   4  Prefactor     1.3712        2.8021        .17694E-03   -1.5474    
   5  norm          .10000E-03    24.242        .26885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0887        9.8565        .70483E-03   -1.5139    
  10  Prefactor     12.211        7.6088        .11463E-03   -1.5009    
  11  norm          .10000E-03    2.8613        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7425        39.253        .15423E-03   -1.5189    
  13  Prefactor     .10000E-03    10.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    28.186        .21092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8438        .14730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3617        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .47143        40.317        .28867E-02   -1.5571    
  19  norm          2.1454        18.773        .10400E-02   -1.5415    
  20  norm          .10000E-03    19.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3964        .89134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.059        15.486        .96991E-04   -1.4882    
  23  norm          41.191        11.248        .62458E-04   -1.4423    
  24  Prefactor     .10000E-03    18.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.1620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.3110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.702        85.368        .10776E-03   -1.4967    
  29  Prefactor     7.0708        5.0522        .69799E-03   -1.5176    
  30  Normalizat    1.1400        .22463        .23641E-03   -.88479    
  31  Prefactor     .97599        .25834        .30985E-03   -.93534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24865e-09
Minuit parameter uncertainties:
  1  6.38751
  2  8.7733e-06
  3  3.53407
  4  2.80235
  5  0.000122602
  6  0.00012324
  7  9.79185e-06
  8  0.00016314
  9  9.85851
  10  7.60936
  11  1.35638e-05
  12  32.569
  13  9.97054e-06
  14  0.00141864
  15  1.22184e-05
  16  2.70441e-05
  17  1.47163e-06
  18  8.72447
  19  12.6977
  20  3.15389e-05
  21  1.1202e-05
  22  15.4894
  23  11.2484
  24  3.9226e-06
  25  1.31491e-05
  26  2.99811e-05
  27  1.32443e-05
  28  68.5471
  29  5.05249
  30  0.224816
  31  0.258663
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.145e+00  1.270e+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:  9.760e-01  2.587e-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.140e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/332852/likelihoodResults_381628801_381888001_4FGL_J1311.0+3233_daily_bin549.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): 0
logL (Free Index) = 6054.43138123
delta logL = 0.00549702424541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6054.4285464
delta logL = 0.00833184940257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8037       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4749       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97674       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=   6054.429     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      212 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8088        125.56        .77802E-02    .44024E-03
   2  alpha         2.4764        2.6994        .41154        .31617E-04
   3  Normalizat    1.1387        .52075E-01    .53492E-01    .31571E-05
   4  Prefactor     .97654        .57085E-01    .70023E-01    .13173E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80876
  alpha      = 2.47639
  Normalizat = 1.13865
  Prefactor  = 0.976536
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.429     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8088        4.9692        .18677E-03   -1.5439    
   2  alpha         2.4764        1.6545        .24599E-01   -.94441E-02
   3  Normalizat    1.1387        .20589        .23652E-03   -.88520    
   4  Prefactor     .97654        .25247        .30977E-03   -.93516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61686e-09
Minuit parameter uncertainties:
  1  4.9703
  2  1.80812
  3  0.206032
  4  0.252771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332852': 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) = 6054.42854272
delta logL = 0.00833552826225

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.809e+00  4.970e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.476e+00  1.808e+00  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:  9.765e-01  2.528e-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  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
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/332852/cmap_HighResolution_381628801_381888001_4FGL_J1311.0+3233_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', job_status='DONE', photon_flux_upper_limit='4.16e-08', time_completed='2021-09-07 04:09:33.099251', job_id='332852', GAL2='0.98', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631012973.1', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.34e-03', ts2='0.45', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='549' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:09:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 332852: <4FGL_J1311.0+3233_daily_bin549> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin549 197.76 32.5565 381628801 381888001 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 :                                   679.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            846 sec.

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

