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


Performing analysis on: 4FGL_J2311.0+3425_daily_bin1304
RA = 347.768, Dec = 34.4223
tmin = 577324801, tmax = 577584001
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='686937', job_status='RUN', time_executed='2021-09-29 08:03:41.168586', time_epoch_executed='1632927821.17' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/686937

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/686937/ft1_4FGL_J2311.0+3425_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/686937/ft2_4FGL_J2311.0+3425_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/686937/ft1_4FGL_J2311.0+3425_daily_bin1304.fits outfile=/scratch/kocevski/686937/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1304.fits ra=347.768 dec=34.4223 rad=12.0 tmin=577324801.0 tmax=577584001.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.08
user 2.89
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/686937/ft2_4FGL_J2311.0+3425_daily_bin1304.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/686937/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1304.fits evtable="EVENTS" outfile="/scratch/kocevski/686937/ft1_filtered_4FGL_J2311.0+3425_daily_bin1304.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/686937/ft1_filtered_4FGL_J2311.0+3425_daily_bin1304.fits" evtable="EVENTS" scfile=/scratch/kocevski/686937/ft2_4FGL_J2311.0+3425_daily_bin1304.fits sctable="SC_DATA" outfile=/scratch/kocevski/686937/ltcube_577324801_577584001_4FGL_J2311.0+3425_daily_bin1304.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/686937/ft2_4FGL_J2311.0+3425_daily_bin1304.fits
.....................!
real 12.39
user 12.07
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/686937/ft1_filtered_4FGL_J2311.0+3425_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/686937/ft2_4FGL_J2311.0+3425_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/686937/ltcube_577324801_577584001_4FGL_J2311.0+3425_daily_bin1304.fits outfile=/scratch/kocevski/686937/expmap_577324801_577584001_4FGL_J2311.0+3425_daily_bin1304.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/686937/ltcube_577324801_577584001_4FGL_J2311.0+3425_daily_bin1304.fits
.....................!
real 189.07
user 184.70
sys 4.06

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/686937/ft1_filtered_4FGL_J2311.0+3425_daily_bin1304.fits scfile=/scratch/kocevski/686937/ft2_4FGL_J2311.0+3425_daily_bin1304.fits outfile=/scratch/kocevski/686937/cmap_577324801_577584001_4FGL_J2311.0+3425_daily_bin1304.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/686937/ft1_filtered_4FGL_J2311.0+3425_daily_bin1304.fits scfile=/scratch/kocevski/686937/ft2_4FGL_J2311.0+3425_daily_bin1304.fits outfile=/scratch/kocevski/686937/cmap_HighResolution_577324801_577584001_4FGL_J2311.0+3425_daily_bin1304.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.7400       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4937       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1135       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.957       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2567       1.0000         .10000E-03   10000.    
    11 'norm      '    .31948       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.987       1.0000         .10000E-03   10000.    
    15 'norm      '    .11301E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3662       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.649       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.787       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.731       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6433       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71315       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=   7214.670     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2708 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.666       -.36520E-06** at limit **
   2  norm          6.7405        1.7289       -.54691E-07   -.30513E-04
   3  Prefactor     .10000E-03    71.630        .67265E-06** at limit **
   4  Prefactor     2.4935        10.182        .30196E-05    .17129E-03
   5  Prefactor     .10000E-03    14.592        .40538E-06** at limit **
   6  norm          3.1129        5.5735       -.73549E-06   -.24612E-03
   7  Prefactor     .10000E-03    6.9113        .91761E-07** at limit **
   8  Prefactor     .10000E-03    4.7657        .30382E-06** at limit **
   9  Prefactor     23.959        14.800       -.15602E-06   -.14692E-04
  10  Prefactor     9.2563        13.533        .29112E-06   -.99453E-06
  11  norm          .31963        1.3088        .17097E-05    .42260E-03
  12  Prefactor     .10000E-03    11.940        .26988E-06** at limit **
  13  Prefactor     .10000E-03    11.764        .59477E-06** at limit **
  14  Prefactor     22.991        22.895       -.16576E-06   -.10431E-04
  15  norm          .10000E-03    7.0819        .12989E-06** at limit **
  16  norm          .10000E-03    4.4999        .10600E-06** at limit **
  17  Prefactor     .10000E-03    5.7861       -.25712E-06** at limit **
  18  norm          1.3664        2.3231        .42654E-06    .11288E-03
  19  Prefactor     10.650        31.946        .10778E-06   -.30031E-04
  20  Prefactor     22.638        85.279       -.94583E-05   -.96578E-04
  21  Prefactor     .10000E-03    25.978       -.86828E-07** at limit **
  22  Prefactor     19.731        12.417       -.13980E-06   -.24298E-04
  23  Normalizat    1.6425        .28995        .82323E-05   -.37240E-03
  24  Prefactor     .71349        .11008       -.54736E-05   -.11739E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.74051
  Prefactor  = 0.0001
  Prefactor  = 2.49352
  Prefactor  = 0.0001
  norm       = 3.11295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9587
  Prefactor  = 9.25626
  norm       = 0.319634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.991
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36638
  Prefactor  = 10.6496
  Prefactor  = 22.6378
  Prefactor  = 0.0001
  Prefactor  = 19.7312
  Normalizat = 1.6425
  Prefactor  = 0.713485
 **********
 **   18 **HESSE 
 **********

 FCN=   7214.670     FROM HESSE     STATUS=OK           397 CALLS     3105 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.7405        1.7297        .53956E-04   -1.5189    
   3  Prefactor     .10000E-03    71.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4935        9.5240        .25883E-03   -1.5392    
   5  Prefactor     .10000E-03    14.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1129        5.1971        .17427E-03   -1.5355    
   7  Prefactor     .10000E-03    6.9211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8278        .18088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.959        14.801        .81840E-04   -1.4729    
  10  Prefactor     9.2563        13.525        .65863E-03   -1.5099    
  11  norm          .31963        1.4079        .18720E-02   -1.5595    
  12  Prefactor     .10000E-03    11.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.991        22.895        .83546E-04   -1.4749    
  15  norm          .10000E-03    7.3616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.5047        .17598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3664        2.2877        .16359E-03   -1.5474    
  19  Prefactor     10.650        31.936        .12278E-03   -1.5055    
  20  Prefactor     22.638        86.208        .83911E-04   -1.4756    
  21  Prefactor     .10000E-03    25.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.731        12.416        .90169E-04   -1.4819    
  23  Normalizat    1.6425        .29332        .32072E-03   -.73849    
  24  Prefactor     .71349        .11202        .18421E-03   -1.0300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51986e-09
