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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin711
RA = 197.76, Dec = 32.5565
tmin = 423619201, tmax = 423878401
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='334312', job_status='RUN', time_executed='2021-09-07 04:04:44.106106', time_epoch_executed='1631012684.11' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334312/ft1_4FGL_J1311.0+3233_daily_bin711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334312/ft2_4FGL_J1311.0+3233_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334312/ft1_4FGL_J1311.0+3233_daily_bin711.fits outfile=/scratch/kocevski/334312/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin711.fits ra=197.76 dec=32.5565 rad=12.0 tmin=423619201.0 tmax=423878401.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.84
user 5.55
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334312/ft1_filtered_4FGL_J1311.0+3233_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/334312/ft2_4FGL_J1311.0+3233_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/334312/ltcube_423619201_423878401_4FGL_J1311.0+3233_daily_bin711.fits outfile=/scratch/kocevski/334312/expmap_423619201_423878401_4FGL_J1311.0+3233_daily_bin711.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/334312/ltcube_423619201_423878401_4FGL_J1311.0+3233_daily_bin711.fits
.....................!
real 191.83
user 186.12
sys 5.26

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/334312/ft1_filtered_4FGL_J1311.0+3233_daily_bin711.fits scfile=/scratch/kocevski/334312/ft2_4FGL_J1311.0+3233_daily_bin711.fits outfile=/scratch/kocevski/334312/cmap_423619201_423878401_4FGL_J1311.0+3233_daily_bin711.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334312/ft1_filtered_4FGL_J1311.0+3233_daily_bin711.fits scfile=/scratch/kocevski/334312/ft2_4FGL_J1311.0+3233_daily_bin711.fits outfile=/scratch/kocevski/334312/cmap_HighResolution_423619201_423878401_4FGL_J1311.0+3233_daily_bin711.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.766       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11602E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.169       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.396       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2142       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.768       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.877       1.0000         .10000E-03   10000.    
    23 'norm      '    4.1411       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    24.717       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    67.183       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0226       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .51290       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=   1921.640     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4063 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.768        7.2269        .10746E-06    .50129E-05
   2  Prefactor     .10000E-03    3.7066       -.22035E-06** at limit **
   3  Prefactor     .10000E-03    1.6256       -.20083E-06** at limit **
   4  Prefactor     .10000E-03    2.3525       -.60880E-06** at limit **
   5  norm          .10000E-03    11.804       -.16403E-05** at limit **
   6  Prefactor     .10000E-03    12.678       -.10139E-05** at limit **
   7  Prefactor     .10000E-03    14.514       -.25860E-06** at limit **
   8  Prefactor     .10000E-03    125.01        .38158E-06** at limit **
   9  Prefactor     7.5968        8.2958        .16725E-06   -.10648E-04
  10  Prefactor     .10000E-03    6.7290       -.39986E-06** at limit **
  11  norm          10.073        9.4753        .39551E-06   -.17216E-03
  12  Prefactor     53.237        90.980        .16095E-05    .16738E-04
  13  Prefactor     .10000E-03    63.023       -.14272E-05** at limit **
  14  norm          .10000E-03    2.4449       -.28996E-06** at limit **
  15  Prefactor     .10000E-03    15.332       -.17728E-06** at limit **
  16  norm          11.168        11.497       -.54813E-06   -.90070E-04
  17  norm          .10000E-03    22.541        .35967E-06** at limit **
  18  norm          17.402        13.873        .54077E-07   -.28924E-03
  19  norm          2.2092        26.255        .56899E-06    .44981E-04
  20  norm          .10000E-03    14.629       -.98964E-07** at limit **
  21  Prefactor     15.770        10.437       -.24090E-06   -.51458E-03
  22  Prefactor     10.887        42.998        .27099E-05   -.66542E-04
  23  norm          4.1356        13.818       -.11891E-06    .37064E-04
  24  Prefactor     .10000E-03    298.25        .10734E-05** at limit **
  25  norm          24.729        22.990       -.22347E-06    .12262E-04
  26  Prefactor     .10000E-03    9.9990       -.76481E-07** at limit **
  27  Prefactor     .10000E-03    48.440       -.76928E-06** at limit **
  28  Prefactor     67.509        148.33        .11383E-04    .67633E-04
  29  Prefactor     .10000E-03    3.7553       -.16326E-06** at limit **
  30  Normalizat    1.0215        .36941       -.23647E-04    .88195E-04
  31  Prefactor     .51398        .41768        .37102E-04    .26956E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.7676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.59679
  Prefactor  = 0.0001
  norm       = 10.0732
  Prefactor  = 53.237
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1682
  norm       = 0.0001
  norm       = 17.4018
  norm       = 2.20925
  norm       = 0.0001
  Prefactor  = 15.7696
  Prefactor  = 10.8871
  norm       = 4.13561
  Prefactor  = 0.000100001
  norm       = 24.7289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.5092
  Prefactor  = 0.0001
  Normalizat = 1.02153
  Prefactor  = 0.513983
 **********
 **   18 **HESSE 
 **********

 FCN=   1921.640     FROM HESSE     STATUS=OK           612 CALLS     4675 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.768        7.2213        .69240E-04   -1.4818    
   2  Prefactor     .10000E-03    3.7125        .82437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6325        .54563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4088        .65707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.077        .14709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.791        .15259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.523        .16316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    125.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5968        8.2961        .12848E-03   -1.5157    
  10  Prefactor     .10000E-03    6.7567        .11105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.073        9.4639        .12294E-03   -1.5073    
  12  Prefactor     53.237        90.946        .54995E-04   -1.4247    
  13  Prefactor     .10000E-03    63.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4522        .66940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.349        .16765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.168        11.489        .11988E-03   -1.5039    
  17  norm          .10000E-03    22.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.402        13.544        .96027E-04   -1.4873    
  19  norm          2.2092        25.051        .27640E-03   -1.5411    
  20  norm          .10000E-03    14.631        .16379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.770        10.430        .91872E-04   -1.4914    
  22  Prefactor     10.887        42.750        .12148E-03   -1.5048    
  23  norm          4.1356        13.701        .19808E-03   -1.5301    
  24  Prefactor     .10000E-03    299.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          24.729        22.826        .80573E-04   -1.4713    
  26  Prefactor     .10000E-03    10.001        .13540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    48.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     67.509        148.70        .24484E-03   -1.4063    
  29  Prefactor     .10000E-03    3.7609        .82966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0215        .36818        .21376E-03   -.92313    
  31  Prefactor     .51398        .41778        .34872E-03   -1.1134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6196e-10
