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


Performing analysis on: 4FGL_J2112.7+0819_daily_bin653
RA = 318.185, Dec = 8.3195
tmin = 408585601, tmax = 408844801
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='360341', job_status='RUN', time_executed='2021-09-26 06:01:11.183999', time_epoch_executed='1632661271.18' WHERE source_name='4FGL J2112.7+0819' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360341/ft1_4FGL_J2112.7+0819_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360341/ft2_4FGL_J2112.7+0819_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360341/ft1_4FGL_J2112.7+0819_daily_bin653.fits outfile=/scratch/kocevski/360341/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin653.fits ra=318.185 dec=8.3195 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.35
user 4.04
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360341/ft2_4FGL_J2112.7+0819_daily_bin653.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/360341/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/360341/ft1_filtered_4FGL_J2112.7+0819_daily_bin653.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.53
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360341/ft1_filtered_4FGL_J2112.7+0819_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/360341/ft2_4FGL_J2112.7+0819_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/360341/ltcube_408585601_408844801_4FGL_J2112.7+0819_daily_bin653.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/360341/ft2_4FGL_J2112.7+0819_daily_bin653.fits
.....................!
real 15.41
user 14.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360341/ft1_filtered_4FGL_J2112.7+0819_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/360341/ft2_4FGL_J2112.7+0819_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/360341/ltcube_408585601_408844801_4FGL_J2112.7+0819_daily_bin653.fits outfile=/scratch/kocevski/360341/expmap_408585601_408844801_4FGL_J2112.7+0819_daily_bin653.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/360341/ltcube_408585601_408844801_4FGL_J2112.7+0819_daily_bin653.fits
.....................!
real 193.84
user 186.27
sys 5.30

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/360341/ft1_filtered_4FGL_J2112.7+0819_daily_bin653.fits scfile=/scratch/kocevski/360341/ft2_4FGL_J2112.7+0819_daily_bin653.fits outfile=/scratch/kocevski/360341/cmap_408585601_408844801_4FGL_J2112.7+0819_daily_bin653.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360341/ft1_filtered_4FGL_J2112.7+0819_daily_bin653.fits scfile=/scratch/kocevski/360341/ft2_4FGL_J2112.7+0819_daily_bin653.fits outfile=/scratch/kocevski/360341/cmap_HighResolution_408585601_408844801_4FGL_J2112.7+0819_daily_bin653.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.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360341/ft1_filtered_4FGL_J2112.7+0819_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/360341/ft2_4FGL_J2112.7+0819_daily_bin653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360341/Model_4FGL_J2112.7+0819_daily_bin653.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/360341/ft1_filtered_4FGL_J2112.7+0819_daily_bin653.fits.....................!
real 47.78
user 45.96
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.013       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6701       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.9596       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    52.884       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    99.479       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0542       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11509E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.817       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9996       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    59.069       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .73626       1.0000         .10000E-03   10000.    
    24 'norm      '    .10480E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    31.444       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0798       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .81051       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=   3958.570     FROM MIGRAD    STATUS=CONVERGED   1222 CALLS     4027 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.740        .36285E-03** at limit **
   2  Prefactor     25.029        30.350        .80096E-04    .65291E-04
   3  norm          1.6699        1.4137        .32621E-04    .18558E-03
   4  Prefactor     .10000E-03    29.842        .18142E-02** at limit **
   5  norm          7.9577        13.833        .14212E-03    .10359E-04
   6  norm          .10000E-03    270.16        .18142E-02** at limit **
   7  Prefactor     52.879        32.892        .55153E-04    .22674E-05
   8  Prefactor     .10000E-03    3.5968        .11615E-02** at limit **
   9  Prefactor     99.484        59.929        .40306E-04    .59796E-05
  10  Prefactor     39.985        27.350        .63388E-04   -.10492E-04
  11  Prefactor     3.0588        68.098        .23214E-03    .10652E-04
  12  Prefactor     .10000E-03    76.113        .18142E-02** at limit **
  13  Prefactor     .10000E-03    23.014        .18142E-02** at limit **
  14  Prefactor     21.639        92.333        .85753E-04   -.86173E-05
  15  norm          .10000E-03    3.3809        .11284E-02** at limit **
  16  Prefactor     .10000E-03    43.874        .18142E-02** at limit **
  17  Prefactor     .10000E-03    20.629        .18142E-02** at limit **
  18  Prefactor     .10000E-03    9.9351        .18142E-02** at limit **
  19  Prefactor     1.9980        29.263        .29289E-03   -.18049E-05
  20  Prefactor     .10000E-03    3.0564        .10666E-02** at limit **
  21  Prefactor     .10000E-03    27.789        .18142E-02** at limit **
  22  Prefactor     59.118        129.40        .26101E-03   -.22410E-04
  23  Prefactor     .56023        136.02        .18157        .44786E-04
  24  norm          .10000E-03    4.4973        .25604E-03** at limit **
  25  norm          31.476        42.000        .71455E-04   -.31025E-05
  26  Prefactor     .10000E-03    8.4250        .17803E-02** at limit **
  27  Normalizat    1.0802        .45307        .37415E-03    .37648E-04
  28  Prefactor     .81044        .16666        .17137E-03    .50649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 25.0294
  norm       = 1.66987
  Prefactor  = 0.0001
  norm       = 7.95765
  norm       = 0.0001
  Prefactor  = 52.8786
  Prefactor  = 0.0001
  Prefactor  = 99.4837
  Prefactor  = 39.9845
  Prefactor  = 3.0588
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6394
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.1181
  Prefactor  = 0.560228
  norm       = 0.0001
  norm       = 31.4759
  Prefactor  = 0.0001
  Normalizat = 1.08021
  Prefactor  = 0.810436
 **********
 **   18 **HESSE 
 **********

 FCN=   3958.570     FROM HESSE     STATUS=OK           501 CALLS     4528 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.741        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.029        30.348        .32039E-05   -1.4707    
   3  norm          1.6699        1.4136        .13049E-05   -1.5450    
   4  Prefactor     .10000E-03    29.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.9577        13.832        .56847E-05   -1.5144    
   6  norm          .10000E-03    270.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     52.879        32.890        .22061E-05   -1.4252    
   8  Prefactor     .10000E-03    3.5972        .23230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     99.484        59.928        .80612E-05   -1.3710    
  10  Prefactor     39.985        27.352        .25355E-05   -1.4442    
  11  Prefactor     3.0588        68.052        .92857E-05   -1.5358    
  12  Prefactor     .10000E-03    76.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.639        92.233        .34301E-05   -1.4777    
  15  norm          .10000E-03    3.3810        .22568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.9382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9980        29.241        .11716E-04   -1.5425    
  20  Prefactor     .10000E-03    3.0570        .21331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     59.118        129.41        .10440E-04   -1.4169    
  23  Prefactor     .56023        137.11        .18069       -1.5558    
  24  norm          .10000E-03    4.4974        .51208E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          31.476        42.011        .28582E-05   -1.4585    
  26  Prefactor     .10000E-03    8.4256        .35605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0802        .45344        .14966E-04   -.90390    
  28  Prefactor     .81044        .16684        .68550E-05   -.99345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92646e-10
