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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin556
RA = 197.76, Dec = 32.5565
tmin = 383443201, tmax = 383702401
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='332863', job_status='RUN', time_executed='2021-09-07 03:58:00.814744', time_epoch_executed='1631012280.81' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332863/ft1_4FGL_J1311.0+3233_daily_bin556.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332863/ft2_4FGL_J1311.0+3233_daily_bin556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332863/ft1_4FGL_J1311.0+3233_daily_bin556.fits outfile=/scratch/kocevski/332863/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin556.fits ra=197.76 dec=32.5565 rad=12.0 tmin=383443201.0 tmax=383702401.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.42
user 3.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332863/ft2_4FGL_J1311.0+3233_daily_bin556.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/332863/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin556.fits evtable="EVENTS" outfile="/scratch/kocevski/332863/ft1_filtered_4FGL_J1311.0+3233_daily_bin556.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332863/ft1_filtered_4FGL_J1311.0+3233_daily_bin556.fits" evtable="EVENTS" scfile=/scratch/kocevski/332863/ft2_4FGL_J1311.0+3233_daily_bin556.fits sctable="SC_DATA" outfile=/scratch/kocevski/332863/ltcube_383443201_383702401_4FGL_J1311.0+3233_daily_bin556.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/332863/ft2_4FGL_J1311.0+3233_daily_bin556.fits
.....................!
real 13.08
user 12.67
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332863/ft1_filtered_4FGL_J1311.0+3233_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/332863/ft2_4FGL_J1311.0+3233_daily_bin556.fits sctable="SC_DATA" expcube=/scratch/kocevski/332863/ltcube_383443201_383702401_4FGL_J1311.0+3233_daily_bin556.fits outfile=/scratch/kocevski/332863/expmap_383443201_383702401_4FGL_J1311.0+3233_daily_bin556.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/332863/ltcube_383443201_383702401_4FGL_J1311.0+3233_daily_bin556.fits
.....................!
real 194.05
user 188.10
sys 5.56

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/332863/ft1_filtered_4FGL_J1311.0+3233_daily_bin556.fits scfile=/scratch/kocevski/332863/ft2_4FGL_J1311.0+3233_daily_bin556.fits outfile=/scratch/kocevski/332863/cmap_383443201_383702401_4FGL_J1311.0+3233_daily_bin556.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.54
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30188       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4682       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6397       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.8540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12716E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.8879       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1367       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.573       1.0000         .10000E-03   10000.    
    18 'norm      '    .11407E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.1669       1.0000         .10000E-03   10000.    
    20 'norm      '    42.791       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.345       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.8653       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.465       1.0000         .10000E-03   10000.    
    28 'Prefactor '    167.78       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .61992       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .94568       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0370       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=   6017.296     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4215 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .81661        .15880E-07** at limit **
   2  Prefactor     .30001        3.8317        .39046E-06   -.24537E-03
   3  Prefactor     1.4681        1.5696        .56557E-07    .26821E-04
   4  Prefactor     1.6399        1.5327        .19429E-07    .70925E-04
   5  norm          .10000E-03    1.4307        .20970E-07** at limit **
   6  Prefactor     .10000E-03    6.0255       -.27969E-06** at limit **
   7  Prefactor     .10000E-03    6.7573        .45307E-06** at limit **
   8  Prefactor     37.783        84.219        .18128E-05    .39004E-04
   9  Prefactor     .10000E-03    2.4832       -.10112E-06** at limit **
  10  Prefactor     .10000E-03    2.1323       -.41738E-07** at limit **
  11  norm          9.8569        5.7834        .16216E-06    .22254E-03
  12  Prefactor     .10000E-03    135.58       -.18889E-05** at limit **
  13  Prefactor     .10000E-03    14.806       -.83792E-07** at limit **
  14  norm          5.8880        3.5043        .36483E-07    .30037E-04
  15  Prefactor     1.1365        6.2748        .17921E-05   -.13897E-03
  16  norm          .10000E-03    .89162       -.43198E-09** at limit **
  17  norm          13.570        13.709        .12870E-05    .29400E-03
  18  norm          .10001E-03    1.9817        .54671E-06** at limit **
  19  norm          6.1633        5.5051        .11684E-06    .92446E-04
  20  norm          42.790        27.077       -.27566E-07   -.24632E-04
  21  Prefactor     .10000E-03    .49091        .10812E-07** at limit **
  22  Prefactor     .10000E-03    2.8717        .39971E-07** at limit **
  23  norm          15.346        8.7311        .54701E-07   -.37200E-04
  24  Prefactor     .10000E-03    11.972        .44630E-07** at limit **
  25  norm          4.8651        5.8473       -.27031E-07   -.34824E-04
  26  Prefactor     .10000E-03    3.1100        .12328E-07** at limit **
  27  Prefactor     17.466        17.942       -.47724E-06   -.11703E-03
  28  Prefactor     167.77        84.086       -.14408E-05   -.14292E-03
  29  Prefactor     .61890        2.2923        .10555E-05   -.11842E-03
  30  Normalizat    .94494        .16811       -.94020E-07   -.14275E-03
  31  Prefactor     1.0380        .20682       -.69704E-06   -.71334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.300006
  Prefactor  = 1.46811
  Prefactor  = 1.63987
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.7827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.85688
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 5.88797
  Prefactor  = 1.13647
  norm       = 0.0001
  norm       = 13.5703
  norm       = 0.000100011
  norm       = 6.16328
  norm       = 42.7895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.346
  Prefactor  = 0.0001
  norm       = 4.86507
  Prefactor  = 0.0001
  Prefactor  = 17.4659
  Prefactor  = 167.77
  Prefactor  = 0.618901
  Normalizat = 0.944939
  Prefactor  = 1.03798
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.296     FROM HESSE     STATUS=OK           622 CALLS     4837 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .81801        .68407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .30001        11.014        .29552E-02   -1.5598    
   3  Prefactor     1.4681        1.5512        .97539E-04   -1.5466    
   4  Prefactor     1.6399        1.5434        .90099E-04   -1.5452    
   5  norm          .10000E-03    1.4351        .90613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.783        84.485        .65207E-04   -1.4478    
   9  Prefactor     .10000E-03    2.4897        .11939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1434        .11061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.8569        5.7751        .12765E-03   -1.5080    
  12  Prefactor     .10000E-03    137.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8880        3.5052        .10833E-03   -1.5223    
  15  Prefactor     1.1365        6.7415        .39472E-03   -1.5495    
  16  norm          .10000E-03    .89192        .71530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.570        14.024        .10872E-03   -1.4971    
  18  norm          .10001E-03    6.7862        .18543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.1633        5.1699        .15583E-03   -1.5211    
  20  norm          42.790        27.075        .61284E-04   -1.4399    
  21  Prefactor     .10000E-03    .49153        .53072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8753        .12838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.346        8.7225        .10224E-03   -1.4924    
  24  Prefactor     .10000E-03    11.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.8651        5.8387        .18237E-03   -1.5267    
  26  Prefactor     .10000E-03    3.1114        .13360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.466        18.022        .95838E-04   -1.4872    
  28  Prefactor     167.77        85.695        .31144E-04   -1.3110    
  29  Prefactor     .61890        2.3357        .22233E-03   -1.5551    
  30  Normalizat    .94494        .20326        .23238E-03   -.94899    
  31  Prefactor     1.0380        .24912        .27944E-03   -.91474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21403e-08
