/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 63 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_J0113.4+4948_monthly_bin118
RA = 18.3682, Dec = 49.8054
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='507114', job_status='RUN', time_executed='2021-10-09 07:46:26.132363', time_epoch_executed='1633790786.13' WHERE source_name='4FGL J0113.4+4948' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507114

Creating custom pfile directory:
/scratch/kocevski/507114/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/507114/ft1_4FGL_J0113.4+4948_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/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507114/ft1_4FGL_J0113.4+4948_monthly_bin118.fits outfile=/scratch/kocevski/507114/ft1_filteredMKT_4FGL_J0113.4+4948_monthly_bin118.fits ra=18.3682 dec=49.8054 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.38
user 17.93
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507114/ft2_4FGL_J0113.4+4948_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/507114/ft1_filteredMKT_4FGL_J0113.4+4948_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/507114/ft1_filtered_4FGL_J0113.4+4948_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.59
user 0.44
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507114/ft1_filtered_4FGL_J0113.4+4948_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/507114/ltcube_542851201_545443201_4FGL_J0113.4+4948_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/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits
.....................!
real 39.83
user 39.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507114/ft1_filtered_4FGL_J0113.4+4948_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/507114/ltcube_542851201_545443201_4FGL_J0113.4+4948_monthly_bin118.fits outfile=/scratch/kocevski/507114/expmap_542851201_545443201_4FGL_J0113.4+4948_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/507114/ltcube_542851201_545443201_4FGL_J0113.4+4948_monthly_bin118.fits
.....................!
real 191.60
user 185.87
sys 5.40

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 184 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0113.4+4948 @ 18.3682 49.8054

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/507114/ft1_filtered_4FGL_J0113.4+4948_monthly_bin118.fits scfile=/scratch/kocevski/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits outfile=/scratch/kocevski/507114/cmap_542851201_545443201_4FGL_J0113.4+4948_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.3682 yref=49.8054 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.61
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507114/ft1_filtered_4FGL_J0113.4+4948_monthly_bin118.fits scfile=/scratch/kocevski/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits outfile=/scratch/kocevski/507114/cmap_HighResolution_542851201_545443201_4FGL_J0113.4+4948_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.3682 yref=49.8054 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507114/ft1_filtered_4FGL_J0113.4+4948_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507114/Model_4FGL_J0113.4+4948_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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/507114/ft1_filtered_4FGL_J0113.4+4948_monthly_bin118.fits......................!
real 29.62
user 28.27
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/507114/ft1_filtered_4FGL_J0113.4+4948_monthly_bin118.fits', '/scratch/kocevski/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits', expMap='/scratch/kocevski/507114/expmap_542851201_545443201_4FGL_J0113.4+4948_monthly_bin118.fits', expCube='/scratch/kocevski/507114/ltcube_542851201_545443201_4FGL_J0113.4+4948_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/507114/Model_4FGL_J0113.4+4948_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0113.4+4948'

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  2.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
223        alpha:  2.134e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
224         beta:  6.875e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/507114/ft1_filtered_4FGL_J0113.4+4948_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/507114/ft2_4FGL_J0113.4+4948_monthly_bin118.fits
Exposure map: /scratch/kocevski/507114/expmap_542851201_545443201_4FGL_J0113.4+4948_monthly_bin118.fits
Exposure cube: /scratch/kocevski/507114/ltcube_542851201_545443201_4FGL_J0113.4+4948_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/507114/Model_4FGL_J0113.4+4948_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) = 1312.1923444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.233       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9109       1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    61.083       1.0000         .10000E-03   10000.    
    13 'Prefactor '    530.76       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0637       1.0000         .10000E-03   10000.    
    15 'Prefactor '    258.67       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.014       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .24758       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+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=   1312.085     FROM MIGRAD    STATUS=CONVERGED    994 CALLS     3705 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.233        11.889        .11011E-03   -.17914E-04
   2  Prefactor     .10000E-03    8.1145        .10070E-02** at limit **
   3  Prefactor     .10000E-03    65.749        .18142E-02** at limit **
   4  norm          .10000E-03    13.343        .12925E-02** at limit **
   5  Prefactor     .10000E-03    79.794        .18142E-02** at limit **
   6  norm          .10000E-03    56.287        .18142E-02** at limit **
   7  Prefactor     .10000E-03    11.802        .12156E-02** at limit **
   8  Prefactor     4.8912        288.93        .18150E-03   -.10915E-04
   9  norm          .10000E-03    9.3892        .10838E-02** at limit **
  10  norm          .10000E-03    102.65        .18142E-02** at limit **
  11  Prefactor     .10000E-03    30.885        .18142E-02** at limit **
  12  norm          61.088        46.695        .51339E-04   -.13187E-04
  13  Prefactor     530.73        497.90        .89212E-04   -.10271E-04
  14  norm          3.0742        27.679        .11588E-02    .65094E-05
  15  Prefactor     258.60        168.40        .12599E-03    .48914E-04
  16  Prefactor     .10000E-03    61.827        .18142E-02** at limit **
  17  norm          .10000E-03    14.475        .13461E-02** at limit **
  18  norm          .10000E-03    3.9395        .70108E-03** at limit **
  19  norm          .10000E-03    3.2352        .10575E-02** at limit **
  20  Prefactor     21.019        24.431        .87376E-04   -.30869E-04
  21  Prefactor     .10000E-03    25.497        .17869E-02** at limit **
  22  Prefactor     .10001E-03    234.37        .18142E-02** at limit **
  23  Prefactor     .10008E-03    504.37        .18142E-02** at limit **
  24  Normalizat    .24837        .69261        .89642E-03    .20913E-04
  25  Prefactor     .91260        .18813        .13066E-03    .45909E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.89118
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 61.0878
  Prefactor  = 530.727
  norm       = 3.07422
  Prefactor  = 258.595
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 21.0186
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100077
  Normalizat = 0.24837
  Prefactor  = 0.912603
 **********
 **   18 **HESSE 
 **********

 FCN=   1312.085     FROM HESSE     STATUS=OK           403 CALLS     4108 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.233        11.889        .44044E-05   -1.4980    
   2  Prefactor     .10000E-03    8.1147        .20139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    65.754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    13.343        .25850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    79.794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    56.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.802        .24313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8912        287.77        .72600E-05   -1.5266    
   9  norm          .10000E-03    9.3893        .21677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    102.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          61.088        46.694        .10268E-04   -1.4143    
  13  Prefactor     530.73        497.16        .17842E-04   -1.1059    
  14  norm          3.0742        27.602        .46352E-04   -1.5357    
  15  Prefactor     258.60        168.28        .25199E-04   -1.2478    
  16  Prefactor     .10000E-03    61.827        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.475        .26923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9395        .14022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2370        .21150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.019        24.430        .34950E-05   -1.4791    
  21  Prefactor     .10000E-03    25.497        .35739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    234.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10008E-03    504.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .24837        .69116        .35857E-04   -1.2606    
  25  Prefactor     .91260        .18778        .26133E-04   -.95702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49787e-10