Minuit parameter uncertainties:
  1  0.000431772
  2  30.3669
  3  1.41362
  4  2.41179e-05
  5  13.8376
  6  0.000117017
  7  32.9012
  8  9.93878e-07
  9  59.9643
  10  27.3602
  11  28.892
  12  8.9396e-05
  13  5.2367e-06
  14  89.5859
  15  2.55412e-06
  16  4.07529e-05
  17  4.04375e-06
  18  4.29413e-05
  19  15.2956
  20  9.96413e-07
  21  1.71449e-05
  22  130.033
  23  17.5678
  24  3.49789e-05
  25  42.0505
  26  5.46432e-07
  27  0.455086
  28  0.166945
Done.

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

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  1.000e-04  8.940e-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:  8.104e-01  1.669e-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.080e+00  4.551e-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.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360341/likelihoodResults_408585601_408844801_4FGL_J2112.7+0819_daily_bin653.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) = 3958.56986562
delta logL = -6.25163975201e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3957.7407335
delta logL = 0.829069603302

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     '    6.1857       1.0000          .0000       10.000    
     3 'Normalizat'    .85894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87019       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=   3958.570     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      611 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.842        .90712E-02** at limit **
   2  Index         1.3882        7.5056        .50000        .55893E-05
   3  Normalizat    1.0802        .35825        .84506E-01    .10554E-03
   4  Prefactor     .81043        .14543        .44624E-01   -.31542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.38824
  Normalizat = 1.08021
  Prefactor  = 0.810435
 **********
 **   18 **HESSE 
 **********

 FCN=   3958.570     FROM HESSE     STATUS=OK            31 CALLS      642 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3882        7.2928        .50000       -8.6176    
   3  Normalizat    1.0802        .39295        .37411E-03   -2.2377    
   4  Prefactor     .81043        .15985        .17138E-03   -.99345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59364e-10
Minuit parameter uncertainties:
  1  0.000422033
  2  3.46874
  3  0.394015
  4  0.159937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360341': 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) = 3958.56980418
delta logL = -1.08027052192e-06

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  1.000e-04  4.220e-04  1.000e-04  1.000e+04 ( 1.000e-14)
331        Index:  1.388e+00  3.469e+00  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:  8.104e-01  1.599e-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.080e+00  3.940e-01  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/360341/cmap_HighResolution_408585601_408844801_4FGL_J2112.7+0819_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-26 06:12:45.839082', job_id='360341', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632661965.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.91' WHERE bin_id='653' AND source_name='4FGL J2112.7+0819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 06:12:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 360341: <4FGL_J2112.7+0819_daily_bin653> in cluster <slac> Done

Job <4FGL_J2112.7+0819_daily_bin653> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 06:00:31 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 06:00:49 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:00:49 2021
Terminated at Sun Sep 26 06:12:46 2021
Results reported at Sun Sep 26 06:12:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2112.7+0819_daily_bin653 318.185 8.3195 408585601 408844801 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 :                                   686.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            735 sec.

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

