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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin563
RA = 197.76, Dec = 32.5565
tmin = 385257601, tmax = 385516801
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='332874', job_status='RUN', time_executed='2021-09-07 03:56:11.329548', time_epoch_executed='1631012171.33' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332874/ft1_4FGL_J1311.0+3233_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332874/ft2_4FGL_J1311.0+3233_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332874/ft1_4FGL_J1311.0+3233_daily_bin563.fits outfile=/scratch/kocevski/332874/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin563.fits ra=197.76 dec=32.5565 rad=12.0 tmin=385257601.0 tmax=385516801.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.60
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332874/ft1_filtered_4FGL_J1311.0+3233_daily_bin563.fits" evtable="EVENTS" scfile=/scratch/kocevski/332874/ft2_4FGL_J1311.0+3233_daily_bin563.fits sctable="SC_DATA" outfile=/scratch/kocevski/332874/ltcube_385257601_385516801_4FGL_J1311.0+3233_daily_bin563.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/332874/ft2_4FGL_J1311.0+3233_daily_bin563.fits
.....................!
real 13.90
user 13.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332874/ft1_filtered_4FGL_J1311.0+3233_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/332874/ft2_4FGL_J1311.0+3233_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/332874/ltcube_385257601_385516801_4FGL_J1311.0+3233_daily_bin563.fits outfile=/scratch/kocevski/332874/expmap_385257601_385516801_4FGL_J1311.0+3233_daily_bin563.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/332874/ltcube_385257601_385516801_4FGL_J1311.0+3233_daily_bin563.fits
.....................!
real 190.60
user 185.21
sys 4.63

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/332874/ft1_filtered_4FGL_J1311.0+3233_daily_bin563.fits scfile=/scratch/kocevski/332874/ft2_4FGL_J1311.0+3233_daily_bin563.fits outfile=/scratch/kocevski/332874/cmap_385257601_385516801_4FGL_J1311.0+3233_daily_bin563.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332874/ft1_filtered_4FGL_J1311.0+3233_daily_bin563.fits scfile=/scratch/kocevski/332874/ft2_4FGL_J1311.0+3233_daily_bin563.fits outfile=/scratch/kocevski/332874/cmap_HighResolution_385257601_385516801_4FGL_J1311.0+3233_daily_bin563.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0444       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3432       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8512       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8760       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32893E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13339E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7825       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .16669       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17102E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.517       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0738       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.233       1.0000         .10000E-03   10000.    
    18 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.515       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.1123       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13357E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    15.395       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.365       1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.794       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11248E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.5170       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0874       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0394       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=   5944.050     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     3512 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2131       -.59410E-09** at limit **
   2  Prefactor     .10000E-03    9.5288        .23071E-06** at limit **
   3  Prefactor     3.0439        2.3406        .33158E-07    .47435E-03
   4  Prefactor     5.3431        2.8641        .28587E-07    .13224E-02
   5  norm          4.8516        4.8454        .15354E-06    .97702E-03
   6  Prefactor     4.8761        2.2818        .15909E-05    .36496E-03
   7  Prefactor     .10077E-03    527.92       -.25979E-04** at limit **
   8  Prefactor     .10035E-03    50.740        .17382E-04** at limit **
   9  Prefactor     4.7814        5.6367       -.78808E-05   -.76609E-03
  10  Prefactor     .10000E-03    2.6787        .14732E-06** at limit **
  11  norm          .95213E-01    53.911        .10594E-04   -.30222E-05
  12  Prefactor     .10001E-03    22.048        .88956E-06** at limit **
  13  Prefactor     13.755        23.235       -.33854E-05    .91360E-03
  14  norm          2.0737        2.1119        .10988E-06   -.74812E-03
  15  Prefactor     .10000E-03    5.4173        .93485E-07** at limit **
  16  norm          .10000E-03    3.5802       -.78314E-07** at limit **
  17  norm          12.218        6.1896        .34462E-05   -.74213E-04
  18  norm          .10000E-03    1.6901        .38167E-07** at limit **
  19  norm          .10000E-03    1.9011       -.10802E-07** at limit **
  20  norm          22.506        1.5293       -.38603E-06    .17029E-03
  21  Prefactor     .10000E-03    1.1662        .17707E-07** at limit **
  22  Prefactor     .10000E-03    7.7755       -.88506E-07** at limit **
  23  norm          7.1082        5.9170        .35146E-05   -.64798E-03
  24  Prefactor     .10049E-03    54.606       -.20157E-04** at limit **
  25  norm          15.401        5.8628        .20867E-05    .72742E-02
  26  Prefactor     16.376        4.8636       -.21663E-05    .23301E-02
  27  Prefactor     21.758        3.1759       -.72079E-06    .71406E-03
  28  Prefactor     .10032E-03    78.240        .86138E-05** at limit **
  29  Prefactor     4.5150        4.4361        .16888E-06    .50042E-03
  30  Normalizat    1.0874        .21195        .14902E-05   -.52923E-04
  31  Prefactor     1.0397        .25332       -.26309E-05   -.32016E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.04394
  Prefactor  = 5.34306
  norm       = 4.85161
  Prefactor  = 4.87607
  Prefactor  = 0.00010077
  Prefactor  = 0.000100351
  Prefactor  = 4.78137
  Prefactor  = 0.0001
  norm       = 0.0952126
  Prefactor  = 0.000100011
  Prefactor  = 13.7551
  norm       = 2.0737
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.218
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.5063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.10818
  Prefactor  = 0.000100486
  norm       = 15.4009
  Prefactor  = 16.3763
  Prefactor  = 21.7575
  Prefactor  = 0.000100319
  Prefactor  = 4.51502
  Normalizat = 1.08742
  Prefactor  = 1.03967
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.050     FROM HESSE     STATUS=OK           700 CALLS     4212 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0439        2.3507        .58134E-02   -1.5359    
   4  Prefactor     5.3431        2.8776        .43466E-02   -1.5246    
   5  norm          4.8516        4.8709        .45659E-02   -1.5267    
   6  Prefactor     4.8761        6.0377        .45541E-02   -1.5266    
   7  Prefactor     .10077E-03    10.976        .13764       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10035E-03    63.948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7814        5.6835        .45993E-02   -1.5271    
  10  Prefactor     .10000E-03    2.6717        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .95213E-01    3.2540        .71624E-01   -1.5646    
  12  Prefactor     .10001E-03    22.109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.755        28.763        .27236E-02   -1.4966    
  14  norm          2.0737        2.1040        .71707E-02   -1.5420    
  15  Prefactor     .10000E-03    5.4076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.4304        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.218        16.475        .28632E-02   -1.5009    
  18  norm          .10000E-03    1.6752        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.506        18.340        .21104E-02   -1.4759    
  21  Prefactor     .10000E-03    1.1601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.7510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.1082        6.4639        .37604E-02   -1.5175    
  24  Prefactor     .10049E-03    67.757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          15.401        11.388        .25519E-02   -1.4923    
  26  Prefactor     16.376        26.813        .24751E-02   -1.4898    
  27  Prefactor     21.758        38.654        .21450E-02   -1.4775    
  28  Prefactor     .10032E-03    192.70        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.5150        4.4691        .47357E-02   -1.5283    
  30  Normalizat    1.0874        .18433        .38537E-01   -.90157    
  31  Prefactor     1.0397        .21661        .66354E-01   -.91419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98827e-08
