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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin906
RA = 348.4, Dec = 39.7644
tmin = 474163201, tmax = 474422401
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='714268', job_status='RUN', time_executed='2021-09-29 09:31:38.877273', time_epoch_executed='1632933098.88' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714268/ft1_4FGL_J2313.5+3945_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714268/ft1_4FGL_J2313.5+3945_daily_bin906.fits outfile=/scratch/kocevski/714268/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin906.fits ra=348.4 dec=39.7644 rad=12.0 tmin=474163201.0 tmax=474422401.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 5.61
user 5.39
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.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/714268/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/714268/ft1_filtered_4FGL_J2313.5+3945_daily_bin906.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714268/ft1_filtered_4FGL_J2313.5+3945_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/714268/ltcube_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.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/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits
.....................!
real 12.06
user 11.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714268/ft1_filtered_4FGL_J2313.5+3945_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/714268/ltcube_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.fits outfile=/scratch/kocevski/714268/expmap_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.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/714268/ltcube_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.fits
.....................!
real 192.32
user 186.92
sys 4.95

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.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 161 point sources and 2 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 J2313.5+3945 @ 348.4 39.7644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/714268/ft1_filtered_4FGL_J2313.5+3945_daily_bin906.fits scfile=/scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits outfile=/scratch/kocevski/714268/cmap_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.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=348.4 yref=39.7644 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714268/ft1_filtered_4FGL_J2313.5+3945_daily_bin906.fits scfile=/scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits outfile=/scratch/kocevski/714268/cmap_HighResolution_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.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=348.4 yref=39.7644 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714268/ft1_filtered_4FGL_J2313.5+3945_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714268/Model_4FGL_J2313.5+3945_daily_bin906.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/714268/ft1_filtered_4FGL_J2313.5+3945_daily_bin906.fits.....................!
real 86.04
user 84.59
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/714268/ft1_filtered_4FGL_J2313.5+3945_daily_bin906.fits', '/scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits', expMap='/scratch/kocevski/714268/expmap_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.fits', expCube='/scratch/kocevski/714268/ltcube_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/714268/Model_4FGL_J2313.5+3945_daily_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2313.5+3945'

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  4.195e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/714268/ft1_filtered_4FGL_J2313.5+3945_daily_bin906.fits
Spacecraft file(s): /scratch/kocevski/714268/ft2_4FGL_J2313.5+3945_daily_bin906.fits
Exposure map: /scratch/kocevski/714268/expmap_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.fits
Exposure cube: /scratch/kocevski/714268/ltcube_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/714268/Model_4FGL_J2313.5+3945_daily_bin906.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) = 6804.85875942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.097       1.0000         .10000E-03   10000.    
     7 'norm      '    .20573E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    31.651       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .96285       1.0000         .10000E-03   10000.    
    17 'norm      '    .43017       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .76966E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0403       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99912       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6804.838     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3807 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.595        61.688        .17675E-05    .20667E-04
   2  Prefactor     .10000E-03    90.614        .16699E-05** at limit **
   3  norm          .10000E-03    7.2430       -.20953E-06** at limit **
   4  Prefactor     .10000E-03    4.2808       -.26906E-06** at limit **
   5  Prefactor     .10000E-03    25.602        .84419E-06** at limit **
   6  Prefactor     23.137        11.810       -.11501E-06    .15614E-03
   7  norm          .10010E-03    7.8960       -.30126E-06** at limit **
   8  Prefactor     .10000E-03    9.0146       -.85162E-07** at limit **
   9  Prefactor     .10000E-03    6.1720       -.21123E-06** at limit **
  10  Prefactor     .10000E-03    22.638       -.33810E-06** at limit **
  11  norm          1.6693        2.1721       -.21868E-06    .77496E-04
  12  Prefactor     .10000E-03    67.467       -.51329E-05** at limit **
  13  Prefactor     .10000E-03    31.724       -.76678E-07** at limit **
  14  norm          .10000E-03    7.0781       -.30082E-06** at limit **
  15  norm          31.649        20.118       -.80263E-07    .71772E-04
  16  Prefactor     .97409        94.427       -.57739E-05   -.31044E-04
  17  norm          .43039        1.6141       -.90037E-06    .34264E-03
  18  Prefactor     .10000E-03    6.5899       -.56340E-07** at limit **
  19  Prefactor     .10000E-03    53.437       -.47877E-06** at limit **
  20  Prefactor     .11596E-03    95.977       -.65158E-05** at limit **
  21  Prefactor     .10000E-03    25.889       -.11829E-05** at limit **
  22  Prefactor     .10000E-03    4.3755       -.31508E-06** at limit **
  23  Normalizat    1.0403        .27249        .31918E-05    .23865E-03
  24  Prefactor     .99910        .96877E-01   -.20667E-06    .53780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.5945
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1372
  norm       = 0.0001001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 31.6488
  Prefactor  = 0.974095
  norm       = 0.430385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000115958
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.04034
  Prefactor  = 0.9991
 **********
 **   18 **HESSE 
 **********

 FCN=   6804.838     FROM HESSE     STATUS=OK           413 CALLS     4220 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.595        61.236        .68150E-04   -1.4531    
   2  Prefactor     .10000E-03    91.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.2606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3192        .16681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.137        17.085        .83346E-04   -1.4746    
   7  norm          .10010E-03    17.766        .50646E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.0181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6693        2.1490        .12833E-03   -1.5450    
  12  Prefactor     .10000E-03    70.040        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.1849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          31.649        20.062        .71221E-04   -1.4582    
  16  Prefactor     .97409        96.314        .58375E-02   -1.5511    
  17  norm          .43039        1.7543        .18530E-02   -1.5577    
  18  Prefactor     .10000E-03    6.5909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    53.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11596E-03    56.113        .17944       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.4021        .16869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0403        .30742        .41300E-03   -.91691    
  24  Prefactor     .99910        .10927        .15633E-03   -.92760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06679e-08
