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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin388
RA = 197.76, Dec = 32.5565
tmin = 339897601, tmax = 340156801
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='331563', job_status='RUN', time_executed='2021-09-07 03:53:13.929954', time_epoch_executed='1631011993.93' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331563

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331563/ft1_4FGL_J1311.0+3233_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331563/ft2_4FGL_J1311.0+3233_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331563/ft1_4FGL_J1311.0+3233_daily_bin388.fits outfile=/scratch/kocevski/331563/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin388.fits ra=197.76 dec=32.5565 rad=12.0 tmin=339897601.0 tmax=340156801.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.75
user 2.54
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331563/ft1_filtered_4FGL_J1311.0+3233_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/331563/ft2_4FGL_J1311.0+3233_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/331563/ltcube_339897601_340156801_4FGL_J1311.0+3233_daily_bin388.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/331563/ft2_4FGL_J1311.0+3233_daily_bin388.fits
.....................!
real 12.05
user 11.71
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331563/ft1_filtered_4FGL_J1311.0+3233_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/331563/ft2_4FGL_J1311.0+3233_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/331563/ltcube_339897601_340156801_4FGL_J1311.0+3233_daily_bin388.fits outfile=/scratch/kocevski/331563/expmap_339897601_340156801_4FGL_J1311.0+3233_daily_bin388.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/331563/ltcube_339897601_340156801_4FGL_J1311.0+3233_daily_bin388.fits
.....................!
real 157.56
user 153.00
sys 4.21

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/331563/ft1_filtered_4FGL_J1311.0+3233_daily_bin388.fits scfile=/scratch/kocevski/331563/ft2_4FGL_J1311.0+3233_daily_bin388.fits outfile=/scratch/kocevski/331563/cmap_339897601_340156801_4FGL_J1311.0+3233_daily_bin388.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.65
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331563/ft1_filtered_4FGL_J1311.0+3233_daily_bin388.fits scfile=/scratch/kocevski/331563/ft2_4FGL_J1311.0+3233_daily_bin388.fits outfile=/scratch/kocevski/331563/cmap_HighResolution_339897601_340156801_4FGL_J1311.0+3233_daily_bin388.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.48
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7848       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23791       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5588       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.128       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.432       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .79437       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52571E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.9356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.151       1.0000         .10000E-03   10000.    
    18 'norm      '    5.3671       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4325       1.0000         .10000E-03   10000.    
    20 'norm      '    7.5189       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    29.414       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.9153       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1048       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83726       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=   5884.177     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     3501 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3017        2.7791       -.31581E-07   -.13955E-03
   2  Prefactor     .10000E-03    6.8413        .12138E-05** at limit **
   3  Prefactor     1.7848        1.8001       -.29122E-07   -.11728E-03
   4  Prefactor     .23807        1.6026        .32050E-06   -.41370E-03
   5  norm          3.5588        3.5748        .81481E-08   -.91615E-04
   6  Prefactor     17.128        10.671       -.18856E-07   -.59887E-04
   7  Prefactor     .10000E-03    28.143       -.24288E-07** at limit **
   8  Prefactor     48.404        46.473       -.41407E-05   -.38259E-03
   9  Prefactor     .10000E-03    4.2899        .34959E-07** at limit **
  10  Prefactor     .10000E-03    2.5036       -.65795E-08** at limit **
  11  norm          .79494        4.8226        .14638E-05    .34436E-04
  12  Prefactor     .10001E-03    38.476        .39756E-05** at limit **
  13  Prefactor     .10001E-03    97.219       -.51785E-05** at limit **
  14  norm          7.9355        4.4864        .20369E-07    .28081E-04
  15  Prefactor     .10000E-03    7.7313       -.57432E-06** at limit **
  16  norm          .10000E-03    1.6196        .36421E-08** at limit **
  17  norm          20.152        15.383        .18502E-06   -.26673E-04
  18  norm          5.3669        4.6361       -.14149E-05    .22401E-03
  19  norm          3.4327        5.5462        .37257E-05   -.69985E-03
  20  norm          7.5190        15.585        .22275E-05   -.11377E-03
  21  Prefactor     .10000E-03    .98008        .23499E-07** at limit **
  22  Prefactor     .10000E-03    6.5944       -.42624E-06** at limit **
  23  norm          29.414        9.9946        .68823E-07   -.10503E-03
  24  Prefactor     .10000E-03    19.510       -.92929E-06** at limit **
  25  norm          .10000E-03    13.588        .14614E-05** at limit **
  26  Prefactor     .10000E-03    12.006       -.63205E-06** at limit **
  27  Prefactor     .10000E-03    26.273       -.10900E-05** at limit **
  28  Prefactor     .10000E-03    57.068       -.26334E-05** at limit **
  29  Prefactor     4.9154        4.4393       -.11995E-06   -.23384E-03
  30  Normalizat    1.1047        .16923        .19149E-06   -.72155E-04
  31  Prefactor     .83734        .20454       -.54642E-06   -.33012E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30175
  Prefactor  = 0.0001
  Prefactor  = 1.78485
  Prefactor  = 0.238071
  norm       = 3.55878
  Prefactor  = 17.128
  Prefactor  = 0.0001
  Prefactor  = 48.404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.794939
  Prefactor  = 0.000100009
  Prefactor  = 0.000100006
  norm       = 7.93554
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.1521
  norm       = 5.3669
  norm       = 3.43268
  norm       = 7.51898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.4142
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 4.91537
  Normalizat = 1.10473
  Prefactor  = 0.837338
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.177     FROM HESSE     STATUS=OK           622 CALLS     4123 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3017        2.7821        .10884E-03   -1.5345    
   2  Prefactor     .10000E-03    7.0773        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7848        1.8057        .96362E-04   -1.5441    
   4  Prefactor     .23807        6.6703        .17410E-02   -1.5610    
   5  norm          3.5588        3.5664        .14102E-03   -1.5331    
   6  Prefactor     17.128        10.645        .96776E-04   -1.4880    
   7  Prefactor     .10000E-03    28.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.404        48.219        .28810E-03   -1.4315    
   9  Prefactor     .10000E-03    4.3481        .15513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5133        .11851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .79494        4.7143        .31387E-03   -1.5530    
  12  Prefactor     .10001E-03    39.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    99.647        .42265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.9355        4.4850        .11724E-03   -1.5144    
  15  Prefactor     .10000E-03    7.7690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6277        .95325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.152        15.387        .44612E-03   -1.4810    
  18  norm          5.3669        4.6852        .12002E-03   -1.5245    
  19  norm          3.4327        5.6738        .93409E-03   -1.5337    
  20  norm          7.5190        15.620        .73128E-03   -1.5159    
  21  Prefactor     .10000E-03    .98680        .74118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.6403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          29.414        9.9670        .73873E-04   -1.4623    
  24  Prefactor     .10000E-03    19.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    13.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    57.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.9154        4.4431        .14661E-03   -1.5265    
  30  Normalizat    1.1047        .19746        .22135E-03   -.89600    
  31  Prefactor     .83734        .23853        .30389E-03   -.98366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19938e-09
