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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin478
RA = 197.76, Dec = 32.5565
tmin = 363225601, tmax = 363484801
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='332736', job_status='RUN', time_executed='2021-09-07 03:57:47.228178', time_epoch_executed='1631012267.23' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332736/ft1_4FGL_J1311.0+3233_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332736/ft2_4FGL_J1311.0+3233_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332736/ft1_4FGL_J1311.0+3233_daily_bin478.fits outfile=/scratch/kocevski/332736/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin478.fits ra=197.76 dec=32.5565 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.06
user 6.73
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332736/ft1_filtered_4FGL_J1311.0+3233_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/332736/ft2_4FGL_J1311.0+3233_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/332736/ltcube_363225601_363484801_4FGL_J1311.0+3233_daily_bin478.fits outfile=/scratch/kocevski/332736/expmap_363225601_363484801_4FGL_J1311.0+3233_daily_bin478.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/332736/ltcube_363225601_363484801_4FGL_J1311.0+3233_daily_bin478.fits
.....................!
real 191.67
user 186.39
sys 4.51

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/332736/ft1_filtered_4FGL_J1311.0+3233_daily_bin478.fits scfile=/scratch/kocevski/332736/ft2_4FGL_J1311.0+3233_daily_bin478.fits outfile=/scratch/kocevski/332736/cmap_363225601_363484801_4FGL_J1311.0+3233_daily_bin478.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/332736/ft1_filtered_4FGL_J1311.0+3233_daily_bin478.fits scfile=/scratch/kocevski/332736/ft2_4FGL_J1311.0+3233_daily_bin478.fits outfile=/scratch/kocevski/332736/cmap_HighResolution_363225601_363484801_4FGL_J1311.0+3233_daily_bin478.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3165       1.0000         .10000E-03   10000.    
     5 'norm      '    .41381E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0021       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5564       1.0000         .10000E-03   10000.    
     8 'Prefactor '    103.24       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    100.37       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0917       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0491       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    25.776       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.728       1.0000         .10000E-03   10000.    
    24 'Prefactor '    56.307       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5158       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3524       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .34004       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=   2195.369     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4084 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.217        7.2807        .78532E-06    .69956E-03
   2  Prefactor     .10000E-03    4.9743       -.48665E-06** at limit **
   3  Prefactor     .10000E-03    7.4747       -.50431E-05** at limit **
   4  Prefactor     7.3161        5.0967        .15202E-05    .24237E-03
   5  norm          .10000E-03    10.669        .91891E-06** at limit **
   6  Prefactor     3.9983        21.006        .16363E-05   -.33331E-04
   7  Prefactor     6.5540        25.411       -.46392E-06   -.13053E-04
   8  Prefactor     103.24        130.98       -.32170E-05    .70818E-06
   9  Prefactor     .10000E-03    12.392       -.72996E-05** at limit **
  10  Prefactor     .10000E-03    3.2621        .56423E-07** at limit **
  11  norm          .10000E-03    5.8342       -.38484E-06** at limit **
  12  Prefactor     100.43        118.18        .56156E-04    .22010E-04
  13  Prefactor     .10000E-03    43.042       -.80594E-05** at limit **
  14  norm          .10000E-03    9.0962        .46193E-05** at limit **
  15  Prefactor     .10000E-03    21.956       -.83925E-05** at limit **
  16  norm          .10000E-03    2.7173        .23244E-06** at limit **
  17  norm          2.0764        39.194       -.13564E-04   -.16267E-03
  18  norm          4.0472        4.2784        .15831E-06   -.12988E-02
  19  norm          .10002E-03    9.7005        .30811E-05** at limit **
  20  norm          25.779        30.077        .65620E-06   -.28325E-04
  21  Prefactor     .10000E-03    3.5756        .39242E-06** at limit **
  22  Prefactor     .10000E-03    8.4796        .20370E-06** at limit **
  23  norm          11.732        24.449        .43110E-05   -.53707E-04
  24  Prefactor     56.298        85.831       -.10347E-04   -.24342E-04
  25  norm          4.5102        37.793       -.74689E-05   -.10181E-03
  26  Prefactor     .10000E-03    46.384        .14635E-04** at limit **
  27  Prefactor     .10000E-03    20.201        .45378E-05** at limit **
  28  Prefactor     .10000E-03    110.36       -.70756E-05** at limit **
  29  Prefactor     .10000E-03    6.7389        .27867E-05** at limit **
  30  Normalizat    1.3521        .28322       -.18751E-05   -.99053E-04
  31  Prefactor     .34027        .33361       -.22928E-05   -.11651E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.31607
  norm       = 0.000100005
  Prefactor  = 3.99828
  Prefactor  = 6.55401
  Prefactor  = 103.236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 100.434
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.07638
  norm       = 4.0472
  norm       = 0.000100022
  norm       = 25.7791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7322
  Prefactor  = 56.2981
  norm       = 4.51018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35209
  Prefactor  = 0.340273
 **********
 **   18 **HESSE 
 **********

 FCN=   2195.369     FROM HESSE     STATUS=OK           610 CALLS     4694 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.217        7.1991        .10037E-03   -1.5069    
   2  Prefactor     .10000E-03    4.9789        .10207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.6234        .24704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3161        5.0862        .83269E-04   -1.5167    
   5  norm          .10000E-03    24.108        .29609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9983        20.801        .20160E-03   -1.5308    
   7  Prefactor     6.5540        25.360        .15673E-03   -1.5196    
   8  Prefactor     103.24        130.80        .39573E-04   -1.3672    
   9  Prefactor     .10000E-03    12.467        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2633        .82645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.9076        .11034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     100.43        118.24        .20064E-03   -1.3700    
  13  Prefactor     .10000E-03    43.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.2813        .13784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7197        .75434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0764        39.412        .28543E-03   -1.5420    
  18  norm          4.0472        3.8105        .85772E-04   -1.5306    
  19  norm          .10002E-03    15.524        .25226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          25.779        30.054        .78904E-04   -1.4692    
  21  Prefactor     .10000E-03    3.6267        .86295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4886        .13325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.732        24.124        .11698E-03   -1.5023    
  24  Prefactor     56.298        85.683        .53459E-04   -1.4206    
  25  norm          4.5102        36.759        .18946E-03   -1.5283    
  26  Prefactor     .10000E-03    47.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    110.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.9090        .23735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3521        .29490        .18377E-03   -.82025    
  31  Prefactor     .34027        .34124        .40505E-03   -1.1997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22995e-09
