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


Performing analysis on: 4FGL_J0112.1+2245_daily_bin1064
RA = 18.0294, Dec = 22.7515
tmin = 515116801, tmax = 515376001
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='415868', job_status='RUN', time_executed='2021-08-13 16:09:54.525247', time_epoch_executed='1628896194.53' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415868

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415868/ft1_4FGL_J0112.1+2245_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415868/ft2_4FGL_J0112.1+2245_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415868/ft1_4FGL_J0112.1+2245_daily_bin1064.fits outfile=/scratch/kocevski/415868/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin1064.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=515116801.0 tmax=515376001.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.25
user 3.30
sys 0.93

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415868/ft1_filtered_4FGL_J0112.1+2245_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/415868/ft2_4FGL_J0112.1+2245_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/415868/ltcube_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.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/415868/ft2_4FGL_J0112.1+2245_daily_bin1064.fits
.....................!
real 12.94
user 11.76
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415868/ft1_filtered_4FGL_J0112.1+2245_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/415868/ft2_4FGL_J0112.1+2245_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/415868/ltcube_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.fits outfile=/scratch/kocevski/415868/expmap_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.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/415868/ltcube_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.fits
.....................!
real 191.57
user 185.09
sys 6.04

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/415868/ft1_filtered_4FGL_J0112.1+2245_daily_bin1064.fits scfile=/scratch/kocevski/415868/ft2_4FGL_J0112.1+2245_daily_bin1064.fits outfile=/scratch/kocevski/415868/cmap_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.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 1.22
user 0.37
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415868/ft1_filtered_4FGL_J0112.1+2245_daily_bin1064.fits scfile=/scratch/kocevski/415868/ft2_4FGL_J0112.1+2245_daily_bin1064.fits outfile=/scratch/kocevski/415868/cmap_HighResolution_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.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 1.17
user 0.39
sys 0.77

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/415868/ft1_filtered_4FGL_J0112.1+2245_daily_bin1064.fits', '/scratch/kocevski/415868/ft2_4FGL_J0112.1+2245_daily_bin1064.fits', expMap='/scratch/kocevski/415868/expmap_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.fits', expCube='/scratch/kocevski/415868/ltcube_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/415868/Model_4FGL_J0112.1+2245_daily_bin1064.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/415868/ft1_filtered_4FGL_J0112.1+2245_daily_bin1064.fits
Spacecraft file(s): /scratch/kocevski/415868/ft2_4FGL_J0112.1+2245_daily_bin1064.fits
Exposure map: /scratch/kocevski/415868/expmap_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.fits
Exposure cube: /scratch/kocevski/415868/ltcube_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/415868/Model_4FGL_J0112.1+2245_daily_bin1064.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) = 7643.63250856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11288E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58911       1.0000         .10000E-03   10000.    
     3 'norm      '    9.4216       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.701       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2329       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8148       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.544       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7972       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.617       1.0000         .10000E-03   10000.    
    18 'Prefactor '    237.88       1.0000         .10000E-03   10000.    
    19 'norm      '    .75440       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2465       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87476       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0814       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=   7643.607     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2431 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    126.28        .48912E-04** at limit **
   2  Prefactor     .59174        2.3027       -.10867E-05   -.60223E-03
   3  norm          9.4223        8.4943       -.73238E-06    .34416E-04
   4  Prefactor     .10000E-03    7.3848       -.35941E-07** at limit **
   5  norm          .10000E-03    4.8523       -.17935E-05** at limit **
   6  Prefactor     20.700        14.362       -.35398E-07    .10012E-03
   7  Prefactor     .10000E-03    3.0137        .10488E-07** at limit **
   8  Prefactor     .10000E-03    30.400        .96388E-05** at limit **
   9  Prefactor     .10000E-03    29.583       -.93044E-05** at limit **
  10  norm          2.2325        .79632        .14612E-07    .10426E-02
  11  norm          4.8150        1.9520       -.41729E-06   -.46583E-03
  12  Prefactor     23.547        17.548       -.19768E-05   -.33043E-04
  13  Prefactor     .10000E-03    142.00       -.60265E-04** at limit **
  14  Prefactor     .10000E-03    4.0879        .70579E-07** at limit **
  15  Prefactor     1.7945        9.7035        .75716E-05   -.45030E-03
  16  Prefactor     .10000E-03    4.9339        .18983E-05** at limit **
  17  Prefactor     18.621        30.310        .20814E-05    .10842E-05
  18  Prefactor     237.87        125.97       -.80088E-05    .11569E-04
  19  norm          .75431        .66180        .15296E-06    .14515E-03
  20  Prefactor     7.2477        10.429       -.26840E-06   -.71274E-04
  21  Normalizat    .87487        .20741        .33557E-06    .95403E-04
  22  Prefactor     1.0813        .12847        .42220E-06    .12001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 0.591742
  norm       = 9.42226
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.7
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.23251
  norm       = 4.81499
  Prefactor  = 23.5467
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.79454
  Prefactor  = 0.0001
  Prefactor  = 18.6214
  Prefactor  = 237.87
  norm       = 0.754311
  Prefactor  = 7.24766
  Normalizat = 0.874867
  Prefactor  = 1.08126
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.607     FROM HESSE     STATUS=OK           348 CALLS     2779 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    129.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .59174        4.2439        .24976E-02   -1.5554    
   3  norm          9.4223        8.4964        .13056E-03   -1.5094    
   4  Prefactor     .10000E-03    7.3901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.9307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.700        14.409        .88032E-04   -1.4798    
   7  Prefactor     .10000E-03    3.0155        .14822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2325        .79426        .44478E-04   -1.5409    
  11  norm          4.8150        1.9317        .70558E-04   -1.5269    
  12  Prefactor     23.547        17.641        .82553E-04   -1.4737    
  13  Prefactor     .10000E-03    143.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1329        .17253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7945        9.1362        .31189E-03   -1.5440    
  16  Prefactor     .10000E-03    4.9476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.621        30.315        .92826E-04   -1.4845    
  18  Prefactor     237.87        124.47        .13124E-03   -1.2611    
  19  norm          .75431        .63050        .61142E-03   -1.5534    
  20  Prefactor     7.2477        10.423        .14900E-03   -1.5169    
  21  Normalizat    .87487        .23689        .33892E-03   -.97349    
  22  Prefactor     1.0813        .14789        .20087E-03   -.90068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.271e-09
