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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin972
RA = 197.76, Dec = 32.5565
tmin = 491270401, tmax = 491529601
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='337102', job_status='RUN', time_executed='2021-09-07 04:13:31.315847', time_epoch_executed='1631013211.32' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/337102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/337102/ft1_4FGL_J1311.0+3233_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/337102/ft2_4FGL_J1311.0+3233_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/337102/ft1_4FGL_J1311.0+3233_daily_bin972.fits outfile=/scratch/kocevski/337102/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin972.fits ra=197.76 dec=32.5565 rad=12.0 tmin=491270401.0 tmax=491529601.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.70
user 3.40
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/337102/ft1_filtered_4FGL_J1311.0+3233_daily_bin972.fits" evtable="EVENTS" scfile=/scratch/kocevski/337102/ft2_4FGL_J1311.0+3233_daily_bin972.fits sctable="SC_DATA" outfile=/scratch/kocevski/337102/ltcube_491270401_491529601_4FGL_J1311.0+3233_daily_bin972.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/337102/ft2_4FGL_J1311.0+3233_daily_bin972.fits
.....................!
real 16.23
user 15.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/337102/ft1_filtered_4FGL_J1311.0+3233_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/337102/ft2_4FGL_J1311.0+3233_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/337102/ltcube_491270401_491529601_4FGL_J1311.0+3233_daily_bin972.fits outfile=/scratch/kocevski/337102/expmap_491270401_491529601_4FGL_J1311.0+3233_daily_bin972.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/337102/ltcube_491270401_491529601_4FGL_J1311.0+3233_daily_bin972.fits
.....................!
real 192.79
user 186.93
sys 5.41

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/337102/ft1_filtered_4FGL_J1311.0+3233_daily_bin972.fits scfile=/scratch/kocevski/337102/ft2_4FGL_J1311.0+3233_daily_bin972.fits outfile=/scratch/kocevski/337102/cmap_491270401_491529601_4FGL_J1311.0+3233_daily_bin972.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.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.825       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12888E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.415       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.417       1.0000         .10000E-03   10000.    
    14 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7633       1.0000         .10000E-03   10000.    
    16 'norm      '    .20626       1.0000         .10000E-03   10000.    
    17 'norm      '    17.799       1.0000         .10000E-03   10000.    
    18 'norm      '    .29415E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    18.933       1.0000         .10000E-03   10000.    
    20 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .48126       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.117       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11715E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.792       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11477E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.127       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.8572       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99573       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .87523       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=   5630.412     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4187 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.754        4.3151        .74979E-07    .59316E-04
   2  Prefactor     17.823        10.259        .60780E-07   -.12249E-04
   3  Prefactor     2.9102        1.9846       -.23433E-07    .75509E-05
   4  Prefactor     .10000E-03    .85475        .22677E-07** at limit **
   5  norm          .10000E-03    3.0518        .39034E-07** at limit **
   6  Prefactor     .10000E-03    3.3659        .30841E-07** at limit **
   7  Prefactor     .10000E-03    9.5938       -.10522E-06** at limit **
   8  Prefactor     .10000E-03    24.833       -.17000E-07** at limit **
   9  Prefactor     .10000E-03    1.9062        .29832E-08** at limit **
  10  Prefactor     .10000E-03    10.102       -.20744E-06** at limit **
  11  norm          5.0237        4.6797       -.12270E-06   -.61182E-04
  12  Prefactor     40.430        48.400        .63372E-06    .15512E-04
  13  Prefactor     33.394        29.406        .90642E-06    .62761E-04
  14  norm          .10000E-03    3.1884        .22267E-07** at limit **
  15  Prefactor     2.7798        14.113        .47998E-06   -.42600E-04
  16  norm          .20461        3.1307       -.15973E-06    .29049E-04
  17  norm          17.798        16.459        .16327E-06    .11915E-04
  18  norm          .10001E-03    2.6548        .52626E-06** at limit **
  19  norm          18.916        8.3282       -.10556E-05   -.31604E-03
  20  norm          .10000E-03    14.092        .71472E-06** at limit **
  21  Prefactor     .48084        2.4989        .10814E-05   -.11520E-03
  22  Prefactor     .10000E-03    5.5946       -.43214E-07** at limit **
  23  norm          18.114        9.2595        .35025E-07    .80120E-04
  24  Prefactor     .10000E-03    22.590       -.15592E-06** at limit **
  25  norm          .10000E-03    12.404       -.93228E-06** at limit **
  26  Prefactor     12.798        15.682       -.54097E-06   -.77113E-05
  27  Prefactor     .10302E-03    26.099       -.15830E-05** at limit **
  28  Prefactor     18.125        40.025       -.19299E-07   -.65192E-05
  29  Prefactor     6.8571        4.8176        .15662E-06    .29807E-04
  30  Normalizat    .99586        .17571       -.12183E-05    .76178E-04
  31  Prefactor     .87512        .20636        .59526E-06   -.13620E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.754
  Prefactor  = 17.8234
  Prefactor  = 2.91025
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.02373
  Prefactor  = 40.43
  Prefactor  = 33.3939
  norm       = 0.0001
  Prefactor  = 2.77975
  norm       = 0.204606
  norm       = 17.7975
  norm       = 0.000100009
  norm       = 18.9156
  norm       = 0.0001
  Prefactor  = 0.480841
  Prefactor  = 0.0001
  norm       = 18.1143
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7983
  Prefactor  = 0.000103024
  Prefactor  = 18.1247
  Prefactor  = 6.85713
  Normalizat = 0.995858
  Prefactor  = 0.875119
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.412     FROM HESSE     STATUS=OK           638 CALLS     4825 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.754        4.3125        .90207E-04   -1.5022    
   2  Prefactor     17.823        10.265        .94865E-04   -1.4863    
   3  Prefactor     2.9102        1.9894        .83623E-04   -1.5367    
   4  Prefactor     .10000E-03    .85982        .67725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.1202        .12800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3703        .13444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9080        .10117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.349        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0237        4.6747        .14450E-03   -1.5260    
  12  Prefactor     40.430        48.413        .63053E-04   -1.4435    
  13  Prefactor     33.394        29.359        .69319E-04   -1.4552    
  14  norm          .10000E-03    3.2902        .26150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7798        13.704        .24485E-03   -1.5375    
  16  norm          .20461        20.959        .24374E-02   -1.5618    
  17  norm          17.798        16.467        .94933E-04   -1.4864    
  18  norm          .10001E-03    12.653        .21217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          18.916        8.2243        .46024E-03   -1.4838    
  20  norm          .10000E-03    14.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .48084        2.3447        .22109E-03   -1.5569    
  22  Prefactor     .10000E-03    5.6032        .17328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.114        9.2453        .94097E-04   -1.4856    
  24  Prefactor     .10000E-03    22.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    12.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.798        15.847        .11199E-03   -1.4992    
  27  Prefactor     .10302E-03    29.889        .10142       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     18.125        40.046        .94070E-04   -1.4856    
  29  Prefactor     6.8571        4.8135        .13092E-03   -1.5184    
  30  Normalizat    .99586        .20753        .23049E-03   -.93169    
  31  Prefactor     .87512        .24477        .29449E-03   -.97016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66671e-09
