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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin656
RA = 197.76, Dec = 32.5565
tmin = 409363201, tmax = 409622401
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='334232', job_status='RUN', time_executed='2021-09-07 04:04:49.745285', time_epoch_executed='1631012689.75' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334232/ft1_4FGL_J1311.0+3233_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334232/ft2_4FGL_J1311.0+3233_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334232/ft1_4FGL_J1311.0+3233_daily_bin656.fits outfile=/scratch/kocevski/334232/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin656.fits ra=197.76 dec=32.5565 rad=12.0 tmin=409363201.0 tmax=409622401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.57
user 5.33
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334232/ft1_filtered_4FGL_J1311.0+3233_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/334232/ft2_4FGL_J1311.0+3233_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/334232/ltcube_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.fits outfile=/scratch/kocevski/334232/expmap_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.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/334232/ltcube_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.fits
.....................!
real 191.03
user 185.93
sys 4.62

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/334232/ft1_filtered_4FGL_J1311.0+3233_daily_bin656.fits scfile=/scratch/kocevski/334232/ft2_4FGL_J1311.0+3233_daily_bin656.fits outfile=/scratch/kocevski/334232/cmap_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334232/ft1_filtered_4FGL_J1311.0+3233_daily_bin656.fits scfile=/scratch/kocevski/334232/ft2_4FGL_J1311.0+3233_daily_bin656.fits outfile=/scratch/kocevski/334232/cmap_HighResolution_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.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.60
user 0.43
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/334232/ft1_filtered_4FGL_J1311.0+3233_daily_bin656.fits', '/scratch/kocevski/334232/ft2_4FGL_J1311.0+3233_daily_bin656.fits', expMap='/scratch/kocevski/334232/expmap_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.fits', expCube='/scratch/kocevski/334232/ltcube_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/334232/Model_4FGL_J1311.0+3233_daily_bin656.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/334232/ft1_filtered_4FGL_J1311.0+3233_daily_bin656.fits
Spacecraft file(s): /scratch/kocevski/334232/ft2_4FGL_J1311.0+3233_daily_bin656.fits
Exposure map: /scratch/kocevski/334232/expmap_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.fits
Exposure cube: /scratch/kocevski/334232/ltcube_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/334232/Model_4FGL_J1311.0+3233_daily_bin656.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4331.71740258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4331.65968254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.977       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9609       1.0000         .10000E-03   10000.    
     5 'norm      '    11.260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28788       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13286E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    173.75       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1906       1.0000         .10000E-03   10000.    
    11 'norm      '    .13122E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .78247E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.734       1.0000         .10000E-03   10000.    
    14 'norm      '    5.8160       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .74373       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10338E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.3070       1.0000         .10000E-03   10000.    
    19 'norm      '    .10832E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .14753E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.4406       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .41383E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.5690       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .54857E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .25674E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .46036E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.2281       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.7275       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80716E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4331.659     FROM MIGRAD    STATUS=CONVERGED    208 CALLS     2935 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.972        4.8089        .23446E-06    .32977E-03
   2  Prefactor     8.4808        6.7767        .53943E-06    .37620E-02
   3  Prefactor     .10000E-03    1.0879       -.29419E-07** at limit **
   4  Prefactor     1.9616        1.8695       -.87435E-07   -.85717E-04
   5  norm          11.296        6.8742       -.79022E-06   -.74769E-03
   6  Prefactor     .14892        207.83       -.10639E-04   -.56993E-05
   7  Prefactor     .10000E-03    7.1159       -.44419E-06** at limit **
   8  Prefactor     175.34        96.826        .39851E-06   -.49549E-04
   9  Prefactor     .10000E-03    4.0801       -.25332E-06** at limit **
  10  Prefactor     6.1794        5.5894       -.32751E-06    .25215E-03
  11  norm          .10000E-03    3.5070        .11018E-05** at limit **
  12  Prefactor     .10001E-03    11.543        .86063E-06** at limit **
  13  Prefactor     14.721        29.545       -.11868E-05    .22762E-05
  14  norm          5.8079        4.6226       -.29828E-06   -.21181E-03
  15  Prefactor     .79296        20.746        .22732E-05   -.66107E-03
  16  norm          .10000E-03    1.4138       -.57161E-07** at limit **
  17  norm          .10000E-03    3.8211        .70800E-06** at limit **
  18  norm          8.3347        5.5169        .32579E-06    .13722E-02
  19  norm          .10000E-03    3.7964       -.62894E-06** at limit **
  20  norm          .10000E-03    6.9770       -.48106E-07** at limit **
  21  Prefactor     .10000E-03    1.5570        .18552E-08** at limit **
  22  Prefactor     .10000E-03    11.598       -.56279E-06** at limit **
  23  norm          2.4545        4.0236       -.61858E-06    .31722E-02
  24  Prefactor     .10002E-03    11.587        .15395E-06** at limit **
  25  norm          3.5383        13.004        .63786E-06    .29812E-04
  26  Prefactor     .10008E-03    31.924        .95252E-06** at limit **
  27  Prefactor     .10002E-03    42.380       -.47872E-06** at limit **
  28  Prefactor     .10008E-03    13.483        .42181E-06** at limit **
  29  Prefactor     4.2437        3.4191       -.86266E-07    .24312E-04
  30  Normalizat    1.7287        .23813        .45022E-06   -.16401E-04
  31  Prefactor     .79933E-01    .25935       -.18761E-05   -.70195E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9722
  Prefactor  = 8.48077
  Prefactor  = 0.0001
  Prefactor  = 1.96157
  norm       = 11.296
  Prefactor  = 0.148925
  Prefactor  = 0.0001
  Prefactor  = 175.337
  Prefactor  = 0.0001
  Prefactor  = 6.17941
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 14.7208
  norm       = 5.80794
  Prefactor  = 0.792965
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.33471
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.45448
  Prefactor  = 0.000100015
  norm       = 3.53835
  Prefactor  = 0.000100079
  Prefactor  = 0.000100017
  Prefactor  = 0.000100082
  Prefactor  = 4.24372
  Normalizat = 1.72874
  Prefactor  = 0.0799331
 **********
 **   18 **HESSE 
 **********

 FCN=   4331.659     FROM HESSE     STATUS=NOT POSDEF   686 CALLS     3621 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.972        4.8680        .27798E-02   -1.4987    
   2  Prefactor     8.4808        9.9906        .34473E-02   -1.5125    
   3  Prefactor     .10000E-03    1.0207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9616        1.8956        .74057E-02   -1.5428    
   5  norm          11.296        7.5697        .29848E-02   -1.5036    
   6  Prefactor     .14892        9.9492        .10372       -1.5631    
   7  Prefactor     .10000E-03    6.7055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     175.34        101.63        .76533E-03   -1.3052    
   9  Prefactor     .10000E-03    3.8525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1794        6.1448        .40337E-02   -1.5211    
  11  norm          .10000E-03    3.2790        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    14.051        .10458E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.721        30.130        .25243E-02   -1.4940    
  14  norm          5.8079        5.2144        .41633E-02   -1.5226    
  15  Prefactor     .79296        23.776        .12228E-01   -1.5530    
  16  norm          .10000E-03    1.3299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.3347        5.7231        .34774E-02   -1.5130    
  19  norm          .10000E-03    3.5713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.5813        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.4492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.043        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.4545        7.3357        .65473E-02   -1.5395    
  24  Prefactor     .10002E-03    24.854        .10624E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.5383        16.390        .53482E-02   -1.5332    
  26  Prefactor     .10008E-03    31.151        .10555E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    40.139        .99956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10008E-03    25.220        .10599E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.2437        3.5432        .48992E-02   -1.5296    
  30  Normalizat    1.7287        1.4113        .41878E-01   -.71538    
  31  Prefactor     .79933E-01    7.5660        .20139       -1.3917    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.32021e-06
