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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin536
RA = 197.76, Dec = 32.5565
tmin = 378259201, tmax = 378518401
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='332832', job_status='RUN', time_executed='2021-09-07 03:55:59.676299', time_epoch_executed='1631012159.68' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332832/ft1_4FGL_J1311.0+3233_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332832/ft2_4FGL_J1311.0+3233_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332832/ft1_4FGL_J1311.0+3233_daily_bin536.fits outfile=/scratch/kocevski/332832/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin536.fits ra=197.76 dec=32.5565 rad=12.0 tmin=378259201.0 tmax=378518401.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.54
user 4.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332832/ft1_filtered_4FGL_J1311.0+3233_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/332832/ft2_4FGL_J1311.0+3233_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/332832/ltcube_378259201_378518401_4FGL_J1311.0+3233_daily_bin536.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/332832/ft2_4FGL_J1311.0+3233_daily_bin536.fits
.....................!
real 15.61
user 15.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332832/ft1_filtered_4FGL_J1311.0+3233_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/332832/ft2_4FGL_J1311.0+3233_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/332832/ltcube_378259201_378518401_4FGL_J1311.0+3233_daily_bin536.fits outfile=/scratch/kocevski/332832/expmap_378259201_378518401_4FGL_J1311.0+3233_daily_bin536.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/332832/ltcube_378259201_378518401_4FGL_J1311.0+3233_daily_bin536.fits
.....................!
real 192.39
user 186.98
sys 4.86

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/332832/ft1_filtered_4FGL_J1311.0+3233_daily_bin536.fits scfile=/scratch/kocevski/332832/ft2_4FGL_J1311.0+3233_daily_bin536.fits outfile=/scratch/kocevski/332832/cmap_378259201_378518401_4FGL_J1311.0+3233_daily_bin536.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.76 yref=32.5565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332832/ft1_filtered_4FGL_J1311.0+3233_daily_bin536.fits scfile=/scratch/kocevski/332832/ft2_4FGL_J1311.0+3233_daily_bin536.fits outfile=/scratch/kocevski/332832/cmap_HighResolution_378259201_378518401_4FGL_J1311.0+3233_daily_bin536.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8826       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1327       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8959       1.0000         .10000E-03   10000.    
     5 'norm      '    8.5751       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.864       1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12780E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.075       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .85334E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4098       1.0000         .10000E-03   10000.    
    18 'norm      '    6.9177       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    29.381       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4529       1.0000         .10000E-03   10000.    
    23 'norm      '    11.687       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.097       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.365       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .38668       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92191       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0444       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=   5867.467     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4126 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3246        3.1515       -.29302E-06    .48953E-04
   2  Prefactor     8.8829        7.5219       -.38537E-07   -.29444E-05
   3  Prefactor     1.1327        1.2101        .79135E-07   -.11621E-04
   4  Prefactor     3.8962        2.5270        .72413E-07   -.31633E-04
   5  norm          8.5757        5.7117       -.56599E-07   -.10141E-04
   6  Prefactor     .10000E-03    4.1478        .81620E-07** at limit **
   7  Prefactor     37.852        27.598       -.23714E-05   -.18516E-04
   8  Prefactor     88.350        69.853        .13119E-06   -.90545E-05
   9  Prefactor     .10000E-03    3.6495        .20595E-08** at limit **
  10  Prefactor     .10000E-03    3.4755        .42971E-06** at limit **
  11  norm          .10000E-03    1.1577        .56608E-07** at limit **
  12  Prefactor     30.228        43.297       -.26696E-05    .14616E-04
  13  Prefactor     .10000E-03    8.3635        .29188E-06** at limit **
  14  norm          10.076        4.7254       -.13042E-06   -.38290E-04
  15  Prefactor     .10000E-03    65.973        .13809E-04** at limit **
  16  norm          .10000E-03    1.1494        .59332E-07** at limit **
  17  norm          1.4094        20.653       -.12428E-05    .10261E-04
  18  norm          6.9173        3.3228        .21280E-07   -.51272E-04
  19  norm          .10000E-03    2.2847       -.31662E-07** at limit **
  20  norm          29.381        21.577        .89236E-08   -.23608E-05
  21  Prefactor     .10000E-03    .89397        .68080E-07** at limit **
  22  Prefactor     4.4522        9.3090       -.26246E-06   -.13937E-04
  23  norm          11.687        7.1810       -.18373E-07   -.13300E-05
  24  Prefactor     .10000E-03    22.786       -.30060E-06** at limit **
  25  norm          13.097        9.9972       -.48458E-07   -.95785E-07
  26  Prefactor     19.364        15.136       -.85589E-07    .10001E-04
  27  Prefactor     .10000E-03    7.1695       -.17407E-06** at limit **
  28  Prefactor     .10000E-03    70.197       -.33452E-05** at limit **
  29  Prefactor     .38576        4.0764       -.88187E-06    .17125E-06
  30  Normalizat    .92195        .16951        .36565E-07   -.77519E-04
  31  Prefactor     1.0443        .21115       -.26083E-06   -.85850E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.32462
  Prefactor  = 8.8829
  Prefactor  = 1.13268
  Prefactor  = 3.89616
  norm       = 8.57566
  Prefactor  = 0.0001
  Prefactor  = 37.8519
  Prefactor  = 88.3505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.2276
  Prefactor  = 0.0001
  norm       = 10.0762
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.40937
  norm       = 6.91726
  norm       = 0.0001
  norm       = 29.3814
  Prefactor  = 0.0001
  Prefactor  = 4.45222
  norm       = 11.6867
  Prefactor  = 0.0001
  norm       = 13.0969
  Prefactor  = 19.3639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.38576
  Normalizat = 0.921953
  Prefactor  = 1.04431
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.467     FROM HESSE     STATUS=OK           630 CALLS     4756 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3246        3.1472        .92294E-04   -1.5205    
   2  Prefactor     8.8829        7.5209        .13449E-03   -1.5112    
   3  Prefactor     1.1327        1.2230        .84303E-04   -1.5495    
   4  Prefactor     3.8962        2.5213        .94127E-04   -1.5313    
   5  norm          8.5757        5.7096        .13689E-03   -1.5122    
   6  Prefactor     .10000E-03    4.1574        .15234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.852        27.596        .65134E-04   -1.4477    
   8  Prefactor     88.350        69.880        .42746E-04   -1.3825    
   9  Prefactor     .10000E-03    10.149        .28363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5086        .13957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1594        .80470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.228        43.179        .72867E-04   -1.4608    
  13  Prefactor     .10000E-03    8.3818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.076        4.7126        .10907E-03   -1.5073    
  15  Prefactor     .10000E-03    64.668        .38943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1517        .80196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4094        20.888        .36491E-03   -1.5471    
  18  norm          6.9173        3.3176        .92588E-04   -1.5182    
  19  norm          .10000E-03    2.2869        .11291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.381        21.573        .73915E-04   -1.4623    
  21  Prefactor     .10000E-03    .90044        .70650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4522        9.2870        .19082E-03   -1.5286    
  23  norm          11.687        7.1782        .11718E-03   -1.5024    
  24  Prefactor     .10000E-03    22.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.097        9.9931        .11068E-03   -1.4984    
  26  Prefactor     19.364        15.142        .91016E-04   -1.4828    
  27  Prefactor     .10000E-03    7.1768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    70.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .38576        4.0870        .29067E-03   -1.5584    
  30  Normalizat    .92195        .20167        .23822E-03   -.95693    
  31  Prefactor     1.0443        .25161        .28371E-03   -.91267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27642e-11
