/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 1 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 = 7420
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0112.1+2245_daily_bin295
RA = 18.0294, Dec = 22.7515
tmin = 315792001, tmax = 316051201
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='408825', job_status='RUN', time_executed='2021-08-13 15:48:02.678327', time_epoch_executed='1628894882.68' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408825/ft1_4FGL_J0112.1+2245_daily_bin295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408825/ft2_4FGL_J0112.1+2245_daily_bin295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408825/ft1_4FGL_J0112.1+2245_daily_bin295.fits outfile=/scratch/kocevski/408825/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin295.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=315792001.0 tmax=316051201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.62
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408825/ft2_4FGL_J0112.1+2245_daily_bin295.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/408825/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin295.fits evtable="EVENTS" outfile="/scratch/kocevski/408825/ft1_filtered_4FGL_J0112.1+2245_daily_bin295.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.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408825/ft1_filtered_4FGL_J0112.1+2245_daily_bin295.fits" evtable="EVENTS" scfile=/scratch/kocevski/408825/ft2_4FGL_J0112.1+2245_daily_bin295.fits sctable="SC_DATA" outfile=/scratch/kocevski/408825/ltcube_315792001_316051201_4FGL_J0112.1+2245_daily_bin295.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/408825/ft2_4FGL_J0112.1+2245_daily_bin295.fits
.....................!
real 12.58
user 12.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408825/ft1_filtered_4FGL_J0112.1+2245_daily_bin295.fits evtable="EVENTS" scfile=/scratch/kocevski/408825/ft2_4FGL_J0112.1+2245_daily_bin295.fits sctable="SC_DATA" expcube=/scratch/kocevski/408825/ltcube_315792001_316051201_4FGL_J0112.1+2245_daily_bin295.fits outfile=/scratch/kocevski/408825/expmap_315792001_316051201_4FGL_J0112.1+2245_daily_bin295.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/408825/ltcube_315792001_316051201_4FGL_J0112.1+2245_daily_bin295.fits
.....................!
real 190.70
user 185.60
sys 4.59

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/408825/ft1_filtered_4FGL_J0112.1+2245_daily_bin295.fits scfile=/scratch/kocevski/408825/ft2_4FGL_J0112.1+2245_daily_bin295.fits outfile=/scratch/kocevski/408825/cmap_315792001_316051201_4FGL_J0112.1+2245_daily_bin295.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408825/ft1_filtered_4FGL_J0112.1+2245_daily_bin295.fits scfile=/scratch/kocevski/408825/ft2_4FGL_J0112.1+2245_daily_bin295.fits outfile=/scratch/kocevski/408825/cmap_HighResolution_315792001_316051201_4FGL_J0112.1+2245_daily_bin295.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9362       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.657       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.873       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5294       1.0000         .10000E-03   10000.    
    11 'norm      '    .54756E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1028       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6402       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.342       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.944       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6546       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .22072       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.5316       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=   5572.082     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2384 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.106       -.72751E-06** at limit **
   2  Prefactor     4.9334        4.7499        .66328E-06   -.32311E-03
   3  norm          .10000E-03    4.2615        .44351E-05** at limit **
   4  Prefactor     .10000E-03    7.2199       -.28213E-06** at limit **
   5  norm          .10000E-03    2.7319       -.63538E-07** at limit **
   6  Prefactor     .10000E-03    4.2670       -.47357E-05** at limit **
   7  Prefactor     .10000E-03    3.3509       -.10997E-06** at limit **
   8  Prefactor     69.601        72.492       -.56684E-04   -.70227E-04
   9  Prefactor     36.871        40.263       -.17346E-05   -.87778E-05
  10  norm          1.5289        .87210       -.66906E-07   -.49710E-03
  11  norm          .54865E-01    .66933       -.10364E-05    .65138E-03
  12  Prefactor     5.0965        16.428        .22388E-04    .21185E-04
  13  Prefactor     .10000E-03    24.350       -.12721E-06** at limit **
  14  Prefactor     .10000E-03    2.0075        .13583E-06** at limit **
  15  Prefactor     7.6350        8.0572        .35415E-05    .21335E-03
  16  Prefactor     13.337        14.133        .26743E-05   -.55670E-04
  17  Prefactor     23.921        32.708       -.16964E-04   -.14746E-04
  18  Prefactor     .10000E-03    114.85       -.50006E-07** at limit **
  19  norm          2.6544        .95833       -.89611E-07   -.25460E-03
  20  Prefactor     .10000E-03    2.9813       -.26923E-07** at limit **
  21  Normalizat    .22138        .37902        .52704E-05    .69945E-04
  22  Prefactor     1.5312        .25383        .37554E-06   -.64991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.93345
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.601
  Prefactor  = 36.8715
  norm       = 1.52894
  norm       = 0.0548654
  Prefactor  = 5.09649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.63499
  Prefactor  = 13.337
  Prefactor  = 23.9207
  Prefactor  = 0.0001
  norm       = 2.65441
  Prefactor  = 0.0001
  Normalizat = 0.221379
  Prefactor  = 1.53116
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.082     FROM HESSE     STATUS=OK           346 CALLS     2730 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9334        4.6088        .14718E-03   -1.5264    
   3  norm          .10000E-03    4.2634        .15048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7327        .12050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2732        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3535        .13345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     69.601        71.760        .24048E-03   -1.4037    
   9  Prefactor     36.871        40.329        .66001E-04   -1.4493    
  10  norm          1.5289        .86513        .47123E-04   -1.5461    
  11  norm          .54865E-01    4.1076        .11451E-02   -1.5661    
  12  Prefactor     5.0965        16.106        .17799E-03   -1.5256    
  13  Prefactor     .10000E-03    24.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0104        .10325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6350        7.6543        .14508E-03   -1.5155    
  16  Prefactor     13.337        13.835        .10966E-03   -1.4977    
  17  Prefactor     23.921        32.725        .81862E-04   -1.4729    
  18  Prefactor     .10000E-03    115.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6544        .95553        .42001E-04   -1.5382    
  20  Prefactor     .10000E-03    2.9850        .12586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .22138        .25016        .58722E-03   -1.2788    
  22  Prefactor     1.5312        .17677        .17201E-03   -.76671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32747e-09
