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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin361
RA = 197.76, Dec = 32.5565
tmin = 332899201, tmax = 333158401
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='331523', job_status='RUN', time_executed='2021-09-07 03:50:55.669031', time_epoch_executed='1631011855.67' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331523/ft1_4FGL_J1311.0+3233_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331523/ft2_4FGL_J1311.0+3233_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331523/ft1_4FGL_J1311.0+3233_daily_bin361.fits outfile=/scratch/kocevski/331523/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin361.fits ra=197.76 dec=32.5565 rad=12.0 tmin=332899201.0 tmax=333158401.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 4.21
user 3.93
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331523/ft1_filtered_4FGL_J1311.0+3233_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/331523/ft2_4FGL_J1311.0+3233_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/331523/ltcube_332899201_333158401_4FGL_J1311.0+3233_daily_bin361.fits outfile=/scratch/kocevski/331523/expmap_332899201_333158401_4FGL_J1311.0+3233_daily_bin361.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/331523/ltcube_332899201_333158401_4FGL_J1311.0+3233_daily_bin361.fits
.....................!
real 192.60
user 187.14
sys 4.89

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/331523/ft1_filtered_4FGL_J1311.0+3233_daily_bin361.fits scfile=/scratch/kocevski/331523/ft2_4FGL_J1311.0+3233_daily_bin361.fits outfile=/scratch/kocevski/331523/cmap_332899201_333158401_4FGL_J1311.0+3233_daily_bin361.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331523/ft1_filtered_4FGL_J1311.0+3233_daily_bin361.fits scfile=/scratch/kocevski/331523/ft2_4FGL_J1311.0+3233_daily_bin361.fits outfile=/scratch/kocevski/331523/cmap_HighResolution_332899201_333158401_4FGL_J1311.0+3233_daily_bin361.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3203       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8524       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10620E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39156E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8303       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4995       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8387       1.0000         .10000E-03   10000.    
    20 'norm      '    .13704E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0528       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9689       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.813       1.0000         .10000E-03   10000.    
    25 'norm      '    9.9635       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0853       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0506       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=   5899.135     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4158 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7173        2.5975       -.83368E-09    .25503E-04
   2  Prefactor     8.3201        7.1903       -.71438E-07    .21083E-04
   3  Prefactor     .10000E-03    .67429        .13346E-07** at limit **
   4  Prefactor     5.8523        2.7658       -.53168E-07    .58983E-04
   5  norm          .10000E-03    1.8221        .19789E-07** at limit **
   6  Prefactor     .10000E-03    7.5097       -.39809E-08** at limit **
   7  Prefactor     .10000E-03    7.3804        .85157E-07** at limit **
   8  Prefactor     .10000E-03    82.651       -.16079E-05** at limit **
   9  Prefactor     2.7131        6.7236        .60137E-06    .31152E-04
  10  Prefactor     .10000E-03    1.7068        .19025E-07** at limit **
  11  norm          .10000E-03    3.7143       -.45467E-06** at limit **
  12  Prefactor     .10000E-03    157.99        .34602E-05** at limit **
  13  Prefactor     11.348        28.891        .21322E-05    .16482E-03
  14  norm          1.8301        2.6813       -.41966E-07    .17041E-04
  15  Prefactor     .10000E-03    3.0113       -.43753E-08** at limit **
  16  norm          .10000E-03    1.6583        .61886E-07** at limit **
  17  norm          .10000E-03    4.6237        .51071E-07** at limit **
  18  norm          3.5157        7.2391       -.10006E-05    .38336E-03
  19  norm          1.8226        9.3026        .30606E-05    .10429E-03
  20  norm          .10001E-03    31.466       -.50539E-05** at limit **
  21  Prefactor     1.0502        2.7774       -.21375E-05    .88993E-04
  22  Prefactor     8.9630        14.543        .21332E-05    .17617E-03
  23  norm          .10000E-03    2.2263       -.55478E-07** at limit **
  24  Prefactor     34.859        45.686        .10230E-06    .26924E-04
  25  norm          9.9627        8.0072       -.95755E-07    .29865E-04
  26  Prefactor     .10000E-03    5.3594        .14339E-06** at limit **
  27  Prefactor     10.058        17.292       -.67841E-07    .22562E-04
  28  Prefactor     .10000E-03    53.459        .78827E-07** at limit **
  29  Prefactor     .10000E-03    2.4275       -.10301E-06** at limit **
  30  Normalizat    1.0853        .17127        .11582E-05    .25320E-03
  31  Prefactor     1.0506        .20841       -.10767E-05    .30572E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.71733
  Prefactor  = 8.32006
  Prefactor  = 0.0001
  Prefactor  = 5.85233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.71315
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 11.3477
  norm       = 1.83006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.51573
  norm       = 1.82259
  norm       = 0.000100013
  Prefactor  = 1.05022
  Prefactor  = 8.963
  norm       = 0.0001
  Prefactor  = 34.8595
  norm       = 9.96275
  Prefactor  = 0.0001
  Prefactor  = 10.0578
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.08533
  Prefactor  = 1.05065
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.135     FROM HESSE     STATUS=OK           622 CALLS     4780 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7173        2.5976        .89052E-04   -1.5274    
   2  Prefactor     8.3201        7.1886        .13898E-03   -1.5131    
   3  Prefactor     .10000E-03    .67865        .61544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8523        2.7645        .84643E-04   -1.5224    
   5  norm          .10000E-03    1.8451        .10124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    82.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7131        6.7231        .12364E-02   -1.5379    
  10  Prefactor     .10000E-03    1.7102        .97985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.0336        .26720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    162.18        .42547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.348        27.815        .11898E-03   -1.5034    
  14  norm          1.8301        2.6525        .14711E-03   -1.5437    
  15  Prefactor     .10000E-03    3.0122        .13016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6708        .96573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.6262        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5157        7.7505        .16013E-03   -1.5333    
  19  norm          1.8226        11.770        .15128E-02   -1.5438    
  20  norm          .10001E-03    97.169        .53195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0502        2.7895        .19067E-03   -1.5503    
  22  Prefactor     8.9630        14.563        .13383E-03   -1.5109    
  23  norm          .10000E-03    2.2321        .11187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     34.859        45.704        .67919E-04   -1.4526    
  25  norm          9.9627        7.9949        .12695E-03   -1.5077    
  26  Prefactor     .10000E-03    5.3751        .17361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.058        17.289        .12632E-03   -1.5074    
  28  Prefactor     .10000E-03    53.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.4422        .22584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0853        .20032        .22231E-03   -.90224    
  31  Prefactor     1.0506        .24319        .28185E-03   -.91060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62337e-10
