/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 154 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 = 7542
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0112.1+2245_daily_bin1658
RA = 18.0294, Dec = 22.7515
tmin = 669081601, tmax = 669340801
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='694883', job_status='RUN', time_executed='2022-03-19 00:09:54.920948', time_epoch_executed='1647673794.92' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='1658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694883/ft1_4FGL_J0112.1+2245_daily_bin1658.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694883/ft2_4FGL_J0112.1+2245_daily_bin1658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694883/ft1_4FGL_J0112.1+2245_daily_bin1658.fits outfile=/scratch/kocevski/694883/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin1658.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=669081601.0 tmax=669340801.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 5.50
user 5.18
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/694883/ft2_4FGL_J0112.1+2245_daily_bin1658.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/694883/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin1658.fits evtable="EVENTS" outfile="/scratch/kocevski/694883/ft1_filtered_4FGL_J0112.1+2245_daily_bin1658.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.50
user 0.34
sys 0.15
Number of photons that survived the gtmktime cut: 668

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694883/ft1_filtered_4FGL_J0112.1+2245_daily_bin1658.fits" evtable="EVENTS" scfile=/scratch/kocevski/694883/ft2_4FGL_J0112.1+2245_daily_bin1658.fits sctable="SC_DATA" outfile=/scratch/kocevski/694883/ltcube_669081601_669340801_4FGL_J0112.1+2245_daily_bin1658.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/694883/ft2_4FGL_J0112.1+2245_daily_bin1658.fits
.....................!
real 13.89
user 13.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694883/ft1_filtered_4FGL_J0112.1+2245_daily_bin1658.fits evtable="EVENTS" scfile=/scratch/kocevski/694883/ft2_4FGL_J0112.1+2245_daily_bin1658.fits sctable="SC_DATA" expcube=/scratch/kocevski/694883/ltcube_669081601_669340801_4FGL_J0112.1+2245_daily_bin1658.fits outfile=/scratch/kocevski/694883/expmap_669081601_669340801_4FGL_J0112.1+2245_daily_bin1658.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/694883/ltcube_669081601_669340801_4FGL_J0112.1+2245_daily_bin1658.fits
.....................!
real 192.90
user 185.72
sys 4.93

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/694883/ft1_filtered_4FGL_J0112.1+2245_daily_bin1658.fits scfile=/scratch/kocevski/694883/ft2_4FGL_J0112.1+2245_daily_bin1658.fits outfile=/scratch/kocevski/694883/cmap_669081601_669340801_4FGL_J0112.1+2245_daily_bin1658.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694883/ft1_filtered_4FGL_J0112.1+2245_daily_bin1658.fits scfile=/scratch/kocevski/694883/ft2_4FGL_J0112.1+2245_daily_bin1658.fits outfile=/scratch/kocevski/694883/cmap_HighResolution_669081601_669340801_4FGL_J0112.1+2245_daily_bin1658.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.59
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.1278       1.0000         .10000E-03   10000.    
     3 'norm      '    10.424       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18122E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .50207       1.0000         .10000E-03   10000.    
    11 'norm      '    .10667E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.702       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25060E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2657       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97104       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=   7131.530     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2041 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    12.796        .90712E-02** at limit **
   2  Prefactor     2.1278        2.1124        .70668E-02    .33737E-03
   3  norm          10.423        11.397        .31025E-02    .15665E-04
   4  Prefactor     .10001E-03    11.784        .90712E-02** at limit **
   5  norm          3.0645        7.5850        .57933E-02    .31092E-03
   6  Prefactor     .10000E-03    4.3477        .90712E-02** at limit **
   7  Prefactor     .10000E-03    6.4062        .90712E-02** at limit **
   8  Prefactor     .10007E-03    168.74        .90712E-02** at limit **
   9  Prefactor     .10001E-03    25.344        .90712E-02** at limit **
  10  norm          .50204        .43976        .10943E-01   -.43742E-03
  11  norm          .10000E-03    .59976        .20965E-01** at limit **
  12  Prefactor     14.689        12.791        .26115E-02   -.39064E-03
  13  Prefactor     .10004E-03    27.658        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.3010        .90712E-02** at limit **
  15  Prefactor     .10000E-03    3.0145        .90712E-02** at limit **
  16  Prefactor     .10001E-03    13.741        .90712E-02** at limit **
  17  Prefactor     .10000E-03    9.9684        .90712E-02** at limit **
  18  Prefactor     .10006E-03    30.810        .90712E-02** at limit **
  19  norm          1.5661        .75562        .84967E-02   -.60694E-03
  20  Prefactor     .10001E-03    4.7504        .10008    ** at limit **
  21  Normalizat    1.2656        .18418        .61179E-01    .28377E-03
  22  Prefactor     .97107        .12326        .45904E-01    .16572E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100057
  Prefactor  = 2.12776
  norm       = 10.4235
  Prefactor  = 0.000100015
  norm       = 3.06448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 0.000100009
  norm       = 0.502035
  norm       = 0.000100001
  Prefactor  = 14.6885
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100001
  Prefactor  = 0.000100061
  norm       = 1.56609
  Prefactor  = 0.00010001
  Normalizat = 1.26563
  Prefactor  = 0.971068
 **********
 **   18 **HESSE 
 **********

 FCN=   7131.530     FROM HESSE     STATUS=OK           336 CALLS     2377 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    12.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1278        2.1188        .11901E-03   -1.5416    
   3  norm          10.423        11.397        .12410E-03   -1.5062    
   4  Prefactor     .10001E-03    11.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0645        7.5725        .23173E-03   -1.5358    
   6  Prefactor     .10000E-03    4.3622        .17194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    170.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    25.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .50204        .41851        .50633E-03   -1.5566    
  11  norm          .10000E-03    2.6908        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.689        12.792        .10446E-03   -1.4941    
  13  Prefactor     .10004E-03    27.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3452        .12507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0505        .14312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    14.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.9712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10006E-03    30.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5661        .74802        .48767E-04   -1.5458    
  20  Prefactor     .10001E-03    33.173        .35318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2656        .21472        .27059E-03   -.84598    
  22  Prefactor     .97107        .14473        .20424E-03   -.93700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24489e-08
