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


Performing analysis on: 4FGL_J2112.7+0819_daily_bin975
RA = 318.185, Dec = 8.3195
tmin = 492048001, tmax = 492307201
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='363341', job_status='RUN', time_executed='2021-09-26 06:13:44.882415', time_epoch_executed='1632662024.88' WHERE source_name='4FGL J2112.7+0819' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363341/ft1_4FGL_J2112.7+0819_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363341/ft1_4FGL_J2112.7+0819_daily_bin975.fits outfile=/scratch/kocevski/363341/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin975.fits ra=318.185 dec=8.3195 rad=12.0 tmin=492048001.0 tmax=492307201.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.81
user 3.57
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.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/363341/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin975.fits evtable="EVENTS" outfile="/scratch/kocevski/363341/ft1_filtered_4FGL_J2112.7+0819_daily_bin975.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.62
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363341/ft1_filtered_4FGL_J2112.7+0819_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/363341/ltcube_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.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/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits
.....................!
real 13.17
user 12.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363341/ft1_filtered_4FGL_J2112.7+0819_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/363341/ltcube_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.fits outfile=/scratch/kocevski/363341/expmap_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.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/363341/ltcube_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.fits
.....................!
real 190.20
user 184.42
sys 5.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
Added 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J2112.7+0819 @ 318.185 8.3195

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/363341/ft1_filtered_4FGL_J2112.7+0819_daily_bin975.fits scfile=/scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits outfile=/scratch/kocevski/363341/cmap_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.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=318.185 yref=8.3195 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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363341/ft1_filtered_4FGL_J2112.7+0819_daily_bin975.fits scfile=/scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits outfile=/scratch/kocevski/363341/cmap_HighResolution_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.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=318.185 yref=8.3195 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/363341/ft1_filtered_4FGL_J2112.7+0819_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363341/Model_4FGL_J2112.7+0819_daily_bin975.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 GAL_V02
Working on...
/scratch/kocevski/363341/ft1_filtered_4FGL_J2112.7+0819_daily_bin975.fits.....................!
real 25.59
user 24.27
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/363341/ft1_filtered_4FGL_J2112.7+0819_daily_bin975.fits', '/scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits', expMap='/scratch/kocevski/363341/expmap_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.fits', expCube='/scratch/kocevski/363341/ltcube_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/363341/Model_4FGL_J2112.7+0819_daily_bin975.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2112.7+0819'

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  3.173e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
331        Index:  1.907e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
332        Scale:  3.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/363341/ft1_filtered_4FGL_J2112.7+0819_daily_bin975.fits
Spacecraft file(s): /scratch/kocevski/363341/ft2_4FGL_J2112.7+0819_daily_bin975.fits
Exposure map: /scratch/kocevski/363341/expmap_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.fits
Exposure cube: /scratch/kocevski/363341/ltcube_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/363341/Model_4FGL_J2112.7+0819_daily_bin975.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) = 1506.51177746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10430E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .16164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11368E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    203.61       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.232       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.023       1.0000         .10000E-03   10000.    
    15 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    130.13       1.0000         .10000E-03   10000.    
    17 'Prefactor '    175.17       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.738       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .73994       1.0000         .10000E-03   10000.    
    25 'norm      '    84.618       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10056E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1506.424     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3525 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    101.91       -.46143E-06** at limit **
   2  Prefactor     .10000E-03    84.491        .11027E-05** at limit **
   3  norm          .10000E-03    4.8022        .27675E-07** at limit **
   4  Prefactor     .10000E-03    118.21       -.82237E-06** at limit **
   5  norm          .10000E-03    17.989        .12368E-07** at limit **
   6  norm          .10009E-03    753.11       -.60761E-05** at limit **
   7  Prefactor     .10000E-03    91.192        .36784E-06** at limit **
   8  Prefactor     .10000E-03    5.0073       -.15601E-06** at limit **
   9  Prefactor     .10000E-03    33.593       -.13473E-07** at limit **
  10  Prefactor     .10000E-03    50.090       -.94430E-07** at limit **
  11  Prefactor     .10004E-03    279.99        .55029E-05** at limit **
  12  Prefactor     203.59        119.58        .79549E-06   -.46218E-03
  13  Prefactor     23.277        145.97       -.76481E-07   -.87006E-05
  14  Prefactor     44.860        112.19       -.60663E-05   -.15565E-03
  15  norm          .10000E-03    28.595       -.20157E-07** at limit **
  16  Prefactor     130.23        87.749       -.10583E-05   -.80438E-04
  17  Prefactor     175.25        96.758       -.21198E-05    .18841E-04
  18  Prefactor     .10000E-03    7.6610        .74433E-07** at limit **
  19  Prefactor     .10000E-03    14.452        .26920E-07** at limit **
  20  Prefactor     .10000E-03    1.9642        .37693E-06** at limit **
  21  Prefactor     29.860        64.531       -.43686E-05   -.10982E-04
  22  Prefactor     .10000E-03    101.73       -.45104E-06** at limit **
  23  Prefactor     .10001E-03    125.55        .24782E-06** at limit **
  24  norm          .73900        5.2782        .28704E-06   -.43368E-03
  25  norm          84.738        59.143       -.27893E-05    .16792E-04
  26  Prefactor     .10000E-03    7.9354        .19005E-06** at limit **
  27  Normalizat    .10000E-01    .34968        .57806E-04** at limit **
  28  Prefactor     .92344        .14155       -.65363E-05   -.38804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.000100093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 203.593
  Prefactor  = 23.2767
  Prefactor  = 44.8605
  norm       = 0.0001
  Prefactor  = 130.231
  Prefactor  = 175.253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8595
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.739004
  norm       = 84.738
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.92344
 **********
 **   18 **HESSE 
 **********

 FCN=   1506.424     FROM HESSE     STATUS=OK           505 CALLS     4030 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    84.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.8938        .83058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    118.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    17.992        .16084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10009E-03    752.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    91.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0331        .84798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    280.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     203.59        119.47        .28322E-04   -1.2844    
  13  Prefactor     23.277        145.98        .83105E-04   -1.4743    
  14  Prefactor     44.860        113.40        .29876E-03   -1.4367    
  15  norm          .10000E-03    28.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     130.23        88.086        .17648E-03   -1.3421    
  17  Prefactor     175.25        96.954        .15246E-03   -1.3053    
  18  Prefactor     .10000E-03    7.6631        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.452        .14415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9711        .53035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.860        64.882        .73471E-04   -1.4615    
  22  Prefactor     .10000E-03    101.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    125.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .73900        5.0459        .16554E-03   -1.5536    
  25  norm          84.738        58.922        .43670E-04   -1.3864    
  26  Prefactor     .10000E-03    7.9503        .10677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    1.3691        .11923E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .92344        .14724        .15424E-03   -.95327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72118e-09