Minuit parameter uncertainties:
  1  0.00240235
  2  3.16946
  3  8.49747
  4  5.19181e-06
  5  5.92619e-06
  6  14.4116
  7  6.43681e-07
  8  1.3261e-05
  9  3.16844e-05
  10  0.794267
  11  1.93176
  12  17.6447
  13  0.000668895
  14  1.85198e-05
  15  8.09997
  16  1.36008e-05
  17  30.34
  18  124.607
  19  0.630502
  20  10.4255
  21  0.237167
  22  0.147944
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  2.233e+00  7.943e-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.081e+00  1.479e-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.749e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.10
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 4.08e-08
Energy Flux (Fixed Index): 6.61e-05 +/- 2.35e-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) = 7642.53520351
delta logL = 1.07140584415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7642.5309138
delta logL = 1.07569556025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9199       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5190       1.0000          .0000       5.0000    
     3 'Normalizat'    .79885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1099       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=   7642.531     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9199        7.6416        .74975E-02    .31464E-02
   2  alpha         2.5189        3.7132        .20978        .27457E-04
   3  Normalizat    .79886        .12551        .79670E-01    .23885E-04
   4  Prefactor     1.1099        .62342E-01    .37221E-01    .58983E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91988
  alpha      = 2.51893
  Normalizat = 0.798864
  Prefactor  = 1.10993
 **********
 **   18 **HESSE 
 **********

 FCN=   7642.531     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9199        .79169        .36844E-04   -1.5431    
   2  alpha         2.5189        .36963        .86479E-02    .75740E-02
   3  Normalizat    .79886        .22997        .35272E-03   -1.0011    
   4  Prefactor     1.1099        .14728        .19845E-03   -.89150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7245e-10
Minuit parameter uncertainties:
  1  0.791694
  2  0.370987
  3  0.230252
  4  0.147338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415868': 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) = 7642.53091379
delta logL = 1.07569556623

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.920e+00  7.917e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.519e+00  3.710e-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.110e+00  1.473e-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:  7.989e-01  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.28
Ra Dec: 18.029 22.752
Photon Index (Free Index): 2.52 +/- 0.37
Photon Flux (Free Index): 1.81e-07 +/- 7.19e-08
Energy Flux (Free Index): 5.18e-05 +/- 1.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/415868/cmap_HighResolution_515116801_515376001_4FGL_J0112.1+2245_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='5.18e-05', photon_flux_error='4.08e-08', dlogl='1.08e+00', energy_flux='6.61e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-08-13 16:20:35.881883', photon_index_error2='0.37', photon_index2='2.52', ts='20.10', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='0.87', time_epoch_completed='1628896835.88', return_code='0', job_id='415868', GAL2='1.11', EG2='0.80', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='7.19e-08', ts2='22.28', photon_index='2.01' WHERE bin_id='1064' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:20:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 415868: <4FGL_J0112.1+2245_daily_bin1064> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin1064> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 16:05:23 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:05:44 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:05:44 2021
Terminated at Fri Aug 13 16:20:36 2021
Results reported at Fri Aug 13 16:20:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin1064 18.0294 22.7515 515116801 515376001 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 :                                   645.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            913 sec.

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

