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


Performing analysis on: 4FGL_J0112.1+2245_daily_bin1137
RA = 18.0294, Dec = 22.7515
tmin = 534038401, tmax = 534297601
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='415981', job_status='RUN', time_executed='2021-08-13 16:06:48.968504', time_epoch_executed='1628896008.97' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415981

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415981/ft1_4FGL_J0112.1+2245_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415981/ft2_4FGL_J0112.1+2245_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415981/ft1_4FGL_J0112.1+2245_daily_bin1137.fits outfile=/scratch/kocevski/415981/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin1137.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=534038401.0 tmax=534297601.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.48
user 3.39
sys 1.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415981/ft1_filtered_4FGL_J0112.1+2245_daily_bin1137.fits" evtable="EVENTS" scfile=/scratch/kocevski/415981/ft2_4FGL_J0112.1+2245_daily_bin1137.fits sctable="SC_DATA" outfile=/scratch/kocevski/415981/ltcube_534038401_534297601_4FGL_J0112.1+2245_daily_bin1137.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/415981/ft2_4FGL_J0112.1+2245_daily_bin1137.fits
.....................!
real 14.49
user 13.06
sys 1.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415981/ft1_filtered_4FGL_J0112.1+2245_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/415981/ft2_4FGL_J0112.1+2245_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/415981/ltcube_534038401_534297601_4FGL_J0112.1+2245_daily_bin1137.fits outfile=/scratch/kocevski/415981/expmap_534038401_534297601_4FGL_J0112.1+2245_daily_bin1137.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/415981/ltcube_534038401_534297601_4FGL_J0112.1+2245_daily_bin1137.fits
.....................!
real 192.71
user 186.18
sys 6.07

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/415981/ft1_filtered_4FGL_J0112.1+2245_daily_bin1137.fits scfile=/scratch/kocevski/415981/ft2_4FGL_J0112.1+2245_daily_bin1137.fits outfile=/scratch/kocevski/415981/cmap_534038401_534297601_4FGL_J0112.1+2245_daily_bin1137.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.41
user 0.37
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415981/ft1_filtered_4FGL_J0112.1+2245_daily_bin1137.fits scfile=/scratch/kocevski/415981/ft2_4FGL_J0112.1+2245_daily_bin1137.fits outfile=/scratch/kocevski/415981/cmap_HighResolution_534038401_534297601_4FGL_J0112.1+2245_daily_bin1137.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.40
user 0.37
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.381       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6843       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7674       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13250E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5553       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9134       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9350       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1047       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21826E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0196       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .57240       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.118       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .77049E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92303       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0589       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=   7250.895     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2405 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.781       -.39732E-06** at limit **
   2  Prefactor     .10000E-03    1.8866        .42866E-07** at limit **
   3  norm          19.533        11.602       -.14296E-06   -.88514E-04
   4  Prefactor     18.383        18.943       -.13249E-06   -.49872E-04
   5  norm          2.6835        4.6225        .37899E-06    .23437E-03
   6  Prefactor     .10000E-03    9.2727        .13809E-06** at limit **
   7  Prefactor     5.7717        14.069        .81244E-07    .11510E-03
   8  Prefactor     .10000E-03    47.613        .79892E-06** at limit **
   9  Prefactor     5.5482        35.569       -.32391E-07   -.25030E-05
  10  norm          2.9133        .85992       -.15281E-07    .51327E-03
  11  norm          1.9337        1.9183        .44711E-06    .15739E-02
  12  Prefactor     .10000E-03    6.3794        .98750E-07** at limit **
  13  Prefactor     .10000E-03    11.525        .39600E-06** at limit **
  14  Prefactor     3.1043        3.0804       -.16019E-06   -.14036E-03
  15  Prefactor     .10000E-03    5.0625       -.93541E-07** at limit **
  16  Prefactor     2.0154        25.366        .25526E-05    .18737E-03
  17  Prefactor     .48353        16.349       -.58455E-06    .10671E-03
  18  Prefactor     33.086        63.361       -.28350E-05   -.20802E-03
  19  norm          .10000E-03    .20510       -.62858E-06** at limit **
  20  Prefactor     .10002E-03    14.096       -.86491E-05** at limit **
  21  Normalizat    .92292        .19306       -.58003E-06    .64352E-03
  22  Prefactor     1.0590        .12244        .52718E-06    .10876E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5329
  Prefactor  = 18.3828
  norm       = 2.6835
  Prefactor  = 0.0001
  Prefactor  = 5.77172
  Prefactor  = 0.000100001
  Prefactor  = 5.54822
  norm       = 2.91329
  norm       = 1.93375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.10431
  Prefactor  = 0.000100002
  Prefactor  = 2.01543
  Prefactor  = 0.483529
  Prefactor  = 33.0863
  norm       = 0.0001
  Prefactor  = 0.000100016
  Normalizat = 0.922921
  Prefactor  = 1.05896
 **********
 **   18 **HESSE 
 **********

 FCN=   7250.895     FROM HESSE     STATUS=OK           346 CALLS     2751 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9056        .11416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.533        11.608        .45313E-03   -1.4824    
   4  Prefactor     18.383        18.955        .93419E-04   -1.4850    
   5  norm          2.6835        4.6110        .23472E-03   -1.5380    
   6  Prefactor     .10000E-03    9.3597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7717        13.985        .16724E-03   -1.5227    
   8  Prefactor     .10000E-03    47.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5482        35.511        .17046E-03   -1.5237    
  10  norm          2.9133        .85874        .40057E-04   -1.5367    
  11  norm          1.9337        1.8106        .10206E-03   -1.5430    
  12  Prefactor     .10000E-03    6.4093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1043        3.0874        .14423E-03   -1.5356    
  15  Prefactor     .10000E-03    20.312        .33977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0154        25.079        .29122E-03   -1.5424    
  17  Prefactor     .48353        253.69        .65257E-02   -1.5569    
  18  Prefactor     33.086        65.228        .69630E-04   -1.4557    
  19  norm          .10000E-03    .25048        .74588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    15.776        .38895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .92292        .22047        .31535E-03   -.95659    
  22  Prefactor     1.0590        .14250        .19352E-03   -.90789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89733e-09
