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


Performing analysis on: 4FGL_J0112.1+2245_daily_bin1330
RA = 18.0294, Dec = 22.7515
tmin = 584064001, tmax = 584323201
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='416261', job_status='RUN', time_executed='2021-08-13 16:10:16.420585', time_epoch_executed='1628896216.42' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416261

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416261/ft1_4FGL_J0112.1+2245_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416261/ft2_4FGL_J0112.1+2245_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416261/ft1_4FGL_J0112.1+2245_daily_bin1330.fits outfile=/scratch/kocevski/416261/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin1330.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=584064001.0 tmax=584323201.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 6.11
user 4.24
sys 1.81

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416261/ft1_filtered_4FGL_J0112.1+2245_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/416261/ft2_4FGL_J0112.1+2245_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/416261/ltcube_584064001_584323201_4FGL_J0112.1+2245_daily_bin1330.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/416261/ft2_4FGL_J0112.1+2245_daily_bin1330.fits
.....................!
real 14.30
user 12.06
sys 2.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416261/ft1_filtered_4FGL_J0112.1+2245_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/416261/ft2_4FGL_J0112.1+2245_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/416261/ltcube_584064001_584323201_4FGL_J0112.1+2245_daily_bin1330.fits outfile=/scratch/kocevski/416261/expmap_584064001_584323201_4FGL_J0112.1+2245_daily_bin1330.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/416261/ltcube_584064001_584323201_4FGL_J0112.1+2245_daily_bin1330.fits
.....................!
real 192.99
user 184.90
sys 7.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/416261/ft1_filtered_4FGL_J0112.1+2245_daily_bin1330.fits scfile=/scratch/kocevski/416261/ft2_4FGL_J0112.1+2245_daily_bin1330.fits outfile=/scratch/kocevski/416261/cmap_584064001_584323201_4FGL_J0112.1+2245_daily_bin1330.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 2.10
user 0.37
sys 1.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416261/ft1_filtered_4FGL_J0112.1+2245_daily_bin1330.fits scfile=/scratch/kocevski/416261/ft2_4FGL_J0112.1+2245_daily_bin1330.fits outfile=/scratch/kocevski/416261/cmap_HighResolution_584064001_584323201_4FGL_J0112.1+2245_daily_bin1330.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 2.10
user 0.38
sys 1.70

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.094       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2979       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9040       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.097       1.0000         .10000E-03   10000.    
     8 'Prefactor '    79.780       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4140       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.742       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9670       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87072       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0576       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=   7932.189     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2315 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.201       -.43143E-05** at limit **
   2  Prefactor     17.095        5.4525        .41621E-07   -.97724E-04
   3  norm          .10000E-03    3.3639       -.22740E-08** at limit **
   4  Prefactor     .10000E-03    14.336        .35243E-05** at limit **
   5  norm          4.2971        4.7483        .13778E-05   -.16799E-02
   6  Prefactor     3.9081        12.284       -.24444E-05   -.16864E-03
   7  Prefactor     13.097        13.107       -.69716E-07   -.32435E-04
   8  Prefactor     79.784        43.605        .14622E-05    .12517E-03
   9  Prefactor     .10000E-03    10.090        .14041E-05** at limit **
  10  norm          1.4142        .58141       -.51344E-08   -.14517E-03
  11  norm          .10000E-03    .45080       -.73123E-09** at limit **
  12  Prefactor     3.5181        6.1775       -.92380E-08   -.83773E-04
  13  Prefactor     29.747        37.404        .31167E-05    .13407E-03
  14  Prefactor     .10000E-03    1.8607       -.21453E-07** at limit **
  15  Prefactor     11.024        8.9672       -.44740E-07   -.52499E-04
  16  Prefactor     .10000E-03    5.6508        .23979E-07** at limit **
  17  Prefactor     .10000E-03    8.5286       -.54721E-06** at limit **
  18  Prefactor     .10000E-03    71.308       -.43880E-06** at limit **
  19  norm          1.9665        .76823        .13355E-09   -.77744E-04
  20  Prefactor     .10000E-03    4.2757       -.65731E-09** at limit **
  21  Normalizat    .87067        .19090       -.71418E-07   -.22045E-04
  22  Prefactor     1.0576        .11979       -.15558E-06   -.18707E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 17.0946
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.29706
  Prefactor  = 3.90807
  Prefactor  = 13.0973
  Prefactor  = 79.7837
  Prefactor  = 0.0001
  norm       = 1.41415
  norm       = 0.0001
  Prefactor  = 3.51814
  Prefactor  = 29.7467
  Prefactor  = 0.0001
  Prefactor  = 11.0239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9665
  Prefactor  = 0.0001
  Normalizat = 0.870675
  Prefactor  = 1.05759
 **********
 **   18 **HESSE 
 **********

 FCN=   7932.189     FROM HESSE     STATUS=OK           340 CALLS     2655 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.095        5.4626        .96872E-04   -1.4881    
   3  norm          .10000E-03    3.3674        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2971        6.9439        .97163E-03   -1.5293    
   6  Prefactor     3.9081        12.396        .20420E-03   -1.5313    
   7  Prefactor     13.097        13.103        .11068E-03   -1.4984    
   8  Prefactor     79.784        43.796        .44964E-04   -1.3919    
   9  Prefactor     .10000E-03    10.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4142        .57810        .42010E-04   -1.5470    
  11  norm          .10000E-03    .45793        .58236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5181        6.1678        .21554E-03   -1.5333    
  13  Prefactor     29.747        37.675        .73465E-04   -1.4617    
  14  Prefactor     .10000E-03    1.8711        .11855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.024        8.9983        .12066E-03   -1.5044    
  16  Prefactor     .10000E-03    5.6882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.5375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    71.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9665        .76826        .46723E-04   -1.5427    
  20  Prefactor     .10000E-03    4.3107        .17983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87067        .22058        .32248E-03   -.97498    
  22  Prefactor     1.0576        .13875        .19538E-03   -.90834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27733e-09
