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


Performing analysis on: 4FGL_J0114.8+1326_monthly_bin118
RA = 18.7119, Dec = 13.4342
tmin = 542851201, tmax = 545443201
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='513592', job_status='RUN', time_executed='2021-10-09 08:11:57.254440', time_epoch_executed='1633792317.25' WHERE source_name='4FGL J0114.8+1326' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513592

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513592/ft1_4FGL_J0114.8+1326_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513592/ft1_4FGL_J0114.8+1326_monthly_bin118.fits outfile=/scratch/kocevski/513592/ft1_filteredMKT_4FGL_J0114.8+1326_monthly_bin118.fits ra=18.7119 dec=13.4342 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.47
user 17.90
sys 0.53

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.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/513592/ft1_filteredMKT_4FGL_J0114.8+1326_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/513592/ft1_filtered_4FGL_J0114.8+1326_monthly_bin118.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.60
user 0.43
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513592/ft1_filtered_4FGL_J0114.8+1326_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/513592/ltcube_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.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/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits
.....................!
real 39.75
user 39.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513592/ft1_filtered_4FGL_J0114.8+1326_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/513592/ltcube_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.fits outfile=/scratch/kocevski/513592/expmap_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.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/513592/ltcube_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.fits
.....................!
real 196.44
user 190.96
sys 5.13

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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J0114.8+1326 @ 18.7119 13.4342

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/513592/ft1_filtered_4FGL_J0114.8+1326_monthly_bin118.fits scfile=/scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits outfile=/scratch/kocevski/513592/cmap_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.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=18.7119 yref=13.4342 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.63
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513592/ft1_filtered_4FGL_J0114.8+1326_monthly_bin118.fits scfile=/scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits outfile=/scratch/kocevski/513592/cmap_HighResolution_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.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=18.7119 yref=13.4342 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.62
user 0.44
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/513592/ft1_filtered_4FGL_J0114.8+1326_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/513592/Model_4FGL_J0114.8+1326_monthly_bin118.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/513592/ft1_filtered_4FGL_J0114.8+1326_monthly_bin118.fits........................!
real 27.17
user 25.88
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/513592/ft1_filtered_4FGL_J0114.8+1326_monthly_bin118.fits', '/scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits', expMap='/scratch/kocevski/513592/expmap_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.fits', expCube='/scratch/kocevski/513592/ltcube_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/513592/Model_4FGL_J0114.8+1326_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0114.8+1326'

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  5.554e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.461e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/513592/ft1_filtered_4FGL_J0114.8+1326_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/513592/ft2_4FGL_J0114.8+1326_monthly_bin118.fits
Exposure map: /scratch/kocevski/513592/expmap_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.fits
Exposure cube: /scratch/kocevski/513592/ltcube_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/513592/Model_4FGL_J0114.8+1326_monthly_bin118.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) = 1447.0112045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.976       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9228       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    113.81       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    93.687       1.0000         .10000E-03   10000.    
    10 'norm      '    .10729E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    84.142       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3143       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.805       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.278       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10045E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.8389       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1446.969     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     2142 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    6.5135       -.45627E-05** at limit **
   2  Prefactor     10.987        2.5785        .17557E-06   -.38290E-02
   3  Prefactor     .10016E-03    21.506       -.24032E-05** at limit **
   4  norm          .10064E-03    12.997       -.33531E-06** at limit **
   5  Prefactor     1.9489        3.6965        .53640E-06   -.13577E-02
   6  Prefactor     .10113E-03    16.447        .64708E-06** at limit **
   7  norm          113.82        1.6481        .30343E-07   -.66808E-02
   8  Prefactor     .10031E-03    38.858       -.15305E-05** at limit **
   9  Prefactor     93.693        1.8180        .38589E-07   -.73305E-02
  10  norm          .10000E-03    4.9988        .34123E-05** at limit **
  11  Prefactor     84.146        1.4360        .27595E-07   -.46714E-02
  12  norm          1.3144        2.1857       -.56486E-06   -.68403E-04
  13  Prefactor     23.808        1.1273        .25847E-07   -.11546E-02
  14  Prefactor     .10016E-03    5.5211       -.38040E-05** at limit **
  15  Prefactor     .10001E-03    5.5038       -.43448E-05** at limit **
  16  Prefactor     .10017E-03    14.414        .19264E-06** at limit **
  17  Prefactor     .10050E-03    29.492       -.97244E-06** at limit **
  18  norm          .10000E-03    17.302       -.16412E-05** at limit **
  19  Prefactor     15.278        1.0007        .11820E-08   -.25663E-04
  20  Normalizat    .10000E-01    6.2414       -.16817E-05** at limit **
  21  Prefactor     1.8392        .20257       -.36056E-05   -.61962E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100089
  Prefactor  = 10.987
  Prefactor  = 0.000100158
  norm       = 0.000100638
  Prefactor  = 1.94891
  Prefactor  = 0.00010113
  norm       = 113.815
  Prefactor  = 0.000100309
  Prefactor  = 93.6934
  norm       = 0.0001
  Prefactor  = 84.1463
  norm       = 1.31437
  Prefactor  = 23.8076
  Prefactor  = 0.000100163
  Prefactor  = 0.000100007
  Prefactor  = 0.000100167
  Prefactor  = 0.000100498
  norm       = 0.0001
  Prefactor  = 15.2779
  Normalizat = 0.01
  Prefactor  = 1.83916
 **********
 **   18 **HESSE 
 **********

 FCN=   1446.969     FROM HESSE     STATUS=OK           357 CALLS     2499 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10009E-03    15.197        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.987        246.26        .30232E-02   -1.5045    
   3  Prefactor     .10016E-03    24.500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10064E-03    33.973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9489        100.80        .74908E-02   -1.5429    
   6  Prefactor     .10113E-03    45.915        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          113.82        74.186        .94276E-03   -1.3570    
   8  Prefactor     .10031E-03    75.008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     93.693        154.21        .10380E-02   -1.3769    
  10  norm          .10000E-03    3.8277        .27738E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     84.146        139.39        .10948E-02   -1.3871    
  12  norm          1.3144        2.3005        .96078E-02   -1.5479    
  13  Prefactor     23.808        42.202        .20525E-02   -1.4732    
  14  Prefactor     .10016E-03    15.459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    15.270        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10017E-03    37.216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10050E-03    68.509        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    18.663        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.278        15.301        .25618E-02   -1.4926    
  20  Normalizat    .10000E-01    .58595        .32095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8392        .31422        .43672E-01   -.68435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00877e-06
