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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin674
RA = 197.76, Dec = 32.5565
tmin = 414028801, tmax = 414288001
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='334258', job_status='RUN', time_executed='2021-09-07 04:02:59.767624', time_epoch_executed='1631012579.77' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334258/ft1_4FGL_J1311.0+3233_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334258/ft2_4FGL_J1311.0+3233_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334258/ft1_4FGL_J1311.0+3233_daily_bin674.fits outfile=/scratch/kocevski/334258/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin674.fits ra=197.76 dec=32.5565 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.21
user 4.90
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334258/ft1_filtered_4FGL_J1311.0+3233_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/334258/ft2_4FGL_J1311.0+3233_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/334258/ltcube_414028801_414288001_4FGL_J1311.0+3233_daily_bin674.fits outfile=/scratch/kocevski/334258/expmap_414028801_414288001_4FGL_J1311.0+3233_daily_bin674.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/334258/ltcube_414028801_414288001_4FGL_J1311.0+3233_daily_bin674.fits
.....................!
real 192.19
user 185.52
sys 5.91

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/334258/ft1_filtered_4FGL_J1311.0+3233_daily_bin674.fits scfile=/scratch/kocevski/334258/ft2_4FGL_J1311.0+3233_daily_bin674.fits outfile=/scratch/kocevski/334258/cmap_414028801_414288001_4FGL_J1311.0+3233_daily_bin674.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.60
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334258/ft1_filtered_4FGL_J1311.0+3233_daily_bin674.fits scfile=/scratch/kocevski/334258/ft2_4FGL_J1311.0+3233_daily_bin674.fits outfile=/scratch/kocevski/334258/cmap_HighResolution_414028801_414288001_4FGL_J1311.0+3233_daily_bin674.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.64
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6168       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7979       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1580       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6128       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.451       1.0000         .10000E-03   10000.    
     8 'Prefactor '    61.971       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6232       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      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .18864E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.375       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.9985       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.815       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93077       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0227       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=   4173.131     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4084 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6170        3.3733        .24247E-08   -.12857E-03
   2  Prefactor     .10000E-03    3.3433        .29187E-07** at limit **
   3  Prefactor     7.7980        3.6317       -.10980E-06    .16119E-03
   4  Prefactor     .10000E-03    1.4693        .60957E-07** at limit **
   5  norm          6.1579        5.1679       -.13112E-06   -.10349E-04
   6  Prefactor     2.6147        18.022        .70609E-05    .22240E-05
   7  Prefactor     14.449        15.422        .93405E-07    .48702E-05
   8  Prefactor     61.969        63.656        .14085E-06   -.54379E-05
   9  Prefactor     .10000E-03    13.269        .60937E-07** at limit **
  10  Prefactor     .10000E-03    2.2152        .25495E-07** at limit **
  11  norm          .10000E-03    2.9377        .29464E-07** at limit **
  12  Prefactor     1.3382        280.63        .18238E-05   -.21561E-05
  13  Prefactor     .10000E-03    39.573        .90446E-07** at limit **
  14  norm          3.6221        5.5546        .13652E-06   -.14509E-03
  15  Prefactor     .10000E-03    9.6663        .73534E-07** at limit **
  16  norm          .10000E-03    2.2323        .34394E-07** at limit **
  17  norm          .10000E-03    7.1407        .93180E-07** at limit **
  18  norm          .10000E-03    4.6104        .10430E-05** at limit **
  19  norm          16.403        8.8545        .35555E-06    .33540E-03
  20  norm          .10000E-03    16.532       -.26383E-06** at limit **
  21  Prefactor     .10000E-03    1.4088        .27111E-07** at limit **
  22  Prefactor     .10000E-03    10.489       -.41163E-06** at limit **
  23  norm          .10000E-03    4.4719        .87879E-08** at limit **
  24  Prefactor     .10000E-03    23.512       -.42531E-06** at limit **
  25  norm          3.9983        7.7026        .22582E-05   -.16441E-04
  26  Prefactor     24.818        23.064        .55633E-06   -.10001E-03
  27  Prefactor     .10000E-03    9.4403       -.30382E-08** at limit **
  28  Prefactor     .10000E-03    25.826        .58908E-06** at limit **
  29  Prefactor     .10000E-03    2.4144       -.81401E-07** at limit **
  30  Normalizat    .93084        .18571        .48011E-06    .43968E-04
  31  Prefactor     1.0227        .23047       -.17444E-05   -.11276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.61698
  Prefactor  = 0.0001
  Prefactor  = 7.79801
  Prefactor  = 0.0001
  norm       = 6.1579
  Prefactor  = 2.61468
  Prefactor  = 14.4494
  Prefactor  = 61.9691
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.33817
  Prefactor  = 0.0001
  norm       = 3.62211
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.4034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.99834
  Prefactor  = 24.8177
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.930837
  Prefactor  = 1.02267
 **********
 **   18 **HESSE 
 **********

 FCN=   4173.131     FROM HESSE     STATUS=OK           616 CALLS     4700 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6170        3.3795        .10725E-03   -1.5328    
   2  Prefactor     .10000E-03    3.3558        .11536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7980        3.6438        .78163E-04   -1.5149    
   4  Prefactor     .10000E-03    1.4988        .76412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1579        5.1684        .13067E-03   -1.5212    
   6  Prefactor     2.6147        18.511        .12617E-02   -1.5385    
   7  Prefactor     14.449        15.421        .10536E-03   -1.4948    
   8  Prefactor     61.969        63.675        .50972E-04   -1.4132    
   9  Prefactor     .10000E-03    13.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2219        .93894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.9701        .10804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3382        286.87        .33695E-03   -1.5477    
  13  Prefactor     .10000E-03    39.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6221        5.5466        .17952E-03   -1.5327    
  15  Prefactor     .10000E-03    9.7789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2447        .94248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.1525        .16863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.3152        .24163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.403        8.2585        .98974E-04   -1.4898    
  20  norm          .10000E-03    16.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.4180        .74816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.5063        .13333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.9983        7.7374        .10084E-02   -1.5308    
  26  Prefactor     24.818        23.213        .80413E-04   -1.4711    
  27  Prefactor     .10000E-03    9.4605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    25.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.4480        .98002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93084        .22017        .22488E-03   -.95385    
  31  Prefactor     1.0227        .27216        .27036E-03   -.91978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75878e-10
