/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 200 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2311.0+3425_daily_bin12
RA = 347.768, Dec = 34.4223
tmin = 242438401, tmax = 242697601
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='680448', job_status='RUN', time_executed='2021-09-29 07:44:04.164045', time_epoch_executed='1632926644.16' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='12'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680448/ft1_4FGL_J2311.0+3425_daily_bin12.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680448/ft1_4FGL_J2311.0+3425_daily_bin12.fits outfile=/scratch/kocevski/680448/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin12.fits ra=347.768 dec=34.4223 rad=12.0 tmin=242438401.0 tmax=242697601.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 1.43
user 1.25
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.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/680448/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin12.fits evtable="EVENTS" outfile="/scratch/kocevski/680448/ft1_filtered_4FGL_J2311.0+3425_daily_bin12.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680448/ft1_filtered_4FGL_J2311.0+3425_daily_bin12.fits" evtable="EVENTS" scfile=/scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits sctable="SC_DATA" outfile=/scratch/kocevski/680448/ltcube_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.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/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits
.....................!
real 12.59
user 12.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680448/ft1_filtered_4FGL_J2311.0+3425_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits sctable="SC_DATA" expcube=/scratch/kocevski/680448/ltcube_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.fits outfile=/scratch/kocevski/680448/expmap_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.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/680448/ltcube_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.fits
.....................!
real 193.16
user 188.15
sys 4.68

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2311.0+3425 @ 347.768 34.4223

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/680448/ft1_filtered_4FGL_J2311.0+3425_daily_bin12.fits scfile=/scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits outfile=/scratch/kocevski/680448/cmap_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.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=347.768 yref=34.4223 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680448/ft1_filtered_4FGL_J2311.0+3425_daily_bin12.fits scfile=/scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits outfile=/scratch/kocevski/680448/cmap_HighResolution_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.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=347.768 yref=34.4223 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/680448/ft1_filtered_4FGL_J2311.0+3425_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/680448/Model_4FGL_J2311.0+3425_daily_bin12.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/680448/ft1_filtered_4FGL_J2311.0+3425_daily_bin12.fits.....................!
real 80.06
user 78.77
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/680448/ft1_filtered_4FGL_J2311.0+3425_daily_bin12.fits', '/scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits', expMap='/scratch/kocevski/680448/expmap_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.fits', expCube='/scratch/kocevski/680448/ltcube_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/680448/Model_4FGL_J2311.0+3425_daily_bin12.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.0+3425'

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.866e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
374         beta:  9.511e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/680448/ft1_filtered_4FGL_J2311.0+3425_daily_bin12.fits
Spacecraft file(s): /scratch/kocevski/680448/ft2_4FGL_J2311.0+3425_daily_bin12.fits
Exposure map: /scratch/kocevski/680448/expmap_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.fits
Exposure cube: /scratch/kocevski/680448/ltcube_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/680448/Model_4FGL_J2311.0+3425_daily_bin12.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) = 6855.03419347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15510E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9975       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2909       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4412       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6420       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2162       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1671       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.089       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2366       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77931       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6855.029     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2717 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    106.13       -.11066E-05** at limit **
   2  norm          1.9972        1.3008        .35220E-09   -.42020E-04
   3  Prefactor     .10000E-03    44.391        .20066E-05** at limit **
   4  Prefactor     .10000E-03    6.5224        .26676E-05** at limit **
   5  Prefactor     .10000E-03    17.674       -.17376E-05** at limit **
   6  norm          .10000E-03    1.1749       -.10424E-07** at limit **
   7  Prefactor     .10000E-03    8.4714        .72837E-06** at limit **
   8  Prefactor     .10000E-03    1.5580       -.10687E-07** at limit **
   9  Prefactor     5.2908        7.7870        .50466E-06   -.65013E-03
  10  Prefactor     2.4443        31.424        .47030E-05   -.31234E-03
  11  norm          4.6420        1.7953       -.36616E-07   -.49884E-04
  12  Prefactor     .10000E-03    6.7159       -.29632E-05** at limit **
  13  Prefactor     .10000E-03    9.5550       -.49044E-06** at limit **
  14  Prefactor     .10000E-03    5.5024       -.37922E-07** at limit **
  15  norm          .10000E-03    2.5612        .11916E-08** at limit **
  16  norm          .10000E-03    3.8279       -.13583E-08** at limit **
  17  Prefactor     .10000E-03    3.9394        .35583E-08** at limit **
  18  norm          1.2163        2.0112        .30269E-07   -.14611E-03
  19  Prefactor     9.1674        13.452        .16046E-06   -.10640E-03
  20  Prefactor     .10000E-03    19.973        .55023E-05** at limit **
  21  Prefactor     30.081        59.614       -.33693E-05   -.89524E-05
  22  Prefactor     .10009E-03    5.5099       -.71755E-06** at limit **
  23  Normalizat    1.2367        .21078        .15942E-06    .10671E-04
  24  Prefactor     .77927        .89674E-01   -.91114E-07    .61908E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 1.9972
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.29084
  Prefactor  = 2.44431
  norm       = 4.64199
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21628
  Prefactor  = 9.16743
  Prefactor  = 0.000100004
  Prefactor  = 30.0811
  Prefactor  = 0.000100091
  Normalizat = 1.2367
  Prefactor  = 0.779266
 **********
 **   18 **HESSE 
 **********

 FCN=   6855.029     FROM HESSE     STATUS=OK           393 CALLS     3110 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    108.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9972        1.2961        .72889E-04   -1.5425    
   3  Prefactor     .10000E-03    44.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1822        .87628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5594        .10092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2908        8.2913        .87367E-03   -1.5248    
  10  Prefactor     2.4443        61.478        .13093E-02   -1.5395    
  11  norm          4.6420        1.7983        .65901E-04   -1.5277    
  12  Prefactor     .10000E-03    6.8297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.6918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5851        .12937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8319        .15820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9425        .16048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2163        1.9694        .14661E-03   -1.5487    
  19  Prefactor     9.1674        13.490        .66186E-03   -1.5102    
  20  Prefactor     .10000E-03    20.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.081        54.931        .73042E-04   -1.4610    
  22  Prefactor     .10009E-03    23.711        .33697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2367        .24520        .31081E-03   -.85476    
  24  Prefactor     .77927        .10521        .16500E-03   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27153e-09