Minuit parameter uncertainties:
  1  2.78219
  2  0.000118692
  3  1.80572
  4  2.5201
  5  3.56662
  6  10.6459
  7  4.39347e-06
  8  48.2577
  9  3.38761e-07
  10  1.04378e-06
  11  3.87196
  12  0.00117354
  13  0.00161207
  14  4.48518
  15  7.30827e-05
  16  9.26091e-07
  17  15.3895
  18  4.68555
  19  5.67472
  20  15.6283
  21  1.78928e-06
  22  4.97799e-05
  23  9.96755
  24  0.000194959
  25  0.000219286
  26  9.35985e-05
  27  0.000247523
  28  0.000942177
  29  4.4434
  30  0.197591
  31  0.238826
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  3.433e+00  5.675e+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.373e-01  2.388e-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.105e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/331563/likelihoodResults_339897601_340156801_4FGL_J1311.0+3233_daily_bin388.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) = 5883.84345238
delta logL = 0.333746182669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5883.83863138
delta logL = 0.338567174862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8805       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0655       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83712       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=   5883.839     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8811        5.0505        .35213E-05    .42930E-04
   2  alpha         1.0660        .94824        .15411E-06   -.11863E-03
   3  Normalizat    1.1089        .16562        .61800E-07   -.12772E-04
   4  Prefactor     .83710        .20174       -.17115E-06   -.15902E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.88113
  alpha      = 1.06604
  Normalizat = 1.10891
  Prefactor  = 0.837102
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.839     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8811        5.1915        .18342E-03   -1.5314    
   2  alpha         1.0660        1.0624        .39057E-01   -.61087    
   3  Normalizat    1.1089        .19331        .22106E-03   -.89466    
   4  Prefactor     .83710        .23512        .30405E-03   -.98375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36737e-09
Minuit parameter uncertainties:
  1  5.19206
  2  1.11693
  3  0.193436
  4  0.235402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331563': 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) = 5883.83863124
delta logL = 0.338567322748

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  3.881e+00  5.192e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.066e+00  1.117e+00  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.371e-01  2.354e-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.109e+00  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 197.760 32.556
Photon Index (Free Index): 1.07 +/- 1.12
Photon Flux (Free Index): 3.15e-09 +/- 4.33e-09
Energy Flux (Free Index): 1.62e-05 +/- 2.91e-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/331563/cmap_HighResolution_339897601_340156801_4FGL_J1311.0+3233_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-05', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='3.39e-01', photon_flux2='3.15e-09', job_status='DONE', time_completed='2021-09-07 04:04:53.460329', photon_index_error2='1.12', photon_index2='1.07', ts='0.95', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='4.63e-08', energy_flux_error2='2.91e-05', EG='1.10', time_epoch_completed='1631012693.46', return_code='0', job_id='331563', GAL2='0.84', EG2='1.11', return_code2='0', photon_flux_error2='4.33e-09', ts2='1.64', photon_index='2.27' WHERE bin_id='388' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:04:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 331563: <4FGL_J1311.0+3233_daily_bin388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin388 197.76 32.5565 339897601 340156801 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 :                                   678.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            849 sec.

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

