/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 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7439
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2311.0+3425_daily_bin212
RA = 347.768, Dec = 34.4223
tmin = 294278401, tmax = 294537601
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='682010', job_status='RUN', time_executed='2021-09-29 07:45:30.832955', time_epoch_executed='1632926730.83' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='212'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682010/ft1_4FGL_J2311.0+3425_daily_bin212.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682010/ft2_4FGL_J2311.0+3425_daily_bin212.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682010/ft1_4FGL_J2311.0+3425_daily_bin212.fits outfile=/scratch/kocevski/682010/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin212.fits ra=347.768 dec=34.4223 rad=12.0 tmin=294278401.0 tmax=294537601.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 2.38
user 2.19
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682010/ft2_4FGL_J2311.0+3425_daily_bin212.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/682010/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin212.fits evtable="EVENTS" outfile="/scratch/kocevski/682010/ft1_filtered_4FGL_J2311.0+3425_daily_bin212.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682010/ft1_filtered_4FGL_J2311.0+3425_daily_bin212.fits" evtable="EVENTS" scfile=/scratch/kocevski/682010/ft2_4FGL_J2311.0+3425_daily_bin212.fits sctable="SC_DATA" outfile=/scratch/kocevski/682010/ltcube_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.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/682010/ft2_4FGL_J2311.0+3425_daily_bin212.fits
.....................!
real 12.24
user 11.82
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682010/ft1_filtered_4FGL_J2311.0+3425_daily_bin212.fits evtable="EVENTS" scfile=/scratch/kocevski/682010/ft2_4FGL_J2311.0+3425_daily_bin212.fits sctable="SC_DATA" expcube=/scratch/kocevski/682010/ltcube_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.fits outfile=/scratch/kocevski/682010/expmap_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.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/682010/ltcube_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.fits
.....................!
real 192.13
user 186.79
sys 4.87

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/682010/ft1_filtered_4FGL_J2311.0+3425_daily_bin212.fits scfile=/scratch/kocevski/682010/ft2_4FGL_J2311.0+3425_daily_bin212.fits outfile=/scratch/kocevski/682010/cmap_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682010/ft1_filtered_4FGL_J2311.0+3425_daily_bin212.fits scfile=/scratch/kocevski/682010/ft2_4FGL_J2311.0+3425_daily_bin212.fits outfile=/scratch/kocevski/682010/cmap_HighResolution_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682010/ft1_filtered_4FGL_J2311.0+3425_daily_bin212.fits evtable="EVENTS" scfile=/scratch/kocevski/682010/ft2_4FGL_J2311.0+3425_daily_bin212.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682010/Model_4FGL_J2311.0+3425_daily_bin212.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/682010/ft1_filtered_4FGL_J2311.0+3425_daily_bin212.fits.....................!
real 112.58
user 111.16
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682010/ft1_filtered_4FGL_J2311.0+3425_daily_bin212.fits', '/scratch/kocevski/682010/ft2_4FGL_J2311.0+3425_daily_bin212.fits', expMap='/scratch/kocevski/682010/expmap_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.fits', expCube='/scratch/kocevski/682010/ltcube_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682010/Model_4FGL_J2311.0+3425_daily_bin212.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/682010/ft1_filtered_4FGL_J2311.0+3425_daily_bin212.fits
Spacecraft file(s): /scratch/kocevski/682010/ft2_4FGL_J2311.0+3425_daily_bin212.fits
Exposure map: /scratch/kocevski/682010/expmap_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.fits
Exposure cube: /scratch/kocevski/682010/ltcube_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682010/Model_4FGL_J2311.0+3425_daily_bin212.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) = 10201.4377052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .65528       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10475E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7273       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7153       1.0000         .10000E-03   10000.    
    11 'norm      '    9.1320       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8419       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9103       1.0000         .10000E-03   10000.    
    15 'norm      '    8.3959       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2109       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11097E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.348       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6626       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89829       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97724       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=   10201.39     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2337 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.505       -.82398E-05** at limit **
   2  norm          .65517        .66180       -.49112E-07   -.36731E-03
   3  Prefactor     .10000E-03    31.192       -.78161E-05** at limit **
   4  Prefactor     .10000E-03    2.9606        .16393E-06** at limit **
   5  Prefactor     .10000E-03    12.519        .38072E-05** at limit **
   6  norm          .10000E-03    1.7176        .38467E-06** at limit **
   7  Prefactor     .10000E-03    6.0160       -.16221E-06** at limit **
   8  Prefactor     4.7290        4.4343       -.27811E-05   -.31484E-03
   9  Prefactor     17.748        12.750       -.49611E-06   -.23450E-04
  10  Prefactor     1.6873        31.050       -.12540E-04   -.12797E-03
  11  norm          9.1324        2.0277       -.41800E-07    .89365E-04
  12  Prefactor     24.255        20.400        .53308E-06   -.30441E-05
  13  Prefactor     2.8447        9.5317       -.75893E-06   -.21705E-03
  14  Prefactor     8.9098        10.246       -.98488E-07   -.73045E-05
  15  norm          8.3913        5.3725        .69134E-06   -.21207E-03
  16  norm          9.2105        7.5645       -.82411E-07   -.24101E-04
  17  Prefactor     .10000E-03    12.813        .72964E-06** at limit **
  18  norm          .10000E-03    1.0269       -.31139E-07** at limit **
  19  Prefactor     .10000E-03    19.374       -.77189E-06** at limit **
  20  Prefactor     18.339        28.425       -.12743E-04   -.13705E-06
  21  Prefactor     .10000E-03    24.584        .11857E-04** at limit **
  22  Prefactor     8.6622        6.0819       -.12515E-06   -.58447E-05
  23  Normalizat    .89810        .19456        .18521E-05   -.27137E-04
  24  Prefactor     .97734        .82929E-01    .27043E-06    .19685E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.655174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.72903
  Prefactor  = 17.7478
  Prefactor  = 1.68727
  norm       = 9.13238
  Prefactor  = 24.2554
  Prefactor  = 2.84468
  Prefactor  = 8.90978
  norm       = 8.39134
  norm       = 9.21051
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3389
  Prefactor  = 0.0001
  Prefactor  = 8.66218
  Normalizat = 0.8981
  Prefactor  = 0.977339
 **********
 **   18 **HESSE 
 **********

 FCN=   10201.39     FROM HESSE     STATUS=OK           403 CALLS     2740 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .65517        .65489        .79929E-04   -1.5546    
   3  Prefactor     .10000E-03    31.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9985        .16942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.2367        .25382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7290        4.4203        .18507E-03   -1.5273    
   9  Prefactor     17.748        12.749        .95063E-04   -1.4865    
  10  Prefactor     1.6873        32.072        .32087E-03   -1.5448    
  11  norm          9.1324        2.0276        .63910E-04   -1.5103    
  12  Prefactor     24.255        20.419        .81337E-04   -1.4723    
  13  Prefactor     2.8447        9.5165        .24120E-03   -1.5371    
  14  Prefactor     8.9098        10.244        .13428E-03   -1.5111    
  15  norm          8.3913        5.3524        .13835E-03   -1.5129    
  16  norm          9.2105        7.5653        .13205E-03   -1.5101    
  17  Prefactor     .10000E-03    12.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0717        .19974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.339        28.397        .93503E-04   -1.4851    
  21  Prefactor     .10000E-03    24.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.6622        6.0786        .13619E-03   -1.5119    
  23  Normalizat    .89810        .22300        .38398E-03   -.96527    
  24  Prefactor     .97734        .95801E-01    .16385E-03   -.93489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35374e-10