Minuit parameter uncertainties:
  1  3.37967
  2  3.40278e-06
  3  3.64392
  4  2.41834e-06
  5  5.16882
  6  13.9198
  7  15.425
  8  63.7447
  9  0.000167089
  10  1.67576e-06
  11  2.05355e-07
  12  39.377
  13  0.000162854
  14  5.54743
  15  1.02376e-05
  16  2.89731e-06
  17  1.90901e-05
  18  3.02151e-05
  19  8.25908
  20  5.52165e-05
  21  9.16317e-07
  22  9.37828e-05
  23  4.33707e-06
  24  0.000202326
  25  7.73929
  26  23.221
  27  0.000107845
  28  0.000266327
  29  7.83106e-06
  30  0.220382
  31  0.272532
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.640e+01  8.259e+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.023e+00  2.725e-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.308e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.49
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 3.27e-05 +/- 1.65e-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) = 4172.57659736
delta logL = 0.554728483913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4172.44127503
delta logL = 0.690050814274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.256       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4708       1.0000          .0000       5.0000    
     3 'Normalizat'    .95432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0159       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=   4172.441     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.262        35.796        .21226E-02   -.12913E-04
   2  alpha         1.4709        1.4922        .39607        .45658E-06
   3  Normalizat    .95426        .19044        .45592E-01   -.33717E-04
   4  Prefactor     1.0159        .22759        .61388E-01    .44758E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 22.2624
  alpha      = 1.47089
  Normalizat = 0.954261
  Prefactor  = 1.0159
 **********
 **   18 **HESSE 
 **********

 FCN=   4172.441     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.262        12.435        .84904E-04   -1.4764    
   2  alpha         1.4709        .62718        .15288E-01   -.42426    
   3  Normalizat    .95426        .21480        .22250E-03   -.94579    
   4  Prefactor     1.0159        .27062        .27148E-03   -.92201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42727e-12
Minuit parameter uncertainties:
  1  12.4363
  2  0.635388
  3  0.214993
  4  0.270985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334258': 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) = 4172.44127487
delta logL = 0.690050979373

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.226e+01  1.244e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.471e+00  6.354e-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.016e+00  2.710e-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.543e-01  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.84
Ra Dec: 197.760 32.556
Photon Index (Free Index): 1.47 +/- 0.64
Photon Flux (Free Index): 2.15e-08 +/- 1.59e-08
Energy Flux (Free Index): 5.48e-05 +/- 4.56e-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/334258/cmap_HighResolution_414028801_414288001_4FGL_J1311.0+3233_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='5.48e-05', photon_flux_error='2.28e-08', dlogl='6.90e-01', energy_flux='3.27e-05', photon_flux2='2.15e-08', job_status='DONE', time_completed='2021-09-07 04:13:54.006634', photon_index_error2='0.64', photon_index2='1.47', ts='23.49', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.56e-05', EG='0.93', time_epoch_completed='1631013234.01', return_code='0', job_id='334258', GAL2='1.02', EG2='0.95', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='1.59e-08', ts2='24.84', photon_index='2.27' WHERE bin_id='674' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:13:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 334258: <4FGL_J1311.0+3233_daily_bin674> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin674> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:34 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:01:02 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:01:02 2021
Terminated at Tue Sep  7 04:13:54 2021
Results reported at Tue Sep  7 04:13:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin674 197.76 32.5565 414028801 414288001 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 :                                   648.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            800 sec.

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

