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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin762
RA = 197.76, Dec = 32.5565
tmin = 436838401, tmax = 437097601
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='334383', job_status='RUN', time_executed='2021-09-07 04:04:14.784041', time_epoch_executed='1631012654.78' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334383/ft1_4FGL_J1311.0+3233_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334383/ft2_4FGL_J1311.0+3233_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334383/ft1_4FGL_J1311.0+3233_daily_bin762.fits outfile=/scratch/kocevski/334383/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin762.fits ra=197.76 dec=32.5565 rad=12.0 tmin=436838401.0 tmax=437097601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.99
user 4.75
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334383/ft1_filtered_4FGL_J1311.0+3233_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/334383/ft2_4FGL_J1311.0+3233_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/334383/ltcube_436838401_437097601_4FGL_J1311.0+3233_daily_bin762.fits outfile=/scratch/kocevski/334383/expmap_436838401_437097601_4FGL_J1311.0+3233_daily_bin762.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/334383/ltcube_436838401_437097601_4FGL_J1311.0+3233_daily_bin762.fits
.....................!
real 190.76
user 185.47
sys 4.93

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/334383/ft1_filtered_4FGL_J1311.0+3233_daily_bin762.fits scfile=/scratch/kocevski/334383/ft2_4FGL_J1311.0+3233_daily_bin762.fits outfile=/scratch/kocevski/334383/cmap_436838401_437097601_4FGL_J1311.0+3233_daily_bin762.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334383/ft1_filtered_4FGL_J1311.0+3233_daily_bin762.fits scfile=/scratch/kocevski/334383/ft2_4FGL_J1311.0+3233_daily_bin762.fits outfile=/scratch/kocevski/334383/cmap_HighResolution_436838401_437097601_4FGL_J1311.0+3233_daily_bin762.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.60
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.473       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3837       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.776       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9803       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27050       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .99096       1.0000         .10000E-03   10000.    
    17 'norm      '    11.025       1.0000         .10000E-03   10000.    
    18 'norm      '    .14813E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.005       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31012       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.190       1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    79.720       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1253       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77130       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4428.867     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     3488 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.310        1.5429        .13324E-07    .24007E-02
   2  Prefactor     12.471        1.1218        .74973E-07   -.38658E-04
   3  Prefactor     3.5545        2.9128        .99917E-07   -.14136E-03
   4  Prefactor     2.3830        3.6676       -.17124E-06   -.14865E-03
   5  norm          .10000E-03    3.9681        .14311E-06** at limit **
   6  Prefactor     34.772        2.8683        .37016E-07    .10755E-02
   7  Prefactor     .10000E-03    11.440        .23348E-06** at limit **
   8  Prefactor     .10000E-03    16.159       -.34723E-06** at limit **
   9  Prefactor     .10000E-03    14.409        .13929E-05** at limit **
  10  Prefactor     6.9797        2.4165       -.50632E-06    .97379E-04
  11  norm          2.3085        3.2897       -.53680E-06   -.16317E-03
  12  Prefactor     .10006E-03    15.834        .57720E-06** at limit **
  13  Prefactor     .15315E-01    8853.2        .12877E-03   -.45208E-05
  14  norm          .10000E-03    2.6481        .19264E-07** at limit **
  15  Prefactor     .10000E-03    12.002       -.10547E-05** at limit **
  16  norm          .98869        3.4853       -.54621E-06   -.20004E-03
  17  norm          11.025        1.0372        .35937E-07    .51960E-04
  18  norm          .10000E-03    4.3554        .11070E-07** at limit **
  19  norm          .10000E-03    4.6693       -.12448E-06** at limit **
  20  norm          20.003        1.6257        .10208E-06   -.37416E-03
  21  Prefactor     .30814        3.8810       -.59464E-06    .17726E-02
  22  Prefactor     27.213        19.865       -.16064E-06    .14001E-02
  23  norm          .10000E-03    2.9095       -.14542E-06** at limit **
  24  Prefactor     .10002E-03    25.532       -.17204E-06** at limit **
  25  norm          .10000E-03    6.0553        .66843E-06** at limit **
  26  Prefactor     .10002E-03    12.396       -.33723E-06** at limit **
  27  Prefactor     .10000E-03    6.1398       -.29746E-06** at limit **
  28  Prefactor     79.691        8.9861        .56290E-06    .45796E-02
  29  Prefactor     .10000E-03    1.4774       -.87443E-07** at limit **
  30  Normalizat    1.1258        .23231       -.10235E-05   -.66687E-04
  31  Prefactor     .77078        .27572        .77255E-06   -.36285E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3104
  Prefactor  = 12.4713
  Prefactor  = 3.55447
  Prefactor  = 2.38302
  norm       = 0.0001
  Prefactor  = 34.7718
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.9797
  norm       = 2.30851
  Prefactor  = 0.000100063
  Prefactor  = 0.015315
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.98869
  norm       = 11.0253
  norm       = 0.0001
  norm       = 0.0001
  norm       = 20.0031
  Prefactor  = 0.308143
  Prefactor  = 27.2131
  norm       = 0.0001
  Prefactor  = 0.000100022
  norm       = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 79.6906
  Prefactor  = 0.0001
  Normalizat = 1.12585
  Prefactor  = 0.770776
 **********
 **   18 **HESSE 
 **********

 FCN=   4428.867     FROM HESSE     STATUS=OK           698 CALLS     4186 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.310        6.0095        .25590E-02   -1.4925    
   2  Prefactor     12.471        9.9797        .28355E-02   -1.5002    
   3  Prefactor     3.5545        3.0851        .53595E-02   -1.5331    
   4  Prefactor     2.3830        4.0189        .66327E-02   -1.5399    
   5  norm          .10000E-03    3.9547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.772        19.490        .16989E-02   -1.4528    
   7  Prefactor     .10000E-03    11.621        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9797        8.3078        .37961E-02   -1.5180    
  11  norm          2.3085        3.3060        .67535E-02   -1.5404    
  12  Prefactor     .10006E-03    25.231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .15315E-01    28.738        .11489       -1.5683    
  14  norm          .10000E-03    2.6202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .98869        3.6720        .13134E-01   -1.5509    
  17  norm          11.025        12.080        .30164E-02   -1.5044    
  18  norm          .10000E-03    2.6865        .38575E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.003        18.024        .22388E-02   -1.4813    
  21  Prefactor     .30814        2.9335        .51725E-01   -1.5597    
  22  Prefactor     27.213        21.126        .19207E-02   -1.4664    
  23  norm          .10000E-03    2.8846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    27.894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.0354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    21.493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.1872        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     79.691        78.914        .11245E-02   -1.3920    
  29  Prefactor     .10000E-03    1.4723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1258        .20219        .37054E-01   -.88926    
  31  Prefactor     .77078        .23513        .70222E-01   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80866e-07
