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


Performing analysis on: 4FGL_J0115.1+2622_daily_bin657
RA = 18.7784, Dec = 26.3733
tmin = 409622401, tmax = 409881601
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='478918', job_status='RUN', time_executed='2021-08-13 19:41:25.734195', time_epoch_executed='1628908885.73' WHERE source_name='4FGL J0115.1+2622' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478918

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478918/ft1_4FGL_J0115.1+2622_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478918/ft1_4FGL_J0115.1+2622_daily_bin657.fits outfile=/scratch/kocevski/478918/ft1_filteredMKT_4FGL_J0115.1+2622_daily_bin657.fits ra=18.7784 dec=26.3733 rad=12.0 tmin=409622401.0 tmax=409881601.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.74
user 5.44
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.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/478918/ft1_filteredMKT_4FGL_J0115.1+2622_daily_bin657.fits evtable="EVENTS" outfile="/scratch/kocevski/478918/ft1_filtered_4FGL_J0115.1+2622_daily_bin657.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478918/ft1_filtered_4FGL_J0115.1+2622_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/478918/ltcube_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.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/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits
.....................!
real 13.51
user 13.10
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478918/ft1_filtered_4FGL_J0115.1+2622_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/478918/ltcube_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.fits outfile=/scratch/kocevski/478918/expmap_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.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/478918/ltcube_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.fits
.....................!
real 190.95
user 185.57
sys 4.79

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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J0115.1+2622 @ 18.7784 26.3733

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478918/ft1_filtered_4FGL_J0115.1+2622_daily_bin657.fits scfile=/scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits outfile=/scratch/kocevski/478918/cmap_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.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.7784 yref=26.3733 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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478918/ft1_filtered_4FGL_J0115.1+2622_daily_bin657.fits scfile=/scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits outfile=/scratch/kocevski/478918/cmap_HighResolution_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.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.7784 yref=26.3733 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478918/ft1_filtered_4FGL_J0115.1+2622_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478918/Model_4FGL_J0115.1+2622_daily_bin657.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/478918/ft1_filtered_4FGL_J0115.1+2622_daily_bin657.fits.....................!
real 54.10
user 52.78
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478918/ft1_filtered_4FGL_J0115.1+2622_daily_bin657.fits', '/scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits', expMap='/scratch/kocevski/478918/expmap_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.fits', expCube='/scratch/kocevski/478918/ltcube_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478918/Model_4FGL_J0115.1+2622_daily_bin657.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0115.1+2622'

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  2.667e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
241        Index:  2.211e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
242        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/478918/ft1_filtered_4FGL_J0115.1+2622_daily_bin657.fits
Spacecraft file(s): /scratch/kocevski/478918/ft2_4FGL_J0115.1+2622_daily_bin657.fits
Exposure map: /scratch/kocevski/478918/expmap_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.fits
Exposure cube: /scratch/kocevski/478918/ltcube_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478918/Model_4FGL_J0115.1+2622_daily_bin657.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) = 4968.60939506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7377       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.5982       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4512       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10790E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0875       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4844       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8943       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.548       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0980       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5107       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.4883       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86933       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1904       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4968.584     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2340 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.02        .81276E-05** at limit **
   2  Prefactor     9.7592        140.49        .58021E-04    .18063E-04
   3  norm          .10000E-03    2.3857        .12370E-06** at limit **
   4  norm          6.6018        15.636        .16379E-05   -.76131E-06
   5  Prefactor     3.4381        61.890       -.21800E-04   -.76444E-04
   6  Prefactor     .10000E-03    23.483        .53143E-06** at limit **
   7  Prefactor     .10000E-03    107.72       -.32665E-04** at limit **
   8  norm          1.0874        .75107        .16826E-06    .94832E-03
   9  norm          .10000E-03    .50348       -.32496E-07** at limit **
  10  Prefactor     .10000E-03    15.057        .86279E-06** at limit **
  11  Prefactor     1.4840        3.6119       -.15447E-06   -.39634E-03
  12  Prefactor     6.8954        8.7513       -.31495E-06   -.11956E-03
  13  Prefactor     .10000E-03    7.7983        .21667E-05** at limit **
  14  Prefactor     18.544        36.609       -.41861E-05   -.26028E-05
  15  Prefactor     .10000E-03    50.934       -.26079E-04** at limit **
  16  norm          1.0979        .77355        .79192E-08   -.15751E-03
  17  Prefactor     8.5099        14.928        .12047E-06   -.48685E-04
  18  Prefactor     .10000E-03    7.9027       -.19837E-05** at limit **
  19  norm          9.4887        5.8370        .43643E-05   -.27234E-04
  20  Prefactor     .10000E-03    60.231        .43233E-04** at limit **
  21  Normalizat    .86919        .26564       -.14169E-05    .82449E-04
  22  Prefactor     1.1905        .16024       -.14959E-06    .12167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.75922
  norm       = 0.0001
  norm       = 6.60181
  Prefactor  = 3.43813
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.08738
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48398
  Prefactor  = 6.89537
  Prefactor  = 0.0001
  Prefactor  = 18.544
  Prefactor  = 0.0001
  norm       = 1.09795
  Prefactor  = 8.50986
  Prefactor  = 0.0001
  norm       = 9.4887
  Prefactor  = 0.0001
  Normalizat = 0.869189
  Prefactor  = 1.1905
 **********
 **   18 **HESSE 
 **********

 FCN=   4968.584     FROM HESSE     STATUS=OK           342 CALLS     2682 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.7592        140.18        .12842E-03   -1.5083    
   3  norm          .10000E-03    2.4463        .21252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.6018        15.496        .15622E-03   -1.5194    
   5  Prefactor     3.4381        61.530        .21770E-03   -1.5337    
   6  Prefactor     .10000E-03    24.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    108.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0874        .74453        .48785E-04   -1.5499    
   9  norm          .10000E-03    .50857        .48786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4840        3.5608        .20312E-03   -1.5464    
  12  Prefactor     6.8954        8.7651        .15280E-03   -1.5183    
  13  Prefactor     .10000E-03    7.8460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.544        36.643        .92997E-04   -1.4846    
  15  Prefactor     .10000E-03    50.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0979        .75506        .49994E-04   -1.5498    
  17  Prefactor     8.5099        14.919        .13741E-03   -1.5124    
  18  Prefactor     .10000E-03    7.9043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.4887        5.8234        .12939E-03   -1.5092    
  20  Prefactor     .10000E-03    60.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .86919        .30634        .34010E-03   -.97551    
  22  Prefactor     1.1905        .18621        .19097E-03   -.86624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94631e-10