Minuit parameter uncertainties:
  1  0.000335627
  2  5.46274
  3  4.81643e-08
  4  0.000288956
  5  6.94525
  6  12.4042
  7  13.106
  8  43.8135
  9  9.05212e-05
  10  0.578103
  11  3.25427e-08
  12  6.16888
  13  37.7052
  14  1.00484e-05
  15  8.99945
  16  7.1264e-06
  17  3.39431e-05
  18  8.76705e-05
  19  0.768266
  20  8.77156e-07
  21  0.220805
  22  0.138799
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.414e+00  5.781e-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.058e+00  1.388e-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.707e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.94
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 7.26e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 4.19e-05 +/- 1.71e-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) = 7932.17204111
delta logL = 0.0167818452537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7932.171423
delta logL = 0.0173999521576

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4296       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9452       1.0000          .0000       5.0000    
     3 'Normalizat'    .87430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0563       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=   7932.171     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4297        2.3101        .90338E-02    .15669E-02
   2  alpha         1.9452        1.1307        .25671        .53172E-04
   3  Normalizat    .87433        .18664        .72738E-01    .29748E-03
   4  Prefactor     1.0563        .12376        .39556E-01    .10552E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42966
  alpha      = 1.94516
  Normalizat = 0.874328
  Prefactor  = 1.05626
 **********
 **   18 **HESSE 
 **********

 FCN=   7932.171     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4297        .59019        .42467E-04   -1.5469    
   2  alpha         1.9452        .32227        .10561E-01   -.22380    
   3  Normalizat    .87433        .20679        .32188E-03   -.97368    
   4  Prefactor     1.0563        .13730        .19549E-03   -.90877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37492e-10
Minuit parameter uncertainties:
  1  0.590192
  2  0.323217
  3  0.206981
  4  0.137345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416261': 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) = 7932.17142299
delta logL = 0.0173999634189

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.430e+00  5.902e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  1.945e+00  3.232e-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.056e+00  1.373e-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.743e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.93
Ra Dec: 18.029 22.752
Photon Index (Free Index): 1.95 +/- 0.32
Photon Flux (Free Index): 6.91e-08 +/- 3.36e-08
Energy Flux (Free Index): 4.49e-05 +/- 2.56e-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/416261/cmap_HighResolution_584064001_584323201_4FGL_J0112.1+2245_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.26e-08', energy_flux2='4.49e-05', photon_flux_error='2.97e-08', dlogl='1.74e-02', energy_flux='4.19e-05', photon_flux2='6.91e-08', job_status='DONE', time_completed='2021-08-13 16:21:16.353221', photon_index_error2='0.32', photon_index2='1.95', ts='14.94', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='0.87', time_epoch_completed='1628896876.35', return_code='0', job_id='416261', GAL2='1.06', EG2='0.87', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='3.36e-08', ts2='14.93', photon_index='2.01' WHERE bin_id='1330' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:21:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 416261: <4FGL_J0112.1+2245_daily_bin1330> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin1330> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 16:05:55 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:09:14 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:09:14 2021
Terminated at Fri Aug 13 16:21:17 2021
Results reported at Fri Aug 13 16:21:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin1330 18.0294 22.7515 584064001 584323201 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 :                                   678.45 sec.
    Max Memory :                                 1040 MB
    Average Memory :                             315.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            922 sec.

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

