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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin500
RA = 348.4, Dec = 39.7644
tmin = 368928001, tmax = 369187201
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='709961', job_status='RUN', time_executed='2021-09-29 09:16:09.085003', time_epoch_executed='1632932169.09' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709961/ft1_4FGL_J2313.5+3945_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709961/ft2_4FGL_J2313.5+3945_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709961/ft1_4FGL_J2313.5+3945_daily_bin500.fits outfile=/scratch/kocevski/709961/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin500.fits ra=348.4 dec=39.7644 rad=12.0 tmin=368928001.0 tmax=369187201.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.34
user 3.11
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/709961/ft2_4FGL_J2313.5+3945_daily_bin500.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/709961/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin500.fits evtable="EVENTS" outfile="/scratch/kocevski/709961/ft1_filtered_4FGL_J2313.5+3945_daily_bin500.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/709961/ft1_filtered_4FGL_J2313.5+3945_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/709961/ft2_4FGL_J2313.5+3945_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/709961/ltcube_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.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/709961/ft2_4FGL_J2313.5+3945_daily_bin500.fits
.....................!
real 12.03
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709961/ft1_filtered_4FGL_J2313.5+3945_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/709961/ft2_4FGL_J2313.5+3945_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/709961/ltcube_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.fits outfile=/scratch/kocevski/709961/expmap_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.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/709961/ltcube_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.fits
.....................!
real 190.21
user 185.18
sys 4.56

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/709961/ft1_filtered_4FGL_J2313.5+3945_daily_bin500.fits scfile=/scratch/kocevski/709961/ft2_4FGL_J2313.5+3945_daily_bin500.fits outfile=/scratch/kocevski/709961/cmap_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709961/ft1_filtered_4FGL_J2313.5+3945_daily_bin500.fits scfile=/scratch/kocevski/709961/ft2_4FGL_J2313.5+3945_daily_bin500.fits outfile=/scratch/kocevski/709961/cmap_HighResolution_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/709961/ft1_filtered_4FGL_J2313.5+3945_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/709961/ft2_4FGL_J2313.5+3945_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/709961/Model_4FGL_J2313.5+3945_daily_bin500.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/709961/ft1_filtered_4FGL_J2313.5+3945_daily_bin500.fits.....................!
real 116.48
user 115.11
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/709961/ft1_filtered_4FGL_J2313.5+3945_daily_bin500.fits', '/scratch/kocevski/709961/ft2_4FGL_J2313.5+3945_daily_bin500.fits', expMap='/scratch/kocevski/709961/expmap_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.fits', expCube='/scratch/kocevski/709961/ltcube_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/709961/Model_4FGL_J2313.5+3945_daily_bin500.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/709961/ft1_filtered_4FGL_J2313.5+3945_daily_bin500.fits
Spacecraft file(s): /scratch/kocevski/709961/ft2_4FGL_J2313.5+3945_daily_bin500.fits
Exposure map: /scratch/kocevski/709961/expmap_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.fits
Exposure cube: /scratch/kocevski/709961/ltcube_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/709961/Model_4FGL_J2313.5+3945_daily_bin500.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) = 10159.9045862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.957       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9303       1.0000         .10000E-03   10000.    
     3 'norm      '    .11699E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.920       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .44918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7362       1.0000         .10000E-03   10000.    
    15 'norm      '    13.830       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.739       1.0000         .10000E-03   10000.    
    17 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    86.198       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6970       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89972       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96654       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=   10159.89     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2705 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.957        25.159       -.12444E-07   -.22845E-05
   2  Prefactor     5.9310        13.038        .33463E-06    .17030E-04
   3  norm          .10000E-03    13.741       -.16045E-06** at limit **
   4  Prefactor     .10000E-03    1.9388       -.11053E-07** at limit **
   5  Prefactor     .10000E-03    68.031       -.52271E-07** at limit **
   6  Prefactor     .10000E-03    2.0258       -.18505E-07** at limit **
   7  norm          2.1797        2.7361       -.51252E-07   -.13925E-03
   8  Prefactor     21.922        22.695       -.20814E-06   -.11310E-04
   9  Prefactor     8.7928        6.9403        .83089E-06   -.70447E-03
  10  Prefactor     .10000E-03    12.260        .68769E-07** at limit **
  11  norm          .44874        1.3974        .56743E-06   -.80960E-03
  12  Prefactor     7.0185        11.919       -.89867E-06   -.18627E-03
  13  Prefactor     .10000E-03    11.055        .30159E-06** at limit **
  14  norm          4.7357        4.9574        .16499E-05   -.13171E-02
  15  norm          13.832        11.355        .39984E-06    .13771E-03
  16  Prefactor     45.722        23.625       -.14219E-05   -.18074E-03
  17  norm          .10000E-03    1.4023       -.58072E-09** at limit **
  18  Prefactor     .10000E-03    11.518       -.55695E-06** at limit **
  19  Prefactor     .10000E-03    12.315        .18218E-06** at limit **
  20  Prefactor     .10000E-03    86.385        .64161E-06** at limit **
  21  Prefactor     86.175        50.475       -.50108E-05   -.56072E-03
  22  Prefactor     3.6936        6.5668        .10460E-05   -.52434E-04
  23  Normalizat    .90036        .22964        .80204E-06   -.87619E-04
  24  Prefactor     .96632        .78936E-01   -.33823E-06    .70945E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9569
  Prefactor  = 5.93102
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17969
  Prefactor  = 21.9216
  Prefactor  = 8.79283
  Prefactor  = 0.0001
  norm       = 0.448742
  Prefactor  = 7.01855
  Prefactor  = 0.0001
  norm       = 4.73568
  norm       = 13.8317
  Prefactor  = 45.7224
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.1745
  Prefactor  = 3.6936
  Normalizat = 0.900357
  Prefactor  = 0.966316
 **********
 **   18 **HESSE 
 **********

 FCN=   10159.89     FROM HESSE     STATUS=OK           395 CALLS     3100 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.957        25.155        .74452E-04   -1.4631    
   2  Prefactor     5.9310        13.025        .16490E-03   -1.5221    
   3  norm          .10000E-03    13.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9413        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    68.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0308        .14002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1797        2.7175        .17755E-03   -1.5413    
   8  Prefactor     21.922        22.697        .85553E-04   -1.4771    
   9  Prefactor     8.7928        7.0701        .67589E-03   -1.5115    
  10  Prefactor     .10000E-03    12.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .44874        1.4058        .19756E-03   -1.5574    
  12  Prefactor     7.0185        11.955        .15138E-03   -1.5178    
  13  Prefactor     .10000E-03    11.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7357        5.2732        .92445E-03   -1.5273    
  15  norm          13.832        11.365        .10770E-03   -1.4964    
  16  Prefactor     45.722        23.796        .59284E-04   -1.4355    
  17  norm          .10000E-03    1.4323        .11642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    86.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     86.175        55.042        .21636E-03   -1.3849    
  22  Prefactor     3.6936        6.5782        .21004E-03   -1.5324    
  23  Normalizat    .90036        .25498        .43448E-03   -.96448    
  24  Prefactor     .96632        .88599E-01    .15286E-03   -.93861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59041e-09