Minuit parameter uncertainties:
  1  1.31529e-05
  2  4.6091
  3  8.57764e-07
  4  7.00024e-06
  5  1.62681e-06
  6  7.30871e-06
  7  4.69331e-06
  8  71.8493
  9  40.3586
  10  0.865133
  11  0.948653
  12  16.12
  13  7.44051e-05
  14  7.59192e-06
  15  7.6553
  16  13.8383
  17  32.7494
  18  0.000204482
  19  0.955531
  20  1.15689e-06
  21  0.251436
  22  0.176841
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.529e+00  8.651e-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.531e+00  1.768e-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:  2.214e-01  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.18
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 7.85e-08 +/- 4.44e-08
Energy Flux (Fixed Index): 4.53e-05 +/- 2.56e-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) = 5571.98555884
delta logL = 0.0969183314401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5571.98338177
delta logL = 0.099095399105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4640       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1911       1.0000          .0000       5.0000    
     3 'Normalizat'    .20580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5372       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=   5571.983     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      227 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4636        14.971        .88864E-02    .25798E-03
   2  alpha         2.1910        3.5112        .25688        .28597E-04
   3  Normalizat    .20605        .11996        .13823        .79597E-04
   4  Prefactor     1.5370        .77978E-01    .29398E-01   -.22109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46363
  alpha      = 2.19103
  Normalizat = 0.206048
  Prefactor  = 1.53698
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.983     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .97E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4636        .79774        .44005E-04   -1.5466    
   2  alpha         2.1910        .42537        .10282E-01   -.12390    
   3  Normalizat    .20605        .24040        .60756E-03   -1.2897    
   4  Prefactor     1.5370        .17466        .85844E-03   -.76509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73033e-13
Minuit parameter uncertainties:
  1  0.797748
  2  0.427486
  3  0.241622
  4  0.174733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408825': 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) = 5571.98338099
delta logL = 0.0990961859525

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.464e+00  7.977e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.191e+00  4.275e-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.537e+00  1.747e-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:  2.060e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.41
Ra Dec: 18.029 22.752
Photon Index (Free Index): 2.19 +/- 0.43
Photon Flux (Free Index): 9.18e-08 +/- 5.35e-08
Energy Flux (Free Index): 3.88e-05 +/- 2.38e-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/408825/cmap_HighResolution_315792001_316051201_4FGL_J0112.1+2245_daily_bin295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.85e-08', energy_flux2='3.88e-05', photon_flux_error='4.44e-08', dlogl='9.91e-02', energy_flux='4.53e-05', photon_flux2='9.18e-08', job_status='DONE', time_completed='2021-08-13 15:57:17.711166', photon_index_error2='0.43', photon_index2='2.19', ts='9.18', fit_tolerance='1e-08', GAL='1.53', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='0.22', time_epoch_completed='1628895437.71', return_code='0', job_id='408825', GAL2='1.54', EG2='0.21', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='5.35e-08', ts2='9.41', photon_index='2.01' WHERE bin_id='295' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 15:57:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 408825: <4FGL_J0112.1+2245_daily_bin295> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin295> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 15:40:45 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 15:47:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 15:47:51 2021
Terminated at Fri Aug 13 15:57:18 2021
Results reported at Fri Aug 13 15:57:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin295 18.0294 22.7515 315792001 316051201 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 :                                   546.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            993 sec.

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

