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


Performing analysis on: 4FGL_J2311.0+3425_daily_bin104
RA = 347.768, Dec = 34.4223
tmin = 266284801, tmax = 266544001
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='680611', job_status='RUN', time_executed='2021-09-29 07:41:00.623873', time_epoch_executed='1632926460.62' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680611/ft1_4FGL_J2311.0+3425_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680611/ft2_4FGL_J2311.0+3425_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680611/ft1_4FGL_J2311.0+3425_daily_bin104.fits outfile=/scratch/kocevski/680611/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin104.fits ra=347.768 dec=34.4223 rad=12.0 tmin=266284801.0 tmax=266544001.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.39
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680611/ft1_filtered_4FGL_J2311.0+3425_daily_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/680611/ft2_4FGL_J2311.0+3425_daily_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/680611/ltcube_266284801_266544001_4FGL_J2311.0+3425_daily_bin104.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/680611/ft2_4FGL_J2311.0+3425_daily_bin104.fits
.....................!
real 13.12
user 12.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680611/ft1_filtered_4FGL_J2311.0+3425_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/680611/ft2_4FGL_J2311.0+3425_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/680611/ltcube_266284801_266544001_4FGL_J2311.0+3425_daily_bin104.fits outfile=/scratch/kocevski/680611/expmap_266284801_266544001_4FGL_J2311.0+3425_daily_bin104.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/680611/ltcube_266284801_266544001_4FGL_J2311.0+3425_daily_bin104.fits
.....................!
real 191.13
user 186.67
sys 4.15

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/680611/ft1_filtered_4FGL_J2311.0+3425_daily_bin104.fits scfile=/scratch/kocevski/680611/ft2_4FGL_J2311.0+3425_daily_bin104.fits outfile=/scratch/kocevski/680611/cmap_266284801_266544001_4FGL_J2311.0+3425_daily_bin104.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680611/ft1_filtered_4FGL_J2311.0+3425_daily_bin104.fits scfile=/scratch/kocevski/680611/ft2_4FGL_J2311.0+3425_daily_bin104.fits outfile=/scratch/kocevski/680611/cmap_HighResolution_266284801_266544001_4FGL_J2311.0+3425_daily_bin104.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9473       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9310       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.002       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .81558       1.0000         .10000E-03   10000.    
     6 'norm      '    .12010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4382       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .79194       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4014       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0553       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.099       1.0000         .10000E-03   10000.    
    18 'norm      '    .86050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.080       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73727       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98037       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.

 FCN=   8743.574     FROM MIGRAD    STATUS=CONVERGED    969 CALLS     3211 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9477        12.278        .14223E-03   -.23980E-05
   2  norm          1.9308        .95976        .60980E-04    .24236E-04
   3  Prefactor     36.933        77.044        .65886E-04    .91797E-05
   4  Prefactor     3.5615        6.3987        .21424E-03    .36402E-04
   5  Prefactor     .83595        52.364        .52014E-02    .12462E-03
   6  norm          .10000E-03    11.001        .23989E-02** at limit **
   7  Prefactor     .10000E-03    5.5785        .18142E-02** at limit **
   8  Prefactor     .10000E-03    4.7785        .18142E-02** at limit **
   9  Prefactor     9.4376        11.736        .65224E-03   -.25588E-04
  10  Prefactor     .10000E-03    8.7546        .18142E-02** at limit **
  11  norm          .79203        .76432        .78397E-04    .15284E-03
  12  Prefactor     .10000E-03    29.955        .18142E-02** at limit **
  13  Prefactor     18.430        11.629        .93297E-04   -.36069E-04
  14  Prefactor     .10000E-03    11.962        .18142E-02** at limit **
  15  norm          4.4020        3.9496        .16426E-03   -.52601E-05
  16  norm          6.0553        6.0685        .16316E-03   -.45986E-05
  17  Prefactor     11.096        17.017        .12025E-03   -.10210E-04
  18  norm          .10000E-03    1.0765        .33532E-01** at limit **
  19  Prefactor     .10000E-03    8.5124        .18142E-02** at limit **
  20  Prefactor     .10000E-03    18.953        .18142E-02** at limit **
  21  Prefactor     56.074        45.797        .53567E-04   -.78102E-05
  22  Prefactor     .10000E-03    2.2151        .13571E-02** at limit **
  23  Normalizat    .73730        .22237        .38678E-03   -.63254E-04
  24  Prefactor     .98038        .98794E-01    .15375E-03   -.16640E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.94771
  norm       = 1.93084
  Prefactor  = 36.9326
  Prefactor  = 3.56147
  Prefactor  = 0.835955
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.43761
  Prefactor  = 0.0001
  norm       = 0.792034
  Prefactor  = 0.0001
  Prefactor  = 18.4302
  Prefactor  = 0.0001
  norm       = 4.40202
  norm       = 6.05526
  Prefactor  = 11.0956
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.0739
  Prefactor  = 0.0001
  Normalizat = 0.737297
  Prefactor  = 0.980379
 **********
 **   18 **HESSE 
 **********

 FCN=   8743.574     FROM HESSE     STATUS=OK           385 CALLS     3596 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9477        12.279        .56892E-05   -1.5144    
   2  norm          1.9308        .95450        .24392E-05   -1.5430    
   3  Prefactor     36.933        77.050        .13177E-04   -1.4492    
   4  Prefactor     3.5615        6.3760        .85697E-05   -1.5331    
   5  Prefactor     .83595        52.348        .20806E-03   -1.5525    
   6  norm          .10000E-03    11.032        .47978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4376        11.735        .26089E-04   -1.5093    
  10  Prefactor     .10000E-03    8.7550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .79203        .76429        .31359E-05   -1.5530    
  12  Prefactor     .10000E-03    29.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.430        11.629        .37319E-05   -1.4849    
  14  Prefactor     .10000E-03    11.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4020        3.9493        .65703E-05   -1.5288    
  16  norm          6.0553        6.0685        .65266E-05   -1.5216    
  17  Prefactor     11.096        17.014        .48102E-05   -1.5042    
  18  norm          .10000E-03    1.0531        .34352E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.955        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     56.074        45.795        .10713E-04   -1.4209    
  22  Prefactor     .10000E-03    2.2152        .27141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .73730        .22241        .15471E-04   -1.0244    
  24  Prefactor     .98038        .98834E-01    .30750E-04   -.93386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28468e-10