Minuit parameter uncertainties:
  1  0.00170755
  2  2.11883
  3  11.399
  4  0.000828904
  5  7.57489
  6  7.31195e-05
  7  8.80722e-05
  8  0.0067989
  9  0.000968014
  10  0.418513
  11  8.53659e-05
  12  12.7944
  13  0.00217111
  14  5.73171e-06
  15  9.85012e-05
  16  0.000913262
  17  0.000165183
  18  0.00273839
  19  0.748028
  20  0.00116859
  21  0.214874
  22  0.144784DDone.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  5.020e-01  4.185e-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.711e-01  1.448e-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.266e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.18
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.24e-05

TS (Fixed Index): 3.18
Ra Dec: 18.029 22.752
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/694883/likelihoodResults_669081601_669340801_4FGL_J0112.1+2245_daily_bin1658.txt

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) = 7131.49692265
delta logL = 0.0335644875149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7131.49519439
delta logL = 0.0352927418107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51676       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2499       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97512       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7131.495     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51671        .41555        .48380E-03    .21542E-02
   2  alpha         2.2499        .91532        .20815E-01    .52258E-04
   3  Normalizat    1.2540        .21981        .27166E-03    .20908E-03
   4  Prefactor     .97508        .14515        .20387E-03    .74057E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.51671
  alpha      = 2.24987
  Normalizat = 1.25399
  Prefactor  = 0.975079
 **********
 **   18 **HESSE 
 **********

 FCN=   7131.495     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51671        .41194        .19352E-04   -1.5564    
   2  alpha         2.2499        .90645        .83260E-03   -.10022    
   3  Normalizat    1.2540        .21979        .54331E-04   -.84950    
   4  Prefactor     .97508        .14520        .81546E-05   -.93565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61956e-10
Minuit parameter uncertainties:
  1  0.411944
  2  0.92781
  3  0.219951
  4  0.145253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694883': 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) = 7131.49519436
delta logL = 0.0352927806416

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  5.167e-01  4.119e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.250e+00  9.278e-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.751e-01  1.453e-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.254e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 18.029 22.752
Photon Index (Free Index): 2.25 +/- 0.93
Photon Flux (Free Index): 3.47e-08 +/- 4.54e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.12e-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/694883/cmap_HighResolution_669081601_669340801_4FGL_J0112.1+2245_daily_bin1658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='1.35e-05', photon_flux_error='2.15e-08', dlogl='3.53e-02', energy_flux='1.49e-05', photon_flux2='3.47e-08', job_status='DONE', time_completed='2022-03-19 00:21:00.449819', photon_index_error2='0.93', photon_index2='2.25', ts='3.18', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='8.09e-08', energy_flux_error2='1.12e-05', EG='1.27', time_epoch_completed='1647674460.45', return_code='0', job_id='694883', GAL2='0.98', EG2='1.25', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.54e-08', ts2='3.25', photon_index='2.01' WHERE bin_id='1658' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 19 00:21:00 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 694834: <4FGL_J0112.1+2245_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin1658> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:38 2022
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:06:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:06:43 2022
Terminated at Sat Mar 19 00:19:41 2022
Results reported at Sat Mar 19 00:19:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin1658 18.0294 22.7515 669081601 669340801 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 :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            843 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 694883: <4FGL_J0112.1+2245_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin1658> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:40 2022
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:07:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:07:13 2022
Terminated at Sat Mar 19 00:21:00 2022
Results reported at Sat Mar 19 00:21:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin1658 18.0294 22.7515 669081601 669340801 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 :                                   662.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            920 sec.

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