Minuit parameter uncertainties:
  1  0.000447089
  2  0.00103384
  3  2.6265e-05
  4  0.000874349
  5  4.08363e-06
  6  0.0169092
  7  0.000335903
  8  5.19333e-05
  9  0.000140358
  10  0.000215042
  11  0.00681874
  12  119.61
  13  117.006
  14  113.947
  15  1.46979e-05
  16  88.1751
  17  97.0421
  18  3.10134e-05
  19  1.24737e-05
  20  5.34325e-05
  21  65.0359
  22  0.000430192
  23  0.00191308
  24  3.86232
  25  58.9627
  26  5.02155e-05
  27  0.000120323
  28  0.147303
Done.

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

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  2.036e+02  1.196e+02  1.000e-04  1.000e+04 ( 1.000e-14)
331        Index:  1.907e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
332        Scale:  3.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.234e-01  1.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.000e-02  1.203e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.48
Ra Dec: 318.185 8.319
Photon Index (Fixed Index): 1.91 +/- 0.00
Photon Flux (Fixed Index): 2.51e-07 +/- 1.47e-07
Energy Flux (Fixed Index): 2.21e-04 +/- 1.30e-04

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) = 1505.60841684
delta logL = 0.816068742173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1505.58802921
delta logL = 0.836456373178

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.238       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5226       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90732       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+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=   1505.588     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      296 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.272        86.694        .50462E-04   -.37968E-03
   2  Index         2.5224        .52661        .16082E-03   -.36118E-03
   3  Normalizat    .10000E-01    .69854        .11053E-01** at limit **
   4  Prefactor     .90751        .11957        .15443E-03    .19641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.2716
  Index      = 2.5224
  Normalizat = 0.01
  Prefactor  = 0.907512
 **********
 **   18 **HESSE 
 **********

 FCN=   1505.588     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.272        85.534        .10092E-04   -1.4115    
   2  Index         2.5224        .51956        .64328E-05   -.51843    
   3  Normalizat    .10000E-01    .69905        .22106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90751        .11945        .30886E-04   -.95879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23287e-10
Minuit parameter uncertainties:
  1  85.7004
  2  0.52081
  3  1.75268e-05
  4  0.119485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363341': 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) = 1505.58802517
delta logL = 0.836460415056

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  6.327e+01  8.570e+01  1.000e-04  1.000e+04 ( 1.000e-14)
331        Index:  2.522e+00  5.208e-01  0.000e+00  1.000e+01 (-1.000e+00)
332        Scale:  3.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.075e-01  1.195e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.000e-02  1.753e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.13
Ra Dec: 318.185 8.319
Photon Index (Free Index): 2.52 +/- 0.52
Photon Flux (Free Index): 4.49e-07 +/- 2.66e-07
Energy Flux (Free Index): 1.27e-04 +/- 7.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/363341/cmap_HighResolution_492048001_492307201_4FGL_J2112.7+0819_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-07', energy_flux2='1.27e-04', photon_flux_error='1.47e-07', dlogl='8.36e-01', energy_flux='2.21e-04', photon_flux2='4.49e-07', job_status='DONE', time_completed='2021-09-26 06:20:40.299392', photon_index_error2='0.52', photon_index2='2.52', ts='5.48', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='7.05e-05', EG='0.01', time_epoch_completed='1632662440.3', return_code='0', job_id='363341', GAL2='0.91', EG2='0.01', return_code2='0', energy_flux_error='1.30e-04', photon_flux_error2='2.66e-07', ts2='7.13', photon_index='1.91' WHERE bin_id='975' AND source_name='4FGL J2112.7+0819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 06:20:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 363341: <4FGL_J2112.7+0819_daily_bin975> in cluster <slac> Done

Job <4FGL_J2112.7+0819_daily_bin975> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Sep 26 06:10:32 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 06:10:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 06:10:34 2021
Terminated at Sun Sep 26 06:20:41 2021
Results reported at Sun Sep 26 06:20:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2112.7+0819_daily_bin975 318.185 8.3195 492048001 492307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2112.7+0819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   410.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            609 sec.

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