Minuit parameter uncertainties:
  1  3.1473
  2  7.52165
  3  1.223
  4  2.52141
  5  5.70997
  6  2.25704e-06
  7  27.6054
  8  69.9453
  9  9.75401e-05
  10  3.81184e-05
  11  8.60335e-07
  12  43.2234
  13  5.34696e-06
  14  4.71278
  15  6.50967e-05
  16  9.3973e-07
  17  10.8557
  18  3.31773
  19  3.86166e-07
  20  21.579
  21  1.90028e-06
  22  9.28999
  23  7.1787
  24  1.55642e-05
  25  9.99437
  26  15.1453
  27  6.1712e-06
  28  0.000168839
  29  2.51114
  30  0.201834
  31  0.251893
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.044e+00  2.519e-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.220e-01  2.018e-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: 3.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332832/likelihoodResults_378259201_378518401_4FGL_J1311.0+3233_daily_bin536.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) = 5867.46873629
delta logL = -0.00200685044911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5867.46672923
delta logL = 2.07794073503e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2572       1.0000          .0000       5.0000    
     3 'Normalizat'    .92194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0443       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=   5867.467     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      243 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    166.66        .11409E-01** at limit **
   2  alpha         1.4803        2.9158        .16560        .11671E-08
   3  Normalizat    .92195        .32492E-01    .23822E-03   -.50300E-04
   4  Prefactor     1.0443        .41106E-01    .28371E-03   -.35504E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.4803
  Normalizat = 0.921952
  Prefactor  = 1.04431
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.467     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0314        .13009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4803        3.6669        .66239E-02   -.42013    
   3  Normalizat    .92195        .19621        .95289E-05   -.95693    
   4  Prefactor     1.0443        .24815        .11348E-04   -.91267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93783e-12
Minuit parameter uncertainties:
  1  3.57154e-06
  2  241.59
  3  0.196363
  4  0.248421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332832': 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) = 5867.46672409
delta logL = 5.34873197466e-06

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  3.572e-06  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.480e+00  2.416e+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:  1.044e+00  2.484e-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.220e-01  1.964e-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/332832/cmap_HighResolution_378259201_378518401_4FGL_J1311.0+3233_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', job_status='DONE', photon_flux_upper_limit='3.01e-08', time_completed='2021-09-07 04:10:56.069650', job_id='332832', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631013056.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='5.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='536' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:10:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 332832: <4FGL_J1311.0+3233_daily_bin536> in cluster <slac> Done

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

Your job looked like:

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

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

