/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 126 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1311.0+3233_daily_bin353
RA = 197.76, Dec = 32.5565
tmin = 330825601, tmax = 331084801
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='331512', job_status='RUN', time_executed='2021-09-07 03:52:59.394214', time_epoch_executed='1631011979.39' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331512/ft1_4FGL_J1311.0+3233_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331512/ft2_4FGL_J1311.0+3233_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331512/ft1_4FGL_J1311.0+3233_daily_bin353.fits outfile=/scratch/kocevski/331512/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin353.fits ra=197.76 dec=32.5565 rad=12.0 tmin=330825601.0 tmax=331084801.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.45
user 3.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/331512/ft2_4FGL_J1311.0+3233_daily_bin353.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/331512/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin353.fits evtable="EVENTS" outfile="/scratch/kocevski/331512/ft1_filtered_4FGL_J1311.0+3233_daily_bin353.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.59
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331512/ft1_filtered_4FGL_J1311.0+3233_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/331512/ft2_4FGL_J1311.0+3233_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/331512/ltcube_330825601_331084801_4FGL_J1311.0+3233_daily_bin353.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/331512/ft2_4FGL_J1311.0+3233_daily_bin353.fits
.....................!
real 17.41
user 16.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331512/ft1_filtered_4FGL_J1311.0+3233_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/331512/ft2_4FGL_J1311.0+3233_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/331512/ltcube_330825601_331084801_4FGL_J1311.0+3233_daily_bin353.fits outfile=/scratch/kocevski/331512/expmap_330825601_331084801_4FGL_J1311.0+3233_daily_bin353.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/331512/ltcube_330825601_331084801_4FGL_J1311.0+3233_daily_bin353.fits
.....................!
real 194.38
user 188.48
sys 5.34

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/331512/ft1_filtered_4FGL_J1311.0+3233_daily_bin353.fits scfile=/scratch/kocevski/331512/ft2_4FGL_J1311.0+3233_daily_bin353.fits outfile=/scratch/kocevski/331512/cmap_330825601_331084801_4FGL_J1311.0+3233_daily_bin353.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331512/ft1_filtered_4FGL_J1311.0+3233_daily_bin353.fits scfile=/scratch/kocevski/331512/ft2_4FGL_J1311.0+3233_daily_bin353.fits outfile=/scratch/kocevski/331512/cmap_HighResolution_330825601_331084801_4FGL_J1311.0+3233_daily_bin353.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24395E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0421       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6041       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.269       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7281       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.3503       1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0088       1.0000         .10000E-03   10000.    
    20 'norm      '    23.991       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1686       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.3460       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    15.055       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6962       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.104       1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.371       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .78530       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0838       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91765       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=   5456.663     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     2831 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8354        2.2524       -.29857E-06    .16700E-02
   2  Prefactor     .10011E-03    115.11        .14102E-04** at limit **
   3  Prefactor     5.0422        2.1416       -.10153E-06   -.56359E-02
   4  Prefactor     2.6040        2.1486       -.36540E-06   -.57995E-03
   5  norm          1.5229        1.0759       -.40272E-07    .12761E-03
   6  Prefactor     15.268        1.0032       -.15066E-08   -.10731E-03
   7  Prefactor     .10000E-03    6.0187        .84903E-07** at limit **
   8  Prefactor     .10022E-03    12.649       -.33340E-06** at limit **
   9  Prefactor     3.7268        1.0184        .39812E-07   -.47142E-03
  10  Prefactor     .10000E-03    1.7798       -.20328E-06** at limit **
  11  norm          .10000E-03    .77596        .44247E-07** at limit **
  12  Prefactor     .10002E-03    26.078        .23020E-05** at limit **
  13  Prefactor     .10000E-03    4.1424        .46207E-06** at limit **
  14  norm          .10000E-03    1.1055        .10982E-06** at limit **
  15  Prefactor     .10000E-03    3.4785       -.23813E-06** at limit **
  16  norm          .10000E-03    1.1195        .36000E-07** at limit **
  17  norm          7.3497        1.0039        .97918E-08   -.22552E-03
  18  norm          .10000E-03    2.2079       -.25465E-06** at limit **
  19  norm          4.0077        1.1332        .43458E-07   -.12885E-02
  20  norm          23.989        1.0107        .18012E-07    .10026E-03
  21  Prefactor     1.1683        1.9974       -.98329E-07   -.18146E-03
  22  Prefactor     .10000E-03    4.4650       -.44937E-06** at limit **
  23  norm          1.3445        1.0968        .46874E-08   -.89271E-04
  24  Prefactor     .10037E-03    8.7549       -.45811E-06** at limit **
  25  norm          15.055        1.0049        .10418E-07   -.57056E-04
  26  Prefactor     1.6959        1.0591        .70262E-07   -.13041E-03
  27  Prefactor     22.103        1.0052        .99471E-08    .17680E-03
  28  Prefactor     13.368        1.0511        .23426E-07    .14101E-02
  29  Prefactor     .78449        2.7297        .90019E-06   -.16772E-02
  30  Normalizat    1.0839        .19883       -.13595E-05   -.22988E-03
  31  Prefactor     .91775        .24429        .10784E-05   -.10476E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83538
  Prefactor  = 0.000100108
  Prefactor  = 5.04215
  Prefactor  = 2.60402
  norm       = 1.52289
  Prefactor  = 15.2683
  Prefactor  = 0.0001
  Prefactor  = 0.000100223
  Prefactor  = 3.72683
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.34972
  norm       = 0.0001
  norm       = 4.0077
  norm       = 23.9889
  Prefactor  = 1.16826
  Prefactor  = 0.0001
  norm       = 1.34446
  Prefactor  = 0.000100367
  norm       = 15.0552
  Prefactor  = 1.69586
  Prefactor  = 22.1033
  Prefactor  = 13.3682
  Prefactor  = 0.784486
  Normalizat = 1.08387
  Prefactor  = 0.917751
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.663     FROM HESSE     STATUS=OK           694 CALLS     3525 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8354        2.3544        .60377E-02   -1.5371    
   2  Prefactor     .10011E-03    6.4022        .68323E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0422        2.5891        .44769E-02   -1.5259    
   4  Prefactor     2.6040        2.1784        .63201E-02   -1.5385    
   5  norm          1.5229        4.8435        .86511E-02   -1.5461    
   6  Prefactor     15.268        10.988        .25625E-02   -1.4926    
   7  Prefactor     .10000E-03    6.0250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10022E-03    20.109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7268        6.3277        .52283E-02   -1.5322    
  10  Prefactor     .10000E-03    1.7729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .77580        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    26.895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.3497        8.5118        .36985E-02   -1.5166    
  18  norm          .10000E-03    2.1551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0077        4.2547        .50355E-02   -1.5308    
  20  norm          23.989        20.350        .20445E-02   -1.4728    
  21  Prefactor     1.1683        2.0518        .10621E-01   -1.5492    
  22  Prefactor     .10000E-03    4.4755        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3445        4.6991        .94356E-02   -1.5476    
  24  Prefactor     .10037E-03    21.036        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          15.055        10.172        .25806E-02   -1.4932    
  26  Prefactor     1.6959        25.561        .80771E-02   -1.5448    
  27  Prefactor     22.103        20.043        .21299E-02   -1.4767    
  28  Prefactor     13.368        70.655        .27385E-02   -1.4977    
  29  Prefactor     .78449        4.4428        .12385E-01   -1.5531    
  30  Normalizat    1.0839        .17231        .38701E-01   -.90271    
  31  Prefactor     .91775        .21020        .65141E-01   -.95524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63224e-07
