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


Performing analysis on: 4FGL_J2311.0+3425_daily_bin1603
RA = 347.768, Dec = 34.4223
tmin = 654825601, tmax = 655084801
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='917489', job_status='RUN', time_executed='2021-10-05 00:15:53.067219', time_epoch_executed='1633418153.07' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917489/ft1_4FGL_J2311.0+3425_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917489/ft2_4FGL_J2311.0+3425_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917489/ft1_4FGL_J2311.0+3425_daily_bin1603.fits outfile=/scratch/kocevski/917489/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1603.fits ra=347.768 dec=34.4223 rad=12.0 tmin=654825601.0 tmax=655084801.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 3.00
user 2.80
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917489/ft2_4FGL_J2311.0+3425_daily_bin1603.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/917489/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1603.fits evtable="EVENTS" outfile="/scratch/kocevski/917489/ft1_filtered_4FGL_J2311.0+3425_daily_bin1603.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/917489/ft1_filtered_4FGL_J2311.0+3425_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/917489/ft2_4FGL_J2311.0+3425_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/917489/ltcube_654825601_655084801_4FGL_J2311.0+3425_daily_bin1603.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/917489/ft2_4FGL_J2311.0+3425_daily_bin1603.fits
.....................!
real 12.17
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917489/ft1_filtered_4FGL_J2311.0+3425_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917489/ft2_4FGL_J2311.0+3425_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/917489/ltcube_654825601_655084801_4FGL_J2311.0+3425_daily_bin1603.fits outfile=/scratch/kocevski/917489/expmap_654825601_655084801_4FGL_J2311.0+3425_daily_bin1603.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/917489/ltcube_654825601_655084801_4FGL_J2311.0+3425_daily_bin1603.fits
.....................!
real 189.66
user 185.36
sys 3.98

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/917489/ft1_filtered_4FGL_J2311.0+3425_daily_bin1603.fits scfile=/scratch/kocevski/917489/ft2_4FGL_J2311.0+3425_daily_bin1603.fits outfile=/scratch/kocevski/917489/cmap_654825601_655084801_4FGL_J2311.0+3425_daily_bin1603.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917489/ft1_filtered_4FGL_J2311.0+3425_daily_bin1603.fits scfile=/scratch/kocevski/917489/ft2_4FGL_J2311.0+3425_daily_bin1603.fits outfile=/scratch/kocevski/917489/cmap_HighResolution_654825601_655084801_4FGL_J2311.0+3425_daily_bin1603.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10284E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.746       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.092       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.967       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    86.775       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15859E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80822       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96755       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=   2346.377     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     3029 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    200.45       -.12912E-03** at limit **
   2  norm          3.2022        2.3238        .15501E-06   -.21422E-04
   3  Prefactor     44.802        148.79        .78165E-04    .66335E-06
   4  Prefactor     .10000E-03    4.6897       -.40422E-07** at limit **
   5  Prefactor     .10000E-03    39.806       -.11027E-04** at limit **
   6  norm          .10000E-03    2.5269       -.27408E-07** at limit **
   7  Prefactor     27.084        27.622        .43630E-06    .12435E-05
   8  Prefactor     .10000E-03    4.8985       -.27432E-09** at limit **
   9  Prefactor     .10000E-03    33.136        .33406E-04** at limit **
  10  Prefactor     46.952        45.393       -.86678E-05    .56346E-05
  11  norm          .10000E-03    1.9217        .85361E-07** at limit **
  12  Prefactor     86.795        98.886        .18872E-04   -.14158E-03
  13  Prefactor     .10000E-03    25.551       -.61738E-05** at limit **
  14  Prefactor     .10000E-03    127.04        .15775E-03** at limit **
  15  norm          .10000E-03    10.049        .66985E-08** at limit **
  16  norm          .10000E-03    13.900        .51351E-07** at limit **
  17  Prefactor     .10000E-03    42.367       -.17914E-04** at limit **
  18  norm          3.3981        7.8844       -.60064E-05   -.16979E-03
  19  Prefactor     .10000E-03    51.769        .13045E-05** at limit **
  20  Prefactor     .10000E-03    172.56       -.11676E-04** at limit **
  21  Prefactor     .10000E-03    192.02       -.93718E-04** at limit **
  22  Prefactor     .10000E-03    40.587       -.12934E-04** at limit **
  23  Normalizat    .80927        .46463       -.82840E-05   -.70326E-04
  24  Prefactor     .96717        .16958       -.48411E-06   -.91750E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.20221
  Prefactor  = 44.8019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.0837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.9517
  norm       = 0.0001
  Prefactor  = 86.7952
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.3981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.809268
  Prefactor  = 0.967172
 **********
 **   18 **HESSE 
 **********

 FCN=   2346.377     FROM HESSE     STATUS=OK           383 CALLS     3412 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    200.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2022        2.3250        .59695E-04   -1.5350    
   3  Prefactor     44.802        149.19        .59936E-04   -1.4368    
   4  Prefactor     .10000E-03    4.7084        .10243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5397        .75185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.084        27.627        .76967E-04   -1.4667    
   8  Prefactor     .10000E-03    4.9086        .10470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.952        45.394        .58507E-04   -1.4336    
  11  norm          .10000E-03    1.9424        .65540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     86.795        98.859        .43128E-04   -1.3842    
  13  Prefactor     .10000E-03    25.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    126.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.071        .14998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.904        .17641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3981        7.9078        .19805E-03   -1.5339    
  19  Prefactor     .10000E-03    51.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    172.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    192.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    40.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80927        .53007        .46172E-03   -.99726    
  24  Prefactor     .96717        .19627        .15709E-03   -.93832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53678e-10
