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


Performing analysis on: 4FGL_J2112.7+0819_daily_bin451
RA = 318.185, Dec = 8.3195
tmin = 356227201, tmax = 356486401
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='358801', job_status='RUN', time_executed='2021-09-26 05:58:41.113508', time_epoch_executed='1632661121.11' WHERE source_name='4FGL J2112.7+0819' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358801

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358801/ft1_4FGL_J2112.7+0819_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/358801/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/358801/ft2_4FGL_J2112.7+0819_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358801/ft1_4FGL_J2112.7+0819_daily_bin451.fits outfile=/scratch/kocevski/358801/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin451.fits ra=318.185 dec=8.3195 rad=12.0 tmin=356227201.0 tmax=356486401.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.14
user 2.91
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358801/ft2_4FGL_J2112.7+0819_daily_bin451.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/358801/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/358801/ft1_filtered_4FGL_J2112.7+0819_daily_bin451.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358801/ft1_filtered_4FGL_J2112.7+0819_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/358801/ft2_4FGL_J2112.7+0819_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/358801/ltcube_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.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/358801/ft2_4FGL_J2112.7+0819_daily_bin451.fits
.....................!
real 3.44
user 3.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358801/ft1_filtered_4FGL_J2112.7+0819_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/358801/ft2_4FGL_J2112.7+0819_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/358801/ltcube_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.fits outfile=/scratch/kocevski/358801/expmap_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.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/358801/ltcube_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.fits
.....................!
real 191.65
user 185.65
sys 5.61

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/358801/ft1_filtered_4FGL_J2112.7+0819_daily_bin451.fits scfile=/scratch/kocevski/358801/ft2_4FGL_J2112.7+0819_daily_bin451.fits outfile=/scratch/kocevski/358801/cmap_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.60
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358801/ft1_filtered_4FGL_J2112.7+0819_daily_bin451.fits scfile=/scratch/kocevski/358801/ft2_4FGL_J2112.7+0819_daily_bin451.fits outfile=/scratch/kocevski/358801/cmap_HighResolution_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358801/ft1_filtered_4FGL_J2112.7+0819_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/358801/ft2_4FGL_J2112.7+0819_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358801/Model_4FGL_J2112.7+0819_daily_bin451.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/358801/ft1_filtered_4FGL_J2112.7+0819_daily_bin451.fits....................!
real 31.20
user 29.89
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358801/ft1_filtered_4FGL_J2112.7+0819_daily_bin451.fits', '/scratch/kocevski/358801/ft2_4FGL_J2112.7+0819_daily_bin451.fits', expMap='/scratch/kocevski/358801/expmap_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.fits', expCube='/scratch/kocevski/358801/ltcube_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358801/Model_4FGL_J2112.7+0819_daily_bin451.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/358801/ft1_filtered_4FGL_J2112.7+0819_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/358801/ft2_4FGL_J2112.7+0819_daily_bin451.fits
Exposure map: /scratch/kocevski/358801/expmap_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.fits
Exposure cube: /scratch/kocevski/358801/ltcube_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358801/Model_4FGL_J2112.7+0819_daily_bin451.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) = 2158.72759744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.673       1.0000         .10000E-03   10000.    
     3 'norm      '    .11863E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    88.383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11116E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11710E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.011       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3067       1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.077       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6476       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    66.023       1.0000         .10000E-03   10000.    
    23 'Prefactor '    221.39       1.0000         .10000E-03   10000.    
    24 'norm      '    .11287E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10279E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10155       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1979       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79342       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=   2158.650     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3594 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.952        .17000E-07** at limit **
   2  Prefactor     17.629        27.261        .32366E-05    .21072E-03
   3  norm          .10000E-03    1.5959        .10596E-05** at limit **
   4  Prefactor     .10000E-03    59.496        .18887E-07** at limit **
   5  norm          .10000E-03    9.2991       -.12115E-06** at limit **
   6  norm          88.257        131.64       -.98261E-07   -.46719E-04
   7  Prefactor     .10000E-03    24.823       -.35105E-06** at limit **
   8  Prefactor     .10001E-03    16.671       -.38158E-05** at limit **
   9  Prefactor     52.991        81.688       -.12815E-06    .20982E-04
  10  Prefactor     7.3015        62.960       -.69364E-06    .92503E-05
  11  Prefactor     82.795        66.557        .58743E-06    .76641E-05
  12  Prefactor     .10000E-03    35.605       -.36802E-06** at limit **
  13  Prefactor     47.033        71.929       -.13336E-06    .95402E-05
  14  Prefactor     .10000E-03    57.558       -.37213E-06** at limit **
  15  norm          18.508        13.691       -.63431E-07    .36362E-04
  16  Prefactor     .10000E-03    112.20       -.16120E-05** at limit **
  17  Prefactor     .10000E-03    102.64        .40526E-06** at limit **
  18  Prefactor     .10000E-03    3.4493       -.58258E-07** at limit **
  19  Prefactor     .10000E-03    5.7994       -.76245E-07** at limit **
  20  Prefactor     6.6490        5.6137       -.26963E-07   -.61388E-04
  21  Prefactor     .10000E-03    40.271       -.21526E-06** at limit **
  22  Prefactor     65.977        119.99        .64917E-07   -.94244E-05
  23  Prefactor     221.48        145.32       -.14144E-05   -.35107E-04
  24  norm          .10000E-03    2.8120       -.38885E-06** at limit **
  25  norm          .10000E-03    38.338        .12237E-06** at limit **
  26  Prefactor     .26111E-03    33.587       -.31419E-05** at limit **
  27  Normalizat    1.1966        .51339       -.50097E-05    .89962E-04
  28  Prefactor     .79380        .19937        .36607E-05    .30372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.6295
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 88.2567
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 52.991
  Prefactor  = 7.30145
  Prefactor  = 82.7954
  Prefactor  = 0.0001
  Prefactor  = 47.0331
  Prefactor  = 0.0001
  norm       = 18.5076
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.64895
  Prefactor  = 0.0001
  Prefactor  = 65.9768
  Prefactor  = 221.481
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000261106
  Normalizat = 1.19662
  Prefactor  = 0.793801
 **********
 **   18 **HESSE 
 **********

 FCN=   2158.650     FROM HESSE     STATUS=OK           513 CALLS     4107 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.956        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.629        26.634        .95271E-04   -1.4868    
   3  norm          .10000E-03    1.6430        .92359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.3131        .13841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          88.257        131.77        .21369E-03   -1.3826    
   7  Prefactor     .10000E-03    24.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    39.140        .32106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.991        81.669        .55087E-04   -1.4251    
  10  Prefactor     7.3015        62.871        .14838E-03   -1.5167    
  11  Prefactor     82.795        66.869        .44150E-04   -1.3886    
  12  Prefactor     .10000E-03    35.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.033        71.875        .58439E-04   -1.4335    
  14  Prefactor     .10000E-03    57.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.508        13.691        .93107E-04   -1.4847    
  16  Prefactor     .10000E-03    112.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    102.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4511        .84281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8054        .10929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6490        5.6225        .98041E-04   -1.5192    
  21  Prefactor     .10000E-03    40.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     65.977        119.49        .24696E-03   -1.4082    
  23  Prefactor     221.48        161.65        .13593E-03   -1.2720    
  24  norm          .10000E-03    2.8369        .75919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    38.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .26111E-03    50.608        .66298E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1966        .59520        .36442E-03   -.86707    
  28  Prefactor     .79380        .23312        .17906E-03   -.99957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04969e-09