Minuit parameter uncertainties:
  1  2.35443
  2  0.00166515
  3  2.58914
  4  2.17842
  5  4.84475
  6  10.9891
  7  8.48303e-07
  8  0.00423622
  9  6.32882
  10  9.91061e-06
  11  1.29341e-06
  12  0.00142814
  13  3.48378e-05
  14  4.16445e-06
  15  1.22821e-06
  16  1.25537e-06
  17  8.51316
  18  1.23812e-05
  19  4.25501
  20  20.3562
  21  2.05195
  22  2.10041e-05
  23  4.70037
  24  0.00555921
  25  10.173
  26  13.1742
  27  20.0495
  28  61.5802
  29  3.73399
  30  0.172399
  31  0.210391
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  4.008e+00  4.255e+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:  9.178e-01  2.104e-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.084e+00  1.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.11e-08 +/- 1.17e-08
Energy Flux (Fixed Index): 7.99e-06 +/- 8.49e-06

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

Saving results to:
/scratch/kocevski/331512/likelihoodResults_330825601_331084801_4FGL_J1311.0+3233_daily_bin353.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5456.65341141
delta logL = 0.00955929570955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5456.64620757
delta logL = 0.0167631419945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3928       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4376       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91837       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=   5456.646     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3881        122.87        .54914E-02    .12345E-03
   2  alpha         2.4381        3.2561        .28078        .54896E-04
   3  Normalizat    1.0824        .67251E-01    .38768E-01    .62218E-04
   4  Prefactor     .91829        .76685E-01    .65121E-01    .14178E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.38807
  alpha      = 2.43805
  Normalizat = 1.08243
  Prefactor  = 0.91829
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.646     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3881        5.4248        .13595E-03   -1.5340    
   2  alpha         2.4381        .95939        .14880E-01   -.24782E-01
   3  Normalizat    1.0824        .19756        .21709E-03   -.90318    
   4  Prefactor     .91829        .24433        .28804E-03   -.95505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6477e-11
Minuit parameter uncertainties:
  1  5.42562
  2  0.984666
  3  0.197691
  4  0.244624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331512': 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) = 5456.646207
delta logL = 0.0167637092827

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  3.388e+00  5.426e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.438e+00  9.847e-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:  9.183e-01  2.446e-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.082e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.44 +/- 0.98
Photon Flux (Free Index): 1.27e-08 +/- 1.54e-08
Energy Flux (Free Index): 7.44e-06 +/- 8.58e-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/331512/cmap_HighResolution_330825601_331084801_4FGL_J1311.0+3233_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-05', comment='SUCCESS', photon_flux='1.11e-08', energy_flux2='7.44e-06', photon_flux_error='1.17e-08', dlogl='1.68e-02', energy_flux='7.99e-06', photon_flux2='1.27e-08', job_status='DONE', time_completed='2021-09-07 04:05:31.153232', photon_index_error2='0.98', photon_index2='2.44', ts='1.95', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='4.42e-08', energy_flux_error2='8.58e-06', EG='1.08', time_epoch_completed='1631012731.15', return_code='0', job_id='331512', GAL2='0.92', EG2='1.08', return_code2='0', energy_flux_error='8.49e-06', photon_flux_error2='1.54e-08', ts2='1.98', photon_index='2.27' WHERE bin_id='353' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:05:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 331512: <4FGL_J1311.0+3233_daily_bin353> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin353> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 03:50:41 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:50:43 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:50:43 2021
Terminated at Tue Sep  7 04:05:31 2021
Results reported at Tue Sep  7 04:05:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin353 197.76 32.5565 330825601 331084801 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 :                                   748.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

