/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 = 7379
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0118.9-2141_daily_bin87
RA = 19.7254, Dec = -21.6948
tmin = 261878401, tmax = 262137601
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='537920', job_status='RUN', time_executed='2021-08-13 22:53:09.095265', time_epoch_executed='1628920389.1' WHERE source_name='4FGL J0118.9-2141' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537920/ft1_4FGL_J0118.9-2141_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537920/ft1_4FGL_J0118.9-2141_daily_bin87.fits outfile=/scratch/kocevski/537920/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin87.fits ra=19.7254 dec=-21.6948 rad=12.0 tmin=261878401.0 tmax=262137601.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 7.80
user 1.22
sys 6.50

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.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/537920/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin87.fits evtable="EVENTS" outfile="/scratch/kocevski/537920/ft1_filtered_4FGL_J0118.9-2141_daily_bin87.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 6.88
user 0.32
sys 6.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537920/ft1_filtered_4FGL_J0118.9-2141_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/537920/ltcube_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.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/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits
.....................!
real 21.53
user 13.92
sys 7.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537920/ft1_filtered_4FGL_J0118.9-2141_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/537920/ltcube_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.fits outfile=/scratch/kocevski/537920/expmap_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.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/537920/ltcube_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.fits
.....................!
real 200.61
user 186.29
sys 13.34

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

Setting source of interest to:
4FGL J0118.9-2141 @ 19.7254 -21.6948

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/537920/ft1_filtered_4FGL_J0118.9-2141_daily_bin87.fits scfile=/scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits outfile=/scratch/kocevski/537920/cmap_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.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=19.7254 yref=-21.6948 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 6.83
user 0.38
sys 6.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537920/ft1_filtered_4FGL_J0118.9-2141_daily_bin87.fits scfile=/scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits outfile=/scratch/kocevski/537920/cmap_HighResolution_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.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=19.7254 yref=-21.6948 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 6.79
user 0.39
sys 6.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/537920/ft1_filtered_4FGL_J0118.9-2141_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/537920/Model_4FGL_J0118.9-2141_daily_bin87.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/537920/ft1_filtered_4FGL_J0118.9-2141_daily_bin87.fits.....................!
real 61.40
user 51.76
sys 9.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/537920/ft1_filtered_4FGL_J0118.9-2141_daily_bin87.fits', '/scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits', expMap='/scratch/kocevski/537920/expmap_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.fits', expCube='/scratch/kocevski/537920/ltcube_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/537920/Model_4FGL_J0118.9-2141_daily_bin87.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.9-2141'

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  3.573e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  2.251e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
261         beta:  9.012e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.069e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/537920/ft1_filtered_4FGL_J0118.9-2141_daily_bin87.fits
Spacecraft file(s): /scratch/kocevski/537920/ft2_4FGL_J0118.9-2141_daily_bin87.fits
Exposure map: /scratch/kocevski/537920/expmap_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.fits
Exposure cube: /scratch/kocevski/537920/ltcube_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/537920/Model_4FGL_J0118.9-2141_daily_bin87.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) = 5976.5667135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.288       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    168.25       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.351       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13981E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14070       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.248       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6427       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3743       1.0000         .10000E-03   10000.    
    17 'norm      '    9.9235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15359E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0970       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68622       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5976.563     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2390 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.289        9.2690        .29810E-02    .28962E-03
   2  norm          .10000E-03    2.5516        .90712E-02** at limit **
   3  Prefactor     168.25        88.578        .77752E-03   -.14160E-02
   4  Prefactor     .10000E-03    9.3832        .90712E-02** at limit **
   5  norm          .10000E-03    11.456        .90712E-02** at limit **
   6  norm          .10000E-03    3.0794        .90712E-02** at limit **
   7  Prefactor     11.338        7.7220        .29727E-02   -.44031E-03
   8  Prefactor     .10000E-03    38.027        .90712E-02** at limit **
   9  Prefactor     .10000E-03    2.4700        .37837E-01** at limit **
  10  Prefactor     .10000E-03    4.5956        .90712E-02** at limit **
  11  norm          .14227        1.2276        .27966E-01    .14196E-02
  12  norm          3.5281        2.1510        .53794E-02   -.22250E-04
  13  Prefactor     13.244        13.280        .27512E-02    .63683E-03
  14  Prefactor     .10000E-03    2.2835        .90712E-02** at limit **
  15  norm          5.6432        1.5428        .42277E-02   -.15341E-04
  16  norm          2.3740        1.9189        .66471E-02    .32053E-03
  17  norm          9.9230        3.7026        .31801E-02   -.10444E-02
  18  Prefactor     .10000E-03    129.16        .90712E-02** at limit **
  19  norm          1.0972        2.1057        .11368E-01    .86672E-03
  20  Prefactor     .10000E-03    7.8150        .90712E-02** at limit **
  21  Normalizat    1.0421        .16187        .41101E-01    .47824E-05
  22  Prefactor     .68639        .17539        .65380E-01    .21011E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2887
  norm       = 0.0001
  Prefactor  = 168.249
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.142267
  norm       = 3.52811
  Prefactor  = 13.2438
  Prefactor  = 0.0001
  norm       = 5.64321
  norm       = 2.37395
  norm       = 9.92304
  Prefactor  = 0.0001
  norm       = 1.09718
  Prefactor  = 0.0001
  Normalizat = 1.04214
  Prefactor  = 0.686392
 **********
 **   18 **HESSE 
 **********

 FCN=   5976.563     FROM HESSE     STATUS=OK           342 CALLS     2732 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.289        9.2689        .11924E-03   -1.5036    
   2  norm          .10000E-03    2.5712        .12057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     168.25        88.567        .15550E-03   -1.3106    
   4  Prefactor     .10000E-03    9.4196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1862        .26489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.338        7.7137        .11891E-03   -1.5034    
   8  Prefactor     .10000E-03    39.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2373        .23286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6224        .16145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .14227        2.7201        .16323E-02   -1.5633    
  12  norm          3.5281        2.1498        .84594E-04   -1.5332    
  13  Prefactor     13.244        13.264        .11005E-03   -1.4980    
  14  Prefactor     .10000E-03    2.3170        .11378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6432        1.5475        .47872E-04   -1.5233    
  16  norm          2.3740        1.9070        .91309E-04   -1.5400    
  17  norm          9.9230        3.7093        .85936E-04   -1.5078    
  18  Prefactor     .10000E-03    131.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0972        2.0650        .14892E-03   -1.5498    
  20  Prefactor     .10000E-03    7.8688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0421        .19201        .21252E-03   -.91632    
  22  Prefactor     .68639        .20627        .28927E-03   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66677e-08