Minuit parameter uncertainties:
  1  61.3473
  2  0.00010381
  3  8.83808e-06
  4  9.16407e-06
  5  0.000207201
  6  17.0886
  7  0.0026699
  8  3.41872e-06
  9  4.75567e-06
  10  2.231e-05
  11  2.14911
  12  0.000362154
  13  1.90417e-05
  14  1.56239e-05
  15  20.0665
  16  19.4032
  17  1.73771
  18  1.48406e-06
  19  0.00011773
  20  0.0599042
  21  0.000240635
  22  1.07674e-05
  23  0.307951
  24  0.109291
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  3.622e-04  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.991e-01  1.093e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.040e+00  3.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 348.400 39.764
Photon Flux Upper Limit: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/714268/likelihoodResults_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.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) = 6804.83757089
delta logL = -6.75925984979e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6804.83750371
delta logL = -4.16102011513e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7049       1.0000          .0000       10.000    
     3 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99914       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6804.838     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      270 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10328E-03    52.263        .10018    ** at limit **
   2  Index         2.8424        5.2499        .50000       -.29570E-04
   3  Normalizat    1.0403        .14933E-01    .93235E-01    .53872E-03
   4  Prefactor     .99910        .55810E-02    .35379E-01    .15855E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103282
  Index      = 2.84244
  Normalizat = 1.04034
  Prefactor  = 0.999102
 **********
 **   18 **HESSE 
 **********

 FCN=   6804.838     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10328E-03    101.09        .77501E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8424        5.4194        .50000       -.44617    
   3  Normalizat    1.0403        .16982E-01    .41299E-03   -.91691    
   4  Prefactor     .99910        .63593E-02    .15633E-03   -.92759    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.01063e-11
Minuit parameter uncertainties:
  1  0.0364934
  2  10.9539
  3  0.0169819
  4  0.00635927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714268': 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): 102
logL (Free Index) = 6804.83750279
delta logL = 5.06726792082e-07

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.033e-04  3.649e-02  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.842e+00  1.095e+01  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.991e-01  6.359e-03  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.040e+00  1.698e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 348.400 39.764

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/714268/cmap_HighResolution_474163201_474422401_4FGL_J2313.5+3945_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.71e-07', time_completed='2021-09-29 09:45:29.706494', job_id='714268', GAL2='1.00', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632933929.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='906' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:45:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 714268: <4FGL_J2313.5+3945_daily_bin906> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin906> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 09:30:19 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:30: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 09:30:21 2021
Terminated at Wed Sep 29 09:45:30 2021
Results reported at Wed Sep 29 09:45:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin906 348.4 39.7644 474163201 474422401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2313.5+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   815.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

