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


Performing analysis on: 4FGL_J0112.1+2245_daily_bin1615
RA = 18.0294, Dec = 22.7515
tmin = 657936001, tmax = 658195201
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='136751', job_status='RUN', time_executed='2021-12-07 11:59:52.714872', time_epoch_executed='1638907192.71' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136751

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136751/ft1_4FGL_J0112.1+2245_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136751/ft1_4FGL_J0112.1+2245_daily_bin1615.fits outfile=/scratch/kocevski/136751/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin1615.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=657936001.0 tmax=658195201.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 4.09
user 3.85
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.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/136751/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin1615.fits evtable="EVENTS" outfile="/scratch/kocevski/136751/ft1_filtered_4FGL_J0112.1+2245_daily_bin1615.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136751/ft1_filtered_4FGL_J0112.1+2245_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/136751/ltcube_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.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/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits
.....................!
real 13.39
user 13.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136751/ft1_filtered_4FGL_J0112.1+2245_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/136751/ltcube_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.fits outfile=/scratch/kocevski/136751/expmap_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.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/136751/ltcube_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.fits
.....................!
real 191.84
user 186.02
sys 5.30

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.1+2245 @ 18.0294 22.7515

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/136751/ft1_filtered_4FGL_J0112.1+2245_daily_bin1615.fits scfile=/scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits outfile=/scratch/kocevski/136751/cmap_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.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.0294 yref=22.7515 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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136751/ft1_filtered_4FGL_J0112.1+2245_daily_bin1615.fits scfile=/scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits outfile=/scratch/kocevski/136751/cmap_HighResolution_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.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.0294 yref=22.7515 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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136751/ft1_filtered_4FGL_J0112.1+2245_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136751/Model_4FGL_J0112.1+2245_daily_bin1615.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/136751/ft1_filtered_4FGL_J0112.1+2245_daily_bin1615.fits.....................!
real 67.32
user 65.87
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/136751/ft1_filtered_4FGL_J0112.1+2245_daily_bin1615.fits', '/scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits', expMap='/scratch/kocevski/136751/expmap_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.fits', expCube='/scratch/kocevski/136751/ltcube_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/136751/Model_4FGL_J0112.1+2245_daily_bin1615.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0112.1+2245'

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.596e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.006e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
250         beta:  5.709e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
251           Eb:  7.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/136751/ft1_filtered_4FGL_J0112.1+2245_daily_bin1615.fits
Spacecraft file(s): /scratch/kocevski/136751/ft2_4FGL_J0112.1+2245_daily_bin1615.fits
Exposure map: /scratch/kocevski/136751/expmap_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.fits
Exposure cube: /scratch/kocevski/136751/ltcube_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/136751/Model_4FGL_J0112.1+2245_daily_bin1615.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) = 6489.44219105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77190E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    5.9514       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .63766E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.766       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14330E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3354       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.636       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8370       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.912       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.591       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.533       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6380       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82943       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6489.409     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2779 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.957        .21517E-06** at limit **
   2  Prefactor     .75281E-01    1.5614        .48644E-06   -.13540E-02
   3  norm          5.9531        9.9601       -.44993E-05   -.91011E-04
   4  Prefactor     .10000E-03    9.1487        .48496E-07** at limit **
   5  norm          .10380        4.5959       -.66518E-06    .26065E-04
   6  Prefactor     .10000E-03    7.0898       -.33568E-08** at limit **
   7  Prefactor     44.768        19.759       -.70257E-05   -.11812E-04
   8  Prefactor     .10381E-03    54.785       -.31402E-07** at limit **
   9  Prefactor     .10000E-03    10.527       -.13160E-06** at limit **
  10  norm          1.3355        .60201       -.51028E-07   -.11106E-03
  11  norm          1.8242        1.2534        .31273E-06    .71416E-04
  12  Prefactor     17.638        15.506       -.35990E-05   -.15779E-04
  13  Prefactor     .10000E-03    13.956       -.56557E-06** at limit **
  14  Prefactor     2.8375        4.0407       -.51771E-06   -.35667E-03
  15  Prefactor     .10000E-03    6.8859       -.30196E-07** at limit **
  16  Prefactor     14.914        13.322        .27925E-05   -.20287E-04
  17  Prefactor     21.586        36.786        .75237E-05   -.23788E-07
  18  Prefactor     31.510        58.911        .68507E-05    .38137E-05
  19  norm          .10000E-03    .21798       -.73379E-07** at limit **
  20  Prefactor     3.6392        8.8746       -.22800E-05   -.23696E-03
  21  Normalizat    .82935        .19697        .13230E-05   -.22041E-04
  22  Prefactor     1.0262        .12604        .19336E-06    .62469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0752806
  norm       = 5.95305
  Prefactor  = 0.0001
  norm       = 0.103802
  Prefactor  = 0.0001
  Prefactor  = 44.7681
  Prefactor  = 0.000103815
  Prefactor  = 0.0001
  norm       = 1.33549
  norm       = 1.82416
  Prefactor  = 17.6378
  Prefactor  = 0.0001
  Prefactor  = 2.83746
  Prefactor  = 0.0001
  Prefactor  = 14.9137
  Prefactor  = 21.5858
  Prefactor  = 31.5098
  norm       = 0.0001
  Prefactor  = 3.63923
  Normalizat = 0.829354
  Prefactor  = 1.02616
 **********
 **   18 **HESSE 
 **********

 FCN=   6489.409     FROM HESSE     STATUS=OK           368 CALLS     3147 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .75281E-01    13.964        .19435E-02   -1.5653    
   3  norm          5.9531        9.9925        .16460E-03   -1.5220    
   4  Prefactor     .10000E-03    9.1563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10380        6.4521        .65640E-01   -1.5644    
   6  Prefactor     .10000E-03    7.1375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.768        19.690        .59922E-04   -1.4369    
   8  Prefactor     .10381E-03    48.828        .15954       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3355        .60212        .40408E-04   -1.5477    
  11  norm          1.8242        1.2490        .71262E-04   -1.5438    
  12  Prefactor     17.638        15.580        .95371E-04   -1.4868    
  13  Prefactor     .10000E-03    13.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8375        4.0336        .18643E-03   -1.5371    
  15  Prefactor     .10000E-03    7.0373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.914        13.327        .10372E-03   -1.4935    
  17  Prefactor     21.586        36.768        .86200E-04   -1.4778    
  18  Prefactor     31.510        58.861        .71354E-04   -1.4585    
  19  norm          .10000E-03    .22839        .73312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6392        8.9093        .21181E-03   -1.5326    
  21  Normalizat    .82935        .22750        .31648E-03   -.98989    
  22  Prefactor     1.0262        .14706        .18843E-03   -.91863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79898e-09