Minuit parameter uncertainties:
  1  25.164
  2  13.0314
  3  7.17947e-05
  4  2.27336e-06
  5  3.25522e-05
  6  2.04946e-06
  7  2.71762
  8  22.7062
  9  7.07075
  10  1.25632e-05
  11  1.40588
  12  11.9589
  13  4.12246e-05
  14  5.27371
  15  11.3669
  16  23.8006
  17  1.99574e-06
  18  7.09751e-05
  19  2.30532e-05
  20  0.000236194
  21  55.0749
  22  6.57945
  23  0.25532
  24  0.0886119
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  7.019e+00  1.196e+01  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.663e-01  8.861e-02  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:  9.004e-01  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/709961/likelihoodResults_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.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) = 10159.8793832
delta logL = 0.010326787522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10159.8766684
delta logL = 0.0130415515978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9283       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5311       1.0000          .0000       10.000    
     3 'Normalizat'    .90576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96473       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10159.88     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      267 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9272        13.619        .14240E-03    .24749E-04
   2  Index         2.5312        1.2839        .10779E-01    .22868E-04
   3  Normalizat    .90574        .24099        .43330E-03   -.22186E-03
   4  Prefactor     .96475        .87171E-01    .15297E-03   -.83349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.92724
  Index      = 2.53122
  Normalizat = 0.905744
  Prefactor  = 0.964745
 **********
 **   18 **HESSE 
 **********

 FCN=   10159.88     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9272        13.440        .56960E-05   -1.5145    
   2  Index         2.5312        1.2671        .43117E-03   -.51640    
   3  Normalizat    .90574        .24111        .17332E-04   -.96259    
   4  Prefactor     .96475        .87179E-01    .30593E-04   -.93914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31603e-10
Minuit parameter uncertainties:
  1  13.4454
  2  1.28581
  3  0.241398
  4  0.0871918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709961': 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) = 10159.8766684
delta logL = 0.0130415997246

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  7.927e+00  1.345e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.531e+00  1.286e+00  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.647e-01  8.719e-02  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:  9.057e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/709961/cmap_HighResolution_368928001_369187201_4FGL_J2313.5+3945_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-29 09:31:28.015984', job_id='709961', GAL2='0.96', fit_tolerance='1e-08', EG2='0.91', EG='0.90', time_epoch_completed='1632933088.02', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.30e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='500' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:31:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 709961: <4FGL_J2313.5+3945_daily_bin500> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin500> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 09:15:27 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:15:28 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:15:28 2021
Terminated at Wed Sep 29 09:31:28 2021
Results reported at Wed Sep 29 09:31:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin500 348.4 39.7644 368928001 369187201 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 :                                   912.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

