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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin111
RA = 34.731, Dec = -23.0986
tmin = 268099201, tmax = 268358401
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='301973', job_status='RUN', time_executed='2021-08-15 17:23:46.570411', time_epoch_executed='1629073426.57' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301973/ft1_4FGL_J0218.9-2305_daily_bin111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301973/ft1_4FGL_J0218.9-2305_daily_bin111.fits outfile=/scratch/kocevski/301973/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin111.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=268099201.0 tmax=268358401.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.10
user 1.26
sys 3.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.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/301973/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin111.fits evtable="EVENTS" outfile="/scratch/kocevski/301973/ft1_filtered_4FGL_J0218.9-2305_daily_bin111.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 4.12
user 0.33
sys 3.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/301973/ft1_filtered_4FGL_J0218.9-2305_daily_bin111.fits" evtable="EVENTS" scfile=/scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits sctable="SC_DATA" outfile=/scratch/kocevski/301973/ltcube_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.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/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits
.....................!
real 19.61
user 15.13
sys 4.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301973/ft1_filtered_4FGL_J0218.9-2305_daily_bin111.fits evtable="EVENTS" scfile=/scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits sctable="SC_DATA" expcube=/scratch/kocevski/301973/ltcube_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.fits outfile=/scratch/kocevski/301973/expmap_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.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/301973/ltcube_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.fits
.....................!
real 197.76
user 186.54
sys 10.33

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 178 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0218.9-2305 @ 34.731 -23.0986

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/301973/ft1_filtered_4FGL_J0218.9-2305_daily_bin111.fits scfile=/scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits outfile=/scratch/kocevski/301973/cmap_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.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=34.731 yref=-23.0986 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 4.09
user 0.38
sys 3.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301973/ft1_filtered_4FGL_J0218.9-2305_daily_bin111.fits scfile=/scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits outfile=/scratch/kocevski/301973/cmap_HighResolution_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.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=34.731 yref=-23.0986 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 4.07
user 0.39
sys 3.63

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/301973/ft1_filtered_4FGL_J0218.9-2305_daily_bin111.fits evtable="EVENTS" scfile=/scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/301973/Model_4FGL_J0218.9-2305_daily_bin111.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/301973/ft1_filtered_4FGL_J0218.9-2305_daily_bin111.fits.....................!
real 127.04
user 120.62
sys 5.88

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/301973/ft1_filtered_4FGL_J0218.9-2305_daily_bin111.fits', '/scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits', expMap='/scratch/kocevski/301973/expmap_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.fits', expCube='/scratch/kocevski/301973/ltcube_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/301973/Model_4FGL_J0218.9-2305_daily_bin111.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0218.9-2305'

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.106e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.603e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/301973/ft1_filtered_4FGL_J0218.9-2305_daily_bin111.fits
Spacecraft file(s): /scratch/kocevski/301973/ft2_4FGL_J0218.9-2305_daily_bin111.fits
Exposure map: /scratch/kocevski/301973/expmap_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.fits
Exposure cube: /scratch/kocevski/301973/ltcube_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/301973/Model_4FGL_J0218.9-2305_daily_bin111.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) = 6262.54869773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5514       1.0000         .10000E-03   10000.    
     2 'norm      '    9.6690       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .67457       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .65605       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6513       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42962E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .76884       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3933       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74337       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6262.542     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2461 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5514        1.5856       -.99398E-07   -.12490E-03
   2  norm          9.6687        3.3739       -.13891E-06   -.80525E-04
   3  Prefactor     .10000E-03    17.247        .90651E-05** at limit **
   4  norm          .67437        1.3900       -.79027E-06   -.16266E-02
   5  Prefactor     .10000E-03    2.7159       -.30772E-06** at limit **
   6  Prefactor     .10000E-03    2.7493       -.57905E-07** at limit **
   7  Prefactor     5.3442        4.7620        .13608E-05   -.26588E-03
   8  Prefactor     .10000E-03    3.6536       -.39828E-07** at limit **
   9  Prefactor     .10000E-03    14.251        .90258E-05** at limit **
  10  norm          .10000E-03    15.113       -.11405E-04** at limit **
  11  Prefactor     .65551        3.2978        .56695E-07   -.34191E-03
  12  Prefactor     1.6476        127.77        .13167E-04   -.40042E-04
  13  Prefactor     .10000E-03    16.688       -.65735E-05** at limit **
  14  Prefactor     60.881        32.228       -.69185E-05   -.43114E-04
  15  Prefactor     .10000E-03    3.8328       -.92866E-07** at limit **
  16  Prefactor     .10020E-03    24.819        .11718E-05** at limit **
  17  norm          .76914        1.5034       -.78400E-07   -.95733E-03
  18  Prefactor     9.2820        122.87       -.90614E-04    .20237E-05
  19  Prefactor     .10000E-03    9.0823       -.30007E-06** at limit **
  20  norm          3.3931        3.5064       -.16625E-06   -.41569E-03
  21  Normalizat    .74335        .15673        .21475E-05   -.10488E-04
  22  Prefactor     1.1605        .17188        .10217E-05    .28706E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.55144
  norm       = 9.66873
  Prefactor  = 0.0001
  norm       = 0.674372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.34421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.655509
  Prefactor  = 1.64765
  Prefactor  = 0.0001
  Prefactor  = 60.881
  Prefactor  = 0.0001
  Prefactor  = 0.000100203
  norm       = 0.769135
  Prefactor  = 9.28196
  Prefactor  = 0.0001
  norm       = 3.39315
  Normalizat = 0.743354
  Prefactor  = 1.16052
 **********
 **   18 **HESSE 
 **********

 FCN=   6262.542     FROM HESSE     STATUS=OK           356 CALLS     2817 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5514        1.5823        .75747E-04   -1.5388    
   2  norm          9.6687        3.3772        .81636E-04   -1.5086    
   3  Prefactor     .10000E-03    17.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .67437        1.3618        .12661E-03   -1.5544    
   5  Prefactor     .10000E-03    6.5561        .25202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7527        .12814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3442        4.7425        .15235E-03   -1.5246    
   8  Prefactor     .10000E-03    3.6813        .14764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    15.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .65551        11.598        .26096E-02   -1.5546    
  12  Prefactor     1.6476        127.74        .32853E-03   -1.5451    
  13  Prefactor     .10000E-03    16.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     60.881        32.024        .51428E-04   -1.4146    
  15  Prefactor     .10000E-03    4.0046        .30237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10020E-03    28.555        .11462       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76914        1.4559        .12689E-03   -1.5533    
  18  Prefactor     9.2820        123.09        .13122E-03   -1.5099    
  19  Prefactor     .10000E-03    9.1411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3931        3.4829        .14240E-03   -1.5340    
  21  Normalizat    .74335        .18441        .24241E-03   -1.0221    
  22  Prefactor     1.1605        .20483        .23120E-03   -.87555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64483e-09
