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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin579
RA = 197.76, Dec = 32.5565
tmin = 389404801, tmax = 389664001
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='332899', job_status='RUN', time_executed='2021-09-07 03:56:18.159028', time_epoch_executed='1631012178.16' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332899

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332899/ft1_4FGL_J1311.0+3233_daily_bin579.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332899/ft2_4FGL_J1311.0+3233_daily_bin579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332899/ft1_4FGL_J1311.0+3233_daily_bin579.fits outfile=/scratch/kocevski/332899/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin579.fits ra=197.76 dec=32.5565 rad=12.0 tmin=389404801.0 tmax=389664001.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.13
user 3.86
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332899/ft1_filtered_4FGL_J1311.0+3233_daily_bin579.fits" evtable="EVENTS" scfile=/scratch/kocevski/332899/ft2_4FGL_J1311.0+3233_daily_bin579.fits sctable="SC_DATA" outfile=/scratch/kocevski/332899/ltcube_389404801_389664001_4FGL_J1311.0+3233_daily_bin579.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/332899/ft2_4FGL_J1311.0+3233_daily_bin579.fits
.....................!
real 16.47
user 16.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332899/ft1_filtered_4FGL_J1311.0+3233_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/332899/ft2_4FGL_J1311.0+3233_daily_bin579.fits sctable="SC_DATA" expcube=/scratch/kocevski/332899/ltcube_389404801_389664001_4FGL_J1311.0+3233_daily_bin579.fits outfile=/scratch/kocevski/332899/expmap_389404801_389664001_4FGL_J1311.0+3233_daily_bin579.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/332899/ltcube_389404801_389664001_4FGL_J1311.0+3233_daily_bin579.fits
.....................!
real 192.57
user 187.38
sys 4.47

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/332899/ft1_filtered_4FGL_J1311.0+3233_daily_bin579.fits scfile=/scratch/kocevski/332899/ft2_4FGL_J1311.0+3233_daily_bin579.fits outfile=/scratch/kocevski/332899/cmap_389404801_389664001_4FGL_J1311.0+3233_daily_bin579.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/332899/ft1_filtered_4FGL_J1311.0+3233_daily_bin579.fits scfile=/scratch/kocevski/332899/ft2_4FGL_J1311.0+3233_daily_bin579.fits outfile=/scratch/kocevski/332899/cmap_HighResolution_389404801_389664001_4FGL_J1311.0+3233_daily_bin579.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0344       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3427       1.0000         .10000E-03   10000.    
     5 'norm      '    10.932       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43094       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.682       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.8575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    99.678       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.976       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.395       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9699       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8831       1.0000         .10000E-03   10000.    
    18 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.949       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28839       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    33.780       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.184       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.876       1.0000         .10000E-03   10000.    
    28 'Prefactor '    160.38       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90300       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96615       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=   5717.025     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4197 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0342        4.5821        .40087E-08   -.56840E-05
   2  Prefactor     8.4066        7.2483       -.42806E-08   -.31670E-05
   3  Prefactor     3.5893        2.9414        .36081E-07   -.59270E-05
   4  Prefactor     3.3426        2.7017        .21175E-07    .45560E-05
   5  norm          10.932        5.4274       -.48687E-08   -.11995E-04
   6  Prefactor     .10000E-03    4.0569        .23216E-07** at limit **
   7  Prefactor     .38590        20.364       -.41389E-06    .70353E-04
   8  Prefactor     62.626        72.022       -.23244E-06   -.39698E-04
   9  Prefactor     .10000E-03    6.3511        .18051E-06** at limit **
  10  Prefactor     .10000E-03    7.1494       -.41836E-06** at limit **
  11  norm          7.8579        5.4498       -.11613E-07   -.61822E-04
  12  Prefactor     99.592        88.874       -.24577E-06   -.50770E-04
  13  Prefactor     45.005        30.259       -.53908E-06   -.52648E-04
  14  norm          .10000E-03    .97540        .46621E-07** at limit **
  15  Prefactor     16.408        16.853       -.49818E-07   -.49139E-04
  16  norm          1.9685        3.6904       -.99488E-07   -.90872E-04
  17  norm          1.8993        18.661        .26622E-06   -.59213E-05
  18  norm          .10000E-03    1.3077        .84109E-08** at limit **
  19  norm          .10000E-03    1.7201        .22997E-07** at limit **
  20  norm          10.949        17.044        .32697E-06   -.54185E-05
  21  Prefactor     .28483        3.3185        .27754E-05    .18937E-04
  22  Prefactor     .10000E-03    6.2399       -.21471E-06** at limit **
  23  norm          .10000E-03    5.8751        .49806E-07** at limit **
  24  Prefactor     .10000E-03    14.571       -.55864E-07** at limit **
  25  norm          33.778        13.309        .26459E-06    .33956E-05
  26  Prefactor     15.187        19.551       -.25610E-06   -.48694E-04
  27  Prefactor     11.871        23.795        .10660E-06   -.12829E-04
  28  Prefactor     160.39        98.479       -.31840E-06   -.79929E-05
  29  Prefactor     .10000E-03    3.8394        .47823E-06** at limit **
  30  Normalizat    .90313        .19654        .10605E-05   -.17322E-03
  31  Prefactor     .96625        .22372       -.19609E-05   -.36682E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.03418
  Prefactor  = 8.40659
  Prefactor  = 3.58929
  Prefactor  = 3.34263
  norm       = 10.9316
  Prefactor  = 0.0001
  Prefactor  = 0.385904
  Prefactor  = 62.626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.85793
  Prefactor  = 99.5916
  Prefactor  = 45.0051
  norm       = 0.0001
  Prefactor  = 16.4077
  norm       = 1.96848
  norm       = 1.89934
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.9487
  Prefactor  = 0.284831
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 33.7784
  Prefactor  = 15.1868
  Prefactor  = 11.8714
  Prefactor  = 160.392
  Prefactor  = 0.0001
  Normalizat = 0.903129
  Prefactor  = 0.96625
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.025     FROM HESSE     STATUS=OK           638 CALLS     4835 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0342        4.5858        .10997E-03   -1.5141    
   2  Prefactor     8.4066        7.2499        .13826E-03   -1.5128    
   3  Prefactor     3.5893        2.9422        .10610E-03   -1.5329    
   4  Prefactor     3.3426        2.6963        .10631E-03   -1.5342    
   5  norm          10.932        5.4269        .12051E-03   -1.5047    
   6  Prefactor     .10000E-03    4.0677        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38590        21.895        .10293       -1.5584    
   8  Prefactor     62.626        71.990        .25342E-03   -1.4124    
   9  Prefactor     .10000E-03    6.4483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8579        5.4433        .13350E-03   -1.5147    
  12  Prefactor     99.592        88.541        .20133E-03   -1.3709    
  13  Prefactor     45.005        30.308        .59783E-04   -1.4365    
  14  norm          .10000E-03    .97760        .72927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.408        16.802        .98915E-04   -1.4898    
  16  norm          1.9685        3.6486        .18804E-03   -1.5427    
  17  norm          1.8993        18.546        .30333E-03   -1.5432    
  18  norm          .10000E-03    1.3156        .84366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7222        .96829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.949        17.050        .12108E-03   -1.5046    
  21  Prefactor     .28483        3.4228        .26114E-02   -1.5601    
  22  Prefactor     .10000E-03    6.2793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.9137        .17850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          33.778        13.298        .68947E-04   -1.4545    
  26  Prefactor     15.187        19.565        .10279E-03   -1.4928    
  27  Prefactor     11.871        23.768        .11624E-03   -1.5019    
  28  Prefactor     160.39        98.920        .31842E-04   -1.3168    
  29  Prefactor     .10000E-03    3.9638        .28921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90313        .23267        .25290E-03   -.96350    
  31  Prefactor     .96625        .26252        .29113E-03   -.93863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89816e-10
