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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin646
RA = 197.76, Dec = 32.5565
tmin = 406771201, tmax = 407030401
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='334219', job_status='RUN', time_executed='2021-09-07 04:03:39.560585', time_epoch_executed='1631012619.56' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334219

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334219/ft1_4FGL_J1311.0+3233_daily_bin646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334219/ft2_4FGL_J1311.0+3233_daily_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334219/ft1_4FGL_J1311.0+3233_daily_bin646.fits outfile=/scratch/kocevski/334219/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin646.fits ra=197.76 dec=32.5565 rad=12.0 tmin=406771201.0 tmax=407030401.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.58
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334219/ft2_4FGL_J1311.0+3233_daily_bin646.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/334219/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin646.fits evtable="EVENTS" outfile="/scratch/kocevski/334219/ft1_filtered_4FGL_J1311.0+3233_daily_bin646.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.63
user 0.37
sys 0.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334219/ft1_filtered_4FGL_J1311.0+3233_daily_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/334219/ft2_4FGL_J1311.0+3233_daily_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/334219/ltcube_406771201_407030401_4FGL_J1311.0+3233_daily_bin646.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/334219/ft2_4FGL_J1311.0+3233_daily_bin646.fits
.....................!
real 17.40
user 16.85
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334219/ft1_filtered_4FGL_J1311.0+3233_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/334219/ft2_4FGL_J1311.0+3233_daily_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/334219/ltcube_406771201_407030401_4FGL_J1311.0+3233_daily_bin646.fits outfile=/scratch/kocevski/334219/expmap_406771201_407030401_4FGL_J1311.0+3233_daily_bin646.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/334219/ltcube_406771201_407030401_4FGL_J1311.0+3233_daily_bin646.fits
.....................!
real 194.44
user 187.94
sys 5.46

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/334219/ft1_filtered_4FGL_J1311.0+3233_daily_bin646.fits scfile=/scratch/kocevski/334219/ft2_4FGL_J1311.0+3233_daily_bin646.fits outfile=/scratch/kocevski/334219/cmap_406771201_407030401_4FGL_J1311.0+3233_daily_bin646.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334219/ft1_filtered_4FGL_J1311.0+3233_daily_bin646.fits scfile=/scratch/kocevski/334219/ft2_4FGL_J1311.0+3233_daily_bin646.fits outfile=/scratch/kocevski/334219/cmap_HighResolution_406771201_407030401_4FGL_J1311.0+3233_daily_bin646.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.59
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.811       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5384       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0192       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2934       1.0000         .10000E-03   10000.    
    11 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.396       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1470       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.1901       1.0000         .10000E-03   10000.    
    20 'norm      '    11.862       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3475       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.6823       1.0000         .10000E-03   10000.    
    23 'norm      '    6.9526       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7659       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    52.221       1.0000         .10000E-03   10000.    
    28 'Prefactor '    85.032       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .66572       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1251       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=   5385.485     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4106 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.810        4.6992        .21404E-06    .85513E-03
   2  Prefactor     .10038E-03    5.1675       -.15397E-05** at limit **
   3  Prefactor     .10000E-03    1.3233        .98401E-07** at limit **
   4  Prefactor     2.5383        2.3044        .57095E-08   -.16204E-04
   5  norm          5.9802        4.2282        .79088E-07    .10020E-03
   6  Prefactor     10.810        10.437        .14288E-06    .22784E-04
   7  Prefactor     .10000E-03    11.607       -.12267E-06** at limit **
   8  Prefactor     .10001E-03    36.124        .28001E-05** at limit **
   9  Prefactor     9.0189        7.2018        .53926E-06   -.20967E-03
  10  Prefactor     6.2935        6.4830        .97209E-07   -.77980E-04
  11  norm          .10001E-03    2.2532        .85068E-06** at limit **
  12  Prefactor     .10001E-03    34.394        .42699E-05** at limit **
  13  Prefactor     .10000E-03    16.163       -.20824E-05** at limit **
  14  norm          14.396        5.3264        .15852E-07    .30644E-04
  15  Prefactor     .10000E-03    7.1658       -.87004E-06** at limit **
  16  norm          5.1474        5.4665       -.12568E-06   -.18863E-03
  17  norm          .10000E-03    6.5787        .55050E-06** at limit **
  18  norm          .10000E-03    2.6402       -.24615E-06** at limit **
  19  norm          6.1900        5.0925       -.28575E-06   -.49853E-03
  20  norm          11.860        22.438       -.24837E-05   -.71089E-04
  21  Prefactor     1.3467        3.7437        .78598E-06   -.80829E-04
  22  Prefactor     9.6834        14.370       -.28752E-06   -.55139E-04
  23  norm          6.9526        8.9507        .39961E-05   -.62882E-03
  24  Prefactor     .10001E-03    39.638       -.42265E-05** at limit **
  25  norm          2.7661        8.6717       -.24088E-05   -.13182E-03
  26  Prefactor     .10000E-03    18.968        .13154E-05** at limit **
  27  Prefactor     52.221        27.231        .10031E-06   -.44476E-04
  28  Prefactor     85.051        63.171        .36132E-05    .36979E-03
  29  Prefactor     .10000E-03    1.0155        .11642E-07** at limit **
  30  Normalizat    .66577        .16871       -.15612E-05    .78213E-04
  31  Prefactor     1.1251        .20749        .33977E-06   -.10079E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.8105
  Prefactor  = 0.000100376
  Prefactor  = 0.0001
  Prefactor  = 2.53833
  norm       = 5.98024
  Prefactor  = 10.8103
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 9.01891
  Prefactor  = 6.29351
  norm       = 0.000100012
  Prefactor  = 0.000100014
  Prefactor  = 0.000100003
  norm       = 14.3964
  Prefactor  = 0.000100001
  norm       = 5.14742
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.19
  norm       = 11.86
  Prefactor  = 1.3467
  Prefactor  = 9.68335
  norm       = 6.95256
  Prefactor  = 0.000100014
  norm       = 2.7661
  Prefactor  = 0.000100001
  Prefactor  = 52.2208
  Prefactor  = 85.0506
  Prefactor  = 0.0001
  Normalizat = 0.665768
  Prefactor  = 1.12508
 **********
 **   18 **HESSE 
 **********

 FCN=   5385.485     FROM HESSE     STATUS=OK           620 CALLS     4726 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.810        4.6903        .88211E-04   -1.4965    
   2  Prefactor     .10038E-03    39.914        .30912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3326        .82102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5383        2.2955        .10057E-03   -1.5389    
   5  norm          5.9802        4.2281        .12332E-03   -1.5219    
   6  Prefactor     10.810        10.425        .12186E-03   -1.5050    
   7  Prefactor     .10000E-03    11.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    36.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.0189        7.2104        .66729E-03   -1.5107    
  10  Prefactor     6.2935        6.4714        .16001E-03   -1.5206    
  11  norm          .10001E-03    10.163        .20801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    35.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.396        5.3255        .98578E-04   -1.4949    
  15  Prefactor     .10000E-03    7.2164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1474        5.4151        .16313E-03   -1.5254    
  17  norm          .10000E-03    6.6197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6804        .23040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.1900        5.0550        .14428E-03   -1.5210    
  20  norm          11.860        22.463        .11631E-03   -1.5019    
  21  Prefactor     1.3467        3.5970        .19275E-03   -1.5476    
  22  Prefactor     9.6834        13.978        .12878E-03   -1.5086    
  23  norm          6.9526        9.3369        .76075E-03   -1.5181    
  24  Prefactor     .10001E-03    40.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7661        8.6418        .24473E-03   -1.5375    
  26  Prefactor     .10000E-03    19.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     52.221        27.202        .55500E-04   -1.4261    
  28  Prefactor     85.051        64.917        .43564E-04   -1.3861    
  29  Prefactor     .10000E-03    1.0201        .72212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .66577        .19533        .25500E-03   -1.0526    
  31  Prefactor     1.1251        .24428        .25650E-03   -.88669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28604e-08