Minuit parameter uncertainties:
  1  4.86814
  2  9.99256
  3  3.67579e-07
  4  1.8957
  5  7.5703
  6  2.43409
  7  0.000101839
  8  101.735
  9  7.44318e-06
  10  6.1454
  11  2.53973e-05
  12  0.000686853
  13  30.1607
  14  5.21478
  15  8.68742
  16  8.67767e-07
  17  1.69171e-05
  18  5.72345
  19  1.58328e-05
  20  0.000102133
  21  2.7802e-08
  22  0.00022056
  23  7.33839
  24  0.00123419
  25  15.2375
  26  0.00314536
  27  0.00165058
  28  0.00287046
  29  3.54341
  30  1.4465
  31  1.59593
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4331.65880481

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.583e-05  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:  7.993e-02  1.596e+00  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.729e+00  1.446e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/334232/likelihoodResults_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.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): 102
logL (Free Index) = 4331.65998098
delta logL = -0.00117617300384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4331.65880479
delta logL = 1.35769369081e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4331.524     FROM MIGRAD    STATUS=FAILED       141 CALLS      290 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17586E-01    1.4777        .35399E-02    .58912E-02
   2  alpha         5.0000        3.5974        .50000    ** at limit **
   3  Normalizat    1.6843        .71766E-01    .18508E-03    .32556E-05
   4  Prefactor     .11212        .71880E-01    .82151E-02    .17328E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4331.524     FROM SIMPLEX   STATUS=UNCHANGED    199 CALLS      489 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17586E-01    1.4777        .15068E-08    .58912E-02
   2  alpha         5.0000        3.5974        .79210E-02** at limit **
   3  Normalizat    1.6843        .71766E-01    .24088E-08    .32556E-05
   4  Prefactor     .11212        .71880E-01    .48359E-09    .17328E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4331.524     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      526 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17586E-01    .36396E-01    .14809E-03    .23610E-01
   2  alpha         5.0000        3.6146        .50000    ** at limit **
   3  Normalizat    1.6843        .25065        .74032E-05    .33784E-05
   4  Prefactor     .11212        .26952        .32860E-03    .86493E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.017586
  alpha      = 5
  Normalizat = 1.68432
  Prefactor  = 0.112121
 **********
 **   18 **HESSE 
 **********

 FCN=   4331.524     FROM HESSE     STATUS=OK            31 CALLS      557 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17586E-01    .35715E-01    .29618E-04   -1.5682    
   2  alpha         5.0000        3.5854        .50000       -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6843        .25051        .14806E-05   -.72723    
   4  Prefactor     .11212        .26906        .13144E-04   -1.3586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2159e-12
Minuit parameter uncertainties:
  1  0.035715
  2  1.68154e-07
  3  0.250699
  4  0.272081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334232': 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) = 4331.52378171
delta logL = 0.135023093824

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.759e-02  3.571e-02  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  5.000e+00  1.682e-07  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.121e-01  2.721e-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.684e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/334232/cmap_HighResolution_409363201_409622401_4FGL_J1311.0+3233_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-05', job_status='DONE', photon_flux_upper_limit='4.53e-08', time_completed='2021-09-07 04:17:09.441397', job_id='334232', GAL2='0.11', fit_tolerance='1e-08', EG2='1.68', EG='1.73', time_epoch_completed='1631013429.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.08', dlogl='1.35e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='656' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 334232: <4FGL_J1311.0+3233_daily_bin656> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin656> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:33 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:00:54 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:54 2021
Terminated at Tue Sep  7 04:17:10 2021
Results reported at Tue Sep  7 04:17:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin656 197.76 32.5565 409363201 409622401 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 :                                   737.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            997 sec.

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