Minuit parameter uncertainties:
  1  4.58596
  2  7.25069
  3  2.94236
  4  2.69636
  5  5.42717
  6  1.01138e-06
  7  5.81507
  8  72.0906
  9  3.04876e-07
  10  1.16572e-05
  11  5.44367
  12  88.6591
  13  30.3187
  14  5.67982e-07
  15  16.8069
  16  3.64905
  17  11.8747
  18  2.25596e-06
  19  9.54395e-07
  20  17.0579
  21  1.97456
  22  3.30374e-05
  23  3.01754e-06
  24  1.63165e-05
  25  13.2994
  26  19.5731
  27  23.7873
  28  99.0227
  29  6.56102e-06
  30  0.232927
  31  0.262866
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  9.544e-07  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.662e-01  2.629e-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.031e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/332899/likelihoodResults_389404801_389664001_4FGL_J1311.0+3233_daily_bin579.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): 102
logL (Free Index) = 5717.02729703
delta logL = -0.00259803642894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5717.02469882
delta logL = 1.72317413671e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2549       1.0000          .0000       5.0000    
     3 'Normalizat'    .90314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96623       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=   5717.025     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      241 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    153.20        .98226E-02** at limit **
   2  alpha         1.4034        2.9688        .16562        .60407E-08
   3  Normalizat    .90313        .37095E-01    .25290E-03   -.21866E-03
   4  Prefactor     .96625        .44232E-01    .29114E-03   -.19763E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.40336
  Normalizat = 0.903131
  Prefactor  = 0.966247
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.025     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4713        .11601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4034        2.8761        .66247E-02   -.45410    
   3  Normalizat    .90313        .21646        .10116E-04   -.96350    
   4  Prefactor     .96625        .25803        .11645E-04   -.93863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23742e-11
Minuit parameter uncertainties:
  1  1.66598e-06
  2  215.908
  3  0.21667
  4  0.258357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332899': 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) = 5717.02469022
delta logL = 8.78000537341e-06

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.666e-06  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.403e+00  2.159e+02  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.662e-01  2.584e-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.031e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/332899/cmap_HighResolution_389404801_389664001_4FGL_J1311.0+3233_daily_bin579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-05', job_status='DONE', photon_flux_upper_limit='2.60e-08', time_completed='2021-09-07 04:10:41.308074', job_id='332899', GAL2='0.97', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631013041.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='8.78e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='579' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:10:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 332899: <4FGL_J1311.0+3233_daily_bin579> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin579> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 03:55:30 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:56:00 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:56:00 2021
Terminated at Tue Sep  7 04:10:41 2021
Results reported at Tue Sep  7 04:10:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin579 197.76 32.5565 389404801 389664001 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 :                                   859.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            911 sec.

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