Minuit parameter uncertainties:
  1  4.31257
  2  10.2657
  3  1.98947
  4  2.66685e-07
  5  2.73185e-06
  6  1.3753e-06
  7  7.10229e-06
  8  5.71758e-06
  9  5.10947e-07
  10  3.39279e-05
  11  4.67504
  12  48.4604
  13  29.3719
  14  5.11767e-06
  15  12.3485
  16  4.14216
  17  16.4713
  18  0.000672718
  19  8.22479
  20  4.8232e-05
  21  2.12351
  22  3.06598e-06
  23  9.24599
  24  1.03418e-05
  25  2.64886e-05
  26  15.8519
  27  0.0190238
  28  40.1051
  29  4.81373
  30  0.207696
  31  0.245076
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.892e+01  8.225e+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.751e-01  2.451e-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:  9.959e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.29
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 3.77e-05 +/- 1.64e-05

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) = 5630.40721472
delta logL = 0.005064120508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5630.40149452
delta logL = 0.0107843205715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.743       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3451       1.0000          .0000       5.0000    
     3 'Normalizat'    .99206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87709       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=   5630.401     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      232 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.746        11.534        .95084E-04   -.19588E-02
   2  alpha         2.3451        .51089        .82857E-02   -.31160E-03
   3  Normalizat    .99239        .20124        .23080E-03    .50479E-03
   4  Prefactor     .87678        .24178        .29418E-03    .53721E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7455
  alpha      = 2.3451
  Normalizat = 0.99239
  Prefactor  = 0.876777
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.401     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.746        11.015        .19017E-04   -1.4865    
   2  alpha         2.3451        .48800        .33143E-03   -.61999E-01
   3  Normalizat    .99239        .20121        .46161E-04   -.93286    
   4  Prefactor     .87678        .24193        .58837E-04   -.96957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63005e-09
Minuit parameter uncertainties:
  1  11.0167
  2  0.491167
  3  0.201365
  4  0.242224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/337102': 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) = 5630.40149299
delta logL = 0.0107858536112

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.775e+01  1.102e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.345e+00  4.912e-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:  8.768e-01  2.422e-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:  9.924e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.30
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.35 +/- 0.49
Photon Flux (Free Index): 5.58e-08 +/- 3.42e-08
Energy Flux (Free Index): 3.67e-05 +/- 1.68e-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/337102/cmap_HighResolution_491270401_491529601_4FGL_J1311.0+3233_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='3.67e-05', photon_flux_error='2.27e-08', dlogl='1.08e-02', energy_flux='3.77e-05', photon_flux2='5.58e-08', job_status='DONE', time_completed='2021-09-07 04:26:06.762277', photon_index_error2='0.49', photon_index2='2.35', ts='25.29', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.00', time_epoch_completed='1631013966.76', return_code='0', job_id='337102', GAL2='0.88', EG2='0.99', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='3.42e-08', ts2='25.30', photon_index='2.27' WHERE bin_id='972' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:26:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 337102: <4FGL_J1311.0+3233_daily_bin972> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin972> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 04:10:27 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:10:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 04:10:31 2021
Terminated at Tue Sep  7 04:26:07 2021
Results reported at Tue Sep  7 04:26:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin972 197.76 32.5565 491270401 491529601 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 :                                   749.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            940 sec.

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

