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


Performing analysis on: 4FGL_J0112.1+2245_daily_bin983
RA = 18.0294, Dec = 22.7515
tmin = 494121601, tmax = 494380801
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='414512', job_status='RUN', time_executed='2021-08-13 16:01:59.206539', time_epoch_executed='1628895719.21' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='983'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414512

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414512/ft1_4FGL_J0112.1+2245_daily_bin983.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414512/ft2_4FGL_J0112.1+2245_daily_bin983.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414512/ft1_4FGL_J0112.1+2245_daily_bin983.fits outfile=/scratch/kocevski/414512/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin983.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=494121601.0 tmax=494380801.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.50
user 3.50
sys 0.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414512/ft2_4FGL_J0112.1+2245_daily_bin983.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/414512/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin983.fits evtable="EVENTS" outfile="/scratch/kocevski/414512/ft1_filtered_4FGL_J0112.1+2245_daily_bin983.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.27
user 0.31
sys 0.95

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414512/ft1_filtered_4FGL_J0112.1+2245_daily_bin983.fits" evtable="EVENTS" scfile=/scratch/kocevski/414512/ft2_4FGL_J0112.1+2245_daily_bin983.fits sctable="SC_DATA" outfile=/scratch/kocevski/414512/ltcube_494121601_494380801_4FGL_J0112.1+2245_daily_bin983.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/414512/ft2_4FGL_J0112.1+2245_daily_bin983.fits
.....................!
real 13.24
user 11.98
sys 1.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414512/ft1_filtered_4FGL_J0112.1+2245_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/414512/ft2_4FGL_J0112.1+2245_daily_bin983.fits sctable="SC_DATA" expcube=/scratch/kocevski/414512/ltcube_494121601_494380801_4FGL_J0112.1+2245_daily_bin983.fits outfile=/scratch/kocevski/414512/expmap_494121601_494380801_4FGL_J0112.1+2245_daily_bin983.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/414512/ltcube_494121601_494380801_4FGL_J0112.1+2245_daily_bin983.fits
.....................!
real 191.47
user 185.46
sys 5.66

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/414512/ft1_filtered_4FGL_J0112.1+2245_daily_bin983.fits scfile=/scratch/kocevski/414512/ft2_4FGL_J0112.1+2245_daily_bin983.fits outfile=/scratch/kocevski/414512/cmap_494121601_494380801_4FGL_J0112.1+2245_daily_bin983.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.31
user 0.37
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414512/ft1_filtered_4FGL_J0112.1+2245_daily_bin983.fits scfile=/scratch/kocevski/414512/ft2_4FGL_J0112.1+2245_daily_bin983.fits outfile=/scratch/kocevski/414512/cmap_HighResolution_494121601_494380801_4FGL_J0112.1+2245_daily_bin983.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.31
user 0.38
sys 0.92

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.220       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.053       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6278       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8863       1.0000         .10000E-03   10000.    
    11 'norm      '    .85541       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29190E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0087       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.502       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.819       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4594       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.624       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98909       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94212       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=   6866.082     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2372 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.213        52.911       -.90483E-05    .15969E-04
   2  Prefactor     .10000E-03    2.2181       -.36089E-07** at limit **
   3  norm          12.052        10.956       -.28009E-06   -.38243E-05
   4  Prefactor     .10000E-03    30.930        .16329E-05** at limit **
   5  norm          5.7292        8.4137       -.58266E-06   -.91740E-04
   6  Prefactor     .10000E-03    3.7487        .59901E-07** at limit **
   7  Prefactor     .10000E-03    3.0033       -.22789E-07** at limit **
   8  Prefactor     .10000E-03    15.539       -.76833E-06** at limit **
   9  Prefactor     2.5831        178.16       -.22592E-03    .39913E-04
  10  norm          1.8866        .83314        .25132E-05   -.81585E-04
  11  norm          .85534        1.1675       -.46299E-06   -.16142E-02
  12  Prefactor     .10000E-03    5.5905       -.15636E-05** at limit **
  13  Prefactor     .10000E-03    11.175        .66740E-06** at limit **
  14  Prefactor     .10001E-03    4.0526        .17016E-05** at limit **
  15  Prefactor     3.0086        3.7290        .76767E-06    .10149E-04
  16  Prefactor     17.667        11.482        .97339E-06    .27100E-03
  17  Prefactor     40.502        35.531       -.49674E-06    .22435E-04
  18  Prefactor     16.815        65.861       -.92121E-05    .84103E-05
  19  norm          1.4594        .64061       -.18080E-07    .21931E-03
  20  Prefactor     27.624        12.095       -.71855E-06    .43598E-04
  21  Normalizat    .98920        .18976        .34843E-05    .60295E-03
  22  Prefactor     .94208        .12520        .21312E-05    .82430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.2134
  Prefactor  = 0.0001
  norm       = 12.0516
  Prefactor  = 0.0001
  norm       = 5.7292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58308
  norm       = 1.8866
  norm       = 0.855336
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 3.00856
  Prefactor  = 17.6668
  Prefactor  = 40.5021
  Prefactor  = 16.8146
  norm       = 1.45937
  Prefactor  = 27.6237
  Normalizat = 0.989203
  Prefactor  = 0.942077
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.082     FROM HESSE     STATUS=OK           348 CALLS     2720 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.213        52.953        .60980E-04   -1.4392    
   2  Prefactor     .10000E-03    2.2568        .12045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.052        10.957        .11538E-03   -1.5014    
   4  Prefactor     .10000E-03    31.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7292        8.4067        .16781E-03   -1.5229    
   6  Prefactor     .10000E-03    3.7547        .15665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0060        .14024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5831        181.32        .25157E-03   -1.5387    
  10  norm          1.8866        .83193        .41804E-04   -1.5433    
  11  norm          .85534        1.0651        .98812E-03   -1.5523    
  12  Prefactor     .10000E-03    18.513        .38044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    4.1961        .32587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0086        3.7101        .17124E-03   -1.5361    
  16  Prefactor     17.667        11.493        .95292E-04   -1.4867    
  17  Prefactor     40.502        35.551        .62985E-04   -1.4434    
  18  Prefactor     16.815        65.795        .97662E-04   -1.4888    
  19  norm          1.4594        .64048        .41240E-04   -1.5466    
  20  Prefactor     27.624        12.093        .76223E-04   -1.4656    
  21  Normalizat    .98920        .22329        .29173E-03   -.93393    
  22  Prefactor     .94208        .14838        .19940E-03   -.94686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01409e-09
