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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1206
RA = 18.2227, Dec = 32.1399
tmin = 551923201, tmax = 552182401
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='428056', job_status='RUN', time_executed='2021-08-13 16:49:49.152990', time_epoch_executed='1628898589.15' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428056/ft1_4FGL_J0112.8+3208_daily_bin1206.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428056/ft1_4FGL_J0112.8+3208_daily_bin1206.fits outfile=/scratch/kocevski/428056/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1206.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=551923201.0 tmax=552182401.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 7.37
user 3.45
sys 3.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.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/428056/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1206.fits evtable="EVENTS" outfile="/scratch/kocevski/428056/ft1_filtered_4FGL_J0112.8+3208_daily_bin1206.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 4.03
user 0.33
sys 3.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428056/ft1_filtered_4FGL_J0112.8+3208_daily_bin1206.fits" evtable="EVENTS" scfile=/scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits sctable="SC_DATA" outfile=/scratch/kocevski/428056/ltcube_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.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/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits
.....................!
real 15.80
user 11.41
sys 4.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428056/ft1_filtered_4FGL_J0112.8+3208_daily_bin1206.fits evtable="EVENTS" scfile=/scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits sctable="SC_DATA" expcube=/scratch/kocevski/428056/ltcube_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.fits outfile=/scratch/kocevski/428056/expmap_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.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/428056/ltcube_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.fits
.....................!
real 194.50
user 185.01
sys 8.91

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

Setting source of interest to:
4FGL J0112.8+3208 @ 18.2227 32.1399

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/428056/ft1_filtered_4FGL_J0112.8+3208_daily_bin1206.fits scfile=/scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits outfile=/scratch/kocevski/428056/cmap_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.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.2227 yref=32.1399 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 4.24
user 0.36
sys 3.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428056/ft1_filtered_4FGL_J0112.8+3208_daily_bin1206.fits scfile=/scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits outfile=/scratch/kocevski/428056/cmap_HighResolution_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.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.2227 yref=32.1399 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 3.97
user 0.38
sys 3.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/428056/ft1_filtered_4FGL_J0112.8+3208_daily_bin1206.fits evtable="EVENTS" scfile=/scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/428056/Model_4FGL_J0112.8+3208_daily_bin1206.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/428056/ft1_filtered_4FGL_J0112.8+3208_daily_bin1206.fits.....................!
real 55.94
user 50.15
sys 5.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/428056/ft1_filtered_4FGL_J0112.8+3208_daily_bin1206.fits', '/scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits', expMap='/scratch/kocevski/428056/expmap_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.fits', expCube='/scratch/kocevski/428056/ltcube_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/428056/Model_4FGL_J0112.8+3208_daily_bin1206.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0112.8+3208'

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.942e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/428056/ft1_filtered_4FGL_J0112.8+3208_daily_bin1206.fits
Spacecraft file(s): /scratch/kocevski/428056/ft2_4FGL_J0112.8+3208_daily_bin1206.fits
Exposure map: /scratch/kocevski/428056/expmap_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.fits
Exposure cube: /scratch/kocevski/428056/ltcube_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/428056/Model_4FGL_J0112.8+3208_daily_bin1206.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) = 4623.31759508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52987E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.083       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.449       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .62403E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5370       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.412       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.994       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6885       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.353       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2291       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84632E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74783       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0558       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4623.304     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3174 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.330        .19850E-06** at limit **
   2  norm          .10000E-03    1.5492        .27544E-07** at limit **
   3  Prefactor     .10007E-03    11.410        .47121E-06** at limit **
   4  Prefactor     25.085        17.616        .16696E-06   -.70131E-05
   5  Prefactor     .31595        196.81       -.15131E-04    .73716E-04
   6  Prefactor     .10000E-03    13.930        .84724E-08** at limit **
   7  Prefactor     12.429        21.267        .24851E-06   -.31863E-05
   8  Prefactor     6.3892        42.541       -.46909E-05   -.10880E-03
   9  Prefactor     .10000E-03    97.302        .13001E-05** at limit **
  10  norm          .59545E-02    .80831        .86806E-06    .22992E-03
  11  norm          2.5381        1.9540        .76550E-07    .65690E-04
  12  Prefactor     .10000E-03    20.541        .61346E-06** at limit **
  13  Prefactor     .10000E-03    3.4553        .90763E-06** at limit **
  14  Prefactor     10.409        14.770       -.34542E-06   -.14802E-05
  15  Prefactor     37.991        17.520        .17431E-06   -.10025E-03
  16  norm          3.6881        2.8837        .12341E-06   -.41015E-04
  17  Prefactor     13.538        35.563        .57081E-06   -.98566E-05
  18  Prefactor     23.219        93.732       -.52833E-06    .45224E-05
  19  norm          1.2290        .73005        .16466E-06    .56737E-03
  20  Prefactor     .10000E-03    12.460        .83783E-07** at limit **
  21  Prefactor     .10001E-03    10.415       -.23275E-05** at limit **
  22  Prefactor     .10000E-03    49.848        .42970E-06** at limit **
  23  norm          .10000E-03    5.7297        .51791E-06** at limit **
  24  Prefactor     12.631        14.385        .36745E-06    .30705E-04
  25  Normalizat    .74797        .30940        .55305E-05   -.31094E-04
  26  Prefactor     1.0560        .18084       -.43745E-05    .28725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100073
  Prefactor  = 25.0852
  Prefactor  = 0.315946
  Prefactor  = 0.0001
  Prefactor  = 12.429
  Prefactor  = 6.38922
  Prefactor  = 0.0001
  norm       = 0.00595453
  norm       = 2.53814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4094
  Prefactor  = 37.9909
  norm       = 3.68812
  Prefactor  = 13.538
  Prefactor  = 23.2187
  norm       = 1.22904
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6313
  Normalizat = 0.74797
  Prefactor  = 1.05597
 **********
 **   18 **HESSE 
 **********

 FCN=   4623.304     FROM HESSE     STATUS=OK           480 CALLS     3654 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5570        .82668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    38.352        .37997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.085        17.613        .79984E-04   -1.4706    
   5  Prefactor     .31595        254.75        .51951E-02   -1.5596    
   6  Prefactor     .10000E-03    13.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.429        21.261        .11353E-03   -1.5003    
   8  Prefactor     6.3892        44.384        .15785E-03   -1.5202    
   9  Prefactor     .10000E-03    97.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .59545E-02    .43089        .13294E-01   -1.5693    
  11  norm          2.5381        1.9359        .77018E-04   -1.5389    
  12  Prefactor     .10000E-03    20.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5657        .12475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.409        14.743        .12417E-03   -1.5063    
  15  Prefactor     37.991        17.536        .65023E-04   -1.4474    
  16  norm          3.6881        2.8825        .99123E-04   -1.5324    
  17  Prefactor     13.538        35.592        .10858E-03   -1.4972    
  18  Prefactor     23.219        93.748        .82889E-04   -1.4744    
  19  norm          1.2290        .72299        .41185E-04   -1.5486    
  20  Prefactor     .10000E-03    12.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    4.9326        .53413E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    49.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.8351        .15871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.631        14.296        .11271E-03   -1.4997    
  25  Normalizat    .74797        .31626        .36480E-03   -1.0203    
  26  Prefactor     1.0560        .18528        .19083E-03   -.90886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7307e-09