Minuit parameter uncertainties:
  1  6.00975
  2  9.981
  3  3.08522
  4  4.01932
  5  4.33198e-07
  6  19.4935
  7  0.000185894
  8  0.000312716
  9  0.000134087
  10  8.30922
  11  3.30622
  12  0.00253047
  13  1.32314
  14  2.79236e-07
  15  0.000290067
  16  3.67288
  17  12.0829
  18  4.21709e-06
  19  1.60363e-05
  20  18.029
  21  1.90133
  22  21.1322
  23  6.18001e-06
  24  0.00156453
  25  8.75597e-05
  26  0.00141243
  27  9.91413e-05
  28  79.0178
  29  3.03849e-06
  30  0.202327
  31  0.235436
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.604e-05  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:  7.708e-01  2.354e-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.126e+00  2.023e-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: 4.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334383/likelihoodResults_436838401_437097601_4FGL_J1311.0+3233_daily_bin762.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) = 4428.86768754
delta logL = -0.00101277342128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4428.86667509
delta logL = -3.26628651237e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2580       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77056       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=   4428.867     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      233 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    202.96        .14095E-01** at limit **
   2  alpha         1.6841        2.8307        .16559        .24441E-07
   3  Normalizat    1.1258        .29474E-01    .21656E-03    .11792E-03
   4  Prefactor     .77078        .35793E-01    .31073E-03    .87442E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.68411
  Normalizat = 1.12585
  Prefactor  = 0.770776
 **********
 **   18 **HESSE 
 **********

 FCN=   4428.867     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7117        .15372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6841        2.8637        .66236E-02   -.33244    
   3  Normalizat    1.1258        .22532        .43312E-04   -.88926    
   4  Prefactor     .77078        .27333        .12429E-04   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03306e-11
Minuit parameter uncertainties:
  1  2.26493e-05
  2  302.024
  3  0.22551
  4  0.273808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334383': 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) = 4428.86667289
delta logL = 1.87702062249e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  7.708e-01  2.738e-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.126e+00  2.255e-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/334383/cmap_HighResolution_436838401_437097601_4FGL_J1311.0+3233_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-07 04:16:15.207616', job_id='334383', GAL2='0.77', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631013375.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='762' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:16:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 334383: <4FGL_J1311.0+3233_daily_bin762> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin762 197.76 32.5565 436838401 437097601 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            933 sec.

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