Minuit parameter uncertainties:
  1  0.000220772
  2  1.46183e-06
  3  11.6092
  4  18.9613
  5  4.61165
  6  2.37968e-05
  7  13.9934
  8  0.000470597
  9  28.0971
  10  0.858741
  11  1.81069
  12  1.15065e-05
  13  0.000139849
  14  3.08756
  15  0.000440779
  16  14.2261
  17  22.244
  18  65.3687
  19  9.95877e-06
  20  0.0009904
  21  0.220682
  22  0.142555
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  2.913e+00  8.587e-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.059e+00  1.426e-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:  9.229e-01  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.01
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 4.41e-08
Energy Flux (Fixed Index): 8.63e-05 +/- 2.54e-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) = 7249.81646237
delta logL = 1.07846379539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7249.79750129
delta logL = 1.09742487355

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7544       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6520       1.0000          .0000       5.0000    
     3 'Normalizat'    .96318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0471       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=   7249.798     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7541        .83182        .61319E-02   -.46735E-04
   2  alpha         1.6518        .20932        .17226       -.36026E-04
   3  Normalizat    .96339        .18590        .69997E-01    .18936E-04
   4  Prefactor     1.0470        .12142        .40080E-01    .15047E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75413
  alpha      = 1.65178
  Normalizat = 0.963391
  Prefactor  = 1.04701
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.798     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7541        .89638        .41257E-04   -1.5376    
   2  alpha         1.6518        .23346        .73523E-02   -.34616    
   3  Normalizat    .96339        .21584        .30967E-03   -.94267    
   4  Prefactor     1.0470        .14113        .19463E-03   -.91179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28641e-13
Minuit parameter uncertainties:
  1  0.896386
  2  0.233846
  3  0.216036
  4  0.141177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415981': 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) = 7249.79750045
delta logL = 1.09742571311

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  2.754e+00  8.964e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  1.652e+00  2.338e-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.047e+00  1.412e-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:  9.634e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.25
Ra Dec: 18.029 22.752
Photon Index (Free Index): 1.65 +/- 0.23
Photon Flux (Free Index): 1.05e-07 +/- 4.23e-08
Energy Flux (Free Index): 1.37e-04 +/- 6.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/415981/cmap_HighResolution_534038401_534297601_4FGL_J0112.1+2245_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='1.37e-04', photon_flux_error='4.41e-08', dlogl='1.10e+00', energy_flux='8.63e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-08-13 16:17:13.021281', photon_index_error2='0.23', photon_index2='1.65', ts='50.01', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='6.36e-05', EG='0.92', time_epoch_completed='1628896633.02', return_code='0', job_id='415981', GAL2='1.05', EG2='0.96', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='4.23e-08', ts2='52.25', photon_index='2.01' WHERE bin_id='1137' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:17:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 415981: <4FGL_J0112.1+2245_daily_bin1137> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin1137> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 16:05:32 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:06:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 16:06:22 2021
Terminated at Fri Aug 13 16:17:13 2021
Results reported at Fri Aug 13 16:17:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin1137 18.0294 22.7515 534038401 534297601 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 :                                   633.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            701 sec.

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