Minuit parameter uncertainties:
  1  7.19973
  2  1.58124e-06
  3  8.86421e-05
  4  5.08647
  5  0.000672801
  6  18.2489
  7  25.4014
  8  131.165
  9  2.79682e-05
  10  2.43502e-06
  11  4.00728e-05
  12  118.522
  13  0.000189557
  14  3.64878e-07
  15  4.99586e-05
  16  6.15735e-06
  17  18.1059
  18  3.81068
  19  0.00117353
  20  30.0716
  21  5.70202e-05
  22  3.63396e-05
  23  24.1443
  24  85.8715
  25  25.7733
  26  6.74717e-05
  27  1.31015e-05
  28  0.000208375
  29  2.77924e-05
  30  0.295273
  31  0.343287
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.174e-03  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:  3.403e-01  3.433e-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:  1.352e+00  2.953e-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: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332736/likelihoodResults_363225601_363484801_4FGL_J1311.0+3233_daily_bin478.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) = 2195.3696998
delta logL = -0.000305644536638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2195.36939401
delta logL = 1.5117939256e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10820E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1751       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33984       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2195.369     FROM MIGRAD    STATUS=FAILED       103 CALLS      263 TOTAL
                     EDM=   .18E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28197E-03    6148.8        .30506E-02** at limit **
   2  alpha         1.2921        .30753        .16640       -.11736E-04
   3  Normalizat    1.3521        .18893        .18377E-03    .37922E-04
   4  Prefactor     .34028        .19443        .40505E-03   -.26383E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2195.365     FROM SIMPLEX   STATUS=PROGRESS     144 CALLS      407 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98075        6148.8        .72126E-03   -1.5906    
   2  alpha         1.2921        .30753        .11709E-05   -.50427    
   3  Normalizat    1.3520        .18893        .17977E-05   -.82026    
   4  Prefactor     .34024        .19443        .19897E-05   -1.1998    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2195.363     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      470 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0937        25.347         .0000       -.31756E-02
   2  alpha         1.4486        3.2033         .0000        .31503E-04
   3  Normalizat    1.3521        .28854         .0000       -.58771E-05
   4  Prefactor     .33997        .33581         .0000        .72974E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09371
  alpha      = 1.44856
  Normalizat = 1.35211
  Prefactor  = 0.339969
 **********
 **   18 **HESSE 
 **********

 FCN=   2195.363     FROM HESSE     STATUS=OK            27 CALLS      497 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0937        24.201        .12203E-02   -1.5917    
   2  alpha         1.4486        3.2096        .13312E-01   -.43408    
   3  Normalizat    1.3521        .28896        .73508E-05   -.82024    
   4  Prefactor     .33997        .33634        .32404E-05   -1.1999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3798e-10
Minuit parameter uncertainties:
  1  10.2939
  2  2.92652
  3  0.289303
  4  0.338302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332736': 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) = 2195.36325084
delta logL = 0.00614332155419

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.094e+00  1.029e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.449e+00  2.927e+00  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:  3.400e-01  3.383e-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:  1.352e+00  2.893e-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/332736/cmap_HighResolution_363225601_363484801_4FGL_J1311.0+3233_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-05', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-07 04:07:07.615877', job_id='332736', GAL2='0.34', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631012827.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.34', dlogl='6.14e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='478' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:07:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 332736: <4FGL_J1311.0+3233_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin478 197.76 32.5565 363225601 363484801 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 :                                   555.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            712 sec.

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

