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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin999
RA = 197.76, Dec = 32.5565
tmin = 498268801, tmax = 498528001
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='337146', job_status='RUN', time_executed='2021-09-07 04:13:05.027191', time_epoch_executed='1631013185.03' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/337146

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/337146/ft1_4FGL_J1311.0+3233_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/337146/ft2_4FGL_J1311.0+3233_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/337146/ft1_4FGL_J1311.0+3233_daily_bin999.fits outfile=/scratch/kocevski/337146/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin999.fits ra=197.76 dec=32.5565 rad=12.0 tmin=498268801.0 tmax=498528001.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.96
user 4.72
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/337146/ft2_4FGL_J1311.0+3233_daily_bin999.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/337146/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin999.fits evtable="EVENTS" outfile="/scratch/kocevski/337146/ft1_filtered_4FGL_J1311.0+3233_daily_bin999.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/337146/ft1_filtered_4FGL_J1311.0+3233_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/337146/ft2_4FGL_J1311.0+3233_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/337146/ltcube_498268801_498528001_4FGL_J1311.0+3233_daily_bin999.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/337146/ft2_4FGL_J1311.0+3233_daily_bin999.fits
.....................!
real 16.08
user 15.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/337146/ft1_filtered_4FGL_J1311.0+3233_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/337146/ft2_4FGL_J1311.0+3233_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/337146/ltcube_498268801_498528001_4FGL_J1311.0+3233_daily_bin999.fits outfile=/scratch/kocevski/337146/expmap_498268801_498528001_4FGL_J1311.0+3233_daily_bin999.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/337146/ltcube_498268801_498528001_4FGL_J1311.0+3233_daily_bin999.fits
.....................!
real 191.55
user 186.69
sys 4.46

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/337146/ft1_filtered_4FGL_J1311.0+3233_daily_bin999.fits scfile=/scratch/kocevski/337146/ft2_4FGL_J1311.0+3233_daily_bin999.fits outfile=/scratch/kocevski/337146/cmap_498268801_498528001_4FGL_J1311.0+3233_daily_bin999.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/337146/ft1_filtered_4FGL_J1311.0+3233_daily_bin999.fits scfile=/scratch/kocevski/337146/ft2_4FGL_J1311.0+3233_daily_bin999.fits outfile=/scratch/kocevski/337146/cmap_HighResolution_498268801_498528001_4FGL_J1311.0+3233_daily_bin999.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/337146/ft1_filtered_4FGL_J1311.0+3233_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/337146/ft2_4FGL_J1311.0+3233_daily_bin999.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/337146/Model_4FGL_J1311.0+3233_daily_bin999.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/337146/ft1_filtered_4FGL_J1311.0+3233_daily_bin999.fits.....................!
real 46.29
user 44.98
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5874       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0132       1.0000         .10000E-03   10000.    
     5 'norm      '    10.357       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.050       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 '    .10000E-03   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 '    72.955       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.029       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1644       1.0000         .10000E-03   10000.    
    18 'norm      '    .18288E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6072       1.0000         .10000E-03   10000.    
    20 'norm      '    24.674       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .80476       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.036       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    52.791       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .97785       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .89290       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=   5331.891     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     4088 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.283        5.1958       -.18412E-08   -.51956E-04
   2  Prefactor     .10000E-03    6.1513       -.16672E-06** at limit **
   3  Prefactor     2.5873        2.3245       -.93524E-08   -.28097E-04
   4  Prefactor     2.0129        3.0919        .32109E-06   -.37738E-04
   5  norm          10.357        6.0171        .19610E-06   -.63049E-04
   6  Prefactor     36.050        15.078        .32787E-07   -.70191E-04
   7  Prefactor     .10000E-03    7.0813        .67476E-06** at limit **
   8  Prefactor     .10000E-03    28.617        .49072E-06** at limit **
   9  Prefactor     .10000E-03    3.1205       -.85506E-09** at limit **
  10  Prefactor     .10000E-03    1.7806        .18190E-06** at limit **
  11  norm          .10000E-03    2.5999        .81357E-06** at limit **
  12  Prefactor     72.970        71.521        .23152E-05    .43254E-04
  13  Prefactor     56.061        27.623        .56244E-06   -.34587E-03
  14  norm          .10000E-03    1.7437       -.16809E-06** at limit **
  15  Prefactor     .10000E-03    6.1565        .20505E-07** at limit **
  16  norm          .10000E-03    1.4604        .15429E-06** at limit **
  17  norm          4.1625        13.753        .23242E-06   -.19353E-04
  18  norm          .10039E-03    2.6631        .23698E-05** at limit **
  19  norm          2.6208        4.5611       -.24881E-05   -.15280E-02
  20  norm          24.662        27.006       -.11585E-05   -.16323E-03
  21  Prefactor     .80517        2.2743        .18462E-05   -.36955E-03
  22  Prefactor     .10000E-03    11.051       -.17001E-06** at limit **
  23  norm          .10000E-03    8.5470       -.98996E-06** at limit **
  24  Prefactor     46.039        37.913       -.54811E-06   -.93171E-04
  25  norm          .10000E-03    7.3449        .26251E-06** at limit **
  26  Prefactor     .10000E-03    9.1431       -.60790E-06** at limit **
  27  Prefactor     .10000E-03    10.947       -.25062E-06** at limit **
  28  Prefactor     52.804        47.190        .18593E-05    .47218E-04
  29  Prefactor     .10000E-03    1.2254       -.35232E-07** at limit **
  30  Normalizat    .97792        .17626       -.51142E-05   -.50035E-03
  31  Prefactor     .89294        .20937        .37487E-05   -.63340E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2828
  Prefactor  = 0.0001
  Prefactor  = 2.58725
  Prefactor  = 2.01287
  norm       = 10.357
  Prefactor  = 36.0504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 72.9701
  Prefactor  = 56.0613
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.16248
  norm       = 0.000100393
  norm       = 2.62079
  norm       = 24.6617
  Prefactor  = 0.805166
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.0389
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.8038
  Prefactor  = 0.0001
  Normalizat = 0.977918
  Prefactor  = 0.892937
 **********
 **   18 **HESSE 
 **********

 FCN=   5331.891     FROM HESSE     STATUS=OK           610 CALLS     4698 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.283        5.1898        .87226E-04   -1.4901    
   2  Prefactor     .10000E-03    6.2220        .17681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5873        2.3271        .99188E-04   -1.5386    
   4  Prefactor     2.0129        3.0620        .14645E-03   -1.5424    
   5  norm          10.357        6.0132        .62250E-03   -1.5064    
   6  Prefactor     36.050        15.027        .66747E-04   -1.4506    
   7  Prefactor     .10000E-03    7.0945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1454        .12597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7832        .95151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6541        .11478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     72.970        71.459        .47004E-04   -1.3997    
  13  Prefactor     56.061        27.702        .53591E-04   -1.4209    
  14  norm          .10000E-03    1.7543        .94074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1721        .17697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4618        .86134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1625        13.720        .19751E-03   -1.5300    
  18  norm          .10039E-03    17.224        .18615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6208        4.4370        .19295E-03   -1.5384    
  20  norm          24.662        27.037        .80643E-04   -1.4714    
  21  Prefactor     .80517        2.1576        .17238E-02   -1.5529    
  22  Prefactor     .10000E-03    11.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.7680        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     46.039        37.897        .59093E-04   -1.4350    
  25  norm          .10000E-03    7.4525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.1739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     52.804        47.215        .27601E-03   -1.4253    
  29  Prefactor     .10000E-03    1.2345        .78916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .97792        .19695        .22138E-03   -.93774    
  31  Prefactor     .89294        .23912        .28599E-03   -.96388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39633e-08