Minuit parameter uncertainties:
  1  0.000723651
  2  1.2961
  3  0.000299599
  4  0.0001295
  5  0.000165085
  6  2.20676e-06
  7  4.6644e-05
  8  9.53955e-07
  9  8.29305
  10  24.5447
  11  1.79828
  12  0.000175796
  13  3.43484e-05
  14  2.11438e-06
  15  3.1817e-07
  16  9.25539e-08
  17  8.43754e-08
  18  1.96951
  19  13.4946
  20  0.000558812
  21  55.023
  22  0.00293417
  23  0.24543
  24  0.105239
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  4.642e+00  1.798e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
374         beta:  9.511e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  7.793e-01  1.052e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.237e+00  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.11
Ra Dec: 347.768 34.422
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 4.97e-08
Energy Flux (Fixed Index): 4.56e-05 +/- 1.77e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6854.92202891
delta logL = 0.106991444052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6854.91928729
delta logL = 0.109733062075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6782       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0653       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6854.919     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      203 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6782        2.2441        .46515E-02    .16564E-03
   2  alpha         2.0653        .41275        .27024        .17675E-04
   3  Normalizat    1.2535        .20771        .69862E-01   -.89226E-05
   4  Prefactor     .77523        .89435E-01    .43394E-01    .33788E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.67817
  alpha      = 2.0653
  Normalizat = 1.25353
  Prefactor  = 0.775231
 **********
 **   18 **HESSE 
 **********

 FCN=   6854.919     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6782        1.8583        .68235E-04   -1.5275    
   2  alpha         2.0653        .36877        .11062E-01   -.17477    
   3  Normalizat    1.2535        .24331        .30911E-03   -.84964    
   4  Prefactor     .77523        .10443        .16541E-03   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98984e-11
Minuit parameter uncertainties:
  1  1.85829
  2  0.370164
  3  0.243528
  4  0.104459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680448': 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) = 6854.91928729
delta logL = 0.10973306213

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  4.678e+00  1.858e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.065e+00  3.702e-01  0.000e+00  5.000e+00 ( 1.000e+00)
374         beta:  9.511e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  7.752e-01  1.045e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.254e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.31
Ra Dec: 347.768 34.422
Photon Index (Free Index): 2.07 +/- 0.37
Photon Flux (Free Index): 1.13e-07 +/- 5.54e-08
Energy Flux (Free Index): 5.02e-05 +/- 2.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/680448/cmap_HighResolution_242438401_242697601_4FGL_J2311.0+3425_daily_bin12.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='5.02e-05', photon_flux_error='4.97e-08', dlogl='1.10e-01', energy_flux='4.56e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-29 07:54:31.050921', photon_index_error2='0.37', photon_index2='2.07', ts='19.11', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.31e-05', EG='1.24', time_epoch_completed='1632927271.05', return_code='0', job_id='680448', GAL2='0.78', EG2='1.25', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='5.54e-08', ts2='19.31', photon_index='2.24' WHERE bin_id='12' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:54:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 680448: <4FGL_J2311.0+3425_daily_bin12> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin12> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 07:40:33 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:40:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 07:40:35 2021
Terminated at Wed Sep 29 07:54:31 2021
Results reported at Wed Sep 29 07:54:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin12 347.768 34.4223 242438401 242697601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.0+3425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   626.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

