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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1620
RA = 18.2227, Dec = 32.1399
tmin = 659232001, tmax = 659491201
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='136788', job_status='RUN', time_executed='2021-12-07 11:59:26.537407', time_epoch_executed='1638907166.54' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136788

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136788/ft1_4FGL_J0112.8+3208_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136788/ft2_4FGL_J0112.8+3208_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136788/ft1_4FGL_J0112.8+3208_daily_bin1620.fits outfile=/scratch/kocevski/136788/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1620.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=659232001.0 tmax=659491201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.07
user 2.81
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136788/ft2_4FGL_J0112.8+3208_daily_bin1620.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/136788/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1620.fits evtable="EVENTS" outfile="/scratch/kocevski/136788/ft1_filtered_4FGL_J0112.8+3208_daily_bin1620.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.62
user 0.44
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136788/ft1_filtered_4FGL_J0112.8+3208_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/136788/ft2_4FGL_J0112.8+3208_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/136788/ltcube_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.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/136788/ft2_4FGL_J0112.8+3208_daily_bin1620.fits
.....................!
real 29.04
user 28.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136788/ft1_filtered_4FGL_J0112.8+3208_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/136788/ft2_4FGL_J0112.8+3208_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/136788/ltcube_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.fits outfile=/scratch/kocevski/136788/expmap_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.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/136788/ltcube_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.fits
.....................!
real 202.26
user 195.65
sys 5.61

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/136788/ft1_filtered_4FGL_J0112.8+3208_daily_bin1620.fits scfile=/scratch/kocevski/136788/ft2_4FGL_J0112.8+3208_daily_bin1620.fits outfile=/scratch/kocevski/136788/cmap_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.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 0.62
user 0.45
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136788/ft1_filtered_4FGL_J0112.8+3208_daily_bin1620.fits scfile=/scratch/kocevski/136788/ft2_4FGL_J0112.8+3208_daily_bin1620.fits outfile=/scratch/kocevski/136788/cmap_HighResolution_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.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 0.56
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/136788/ft1_filtered_4FGL_J0112.8+3208_daily_bin1620.fits', '/scratch/kocevski/136788/ft2_4FGL_J0112.8+3208_daily_bin1620.fits', expMap='/scratch/kocevski/136788/expmap_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.fits', expCube='/scratch/kocevski/136788/ltcube_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/136788/Model_4FGL_J0112.8+3208_daily_bin1620.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/136788/ft1_filtered_4FGL_J0112.8+3208_daily_bin1620.fits
Spacecraft file(s): /scratch/kocevski/136788/ft2_4FGL_J0112.8+3208_daily_bin1620.fits
Exposure map: /scratch/kocevski/136788/expmap_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.fits
Exposure cube: /scratch/kocevski/136788/ltcube_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/136788/Model_4FGL_J0112.8+3208_daily_bin1620.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) = 2714.4570457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.7782       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54976       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.372       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5488       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7468       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8428       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.255       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12994E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13694E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .64128       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    113.35       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0885       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75107       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=   2714.242     FROM MIGRAD    STATUS=CONVERGED   1091 CALLS     4022 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.963        .18142E-02** at limit **
   2  norm          9.7784        4.4945        .71135E-04   -.66325E-05
   3  Prefactor     .10000E-03    7.7501        .14161E-02** at limit **
   4  Prefactor     .10000E-03    3.8820        .10004E-02** at limit **
   5  Prefactor     .10000E-03    9.5499        .15708E-02** at limit **
   6  Prefactor     .55356        132.14        .44195E-02   -.24499E-03
   7  Prefactor     22.371        36.100        .84684E-04   -.44839E-04
   8  Prefactor     .10000E-03    35.930        .18142E-02** at limit **
   9  Prefactor     .10000E-03    47.219        .18142E-02** at limit **
  10  norm          1.5490        1.1735        .47184E-04   -.65777E-04
  11  norm          5.7469        3.3995        .69484E-04   -.28633E-04
  12  Prefactor     .10000E-03    73.671        .18142E-02** at limit **
  13  Prefactor     7.8434        8.0917        .14318E-03   -.76915E-04
  14  Prefactor     .10000E-03    14.067        .18142E-02** at limit **
  15  Prefactor     33.199        42.072        .69487E-04   -.97036E-04
  16  norm          .10000E-03    2.0976        .73267E-03** at limit **
  17  Prefactor     .10007E-03    224.44        .21953    ** at limit **
  18  Prefactor     .10000E-03    215.94        .18142E-02** at limit **
  19  norm          .64151        1.3498        .10004E-02   -.53112E-03
  20  Prefactor     .10000E-03    28.850        .18142E-02** at limit **
  21  Prefactor     .10000E-03    16.184        .18142E-02** at limit **
  22  Prefactor     .10000E-03    64.765        .18142E-02** at limit **
  23  norm          .10000E-03    61.432        .18142E-02** at limit **
  24  Prefactor     113.35        77.641        .18893E-03    .35887E-04
  25  Normalizat    1.0885        .37461        .29154E-03   -.89944E-04
  26  Prefactor     .75103        .21593        .20680E-03   -.17972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.77842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.553556
  Prefactor  = 22.3711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54899
  norm       = 5.74686
  Prefactor  = 0.0001
  Prefactor  = 7.84339
  Prefactor  = 0.0001
  Prefactor  = 33.1986
  norm       = 0.0001
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  norm       = 0.641509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 113.345
  Normalizat = 1.08852
  Prefactor  = 0.75103
 **********
 **   18 **HESSE 
 **********

 FCN=   2714.242     FROM HESSE     STATUS=OK           444 CALLS     4466 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.7784        4.4932        .28454E-05   -1.5082    
   3  Prefactor     .10000E-03    7.7503        .28322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8821        .20008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5505        .31416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55356        127.83        .17678E-03   -1.5559    
   7  Prefactor     22.371        35.759        .33873E-05   -1.4762    
   8  Prefactor     .10000E-03    35.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5490        1.1733        .18874E-05   -1.5459    
  11  norm          5.7469        3.3973        .27794E-05   -1.5228    
  12  Prefactor     .10000E-03    73.678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8434        8.0913        .28636E-04   -1.5148    
  14  Prefactor     .10000E-03    14.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.199        42.045        .13897E-04   -1.4555    
  16  norm          .10000E-03    2.0978        .14653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10007E-03    229.50        .21608       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    215.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .64151        1.3492        .40017E-04   -1.5548    
  20  Prefactor     .10000E-03    28.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    64.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    61.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     113.35        77.628        .37786E-04   -1.3575    
  25  Normalizat    1.0885        .37208        .11661E-04   -.90121    
  26  Prefactor     .75103        .21592        .41361E-04   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75922e-09
