/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 26 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1311.0+3233_daily_bin50
RA = 197.76, Dec = 32.5565
tmin = 252288001, tmax = 252547201
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='325798', job_status='RUN', time_executed='2021-09-07 03:36:11.281001', time_epoch_executed='1631010971.28' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325798

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325798/ft1_4FGL_J1311.0+3233_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325798/ft2_4FGL_J1311.0+3233_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325798/ft1_4FGL_J1311.0+3233_daily_bin50.fits outfile=/scratch/kocevski/325798/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin50.fits ra=197.76 dec=32.5565 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.59
user 2.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/325798/ft2_4FGL_J1311.0+3233_daily_bin50.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/325798/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/325798/ft1_filtered_4FGL_J1311.0+3233_daily_bin50.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325798/ft1_filtered_4FGL_J1311.0+3233_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/325798/ft2_4FGL_J1311.0+3233_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/325798/ltcube_252288001_252547201_4FGL_J1311.0+3233_daily_bin50.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/325798/ft2_4FGL_J1311.0+3233_daily_bin50.fits
.....................!
real 17.63
user 17.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325798/ft1_filtered_4FGL_J1311.0+3233_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/325798/ft2_4FGL_J1311.0+3233_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/325798/ltcube_252288001_252547201_4FGL_J1311.0+3233_daily_bin50.fits outfile=/scratch/kocevski/325798/expmap_252288001_252547201_4FGL_J1311.0+3233_daily_bin50.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/325798/ltcube_252288001_252547201_4FGL_J1311.0+3233_daily_bin50.fits
.....................!
real 191.70
user 186.96
sys 4.29

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/325798/ft1_filtered_4FGL_J1311.0+3233_daily_bin50.fits scfile=/scratch/kocevski/325798/ft2_4FGL_J1311.0+3233_daily_bin50.fits outfile=/scratch/kocevski/325798/cmap_252288001_252547201_4FGL_J1311.0+3233_daily_bin50.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.62
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325798/ft1_filtered_4FGL_J1311.0+3233_daily_bin50.fits scfile=/scratch/kocevski/325798/ft2_4FGL_J1311.0+3233_daily_bin50.fits outfile=/scratch/kocevski/325798/cmap_HighResolution_252288001_252547201_4FGL_J1311.0+3233_daily_bin50.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9006       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11252E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1447       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.110       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.994       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.431       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0030       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .77626       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7390       1.0000         .10000E-03   10000.    
    17 'norm      '    16.330       1.0000         .10000E-03   10000.    
    18 'norm      '    .39906E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.3737       1.0000         .10000E-03   10000.    
    20 'norm      '    .18849E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14194E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.1766       1.0000         .10000E-03   10000.    
    23 'norm      '    3.4570       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.170       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .19385E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .92078E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96449       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88878       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=   6371.634     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4224 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9007        3.5561       -.12537E-06    .11735E-03
   2  Prefactor     .10000E-03    25.754       -.10955E-04** at limit **
   3  Prefactor     3.8940        2.9892       -.78880E-08    .60214E-04
   4  Prefactor     3.1445        2.3252       -.24121E-07    .14013E-03
   5  norm          .10000E-03    1.5334       -.39592E-07** at limit **
   6  Prefactor     22.110        10.191       -.98722E-08    .43226E-04
   7  Prefactor     17.993        13.850       -.14241E-07    .17805E-04
   8  Prefactor     43.431        50.310       -.16753E-06    .32929E-05
   9  Prefactor     1.9816        5.7021       -.56350E-07    .47824E-03
  10  Prefactor     2.0018        3.3162       -.20805E-06    .49022E-04
  11  norm          .10000E-03    1.0974       -.26036E-07** at limit **
  12  Prefactor     .10001E-03    21.261        .26134E-05** at limit **
  13  Prefactor     .10000E-03    7.4905       -.98753E-07** at limit **
  14  norm          .77542        2.6032       -.81159E-06    .23644E-03
  15  Prefactor     .10000E-03    13.235       -.93981E-06** at limit **
  16  norm          2.7381        2.8642       -.49470E-07   -.39650E-04
  17  norm          16.330        11.297       -.11614E-07   -.17226E-04
  18  norm          .10001E-03    1.7567        .78367E-06** at limit **
  19  norm          7.3687        5.3188       -.11763E-06   -.30099E-03
  20  norm          .10000E-03    22.623        .84895E-05** at limit **
  21  Prefactor     .10000E-03    1.5751       -.32497E-06** at limit **
  22  Prefactor     7.1717        11.360       -.71239E-06   -.11655E-03
  23  norm          3.4559        3.7784        .65140E-07    .64597E-04
  24  Prefactor     .10001E-03    23.969       -.39274E-05** at limit **
  25  norm          13.171        8.0859        .67874E-08    .91497E-04
  26  Prefactor     .10000E-03    12.225        .24476E-06** at limit **
  27  Prefactor     .10000E-03    6.8600       -.29455E-07** at limit **
  28  Prefactor     .10000E-03    303.43        .22527E-05** at limit **
  29  Prefactor     .10049E-03    3.6495       -.33303E-05** at limit **
  30  Normalizat    .96464        .15491        .53890E-06    .35311E-03
  31  Prefactor     .88861        .19019        .62237E-07    .22205E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.90075
  Prefactor  = 0.000100004
  Prefactor  = 3.89403
  Prefactor  = 3.14454
  norm       = 0.0001
  Prefactor  = 22.1099
  Prefactor  = 17.9926
  Prefactor  = 43.4313
  Prefactor  = 1.98163
  Prefactor  = 2.00182
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.77542
  Prefactor  = 0.0001
  norm       = 2.73806
  norm       = 16.3301
  norm       = 0.000100011
  norm       = 7.36869
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.17174
  norm       = 3.45589
  Prefactor  = 0.000100012
  norm       = 13.1705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100489
  Normalizat = 0.964642
  Prefactor  = 0.888608
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.634     FROM HESSE     STATUS=OK           642 CALLS     4866 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9007        3.5584        .13697E-03   -1.5367    
   2  Prefactor     .10000E-03    32.895        .34372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8940        2.9996        .98661E-04   -1.5313    
   4  Prefactor     3.1445        2.3136        .97160E-04   -1.5353    
   5  norm          .10000E-03    1.5603        .96524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.110        10.183        .85184E-04   -1.4767    
   7  Prefactor     17.993        13.848        .94419E-04   -1.4859    
   8  Prefactor     43.431        50.293        .60833E-04   -1.4389    
   9  Prefactor     1.9816        5.6766        .29456E-03   -1.5426    
  10  Prefactor     2.0018        3.2920        .18136E-03   -1.5425    
  11  norm          .10000E-03    1.0999        .81634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    21.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.5016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .77542        2.5763        .22512E-03   -1.5532    
  15  Prefactor     .10000E-03    13.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7381        2.8582        .13379E-03   -1.5377    
  17  norm          16.330        11.298        .99112E-04   -1.4900    
  18  norm          .10001E-03    42.144        .17753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.3687        4.9371        .13927E-03   -1.5165    
  20  norm          .10000E-03    69.801        .47922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.851        .17527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.1717        10.642        .14973E-03   -1.5172    
  23  norm          3.4559        3.7656        .15287E-03   -1.5336    
  24  Prefactor     .10001E-03    25.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.171        8.0634        .11038E-03   -1.4982    
  26  Prefactor     .10000E-03    12.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.8672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    307.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10049E-03    2.4540        .34336E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96464        .18258        .21906E-03   -.94225    
  31  Prefactor     .88861        .22442        .27838E-03   -.96540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09982e-09