Minuit parameter uncertainties:
  1  1.14863e-05
  2  0.654901
  3  4.02656e-06
  4  5.38383e-06
  5  2.6686e-05
  6  8.94356e-05
  7  8.36668e-06
  8  4.42061
  9  12.7506
  10  14.7211
  11  2.02758
  12  20.4246
  13  9.52159
  14  10.2463
  15  5.35273
  16  7.56611
  17  6.97155e-05
  18  5.14292e-07
  19  1.86682e-05
  20  28.4181
  21  4.59671e-06
  22  6.07899
  23  0.223229
  24  0.0958173
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  9.132e+00  2.028e+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:  9.773e-01  9.582e-02  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:  8.981e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 49.67
Ra Dec: 347.768 34.422
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.53e-07 +/- 5.60e-08
Energy Flux (Fixed Index): 8.97e-05 +/- 1.99e-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) = 10201.1625242
delta logL = 0.225041280835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10201.1023525
delta logL = 0.285212946557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6437       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4187       1.0000          .0000       5.0000    
     3 'Normalizat'    .86563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98630       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=   10201.10     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6435        10.632        .34086E-02    .12130E-03
   2  alpha         2.4187        1.1700        .18728        .48296E-04
   3  Normalizat    .86561        .21498        .88089E-01    .40677E-04
   4  Prefactor     .98631        .92841E-01    .46096E-01   -.33559E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.64353
  alpha      = 2.41871
  Normalizat = 0.865613
  Prefactor  = 0.986309
 **********
 **   18 **HESSE 
 **********

 FCN=   10201.10     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6435        2.0724        .60454E-04   -1.5120    
   2  alpha         2.4187        .24393        .80146E-02   -.32522E-01
   3  Normalizat    .86561        .21801        .39011E-03   -.97679    
   4  Prefactor     .98631        .95445E-01    .16315E-03   -.93187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73006e-13
Minuit parameter uncertainties:
  1  2.07243
  2  0.244319
  3  0.218233
  4  0.095461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682010': 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) = 10201.1023525
delta logL = 0.285212959325

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  8.644e+00  2.072e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.419e+00  2.443e-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:  9.863e-01  9.546e-02  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:  8.656e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 50.36
Ra Dec: 347.768 34.422
Photon Index (Free Index): 2.42 +/- 0.24
Photon Flux (Free Index): 2.79e-07 +/- 6.75e-08
Energy Flux (Free Index): 8.26e-05 +/- 1.98e-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/682010/cmap_HighResolution_294278401_294537601_4FGL_J2311.0+3425_daily_bin212.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.53e-07', energy_flux2='8.26e-05', photon_flux_error='5.60e-08', dlogl='2.85e-01', energy_flux='8.97e-05', photon_flux2='2.79e-07', job_status='DONE', time_completed='2021-09-29 07:58:01.895054', photon_index_error2='0.24', photon_index2='2.42', ts='49.67', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='0.90', time_epoch_completed='1632927481.9', return_code='0', job_id='682010', GAL2='0.99', EG2='0.87', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='6.75e-08', ts2='50.36', photon_index='2.24' WHERE bin_id='212' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:58:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 682010: <4FGL_J2311.0+3425_daily_bin212> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin212> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:45:18 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:45:21 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:45:21 2021
Terminated at Wed Sep 29 07:58:02 2021
Results reported at Wed Sep 29 07:58:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin212 347.768 34.4223 294278401 294537601 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 :                                   748.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             356.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            764 sec.

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