Minuit parameter uncertainties:
  1  4.69046
  2  0.00774954
  3  3.15842e-06
  4  2.29563
  5  4.22829
  6  10.4266
  7  1.51409e-05
  8  0.000933339
  9  7.21112
  10  6.47208
  11  0.000710745
  12  0.0013968
  13  0.000445943
  14  5.32569
  15  0.000120627
  16  5.41558
  17  7.66199e-05
  18  1.24386e-05
  19  5.05534
  20  22.4791
  21  3.59755
  22  13.9824
  23  9.33887
  24  0.00151044
  25  8.64571
  26  0.000305642
  27  27.2085
  28  64.9713
  29  1.10352e-06
  30  0.195531
  31  0.244529
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  6.190e+00  5.055e+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.125e+00  2.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  6.658e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.17
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.71e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.01e-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) = 5385.31959779
delta logL = 0.165846338881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5385.31656229
delta logL = 0.168881837381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6298       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7260       1.0000          .0000       5.0000    
     3 'Normalizat'    .65786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1299       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=   5385.317     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      257 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6298        69.639        .53013E-02    .12240E-02
   2  alpha         2.7260        3.8629        .28503        .42357E-04
   3  Normalizat    .65784        .69315E-01    .41725E-01    .20802E-04
   4  Prefactor     1.1299        .72767E-01    .57884E-01    .56017E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62979
  alpha      = 2.72599
  Normalizat = 0.657844
  Prefactor  = 1.12994
 **********
 **   18 **HESSE 
 **********

 FCN=   5385.317     FROM HESSE     STATUS=OK            31 CALLS      288 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6298        5.7470        .10517E-03   -1.5327    
   2  alpha         2.7260        .88739        .10486E-01    .90520E-01
   3  Normalizat    .65784        .18856        .25638E-03   -1.0558    
   4  Prefactor     1.1299        .24139        .25596E-03   -.88515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58406e-09
Minuit parameter uncertainties:
  1  5.74783
  2  0.907336
  3  0.188745
  4  0.241626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334219': 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) = 5385.31656227
delta logL = 0.168881859855

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  3.630e+00  5.748e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.726e+00  9.073e-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.130e+00  2.416e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  6.578e-01  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.73 +/- 0.91
Photon Flux (Free Index): 2.43e-08 +/- 2.30e-08
Energy Flux (Free Index): 1.04e-05 +/- 8.85e-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/334219/cmap_HighResolution_406771201_407030401_4FGL_J1311.0+3233_daily_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.71e-08', energy_flux2='1.04e-05', photon_flux_error='1.40e-08', dlogl='1.69e-01', energy_flux='1.23e-05', photon_flux2='2.43e-08', job_status='DONE', time_completed='2021-09-07 04:15:54.375641', photon_index_error2='0.91', photon_index2='2.73', ts='4.17', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='8.85e-06', EG='0.67', time_epoch_completed='1631013354.38', return_code='0', job_id='334219', GAL2='1.13', EG2='0.66', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.30e-08', ts2='4.49', photon_index='2.27' WHERE bin_id='646' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 334219: <4FGL_J1311.0+3233_daily_bin646> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin646> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:32 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:00: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 04:00:50 2021
Terminated at Tue Sep  7 04:15:55 2021
Results reported at Tue Sep  7 04:15:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin646 197.76 32.5565 406771201 407030401 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 :                                   728.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            923 sec.

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