Minuit parameter uncertainties:
  1  2.59768
  2  7.18937
  3  1.6376e-07
  4  2.76453
  5  7.21694e-07
  6  2.16762e-06
  7  4.38026e-06
  8  5.99494e-06
  9  6.72494
  10  8.10768e-07
  11  0.00013844
  12  0.00100405
  13  27.8463
  14  2.65263
  15  8.92546e-07
  16  5.92209e-06
  17  3.09651e-06
  18  7.75267
  19  9.26549
  20  0.00222204
  21  2.78984
  22  14.5691
  23  1.73428e-06
  24  45.7497
  25  7.99575
  26  5.82583e-06
  27  17.2977
  28  2.4267e-05
  29  0.000227699
  30  0.200459
  31  0.243442
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.823e+00  9.265e+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:  1.051e+00  2.434e-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.085e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/331523/likelihoodResults_332899201_333158401_4FGL_J1311.0+3233_daily_bin361.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) = 5898.69248551
delta logL = 0.442466899422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5898.6905749
delta logL = 0.444377508012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26571       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0486       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0797       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=   5898.691     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      297 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26846        3.5104        .90840E-02    .18775E-02
   2  alpha         4.0444        3.8813        .35630        .62502E-04
   3  Normalizat    1.0418        .29859E-01    .41143E-01   -.57836E-05
   4  Prefactor     1.0798        .37369E-01    .62902E-01    .52533E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.268456
  alpha      = 4.04438
  Normalizat = 1.04177
  Prefactor  = 1.07975
 **********
 **   18 **HESSE 
 **********

 FCN=   5898.691     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      330 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26846        14.506        .40900E-04   -1.5604    
   2  alpha         4.0444        4.1329        .12821E-01    .66588    
   3  Normalizat    1.0418        .18566        .22597E-03   -.91644    
   4  Prefactor     1.0798        .22039        .27822E-03   -.90116    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.30166e-07
Minuit parameter uncertainties:
  1  3.94704
  2  5.99204
  3  0.185777
  4  0.220579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331523': 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): 102
logL (Free Index) = 5898.69057145
delta logL = 0.444380959453

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.685e-01  3.947e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  4.044e+00  5.992e+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:  1.080e+00  2.206e-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.042e+00  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 197.760 32.556
Photon Index (Free Index): 4.04 +/- 5.99
Photon Flux (Free Index): 4.38e-08 +/- 6.63e-08
Energy Flux (Free Index): 8.47e-06 +/- 1.16e-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/331523/cmap_HighResolution_332899201_333158401_4FGL_J1311.0+3233_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-05', comment='SUCCESS', energy_flux2='8.47e-06', dlogl='4.44e-01', photon_flux2='4.38e-08', job_status='DONE', time_completed='2021-09-07 04:06:12.070991', photon_index_error2='5.99', photon_index2='4.04', ts='0.13', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='4.72e-08', energy_flux_error2='1.16e-05', EG='1.09', time_epoch_completed='1631012772.07', return_code='0', job_id='331523', GAL2='1.08', EG2='1.04', return_code2='102', photon_flux_error2='6.63e-08', ts2='1.04', photon_index='2.27' WHERE bin_id='361' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:06:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 331523: <4FGL_J1311.0+3233_daily_bin361> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin361 197.76 32.5565 332899201 333158401 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 :                                   899.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