Minuit parameter uncertainties:
  1  7.16469e-06
  2  26.6522
  3  1.03617e-05
  4  0.000150363
  5  2.72722e-05
  6  132.206
  7  0.000108285
  8  0.00148419
  9  81.8419
  10  42.9115
  11  66.9296
  12  3.06474e-05
  13  72.0079
  14  0.000178449
  15  13.6934
  16  0.000686439
  17  0.00138732
  18  4.56644e-06
  19  7.81576e-06
  20  5.62296
  21  2.1775e-05
  22  119.927
  23  161.975
  24  2.96882e-05
  25  7.35581e-05
  26  0.180743
  27  0.598615
  28  0.233408
Done.

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

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  1.000e-04  3.065e-05  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:  7.938e-01  2.334e-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.197e+00  5.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 318.185 8.319
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358801/likelihoodResults_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.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) = 2158.64963813
delta logL = -0.000133607287808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2158.64950453
delta logL = -3.86899046134e-09

Fit tolerance = 1e-08

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

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

 FCN=   2158.650     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1307.5        .90712E-02** at limit **
   2  Index         1.9728        5.0746        .50000       -.26604E-06
   3  Normalizat    1.1966        .75392E-01    .82317E-01    .16224E-03
   4  Prefactor     .79380        .31058E-01    .43636E-01    .42961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97283
  Normalizat = 1.19662
  Prefactor  = 0.793801
 **********
 **   18 **HESSE 
 **********

 FCN=   2158.650     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      258 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1588.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9728        5.8856        .50000       -.65031    
   3  Normalizat    1.1966        .84293E-01    .36444E-03   -.86707    
   4  Prefactor     .79380        .34777E-01    .17905E-03   -.99957    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54871e-11
Minuit parameter uncertainties:
  1  1.88986e-05
  2  27.5328
  3  0.0843028
  4  0.0347782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358801': 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) = 2158.64950453
delta logL = -2.47246134677e-09

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  1.000e-04  1.890e-05  1.000e-04  1.000e+04 ( 1.000e-14)
331        Index:  1.973e+00  2.753e+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:  7.938e-01  3.478e-02  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.197e+00  8.430e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 318.185 8.319

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/358801/cmap_HighResolution_356227201_356486401_4FGL_J2112.7+0819_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.88e-07', time_completed='2021-09-26 06:06:45.459285', job_id='358801', GAL2='0.79', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632661605.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-2.47e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.91' WHERE bin_id='451' AND source_name='4FGL J2112.7+0819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 06:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 358801: <4FGL_J2112.7+0819_daily_bin451> in cluster <slac> Done

Job <4FGL_J2112.7+0819_daily_bin451> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 05:55:31 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 05:55:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 05:55:59 2021
Terminated at Sun Sep 26 06:06:46 2021
Results reported at Sun Sep 26 06:06:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2112.7+0819_daily_bin451 318.185 8.3195 356227201 356486401 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 :                                   484.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            675 sec.

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