Minuit parameter uncertainties:
  1  5.18995
  2  6.01471e-06
  3  2.32721
  4  3.06221
  5  6.01354
  6  15.029
  7  4.38021e-05
  8  3.09446e-05
  9  5.2153e-06
  10  7.48113e-07
  11  1.34001e-05
  12  71.5433
  13  27.7087
  14  7.06474e-06
  15  2.3031e-05
  16  4.39906e-06
  17  13.7299
  18  0.00520823
  19  4.43759
  20  27.0501
  21  2.1578
  22  5.86135e-05
  23  5.31249e-05
  24  37.917
  25  7.11278e-05
  26  2.37354e-05
  27  3.12139e-06
  28  47.2489
  29  3.60292e-06
  30  0.197093
  31  0.239397
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.621e+00  4.438e+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.929e-01  2.394e-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.779e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/337146/likelihoodResults_498268801_498528001_4FGL_J1311.0+3233_daily_bin999.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) = 5331.87864539
delta logL = 0.0127583144676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5331.86322749
delta logL = 0.0281762091263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5382       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7670       1.0000          .0000       5.0000    
     3 'Normalizat'    .97273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89679       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=   5331.863     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5332        62.075        .85965E-02    .48131E-03
   2  alpha         2.7715        3.7380        .41452        .23077E-04
   3  Normalizat    .97254        .41761E-01    .45824E-01    .27338E-04
   4  Prefactor     .89697        .45499E-01    .64523E-01    .29576E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53325
  alpha      = 2.77151
  Normalizat = 0.972541
  Prefactor  = 0.896968
 **********
 **   18 **HESSE 
 **********

 FCN=   5331.863     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      249 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5332        206.93        .14160E-03   -1.5460    
   2  alpha         2.7715        2.8915        .19455E-01    .10882    
   3  Normalizat    .97254        .30447        .22190E-03   -.93956    
   4  Prefactor     .89697        .31207        .28538E-03   -.96247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.1109e-07
Minuit parameter uncertainties:
  1  35.7503
  2  16.3977
  3  0.305016
  4  0.312695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/337146': 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) = 5331.86322451
delta logL = 0.0281791938542

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.533e+00  3.575e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.772e+00  1.640e+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.970e-01  3.127e-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.725e-01  3.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 197.760 32.556

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/337146/cmap_HighResolution_498268801_498528001_4FGL_J1311.0+3233_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-05', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2021-09-07 04:27:02.404442', job_id='337146', GAL2='0.90', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1631014022.4', return_code2='102', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.82e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='999' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 337146: <4FGL_J1311.0+3233_daily_bin999> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin999> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 04:10:31 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:10:35 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:35 2021
Terminated at Tue Sep  7 04:27:03 2021
Results reported at Tue Sep  7 04:27:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin999 197.76 32.5565 498268801 498528001 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 :                                   834.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            992 sec.

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