Minuit parameter uncertainties:
  1  3.55867
  2  0.000729455
  3  2.9997
  4  2.31364
  5  2.5613e-06
  6  10.1833
  7  13.8502
  8  50.3422
  9  5.67813
  10  3.29234
  11  1.09096e-06
  12  0.000677218
  13  1.24948e-05
  14  2.5767
  15  0.000148403
  16  2.85836
  17  11.2995
  18  0.00135447
  19  4.93737
  20  1.6674e-05
  21  7.03151e-05
  22  10.6452
  23  3.76591
  24  0.00108735
  25  8.06407
  26  4.59029e-05
  27  3.55189e-06
  28  0.00194398
  29  0.00219072
  30  0.182697
  31  0.224652
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.646e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.12
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 9.85e-06

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) = 6371.63070752
delta logL = 0.0033015012059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6371.62828606
delta logL = 0.00572296630889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8049       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1982       1.0000          .0000       5.0000    
     3 'Normalizat'    .96592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88810       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6371.628     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8115        6.9346        .71765E-03    .72871E-06
   2  alpha         2.1972        .73480        .14502E-01    .83504E-05
   3  Normalizat    .96596        .18034        .21894E-03    .10385E-06
   4  Prefactor     .88813        .22161        .27846E-03   -.12248E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 7.81149
  alpha      = 2.19723
  Normalizat = 0.965964
  Prefactor  = 0.88813
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.628     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .21E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8115        6.5916        .28706E-04   -1.5149    
   2  alpha         2.1972        .69941        .58009E-03   -.12140    
   3  Normalizat    .96596        .18048        .87574E-05   -.94180    
   4  Prefactor     .88813        .22187        .11138E-04   -.96557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06453e-15
Minuit parameter uncertainties:
  1  6.59217
  2  0.709018
  3  0.180593
  4  0.222091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325798': 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) = 6371.62828491
delta logL = 0.00572411292887

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  7.811e+00  6.592e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.197e+00  7.090e-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.881e-01  2.221e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.660e-01  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.13
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.20 +/- 0.71
Photon Flux (Free Index): 1.89e-08 +/- 1.81e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.10e-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/325798/cmap_HighResolution_252288001_252547201_4FGL_J1311.0+3233_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='1.51e-05', photon_flux_error='1.36e-08', dlogl='5.72e-03', energy_flux='1.47e-05', photon_flux2='1.89e-08', job_status='DONE', time_completed='2021-09-07 03:49:36.170042', photon_index_error2='0.71', photon_index2='2.20', ts='8.12', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.96', time_epoch_completed='1631011776.17', return_code='0', job_id='325798', GAL2='0.89', EG2='0.97', return_code2='0', energy_flux_error='9.85e-06', photon_flux_error2='1.81e-08', ts2='8.13', photon_index='2.27' WHERE bin_id='50' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 03:49:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 325798: <4FGL_J1311.0+3233_daily_bin50> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin50> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 03:35:24 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:35:25 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:35:25 2021
Terminated at Tue Sep  7 03:49:36 2021
Results reported at Tue Sep  7 03:49:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin50 197.76 32.5565 252288001 252547201 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 :                                   799.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            852 sec.

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