Minuit parameter uncertainties:
  1  11.891
  2  2.06402e-06
  3  0.000284688
  4  7.03613e-06
  5  0.000571224
  6  0.000402369
  7  4.10107e-07
  8  75.4168
  9  1.47854e-06
  10  0.000312297
  11  4.99242e-05
  12  46.7219
  13  501.329
  14  18.4342
  15  168.593
  16  2.03094e-05
  17  1.01218e-06
  18  1.20783e-06
  19  9.60062e-05
  20  24.4415
  21  2.12852e-05
  22  0.00339773
  23  0.0125353
  24  0.717333
  25  0.187913
Done.

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

Extracting fit parameters...

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  3.074e+00  1.843e+01  1.000e-04  1.000e+04 ( 1.000e-12)
223        alpha:  2.134e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
224         beta:  6.875e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  9.126e-01  1.879e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  2.484e-01  7.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 18.368 49.805
Photon Flux Upper Limit: 5.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507114/likelihoodResults_542851201_545443201_4FGL_J0113.4+4948_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) = 1312.07998305
delta logL = 0.00510806357352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1312.07829696
delta logL = 0.00679416316916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2861       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8366       1.0000          .0000       5.0000    
     3 'Normalizat'    .25147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91161       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1312.078     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      243 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2640        6492.2        .48650E-02    .56383E-04
   2  alpha         1.8312        3.1157        .43151       -.11691E-05
   3  Normalizat    .25194        .27506        .20378        .18220E-04
   4  Prefactor     .91129        .95511E-01    .29584E-01   -.10252E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.26398
  alpha      = 1.83117
  Normalizat = 0.251938
  Prefactor  = 0.91129
 **********
 **   18 **HESSE 
 **********

 FCN=   1312.078     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2640        27.070        .19460E-03   -1.5295    
   2  alpha         1.8312        2.0116        .24294E-01   -.27083    
   3  Normalizat    .25194        .60689        .89057E-03   -1.2583    
   4  Prefactor     .91129        .17096        .13074E-03   -.95748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21071e-12
Minuit parameter uncertainties:
  1  21.5012
  2  2.3806
  3  0.623909
  4  0.171065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507114': 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) = 1312.0782902
delta logL = 0.00680091567801

Extracting fit parameters...

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  4.264e+00  2.150e+01  1.000e-04  1.000e+04 ( 1.000e-12)
223        alpha:  1.831e+00  2.381e+00  0.000e+00  5.000e+00 ( 1.000e+00)
224         beta:  6.875e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  9.113e-01  1.711e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  2.519e-01  6.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 18.368 49.805

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/507114/cmap_HighResolution_542851201_545443201_4FGL_J0113.4+4948_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-04', job_status='DONE', photon_flux_upper_limit='5.20e-07', time_completed='2021-10-09 07:56:29.790463', job_id='507114', GAL2='0.91', fit_tolerance='1e-08', EG2='0.25', EG='0.25', time_epoch_completed='1633791389.79', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.80e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='118' AND source_name='4FGL J0113.4+4948' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct  9 07:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 507114: <4FGL_J0113.4+4948_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0113.4+4948_monthly_bin118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Oct  9 07:45:12 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  9 07:45:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  9 07:45:14 2021
Terminated at Sat Oct  9 07:56:30 2021
Results reported at Sat Oct  9 07:56:30 2021

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   571.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            678 sec.

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

