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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1003
RA = 18.2227, Dec = 32.1399
tmin = 499305601, tmax = 499564801
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='425172', job_status='RUN', time_executed='2021-08-13 16:41:30.911784', time_epoch_executed='1628898090.91' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425172

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425172/ft1_4FGL_J0112.8+3208_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425172/ft2_4FGL_J0112.8+3208_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425172/ft1_4FGL_J0112.8+3208_daily_bin1003.fits outfile=/scratch/kocevski/425172/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1003.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=499305601.0 tmax=499564801.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 13.86
user 5.31
sys 8.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425172/ft2_4FGL_J0112.8+3208_daily_bin1003.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/425172/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/425172/ft1_filtered_4FGL_J0112.8+3208_daily_bin1003.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.75
user 0.32
sys 8.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425172/ft1_filtered_4FGL_J0112.8+3208_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/425172/ft2_4FGL_J0112.8+3208_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/425172/ltcube_499305601_499564801_4FGL_J0112.8+3208_daily_bin1003.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/425172/ft2_4FGL_J0112.8+3208_daily_bin1003.fits
.....................!
real 21.55
user 11.90
sys 9.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425172/ft1_filtered_4FGL_J0112.8+3208_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/425172/ft2_4FGL_J0112.8+3208_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/425172/ltcube_499305601_499564801_4FGL_J0112.8+3208_daily_bin1003.fits outfile=/scratch/kocevski/425172/expmap_499305601_499564801_4FGL_J0112.8+3208_daily_bin1003.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/425172/ltcube_499305601_499564801_4FGL_J0112.8+3208_daily_bin1003.fits
.....................!
real 203.26
user 187.13
sys 15.57

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/425172/ft1_filtered_4FGL_J0112.8+3208_daily_bin1003.fits scfile=/scratch/kocevski/425172/ft2_4FGL_J0112.8+3208_daily_bin1003.fits outfile=/scratch/kocevski/425172/cmap_499305601_499564801_4FGL_J0112.8+3208_daily_bin1003.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.71
user 0.36
sys 8.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425172/ft1_filtered_4FGL_J0112.8+3208_daily_bin1003.fits scfile=/scratch/kocevski/425172/ft2_4FGL_J0112.8+3208_daily_bin1003.fits outfile=/scratch/kocevski/425172/cmap_HighResolution_499305601_499564801_4FGL_J0112.8+3208_daily_bin1003.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.62
user 0.39
sys 8.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.541       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1918       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.546       1.0000         .10000E-03   10000.    
    10 'norm      '    .56995E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4508       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0229       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.856       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.1154       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0633       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .73862       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1428       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=   2991.879     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3080 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.540        38.170       -.13444E-05    .24714E-04
   2  norm          .10000E-03    1.2618       -.71922E-08** at limit **
   3  Prefactor     24.182        24.373       -.29969E-05    .42418E-04
   4  Prefactor     .10000E-03    9.2048       -.12170E-05** at limit **
   5  Prefactor     .21429        13.831       -.51110E-05    .74784E-03
   6  Prefactor     2.1855        28.163       -.15898E-05   -.10942E-03
   7  Prefactor     .10000E-03    39.682        .95460E-05** at limit **
   8  Prefactor     .10000E-03    61.267        .38833E-05** at limit **
   9  Prefactor     54.541        82.229       -.65015E-05    .27317E-05
  10  norm          .56469E-01    .91590       -.43085E-06   -.29408E-03
  11  norm          3.4517        2.0607       -.14793E-07    .51743E-03
  12  Prefactor     .10000E-03    52.250       -.24751E-04** at limit **
  13  Prefactor     .10000E-03    2.7311        .30748E-08** at limit **
  14  Prefactor     .10000E-03    6.8066        .43940E-07** at limit **
  15  Prefactor     .10000E-03    4.7714        .39771E-07** at limit **
  16  norm          1.0222        2.5363       -.54601E-06   -.53889E-03
  17  Prefactor     49.839        51.845       -.16024E-04   -.48918E-05
  18  Prefactor     .10000E-03    93.597        .65647E-04** at limit **
  19  norm          2.1146        1.0581       -.43253E-07   -.33859E-03
  20  Prefactor     .10000E-03    11.848       -.71172E-06** at limit **
  21  Prefactor     .10000E-03    1.8176       -.12927E-07** at limit **
  22  Prefactor     .10000E-03    9.9685        .17136E-05** at limit **
  23  norm          1.0631        3.7412       -.85699E-06   -.51984E-03
  24  Prefactor     .10000E-03    5.8485       -.54647E-07** at limit **
  25  Normalizat    .73882        .29171        .24861E-05    .21522E-03
  26  Prefactor     1.1428        .19016        .98415E-06    .30134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.5396
  norm       = 0.0001
  Prefactor  = 24.1823
  Prefactor  = 0.0001
  Prefactor  = 0.214293
  Prefactor  = 2.18553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.541
  norm       = 0.0564689
  norm       = 3.45167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02224
  Prefactor  = 49.839
  Prefactor  = 0.0001
  norm       = 2.11464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06314
  Prefactor  = 0.0001
  Normalizat = 0.738816
  Prefactor  = 1.14283
 **********
 **   18 **HESSE 
 **********

 FCN=   2991.879     FROM HESSE     STATUS=OK           454 CALLS     3534 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.540        38.164        .30378E-03   -1.4387    
   2  norm          .10000E-03    1.2635        .60003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.182        24.400        .81450E-04   -1.4724    
   4  Prefactor     .10000E-03    9.3087        .16204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21429        233.95        .38330E-02   -1.5615    
   6  Prefactor     2.1855        28.080        .27799E-03   -1.5412    
   7  Prefactor     .10000E-03    39.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    61.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     54.541        82.037        .54310E-04   -1.4230    
  10  norm          .56469E-01    2.4013        .99134E-03   -1.5660    
  11  norm          3.4517        2.0571        .58356E-04   -1.5336    
  12  Prefactor     .10000E-03    52.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7351        .88277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8898        .13930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7747        .11669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0222        2.4802        .13096E-03   -1.5506    
  17  Prefactor     49.839        51.897        .56795E-04   -1.4295    
  18  Prefactor     .10000E-03    93.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1146        1.0584        .28361E-04   -1.5417    
  20  Prefactor     .10000E-03    11.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.8256        .72013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.9701        .16868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0631        3.6855        .19257E-03   -1.5502    
  24  Prefactor     .10000E-03    5.9170        .12907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .73882        .32966        .33301E-03   -1.0238    
  26  Prefactor     1.1428        .21703        .18024E-03   -.88109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95983e-08