Minuit parameter uncertainties:
  1  1.58232
  2  3.37726
  3  2.96932e-05
  4  1.3619
  5  8.93054e-05
  6  8.26908e-06
  7  4.74287
  8  1.70892e-05
  9  2.25281e-05
  10  3.51454e-05
  11  5.51537
  12  29.0784
  13  3.5219e-06
  14  32.0327
  15  1.10637e-05
  16  0.00481441
  17  1.45599
  18  67.7734
  19  7.95245e-06
  20  3.48307
  21  0.184567
  22  0.204971
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  5.344e+00  4.743e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.603e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.161e+00  2.050e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  7.434e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 3.52e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 9.19e-06 +/- 8.16e-06

TS (Fixed Index): 2.13
Ra Dec: 34.731 -23.099
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301973/likelihoodResults_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.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) = 6262.09633514
delta logL = 0.446102909825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6262.08353578
delta logL = 0.458902265325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2673       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6626       1.0000          .0000       10.000    
     3 'Normalizat'    .70404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1936       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6262.084     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      245 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2665        26.370        .68191E-02    .46951E-03
   2  Index         3.6628        3.5334        .17378        .10859E-03
   3  Normalizat    .70406        .45344E-01    .42344E-01    .21256E-04
   4  Prefactor     1.1935        .51931E-01    .51666E-01    .11547E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26649
  Index      = 3.66281
  Normalizat = 0.704057
  Prefactor  = 1.19354
 **********
 **   18 **HESSE 
 **********

 FCN=   6262.084     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2665        6.2993        .76754E-04   -1.5407    
   2  Index         3.6628        1.9888        .61436E-02   -.27073    
   3  Normalizat    .70406        .18118        .24842E-03   -1.0373    
   4  Prefactor     1.1935        .20822        .22842E-03   -.86530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22764e-11
Minuit parameter uncertainties:
  1  6.30111
  2  2.05016
  3  0.181336
  4  0.208361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301973': 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) = 6262.08353574
delta logL = 0.458902302716

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  2.266e+00  6.301e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  3.663e+00  2.050e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.194e+00  2.084e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  7.041e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 3.66 +/- 2.05
Photon Flux (Free Index): 5.99e-08 +/- 4.27e-08
Energy Flux (Free Index): 9.57e-06 +/- 7.01e-06

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/301973/cmap_HighResolution_268099201_268358401_4FGL_J0218.9-2305_daily_bin111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', comment='SUCCESS', photon_flux='3.52e-08', energy_flux2='9.57e-06', photon_flux_error='3.12e-08', dlogl='4.59e-01', energy_flux='9.19e-06', photon_flux2='5.99e-08', job_status='DONE', time_completed='2021-08-15 17:36:39.901913', photon_index_error2='2.05', photon_index2='3.66', ts='2.13', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='7.01e-06', EG='0.74', time_epoch_completed='1629074199.9', return_code='0', job_id='301973', GAL2='1.19', EG2='0.70', return_code2='0', energy_flux_error='8.16e-06', photon_flux_error2='4.27e-08', ts2='3.16', photon_index='2.60' WHERE bin_id='111' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:36:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 301973: <4FGL_J0218.9-2305_daily_bin111> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin111> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:20:38 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:20:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 17:20:55 2021
Terminated at Sun Aug 15 17:36:41 2021
Results reported at Sun Aug 15 17:36:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin111 34.731 -23.0986 268099201 268358401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0218.9-2305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   826.13 sec.
    Max Memory :                                 1009 MB
    Average Memory :                             290.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            963 sec.

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