Minuit parameter uncertainties:
  1  9.41355e-05
  2  2.32504
  3  150.461
  4  1.05209e-06
  5  5.72268e-05
  6  3.22609e-07
  7  27.6404
  8  7.63124e-06
  9  8.13805e-05
  10  45.4272
  11  1.25724e-05
  12  99.0471
  13  0.000244691
  14  0.000850352
  15  6.54785e-07
  16  5.84012e-05
  17  2.58765e-05
  18  7.91018
  19  2.94106e-05
  20  2.4492e-05
  21  6.49111e-05
  22  4.72296e-05
  23  0.533508
  24  0.196416
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  1.000e-04  1.257e-05  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.672e-01  1.964e-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:  8.093e-01  5.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 347.768 34.422
Photon Flux Upper Limit: 2.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917489/likelihoodResults_654825601_655084801_4FGL_J2311.0+3425_daily_bin1603.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) = 2346.3796292
delta logL = -0.00243023300527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2346.37717958
delta logL = 1.93821824723e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1318       1.0000          .0000       5.0000    
     3 'Normalizat'    .80927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96717       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2346.377     FROM MIGRAD    STATUS=FAILED        97 CALLS      303 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10061E-03    14.288        .12029E-02** at limit **
   2  alpha         3.2342        3.6856        .17180E-01   -.69481E-04
   3  Normalizat    .80927        .49951        .46173E-03    .45182E-04
   4  Prefactor     .96717        .18759        .15709E-03    .21493E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2346.377     FROM SIMPLEX   STATUS=UNCHANGED    116 CALLS      419 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10061E-03    14.288        .49661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2342        3.6856        .38139E-03    .29808    
   3  Normalizat    .80927        .49951        .13507E-03   -.99726    
   4  Prefactor     .96717        .18759        .51467E-04   -.93832    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2346.191     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      531 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21435        .39016        .24059E-02    .69567E-03
   2  alpha         5.0000        4.8121        .34359E-01** at limit **
   3  Normalizat    .66950        .55857        .18469E-03    .52630E-05
   4  Prefactor     .99862        .19854        .31417E-04    .54497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.214351
  alpha      = 5
  Normalizat = 0.669498
  Prefactor  = 0.998625
 **********
 **   18 **HESSE 
 **********

 FCN=   2346.191     FROM HESSE     STATUS=OK            25 CALLS      556 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21435        .38202        .35553E-04   -1.5615    
   2  alpha         5.0000        4.8032        .68719E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .66950        .55466        .73876E-05   -1.0511    
   4  Prefactor     .99862        .19807        .62834E-05   -.92775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42748e-12
Minuit parameter uncertainties:
  1  0.382026
  2  1.01292e-05
  3  0.559389
  4  0.198211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917489': 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) = 2346.19110082
delta logL = 0.186098144964

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.144e-01  3.820e-01  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  5.000e+00  1.013e-05  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.986e-01  1.982e-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:  6.695e-01  5.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 347.768 34.422

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/917489/cmap_HighResolution_654825601_655084801_4FGL_J2311.0+3425_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-05', job_status='DONE', photon_flux_upper_limit='2.20e-07', time_completed='2021-10-05 00:23:19.167623', job_id='917489', GAL2='1.00', fit_tolerance='1e-08', EG2='0.67', EG='0.81', time_epoch_completed='1633418599.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.86e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1603' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:23:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 917489: <4FGL_J2311.0+3425_daily_bin1603> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:15:38 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:15:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:15:40 2021
Terminated at Tue Oct  5 00:23:19 2021
Results reported at Tue Oct  5 00:23:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin1603 347.768 34.4223 654825601 655084801 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 :                                   449.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   459 sec.
    Turnaround time :                            461 sec.

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