Minuit parameter uncertainties:
  1  53.0109
  2  1.05691e-05
  3  10.9583
  4  0.000157716
  5  8.40839
  6  1.00427e-05
  7  3.6059e-06
  8  1.90761e-05
  9  43.4203
  10  0.831931
  11  1.06511
  12  0.000577325
  13  0.000114004
  14  0.000345492
  15  3.71038
  16  11.4942
  17  35.5698
  18  66.0813
  19  0.640485
  20  12.0936
  21  0.223502
  22  0.148442
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.887e+00  8.319e-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:  9.421e-01  1.484e-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.892e-01  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.89
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 9.68e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 5.59e-05 +/- 2.46e-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) = 6865.88512387
delta logL = 0.196916797524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6865.8608777
delta logL = 0.221162963607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8840       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7986       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93762       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=   6865.861     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8839        .88399        .75811E-02    .10296E-03
   2  alpha         1.7987        .33572        .22804       -.16676E-04
   3  Normalizat    1.0047        .18821        .46226E-01    .16078E-04
   4  Prefactor     .93764        .12619        .45483E-01    .70337E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88387
  alpha      = 1.79873
  Normalizat = 1.00467
  Prefactor  = 0.937645
 **********
 **   18 **HESSE 
 **********

 FCN=   6865.861     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8839        .75682        .43536E-04   -1.5433    
   2  alpha         1.7987        .30573        .94870E-02   -.28432    
   3  Normalizat    1.0047        .21927        .28959E-03   -.92874    
   4  Prefactor     .93764        .14687        .19991E-03   -.94838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56442e-11
Minuit parameter uncertainties:
  1  0.756821
  2  0.306568
  3  0.219464
  4  0.14693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414512': 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) = 6865.86087752
delta logL = 0.221163142287

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.884e+00  7.568e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  1.799e+00  3.066e-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:  9.376e-01  1.469e-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:  1.005e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.29
Ra Dec: 18.029 22.752
Photon Index (Free Index): 1.80 +/- 0.31
Photon Flux (Free Index): 8.00e-08 +/- 4.05e-08
Energy Flux (Free Index): 7.18e-05 +/- 4.07e-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/414512/cmap_HighResolution_494121601_494380801_4FGL_J0112.1+2245_daily_bin983.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.68e-08', energy_flux2='7.18e-05', photon_flux_error='4.27e-08', dlogl='2.21e-01', energy_flux='5.59e-05', photon_flux2='8.00e-08', job_status='DONE', time_completed='2021-08-13 16:12:13.472031', photon_index_error2='0.31', photon_index2='1.80', ts='16.89', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='4.07e-05', EG='0.99', time_epoch_completed='1628896333.47', return_code='0', job_id='414512', GAL2='0.94', EG2='1.00', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='4.05e-08', ts2='17.29', photon_index='2.01' WHERE bin_id='983' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:12:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 414512: <4FGL_J0112.1+2245_daily_bin983> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin983> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 16:00:32 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:01:33 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:01:33 2021
Terminated at Fri Aug 13 16:12:15 2021
Results reported at Fri Aug 13 16:12:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin983 18.0294 22.7515 494121601 494380801 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 :                                   623.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            703 sec.

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