Minuit parameter uncertainties:
  1  2.38256e-07
  2  3.63566
  3  1.55126
  4  1.54345
  5  9.28908e-07
  6  2.49047e-05
  7  4.02851e-05
  8  84.7539
  9  5.29346e-06
  10  3.00537e-06
  11  5.7754
  12  0.00102694
  13  5.21202e-05
  14  3.50536
  15  5.53659
  16  3.74777e-07
  17  14.0277
  18  0.000557702
  19  5.17028
  20  27.0826
  21  1.6937e-08
  22  8.69184e-07
  23  8.72323
  24  6.75889e-06
  25  5.83938
  26  1.63043e-06
  27  18.0271
  28  85.7585
  29  2.33604
  30  0.203423
  31  0.249402
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  6.163e+00  5.170e+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.038e+00  2.494e-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.449e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.07
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.70e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.03e-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) = 6017.20596376
delta logL = 0.0905258397061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6017.20148917
delta logL = 0.0950004342239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0448       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9184       1.0000          .0000       5.0000    
     3 'Normalizat'    .94981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0353       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=   6017.201     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      267 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0442        7.7096        .14136E-03    .79195E-03
   2  alpha         1.9191        .80746        .15443E-01    .80464E-04
   3  Normalizat    .94987        .19591        .23186E-03   -.17476E-03
   4  Prefactor     1.0352        .24687        .27978E-03   -.19436E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.04419
  alpha      = 1.91915
  Normalizat = 0.949871
  Prefactor  = 1.03522
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.201     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0442        7.5661        .28272E-04   -1.5141    
   2  alpha         1.9191        .79312        .61772E-03   -.23448    
   3  Normalizat    .94987        .19612        .92742E-05   -.94729    
   4  Prefactor     1.0352        .24717        .11191E-04   -.91565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27795e-10
Minuit parameter uncertainties:
  1  7.56698
  2  0.8079
  3  0.196264
  4  0.247439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332863': 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) = 6017.20148856
delta logL = 0.0950010419892

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  8.044e+00  7.567e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.919e+00  8.079e-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:  1.035e+00  2.474e-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.499e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 197.760 32.556
Photon Index (Free Index): 1.92 +/- 0.81
Photon Flux (Free Index): 1.27e-08 +/- 1.41e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.54e-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/332863/cmap_HighResolution_383443201_383702401_4FGL_J1311.0+3233_daily_bin556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-08', energy_flux2='1.53e-05', photon_flux_error='1.43e-08', dlogl='9.50e-02', energy_flux='1.23e-05', photon_flux2='1.27e-08', job_status='DONE', time_completed='2021-09-07 04:11:11.482162', photon_index_error2='0.81', photon_index2='1.92', ts='4.07', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='0.94', time_epoch_completed='1631013071.48', return_code='0', job_id='332863', GAL2='1.04', EG2='0.95', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='1.41e-08', ts2='4.27', photon_index='2.27' WHERE bin_id='556' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 332863: <4FGL_J1311.0+3233_daily_bin556> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin556> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 03:55:27 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:55:52 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:55:52 2021
Terminated at Tue Sep  7 04:11:12 2021
Results reported at Tue Sep  7 04:11:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin556 197.76 32.5565 383443201 383702401 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            945 sec.

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