Minuit parameter uncertainties:
  1  0.00232163
  2  104.522
  3  0.00393946
  4  0.00931491
  5  28.0812
  6  0.0144169
  7  74.2466
  8  0.00963691
  9  154.88
  10  3.11724e-05
  11  139.934
  12  2.30063
  13  42.2549
  14  0.00317734
  15  0.000656792
  16  0.0049892
  17  0.0117012
  18  6.45698e-05
  19  15.3051
  20  7.83285e-07
  21  0.314561
Done.

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

Extracting fit parameters...

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  2.381e+01  4.225e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.461e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.839e+00  3.146e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.000e-02  7.833e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 18.712 13.434
Photon Flux Upper Limit: 3.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513592/likelihoodResults_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.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) = 1446.96438239
delta logL = 0.00465161935313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1446.96163748
delta logL = 0.00739652762331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.759       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9686       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8400       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   1446.962     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      251 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.793        56.981        .76038E-04    .57936E-05
   2  Index         1.9684        1.1012        .69370E-02    .50064E-04
   3  Normalizat    .10000E-01    6.3393        .11751E-01** at limit **
   4  Prefactor     1.8394        .20473        .19298E-03   -.12519E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7925
  Index      = 1.9684
  Normalizat = 0.01
  Prefactor  = 1.83935
 **********
 **   18 **HESSE 
 **********

 FCN=   1446.962     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.793        55.699        .30415E-05   -1.4653    
   2  Index         1.9684        1.0772        .13874E-02   -.65143    
   3  Normalizat    .10000E-01    6.3435        .23503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8394        .20358        .77191E-05   -.68430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29346e-12
Minuit parameter uncertainties:
  1  55.803
  2  1.09081
  3  1.60152e-05
  4  0.203672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513592': 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) = 1446.96163252
delta logL = 0.00740149511626

Extracting fit parameters...

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  2.779e+01  5.580e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.968e+00  1.091e+00  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.461e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.839e+00  2.037e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.000e-02  1.602e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
Ra Dec: 18.712 13.434

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/513592/cmap_HighResolution_542851201_545443201_4FGL_J0114.8+1326_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-02', job_status='DONE', photon_flux_upper_limit='3.87e-07', time_completed='2021-10-09 08:23:44.742839', job_id='513592', GAL2='1.84', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633793024.74', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.84', dlogl='7.40e-03', ts2='0.46', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='118' AND source_name='4FGL J0114.8+1326' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct  9 08:23:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 513592: <4FGL_J0114.8+1326_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0114.8+1326_monthly_bin118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Oct  9 08:10:19 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  9 08:10:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  9 08:10:21 2021
Terminated at Sat Oct  9 08:23:45 2021
Results reported at Sat Oct  9 08:23:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0114.8+1326_monthly_bin118 18.7119 13.4342 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0114.8+1326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   516.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             214.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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