Minuit parameter uncertainties:
  1  7.22167
  2  9.80393e-06
  3  6.61506e-06
  4  2.58158e-05
  5  8.52436e-05
  6  0.000150116
  7  1.94766e-05
  8  0.00110436
  9  8.29737
  10  2.51011e-05
  11  9.46531
  12  91.1842
  13  0.000508227
  14  6.16235e-06
  15  3.61184e-06
  16  11.4917
  17  2.06959e-05
  18  13.5465
  19  14.8862
  20  1.41822e-06
  21  10.4313
  22  42.871
  23  13.711
  24  0.00113955
  25  22.8338
  26  1.53091e-06
  27  2.13466e-05
  28  149.528
  29  2.87429e-06
  30  0.369102
  31  0.420316
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.209e+00  1.489e+01  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:  5.140e-01  4.203e-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.022e+00  3.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 197.760 32.556
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334312/likelihoodResults_423619201_423878401_4FGL_J1311.0+3233_daily_bin711.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): 0
logL (Free Index) = 1921.17342144
delta logL = 0.466924841036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1921.13329758
delta logL = 0.507048704386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4398       1.0000         .10000E-03   10000.    
     2 'alpha     '    .21653E-04   1.0000          .0000       5.0000    
     3 'Normalizat'    1.0190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51880       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=   1921.133     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4337        7.5926        .54520E-02    .37838E-03
   2  alpha         .21374E-04    4.3100        .46268        .24747E-04
   3  Normalizat    1.0191        .28784        .43499E-01   -.41965E-04
   4  Prefactor     .51899        .34340        .78411E-01   -.89490E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.43371
  alpha      = 2.13741e-05
  Normalizat = 1.01908
  Prefactor  = 0.518994
 **********
 **   18 **HESSE 
 **********

 FCN=   1921.133     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4337        6.1061        .55808E-03   -1.5337    
   2  alpha         .21374E-04    3.7413        .50000       -1.5667    
   3  Normalizat    1.0191        .33722        .21398E-03   -.92394    
   4  Prefactor     .51899        .40097        .34730E-03   -1.1111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47073e-09
Minuit parameter uncertainties:
  1  6.10723
  2  0.0162097
  3  0.337925
  4  0.403191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334312': 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) = 1921.13329563
delta logL = 0.507050652811

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  3.434e+00  6.107e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.137e-05  1.621e-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:  5.190e-01  4.032e-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.019e+00  3.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 197.760 32.556
Photon Index (Free Index): 0.00 +/- 0.02
Photon Flux (Free Index): 6.85e-09 +/- 1.21e-08
Energy Flux (Free Index): 1.55e-04 +/- 2.71e-04

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/334312/cmap_HighResolution_423619201_423878401_4FGL_J1311.0+3233_daily_bin711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.07e-05', comment='SUCCESS', energy_flux2='1.55e-04', dlogl='5.07e-01', photon_flux2='6.85e-09', job_status='DONE', time_completed='2021-09-07 04:13:23.073956', photon_index_error2='0.02', photon_index2='0.00', ts='0.04', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.71e-04', EG='1.02', time_epoch_completed='1631013203.07', return_code='0', job_id='334312', GAL2='0.52', EG2='1.02', return_code2='0', photon_flux_error2='1.21e-08', ts2='1.05', photon_index='2.27' WHERE bin_id='711' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:13:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 334312: <4FGL_J1311.0+3233_daily_bin711> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin711 197.76 32.5565 423619201 423878401 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 :                                   516.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            766 sec.

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