Minuit parameter uncertainties:
  1  5.08007e-05
  2  1.72967
  3  0.000202213
  4  9.52982
  5  5.46164e-05
  6  5.19785
  7  7.67694e-07
  8  7.9525e-06
  9  14.8032
  10  13.5292
  11  1.34148
  12  6.79355e-07
  13  7.16321e-06
  14  22.904
  15  1.2491e-05
  16  6.6242e-06
  17  1.77542e-05
  18  2.28785
  19  31.9874
  20  86.6878
  21  3.46979e-06
  22  12.4172
  23  0.293625
  24  0.112059
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  3.196e-01  1.341e+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.135e-01  1.121e-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.643e+00  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/686937/likelihoodResults_577324801_577584001_4FGL_J2311.0+3425_daily_bin1304.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) = 7214.61267884
delta logL = 0.0574941241002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7214.60738691
delta logL = 0.0627860615205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42786       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8269       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71578       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=   7214.607     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42785        50.382        .10973E-01    .91832E-03
   2  alpha         2.8268        3.5848        .41605        .27479E-04
   3  Normalizat    1.6295        .67102E-01    .72724E-01    .29380E-04
   4  Prefactor     .71578        .27323E-01    .42611E-01    .62777E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.427853
  alpha      = 2.82677
  Normalizat = 1.62951
  Prefactor  = 0.715778
 **********
 **   18 **HESSE 
 **********

 FCN=   7214.607     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42785        1.2572        .12936E-03   -1.5577    
   2  alpha         2.8268        1.6597        .44643E-01    .13108    
   3  Normalizat    1.6295        .27591        .32176E-03   -.74201    
   4  Prefactor     .71578        .10906        .18394E-03   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66022e-10
Minuit parameter uncertainties:
  1  1.25726
  2  1.8185
  3  0.27617
  4  0.10909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/686937': 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) = 7214.6073869
delta logL = 0.062786064369

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  4.279e-01  1.257e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.827e+00  1.819e+00  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.158e-01  1.091e-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.630e+00  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 347.768 34.422

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/686937/cmap_HighResolution_577324801_577584001_4FGL_J2311.0+3425_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 08:15:41.006248', job_id='686937', GAL2='0.72', fit_tolerance='1e-08', EG2='1.63', EG='1.64', time_epoch_completed='1632928541.01', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='6.28e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1304' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:15:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 686937: <4FGL_J2311.0+3425_daily_bin1304> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin1304> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 08:00:30 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 08:00:32 2021
Terminated at Wed Sep 29 08:15:41 2021
Results reported at Wed Sep 29 08:15:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin1304 347.768 34.4223 577324801 577584001 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 :                                   711.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