Minuit parameter uncertainties:
  1  9.2701
  2  5.6512e-07
  3  88.6369
  4  8.28337e-06
  5  1.31655e-05
  6  5.73472e-07
  7  7.71437
  8  6.26587e-05
  9  5.10422e-07
  10  1.38176e-07
  11  1.24379
  12  2.14987
  13  13.2665
  14  3.6787e-07
  15  1.54754
  16  1.90705
  17  3.70937
  18  1.5188e-05
  19  2.06518
  20  1.81335e-06
  21  0.192135
  22  0.206498
Done.

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

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  1.423e-01  1.244e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  2.251e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
261         beta:  9.012e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.069e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  6.864e-01  2.065e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.042e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 19.725 -21.695
Photon Flux Upper Limit: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/537920/likelihoodResults_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.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) = 5976.56102004
delta logL = 0.00244695116362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5976.56100847
delta logL = 0.00245852037006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14228       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4453       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68655       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5976.561     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      216 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14446        23.230        .26160E-01    .20567E-02
   2  alpha         2.4418        3.6183        .41164        .45064E-04
   3  Normalizat    1.0416        .19238E-01    .41156E-01   -.16094E-03
   4  Prefactor     .68653        .21817E-01    .65373E-01   -.92366E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.144464
  alpha      = 2.44185
  Normalizat = 1.04161
  Prefactor  = 0.686528
 **********
 **   18 **HESSE 
 **********

 FCN=   5976.561     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14446        4.9241        .14873E-02   -1.5632    
   2  alpha         2.4418        3.7191        .64412E-01   -.23262E-01
   3  Normalizat    1.0416        .18125        .21257E-03   -.91649    
   4  Prefactor     .68653        .20514        .28924E-03   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88259e-10
Minuit parameter uncertainties:
  1  1.68641
  2  4.004
  3  0.181354
  4  0.205361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537920': 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) = 5976.56100632
delta logL = 0.00246067683838

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  1.445e-01  1.686e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  2.442e+00  4.004e+00  0.000e+00  5.000e+00 ( 1.000e+00)
261         beta:  9.012e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.069e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  6.865e-01  2.054e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.042e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 19.725 -21.695

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/537920/cmap_HighResolution_261878401_262137601_4FGL_J0118.9-2141_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-08-13 23:04:59.079865', job_id='537920', GAL2='0.69', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1628921099.08', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='2.46e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='87' AND source_name='4FGL J0118.9-2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:04:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 537920: <4FGL_J0118.9-2141_daily_bin87> in cluster <slac> Done

Job <4FGL_J0118.9-2141_daily_bin87> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 22:50:27 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:51:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 22:51:08 2021
Terminated at Fri Aug 13 23:05:00 2021
Results reported at Fri Aug 13 23:05:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.9-2141_daily_bin87 19.7254 -21.6948 261878401 262137601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0118.9-2141 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   804.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            873 sec.

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