Minuit parameter uncertainties:
  1  3.60811e-06
  2  2.04971
  3  9.99534
  4  3.07069e-06
  5  1.63615
  6  4.5041e-06
  7  19.6925
  8  0.0273179
  9  7.33565e-06
  10  0.602126
  11  1.24905
  12  15.584
  13  1.56817e-05
  14  4.03398
  15  5.32737e-06
  16  13.3299
  17  36.8067
  18  58.9694
  19  3.40662e-06
  20  8.91255
  21  0.227764
  22  0.147117
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.335e+00  6.021e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.006e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
250         beta:  5.709e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
251           Eb:  7.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.026e+00  1.471e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  8.294e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.05
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 6.85e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 1.78e-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) = 6488.28078203
delta logL = 1.12803498943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6488.27941032
delta logL = 1.12940669307

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6488.279     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1851        .54940        .88994E-02   -.11987E-03
   2  alpha         1.4864        .27336        .22263       -.40670E-04
   3  Normalizat    .85437        .18825        .70568E-01    .21302E-04
   4  Prefactor     1.0183        .12403        .42313E-01    .17869E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18515
  alpha      = 1.4864
  Normalizat = 0.854373
  Prefactor  = 1.01831
 **********
 **   18 **HESSE 
 **********

 FCN=   6488.279     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1851        .61652        .39167E-04   -1.5490    
   2  alpha         1.4864        .32259        .93240E-02   -.41746    
   3  Normalizat    .85437        .21884        .31225E-03   -.98082    
   4  Prefactor     1.0183        .14452        .18909E-03   -.92122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39097e-10
Minuit parameter uncertainties:
  1  0.616525
  2  0.323673
  3  0.219067
  4  0.144576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136751': 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) = 6488.27941031
delta logL = 1.12940670934

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.185e+00  6.165e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  1.486e+00  3.237e-01  0.000e+00  5.000e+00 ( 1.000e+00)
250         beta:  5.709e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
251           Eb:  7.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.018e+00  1.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  8.544e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.32
Ra Dec: 18.029 22.752
Photon Index (Free Index): 1.49 +/- 0.32
Photon Flux (Free Index): 4.19e-08 +/- 2.43e-08
Energy Flux (Free Index): 8.57e-05 +/- 6.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/136751/cmap_HighResolution_657936001_658195201_4FGL_J0112.1+2245_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.85e-08', energy_flux2='8.57e-05', photon_flux_error='3.09e-08', dlogl='1.13e+00', energy_flux='3.95e-05', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-12-07 12:10:00.940095', photon_index_error2='0.32', photon_index2='1.49', ts='16.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='6.31e-05', EG='0.83', time_epoch_completed='1638907800.94', return_code='0', job_id='136751', GAL2='1.02', EG2='0.85', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='2.43e-08', ts2='18.32', photon_index='2.01' WHERE bin_id='1615' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:10:00 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 136751: <4FGL_J0112.1+2245_daily_bin1615> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin1615> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 11:55:22 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:56:30 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:30 2021
Terminated at Tue Dec  7 12:10:01 2021
Results reported at Tue Dec  7 12:10:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin1615 18.0294 22.7515 657936001 658195201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.1+2245 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   606.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            879 sec.

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