Minuit parameter uncertainties:
  1  4.69704e-05
  2  4.49337
  3  1.2003e-06
  4  8.14335e-06
  5  4.0974e-06
  6  16.8589
  7  35.793
  8  0.000187222
  9  8.79677e-05
  10  1.17334
  11  3.3974
  12  0.000316236
  13  8.09247
  14  3.58234e-06
  15  42.083
  16  4.01764e-06
  17  0.0083249
  18  0.000188845
  19  1.34925
  20  8.17386e-05
  21  4.15967e-06
  22  6.18029e-05
  23  4.50202e-05
  24  77.6974
  25  0.372982
  26  0.216167
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  5.747e+00  3.397e+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:  7.510e-01  2.162e-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:  1.089e+00  3.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 18.223 32.140
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 9.37e-08
Energy Flux (Fixed Index): 5.70e-05 +/- 3.37e-05

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) = 2713.7801412
delta logL = 0.462351469189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2713.77968733
delta logL = 0.462805331002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9521       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7896       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77640       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.

 FCN=   2713.780     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      259 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9479        63.043        .45182E-02    .11797E-03
   2  alpha         2.7886        3.4798        .21737        .15619E-04
   3  Normalizat    1.0242        .20356        .67553E-01    .69953E-05
   4  Prefactor     .77636        .15699        .43409E-01    .50101E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.94788
  alpha      = 2.78864
  Normalizat = 1.02419
  Prefactor  = 0.776359
 **********
 **   18 **HESSE 
 **********

 FCN=   2713.780     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9479        3.3708        .58331E-04   -1.5263    
   2  alpha         2.7886        .61135        .93104E-02    .11572    
   3  Normalizat    1.0242        .36084        .29884E-03   -.92224    
   4  Prefactor     .77636        .21486        .20363E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55078e-13
Minuit parameter uncertainties:
  1  3.37089
  2  0.617695
  3  0.361705
  4  0.215088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136788': 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) = 2713.77968209
delta logL = 0.462810576737

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  4.948e+00  3.371e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.789e+00  6.177e-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:  7.764e-01  2.151e-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:  1.024e+00  3.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.28
Ra Dec: 18.223 32.140
Photon Index (Free Index): 2.79 +/- 0.62
Photon Flux (Free Index): 2.25e-07 +/- 1.30e-07
Energy Flux (Free Index): 5.07e-05 +/- 2.83e-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/136788/cmap_HighResolution_659232001_659491201_4FGL_J0112.8+3208_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='5.07e-05', photon_flux_error='9.37e-08', dlogl='4.63e-01', energy_flux='5.70e-05', photon_flux2='2.25e-07', job_status='DONE', time_completed='2021-12-07 12:08:12.755704', photon_index_error2='0.62', photon_index2='2.79', ts='4.35', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='1.09', time_epoch_completed='1638907692.76', return_code='0', job_id='136788', GAL2='0.78', EG2='1.02', return_code2='0', energy_flux_error='3.37e-05', photon_flux_error2='1.30e-07', ts2='5.28', photon_index='2.25' WHERE bin_id='1620' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:08:12 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 136788: <4FGL_J0112.8+3208_daily_bin1620> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1620> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 11:55:24 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:56:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 11:56:48 2021
Terminated at Tue Dec  7 12:08:13 2021
Results reported at Tue Dec  7 12:08:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1620 18.2227 32.1399 659232001 659491201 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 :                                   525.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            769 sec.

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