Minuit parameter uncertainties:
  1  7.25673e-06
  2  0.000126759
  3  2.35076
  4  2.87766
  5  4.87131
  6  6.03848
  7  0.00581371
  8  0.00949214
  9  5.68418
  10  4.4118e-05
  11  1.11272
  12  0.000992657
  13  28.792
  14  2.10405
  15  7.21966e-05
  16  2.39448e-05
  17  16.4815
  18  2.02151e-05
  19  2.19891e-06
  20  18.345
  21  1.06383e-05
  22  5.24064e-05
  23  6.46455
  24  0.0114869
  25  11.3899
  26  26.8323
  27  38.6983
  28  0.0157352
  29  4.46942
  30  0.184441
  31  0.216792
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  2.199e-06  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.040e+00  2.168e-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.087e+00  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/332874/likelihoodResults_385257601_385516801_4FGL_J1311.0+3233_daily_bin563.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) = 5944.05211162
delta logL = -0.00239359258103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5944.04971789
delta logL = 1.31669366965e-07

Fit tolerance = 1e-08

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

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

 FCN=   5944.050     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      235 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    161.31        .10480E-01** at limit **
   2  alpha         1.3939        3.4301        .16560        .82521E-07
   3  Normalizat    1.0874        .37472E-01    .24034E-03   -.20198E-04
   4  Prefactor     1.0397        .45032E-01    .29352E-03   -.97217E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.39387
  Normalizat = 1.08741
  Prefactor  = 1.03967
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.050     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6186        .12173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3939        2.7669        .66238E-02   -.45833    
   3  Normalizat    1.0874        .20904        .96135E-05   -.90157    
   4  Prefactor     1.0397        .25111        .11741E-04   -.91418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58565e-10
Minuit parameter uncertainties:
  1  0.000117076
  2  230.887
  3  0.209194
  4  0.251393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332874': 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) = 5944.04971086
delta logL = 7.16219165042e-06

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.171e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.394e+00  2.309e+02  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.040e+00  2.514e-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.087e+00  2.092e-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/332874/cmap_HighResolution_385257601_385516801_4FGL_J1311.0+3233_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-05', job_status='DONE', photon_flux_upper_limit='2.78e-08', time_completed='2021-09-07 04:09:46.106661', job_id='332874', GAL2='1.04', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631012986.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='563' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:09:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 332874: <4FGL_J1311.0+3233_daily_bin563> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin563 197.76 32.5565 385257601 385516801 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 :                                   810.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            858 sec.

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