Minuit parameter uncertainties:
  1  5.87454e-06
  2  74.1832
  3  4.96534e-06
  4  15.5057
  5  29.1239
  6  5.72356e-05
  7  0.000766604
  8  0.744537
  9  1.68581e-06
  10  1.35247e-05
  11  3.56129
  12  8.76678
  13  1.65815e-05
  14  36.6871
  15  2.60361e-05
  16  0.755066
  17  14.9255
  18  6.68959e-06
  19  5.82371
  20  9.86768e-07
  21  0.306958
  22  0.186317
Done.

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

Extracting fit parameters...

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  1.000e-04  1.352e-05  1.000e-04  1.000e+04 ( 1.000e-14)
241        Index:  2.211e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
242        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.191e+00  1.863e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.692e-01  3.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.778 26.373
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478918/likelihoodResults_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.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): 102
logL (Free Index) = 4968.58469914
delta logL = -0.000315779250741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4968.58438542
delta logL = -2.05878677662e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5874       1.0000          .0000       10.000    
     3 'Normalizat'    .86918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   4968.584     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      277 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10417E-03    .80148        .18142E-01** at limit **
   2  Index         2.4887        5.8817        .50000        .26765E-04
   3  Normalizat    .86919        .16810E-02    .34010E-03   -.30085E-05
   4  Prefactor     1.1905        .10936E-02    .19097E-03   -.82747E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104171
  Index      = 2.4887
  Normalizat = 0.869189
  Prefactor  = 1.1905
 **********
 **   18 **HESSE 
 **********

 FCN=   4968.584     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10417E-03    46.875        .22621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4887        5.9773        .50000       -.52621    
   3  Normalizat    .86919        .12888E-01    .13604E-04   -.97551    
   4  Prefactor     1.1905        .83848E-02    .76389E-05   -.86624    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29334e-08
Minuit parameter uncertainties:
  1  0.0279858
  2  223.86
  3  0.0128881
  4  0.00838478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478918': 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): 102
logL (Free Index) = 4968.58438484
delta logL = -1.4809647837e-06

Extracting fit parameters...

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  1.042e-04  2.799e-02  1.000e-04  1.000e+04 ( 1.000e-14)
241        Index:  2.489e+00  2.239e+02  0.000e+00  1.000e+01 (-1.000e+00)
242        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.191e+00  8.385e-03  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.692e-01  1.289e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.778 26.373

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/478918/cmap_HighResolution_409622401_409881601_4FGL_J0115.1+2622_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-08-13 19:50:54.123445', job_id='478918', GAL2='1.19', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1628909454.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='-1.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='657' AND source_name='4FGL J0115.1+2622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 19:50:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 478918: <4FGL_J0115.1+2622_daily_bin657> in cluster <slac> Done

Job <4FGL_J0115.1+2622_daily_bin657> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 19:35:30 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 19:41:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 19:41:07 2021
Terminated at Fri Aug 13 19:50:54 2021
Results reported at Fri Aug 13 19:50:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.1+2622_daily_bin657 18.7784 26.3733 409622401 409881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0115.1+2622 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   565.58 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            924 sec.

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