Minuit parameter uncertainties:
  1  12.2824
  2  0.95451
  3  77.2591
  4  6.37724
  5  13.2417
  6  5.54903e-05
  7  1.02135e-05
  8  4.04978e-06
  9  11.7381
  10  2.42014e-06
  11  0.764298
  12  2.4392e-05
  13  11.6301
  14  1.09373e-05
  15  3.94953
  16  6.06909
  17  17.0216
  18  3.02711e-06
  19  3.38617e-06
  20  8.70851e-06
  21  45.8235
  22  4.22758e-06
  23  0.222686
  24  0.098852
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  7.920e-01  7.643e-01  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.804e-01  9.885e-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:  7.373e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 347.768 34.422
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 7.78e-06 +/- 7.51e-06

TS (Fixed Index): 3.03
Ra Dec: 347.768 34.422
Photon Flux Upper Limit: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680611/likelihoodResults_266284801_266544001_4FGL_J2311.0+3425_daily_bin104.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) = 8741.98800245
delta logL = 1.58557458481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8741.98401104
delta logL = 1.58956598887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16606       1.0000         .10000E-03   10000.    
     2 'alpha     '    .79233       1.0000          .0000       5.0000    
     3 'Normalizat'    .75174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97891       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=   8741.984     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      224 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16594        .18567        .84701E-02   -.15081E-02
   2  alpha         .79214        .42767        .42163       -.59422E-04
   3  Normalizat    .75174        .18883        .86540E-01    .13333E-04
   4  Prefactor     .97891        .86066E-01    .34817E-01    .25420E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.165936
  alpha      = 0.792143
  Normalizat = 0.751735
  Prefactor  = 0.978909
 **********
 **   18 **HESSE 
 **********

 FCN=   8741.984     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16594        .38040        .35453E-03   -1.5627    
   2  alpha         .79214        .81843        .18388E-02   -.75206    
   3  Normalizat    .75174        .21131        .38328E-03   -1.0188    
   4  Prefactor     .97891        .96598E-01    .15385E-03   -.93436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98654e-11
Minuit parameter uncertainties:
  1  0.380402
  2  0.848667
  3  0.211544
  4  0.096615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680611': 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) = 8741.98401097
delta logL = 1.5895660636

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  1.659e-01  3.804e-01  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  7.921e-01  8.487e-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.789e-01  9.662e-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:  7.517e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 347.768 34.422
Photon Index (Free Index): 0.79 +/- 0.85
Photon Flux (Free Index): 4.64e-09 +/- 6.12e-09
Energy Flux (Free Index): 3.69e-05 +/- 5.66e-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/680611/cmap_HighResolution_266284801_266544001_4FGL_J2311.0+3425_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='3.69e-05', photon_flux_error='2.11e-08', dlogl='1.59e+00', energy_flux='7.78e-06', photon_flux2='4.64e-09', job_status='DONE', time_completed='2021-09-29 07:55:10.775420', photon_index_error2='0.85', photon_index2='0.79', ts='3.03', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='5.66e-05', EG='0.74', time_epoch_completed='1632927310.78', return_code='0', job_id='680611', GAL2='0.98', EG2='0.75', return_code2='0', energy_flux_error='7.51e-06', photon_flux_error2='6.12e-09', ts2='6.21', photon_index='2.24' WHERE bin_id='104' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:55:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 680611: <4FGL_J2311.0+3425_daily_bin104> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin104> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 07:40:45 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:40:48 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:48 2021
Terminated at Wed Sep 29 07:55:11 2021
Results reported at Wed Sep 29 07:55:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin104 347.768 34.4223 266284801 266544001 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 :                                   848.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            866 sec.

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

