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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1249
RA = 18.2227, Dec = 32.1399
tmin = 563068801, tmax = 563328001
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='428123', job_status='RUN', time_executed='2021-08-13 16:51:12.578695', time_epoch_executed='1628898672.58' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428123/ft1_4FGL_J0112.8+3208_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428123/ft2_4FGL_J0112.8+3208_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428123/ft1_4FGL_J0112.8+3208_daily_bin1249.fits outfile=/scratch/kocevski/428123/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1249.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=563068801.0 tmax=563328001.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 11.69
user 3.23
sys 8.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428123/ft1_filtered_4FGL_J0112.8+3208_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/428123/ft2_4FGL_J0112.8+3208_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/428123/ltcube_563068801_563328001_4FGL_J0112.8+3208_daily_bin1249.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/428123/ft2_4FGL_J0112.8+3208_daily_bin1249.fits
.....................!
real 23.18
user 13.55
sys 9.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428123/ft1_filtered_4FGL_J0112.8+3208_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/428123/ft2_4FGL_J0112.8+3208_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/428123/ltcube_563068801_563328001_4FGL_J0112.8+3208_daily_bin1249.fits outfile=/scratch/kocevski/428123/expmap_563068801_563328001_4FGL_J0112.8+3208_daily_bin1249.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/428123/ltcube_563068801_563328001_4FGL_J0112.8+3208_daily_bin1249.fits
.....................!
real 203.52
user 187.16
sys 15.99

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/428123/ft1_filtered_4FGL_J0112.8+3208_daily_bin1249.fits scfile=/scratch/kocevski/428123/ft2_4FGL_J0112.8+3208_daily_bin1249.fits outfile=/scratch/kocevski/428123/cmap_563068801_563328001_4FGL_J0112.8+3208_daily_bin1249.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 8.52
user 0.37
sys 8.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428123/ft1_filtered_4FGL_J0112.8+3208_daily_bin1249.fits scfile=/scratch/kocevski/428123/ft2_4FGL_J0112.8+3208_daily_bin1249.fits outfile=/scratch/kocevski/428123/cmap_HighResolution_563068801_563328001_4FGL_J0112.8+3208_daily_bin1249.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 8.59
user 0.40
sys 8.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46668       1.0000         .10000E-03   10000.    
     2 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8025       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    74.217       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8832       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.721       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    128.02       1.0000         .10000E-03   10000.    
    19 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7033       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67841       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0912       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1873.058     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     3042 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10515E-03    8176.5        .14353E-03** at limit **
   2  norm          .10000E-03    3.5738       -.30003E-06** at limit **
   3  Prefactor     3.7879        3.7753        .27714E-05   -.58273E-03
   4  Prefactor     .10000E-03    6.5878        .51051E-05** at limit **
   5  Prefactor     .10000E-03    11.680        .23021E-05** at limit **
   6  Prefactor     .10000E-03    7.4664       -.33588E-05** at limit **
   7  Prefactor     25.812        3.2252       -.66203E-06    .31672E-02
   8  Prefactor     .10001E-03    35.563       -.68396E-05** at limit **
   9  Prefactor     74.218        1.0686       -.47282E-07    .74205E-03
  10  norm          .10000E-03    .84812       -.45565E-06** at limit **
  11  norm          2.8833        3.1643       -.37090E-06   -.22116E-06
  12  Prefactor     .10012E-03    26.964       -.24032E-04** at limit **
  13  Prefactor     .10000E-03    6.0080       -.48951E-06** at limit **
  14  Prefactor     35.690        5.3201        .83748E-06   -.58063E-03
  15  Prefactor     .10000E-03    21.985       -.10946E-05** at limit **
  16  norm          .10000E-03    1.1164        .30243E-06** at limit **
  17  Prefactor     .10006E-03    85.667       -.11691E-04** at limit **
  18  Prefactor     128.04        3.8091       -.17522E-06   -.29373E-02
  19  norm          .10000E-03    4.1182       -.96581E-06** at limit **
  20  Prefactor     .10009E-03    49.693        .76112E-05** at limit **
  21  Prefactor     4.6881        3.6481        .19725E-05   -.37700E-03
  22  Prefactor     .10026E-03    26.044       -.23989E-04** at limit **
  23  norm          .10001E-03    33.709       -.35239E-05** at limit **
  24  Prefactor     .10083E-03    30.586       -.16576E-04** at limit **
  25  Normalizat    .67909        .43235       -.68351E-05    .20795E-04
  26  Prefactor     1.0910        .26622        .46521E-05    .40701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105147
  norm       = 0.0001
  Prefactor  = 3.78792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.8123
  Prefactor  = 0.000100011
  Prefactor  = 74.2183
  norm       = 0.0001
  norm       = 2.88329
  Prefactor  = 0.000100116
  Prefactor  = 0.0001
  Prefactor  = 35.6904
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 128.041
  norm       = 0.0001
  Prefactor  = 0.00010009
  Prefactor  = 4.68807
  Prefactor  = 0.000100261
  norm       = 0.000100006
  Prefactor  = 0.000100834
  Normalizat = 0.679088
  Prefactor  = 1.09104
 **********
 **   18 **HESSE 
 **********

 FCN=   1873.058     FROM HESSE     STATUS=OK           504 CALLS     3546 TOTAL
                     EDM=   .84E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10515E-03    54.522        .11134       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.4959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7879        45.428        .51750E-02   -1.5319    
   4  Prefactor     .10000E-03    6.5682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4698        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.812        39.534        .19716E-02   -1.4691    
   8  Prefactor     .10001E-03    36.056        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     74.218        73.797        .11651E-02   -1.3983    
  10  norm          .10000E-03    .83487        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8833        3.3797        .59839E-02   -1.5368    
  12  Prefactor     .10012E-03    76.624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.690        36.242        .16763E-02   -1.4512    
  15  Prefactor     .10000E-03    22.055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1166        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    94.566        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     128.04        327.92        .88954E-03   -1.3440    
  19  norm          .10000E-03    2.6536        .37767E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10009E-03    53.982        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6881        43.871        .46388E-02   -1.5275    
  22  Prefactor     .10026E-03    78.294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    34.294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10083E-03    66.395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .67909        .40092        .81219E-01   -1.0472    
  26  Prefactor     1.0910        .23292        .37932E-01   -.89753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40718e-07