Minuit parameter uncertainties:
  1  4.51072e-07
  2  4.98628e-07
  3  0.00334232
  4  17.617
  5  18.0176
  6  1.96571e-06
  7  21.2739
  8  33.7152
  9  3.28321e-05
  10  0.100453
  11  1.93597
  12  9.76361e-05
  13  7.87492e-05
  14  14.7486
  15  17.5386
  16  2.88258
  17  35.6481
  18  93.5664
  19  0.722995
  20  1.82468e-06
  21  0.000414934
  22  5.4726e-05
  23  1.25053e-06
  24  14.3001
  25  0.317037
  26  0.185397
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  2.538e+00  1.936e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.056e+00  1.854e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  7.480e-01  3.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.50
Ra Dec: 18.223 32.140
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 7.00e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 1.92e-05

TS (Fixed Index): 3.50
Ra Dec: 18.223 32.140
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428056/likelihoodResults_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.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) = 4623.23932841
delta logL = 0.0645749239548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4623.2350893
delta logL = 0.0688140319435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6358       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5490       1.0000          .0000       5.0000    
     3 'Normalizat'    .72235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   4623.235     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      232 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6358        1.8737        .74250E-04    .73694E-03
   2  alpha         2.5490        .79702        .16940E-01    .35719E-04
   3  Normalizat    .72232        .30101        .37063E-03    .67789E-05
   4  Prefactor     1.0651        .18111        .19008E-03    .68889E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.63583
  alpha      = 2.54903
  Normalizat = 0.722321
  Prefactor  = 1.0651
 **********
 **   18 **HESSE 
 **********

 FCN=   4623.235     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6358        1.8673        .29700E-05   -1.5383    
   2  alpha         2.5490        .79345        .67760E-03    .19612E-01
   3  Normalizat    .72232        .30114        .14825E-04   -1.0302    
   4  Prefactor     1.0651        .18116        .38016E-04   -.90590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05387e-10
Minuit parameter uncertainties:
  1  1.8673
  2  0.807424
  3  0.301829
  4  0.181265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428056': 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) = 4623.23508929
delta logL = 0.0688140402808

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  2.636e+00  1.867e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.549e+00  8.074e-01  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.065e+00  1.813e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  7.223e-01  3.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 18.223 32.140
Photon Index (Free Index): 2.55 +/- 0.81
Photon Flux (Free Index): 9.44e-08 +/- 9.42e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/428056/cmap_HighResolution_551923201_552182401_4FGL_J0112.8+3208_daily_bin1206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-05', comment='SUCCESS', photon_flux='7.00e-08', energy_flux2='2.52e-05', photon_flux_error='5.34e-08', dlogl='6.88e-02', energy_flux='2.52e-05', photon_flux2='9.44e-08', job_status='DONE', time_completed='2021-08-13 17:00:44.776480', photon_index_error2='0.81', photon_index2='2.55', ts='3.50', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.78e-05', EG='0.75', time_epoch_completed='1628899244.78', return_code='0', job_id='428056', GAL2='1.07', EG2='0.72', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='9.42e-08', ts2='3.64', photon_index='2.25' WHERE bin_id='1206' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:00:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 428056: <4FGL_J0112.8+3208_daily_bin1206> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1206> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 16:45:24 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:46:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 16:46:06 2021
Terminated at Fri Aug 13 17:00:46 2021
Results reported at Fri Aug 13 17:00:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1206 18.2227 32.1399 551923201 552182401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.8+3208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            922 sec.

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