Minuit parameter uncertainties:
  1  38.1858
  2  4.6517e-07
  3  24.4105
  4  4.48497e-07
  5  14.2137
  6  15.6764
  7  4.09842e-05
  8  0.000116982
  9  82.2079
  10  0.73585
  11  2.05716
  12  2.06004e-05
  13  1.41482e-06
  14  1.42809e-05
  15  8.12219e-06
  16  2.48048
  17  51.9438
  18  1.11334e-05
  19  1.05845
  20  1.79384e-05
  21  2.64059e-06
  22  4.13186e-06
  23  3.68627
  24  8.06622e-07
  25  0.330551
  26  0.217195
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  3.452e+00  2.057e+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.143e+00  2.172e-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.388e-01  3.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.01
Ra Dec: 18.223 32.140
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 9.52e-08 +/- 5.67e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 2.04e-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) = 2991.58334625
delta logL = 0.295997517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2991.57495989
delta logL = 0.304383876056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6593       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8741       1.0000          .0000       5.0000    
     3 'Normalizat'    .76076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1330       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=   2991.575     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6595        2.2270        .52791E-02    .19639E-04
   2  alpha         1.8740        .44359        .22440       -.10236E-04
   3  Normalizat    .76058        .28049        .74210E-01    .93284E-05
   4  Prefactor     1.1331        .18585        .36450E-01   -.77830E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.6595
  alpha      = 1.87404
  Normalizat = 0.76058
  Prefactor  = 1.13308
 **********
 **   18 **HESSE 
 **********

 FCN=   2991.575     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6595        2.1613        .59648E-04   -1.5325    
   2  alpha         1.8740        .45120        .94698E-02   -.25308    
   3  Normalizat    .76058        .31891        .32847E-03   -1.0155    
   4  Prefactor     1.1331        .21187        .18084E-03   -.88416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94699e-11
Minuit parameter uncertainties:
  1  2.16131
  2  0.453857
  3  0.3197
  4  0.212029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425172': 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) = 2991.57495971
delta logL = 0.304384056258

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  3.659e+00  2.161e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  1.874e+00  4.539e-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.133e+00  2.120e-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.606e-01  3.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.62
Ra Dec: 18.223 32.140
Photon Index (Free Index): 1.87 +/- 0.45
Photon Flux (Free Index): 7.82e-08 +/- 5.15e-08
Energy Flux (Free Index): 5.12e-05 +/- 4.31e-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/425172/cmap_HighResolution_499305601_499564801_4FGL_J0112.8+3208_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.52e-08', energy_flux2='5.12e-05', photon_flux_error='5.67e-08', dlogl='3.04e-01', energy_flux='3.42e-05', photon_flux2='7.82e-08', job_status='DONE', time_completed='2021-08-13 16:51:38.270341', photon_index_error2='0.45', photon_index2='1.87', ts='6.01', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='4.31e-05', EG='0.74', time_epoch_completed='1628898698.27', return_code='0', job_id='425172', GAL2='1.13', EG2='0.76', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='5.15e-08', ts2='6.62', photon_index='2.25' WHERE bin_id='1003' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 425172: <4FGL_J0112.8+3208_daily_bin1003> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1003> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 13 16:35:35 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:35:57 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:35:57 2021
Terminated at Fri Aug 13 16:51:43 2021
Results reported at Fri Aug 13 16:51:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1003 18.2227 32.1399 499305601 499564801 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 :                                   732.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             196.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            968 sec.

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