Minuit parameter uncertainties:
  1  0.0335349
  2  7.60701e-07
  3  26.2602
  4  9.17286e-06
  5  5.86065e-06
  6  5.82792e-06
  7  39.5743
  8  0.00128581
  9  73.8887
  10  3.03072e-07
  11  3.37991
  12  0.00596952
  13  7.21951e-07
  14  36.2646
  15  1.35474e-05
  16  2.26901e-07
  17  0.00475402
  18  332.758
  19  2.0932e-06
  20  0.00441879
  21  28.71
  22  0.00904517
  23  0.000882461
  24  0.0148957
  25  0.402664
  26  0.233135
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  2.883e+00  3.380e+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.091e+00  2.331e-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:  6.791e-01  4.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 18.223 32.140
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 7.95e-08 +/- 9.32e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 3.35e-05

TS (Fixed Index): 1.74
Ra Dec: 18.223 32.140
Photon Flux Upper Limit: 3.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428123/likelihoodResults_563068801_563328001_4FGL_J0112.8+3208_daily_bin1249.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) = 1872.83536338
delta logL = 0.222652255583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1872.80896359
delta logL = 0.249052053109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1389       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6312       1.0000          .0000       5.0000    
     3 'Normalizat'    .70558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0835       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=   1872.809     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1367        2.4426        .70460E-02   -.32989E-03
   2  alpha         1.6321        .61308        .26608        .16450E-04
   3  Normalizat    .70638        .37576        .79819E-01    .68797E-04
   4  Prefactor     1.0829        .23109        .38252E-01   -.10331E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.13674
  alpha      = 1.6321
  Normalizat = 0.706375
  Prefactor  = 1.08294
 **********
 **   18 **HESSE 
 **********

 FCN=   1872.809     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1367        3.0431        .67997E-04   -1.5416    
   2  alpha         1.6321        .82466        .10809E-01   -.35454    
   3  Normalizat    .70638        .43216        .35343E-03   -1.0364    
   4  Prefactor     1.0829        .26668        .17750E-03   -.90014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90276e-10
Minuit parameter uncertainties:
  1  3.04333
  2  0.842687
  3  0.43427
  4  0.267008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428123': 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) = 1872.80895938
delta logL = 0.249056257696

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  2.137e+00  3.043e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  1.632e+00  8.427e-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.083e+00  2.670e-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.064e-01  4.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 18.223 32.140
Photon Index (Free Index): 1.63 +/- 0.84
Photon Flux (Free Index): 4.15e-08 +/- 6.50e-08
Energy Flux (Free Index): 4.67e-05 +/- 6.90e-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/428123/cmap_HighResolution_563068801_563328001_4FGL_J0112.8+3208_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-04', comment='SUCCESS', photon_flux='7.95e-08', energy_flux2='4.67e-05', photon_flux_error='9.32e-08', dlogl='2.49e-01', energy_flux='2.86e-05', photon_flux2='4.15e-08', job_status='DONE', time_completed='2021-08-13 17:00:32.423479', photon_index_error2='0.84', photon_index2='1.63', ts='1.74', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='3.17e-07', energy_flux_error2='6.90e-05', EG='0.68', time_epoch_completed='1628899232.42', return_code='0', job_id='428123', GAL2='1.08', EG2='0.71', return_code2='0', energy_flux_error='3.35e-05', photon_flux_error2='6.50e-08', ts2='2.25', photon_index='2.25' WHERE bin_id='1249' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:00:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 428123: <4FGL_J0112.8+3208_daily_bin1249> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1249> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 16:45:29 2021
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:46:22 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:22 2021
Terminated at Fri Aug 13 17:00:34 2021
Results reported at Fri Aug 13 17:00:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1249 18.2227 32.1399 563068801 563328001 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 :                                   683.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             235.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            905 sec.

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

