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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin26
RA = 34.731, Dec = -23.0986
tmin = 246067201, tmax = 246326401
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='300711', job_status='RUN', time_executed='2021-08-15 17:20:30.150840', time_epoch_executed='1629073230.15' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300711/ft1_4FGL_J0218.9-2305_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300711/ft2_4FGL_J0218.9-2305_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300711/ft1_4FGL_J0218.9-2305_daily_bin26.fits outfile=/scratch/kocevski/300711/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin26.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=246067201.0 tmax=246326401.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 3.60
user 1.33
sys 2.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300711/ft2_4FGL_J0218.9-2305_daily_bin26.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/300711/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin26.fits evtable="EVENTS" outfile="/scratch/kocevski/300711/ft1_filtered_4FGL_J0218.9-2305_daily_bin26.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 2.61
user 0.33
sys 2.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300711/ft1_filtered_4FGL_J0218.9-2305_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/300711/ft2_4FGL_J0218.9-2305_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/300711/ltcube_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.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/300711/ft2_4FGL_J0218.9-2305_daily_bin26.fits
.....................!
real 18.21
user 15.50
sys 2.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300711/ft1_filtered_4FGL_J0218.9-2305_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/300711/ft2_4FGL_J0218.9-2305_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/300711/ltcube_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.fits outfile=/scratch/kocevski/300711/expmap_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.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/300711/ltcube_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.fits
.....................!
real 197.07
user 188.65
sys 7.49

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/300711/ft1_filtered_4FGL_J0218.9-2305_daily_bin26.fits scfile=/scratch/kocevski/300711/ft2_4FGL_J0218.9-2305_daily_bin26.fits outfile=/scratch/kocevski/300711/cmap_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.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 2.59
user 0.38
sys 2.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300711/ft1_filtered_4FGL_J0218.9-2305_daily_bin26.fits scfile=/scratch/kocevski/300711/ft2_4FGL_J0218.9-2305_daily_bin26.fits outfile=/scratch/kocevski/300711/cmap_HighResolution_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.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 2.57
user 0.40
sys 2.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300711/ft1_filtered_4FGL_J0218.9-2305_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/300711/ft2_4FGL_J0218.9-2305_daily_bin26.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300711/Model_4FGL_J0218.9-2305_daily_bin26.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/300711/ft1_filtered_4FGL_J0218.9-2305_daily_bin26.fits.....................!
real 110.88
user 106.16
sys 3.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/300711/ft1_filtered_4FGL_J0218.9-2305_daily_bin26.fits', '/scratch/kocevski/300711/ft2_4FGL_J0218.9-2305_daily_bin26.fits', expMap='/scratch/kocevski/300711/expmap_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.fits', expCube='/scratch/kocevski/300711/ltcube_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/300711/Model_4FGL_J0218.9-2305_daily_bin26.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/300711/ft1_filtered_4FGL_J0218.9-2305_daily_bin26.fits
Spacecraft file(s): /scratch/kocevski/300711/ft2_4FGL_J0218.9-2305_daily_bin26.fits
Exposure map: /scratch/kocevski/300711/expmap_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.fits
Exposure cube: /scratch/kocevski/300711/ltcube_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/300711/Model_4FGL_J0218.9-2305_daily_bin26.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) = 5321.1570354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39686E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    7.6299       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .69900       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13642       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4816       1.0000         .10000E-03   10000.    
    10 'norm      '    8.9327       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4840       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.802       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    89.065       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8329       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6233       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2046       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2117       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79680       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=   5321.125     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2512 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64602E-01    1.1310        .36354E-06   -.58110E-03
   2  norm          7.6292        3.7303        .10946E-06   -.21863E-03
   3  Prefactor     .10000E-03    12.838       -.15791E-07** at limit **
   4  norm          2.5984        1.8619        .45491E-07   -.29647E-03
   5  Prefactor     .70000        5.5109        .30642E-05    .95437E-04
   6  Prefactor     .10000E-03    3.8866       -.28229E-07** at limit **
   7  Prefactor     .19157        3.7324        .11489E-05   -.72152E-03
   8  Prefactor     .10000E-03    10.094        .38691E-05** at limit **
   9  Prefactor     8.4854        21.492       -.15383E-06   -.36316E-04
  10  norm          8.9800        84.609       -.52714E-05   -.47002E-04
  11  Prefactor     .10000E-03    3.1743       -.93970E-07** at limit **
  12  Prefactor     4.4642        101.55        .56067E-05   -.20589E-04
  13  Prefactor     .10000E-03    249.27        .37708E-06** at limit **
  14  Prefactor     10.833        40.872        .16296E-05   -.23894E-04
  15  Prefactor     .10000E-03    1.3175        .34250E-07** at limit **
  16  Prefactor     89.133        62.398       -.17340E-06    .22168E-04
  17  norm          5.8342        2.4348        .33334E-07   -.12726E-03
  18  Prefactor     .10000E-03    26.743        .60116E-07** at limit **
  19  Prefactor     5.6273        17.495        .80104E-06   -.51427E-04
  20  norm          3.2052        2.6809       -.90643E-08   -.23645E-04
  21  Normalizat    1.2105        .19270       -.19787E-05   -.36312E-03
  22  Prefactor     .79754        .19803        .14041E-05   -.31704E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0646023
  norm       = 7.62915
  Prefactor  = 0.0001
  norm       = 2.59836
  Prefactor  = 0.699996
  Prefactor  = 0.0001
  Prefactor  = 0.191571
  Prefactor  = 0.000100001
  Prefactor  = 8.48545
  norm       = 8.97996
  Prefactor  = 0.0001
  Prefactor  = 4.46423
  Prefactor  = 0.0001
  Prefactor  = 10.8331
  Prefactor  = 0.0001
  Prefactor  = 89.133
  norm       = 5.83425
  Prefactor  = 0.0001
  Prefactor  = 5.62726
  norm       = 3.2052
  Normalizat = 1.21051
  Prefactor  = 0.797539
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.125     FROM HESSE     STATUS=OK           348 CALLS     2860 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64602E-01    18.233        .14293E-02   -1.5657    
   2  norm          7.6292        3.7312        .93217E-04   -1.5155    
   3  Prefactor     .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5984        1.8586        .80523E-04   -1.5386    
   5  Prefactor     .70000        5.4947        .32539E-03   -1.5541    
   6  Prefactor     .10000E-03    3.8925        .14043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19157        37.442        .24345E-02   -1.5620    
   8  Prefactor     .10000E-03    10.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4854        21.480        .13765E-03   -1.5125    
  10  norm          8.9800        85.131        .13411E-03   -1.5109    
  11  Prefactor     .10000E-03    3.1960        .12682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4642        100.56        .19014E-03   -1.5285    
  13  Prefactor     .10000E-03    253.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.833        40.830        .12190E-03   -1.5050    
  15  Prefactor     .10000E-03    1.3196        .81768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     89.133        62.025        .42575E-04   -1.3817    
  17  norm          5.8342        2.4345        .70253E-04   -1.5225    
  18  Prefactor     .10000E-03    26.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.6273        17.349        .16941E-03   -1.5233    
  20  norm          3.2052        2.6781        .10589E-03   -1.5350    
  21  Normalizat    1.2105        .23087        .21868E-03   -.86279    
  22  Prefactor     .79754        .23276        .28951E-03   -.99819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27656e-09
Minuit parameter uncertainties:
  1  2.16962
  2  3.73133
  3  5.31952e-07
  4  1.85864
  5  3.92258
  6  1.27225e-06
  7  5.35844
  8  0.000157633
  9  21.499
  10  55.4017
  11  4.05899e-06
  12  42.4551
  13  0.000575523
  14  40.9354
  15  9.18063e-07
  16  62.0697
  17  2.43457
  18  3.60665e-05
  19  17.3643
  20  2.67822
  21  0.231061
  22  0.233045
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.916e-01  5.358e+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:  7.975e-01  2.330e-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:  1.211e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 34.731 -23.099
Photon Flux Upper Limit: 8.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300711/likelihoodResults_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.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) = 5320.38120732
delta logL = 0.743710986689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5320.37478807
delta logL = 0.750130236112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26348       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1312       1.0000          .0000       10.000    
     3 'Normalizat'    1.1303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85407       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=   5320.375     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      232 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26347        3.5958        .72907E-02    .54558E-02
   2  Index         5.1323        3.2431        .18184        .24585E-03
   3  Normalizat    1.1304        .39085E-01    .36884E-01   -.22823E-03
   4  Prefactor     .85389        .43214E-01    .63495E-01   -.27817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.263469
  Index      = 5.13233
  Normalizat = 1.13042
  Prefactor  = 0.853895
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.375     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      263 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26347        10.664        .33381E-03   -1.5605    
   2  Index         5.1323        7.5645        .62140E-02    .26468E-01
   3  Normalizat    1.1304        .16278        .22508E-03   -.88781    
   4  Prefactor     .85389        .17669        .28084E-03   -.97771    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.14166e-10
Minuit parameter uncertainties:
  1  3.35236
  2  8.16567
  3  0.162854
  4  0.176804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300711': 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) = 5320.37478538
delta logL = 0.750132925256

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  2.635e-01  3.352e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  5.132e+00  8.166e+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:  8.539e-01  1.768e-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:  1.130e+00  1.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 5.13 +/- 8.17
Photon Flux (Free Index): 6.24e-08 +/- 5.42e-08
Energy Flux (Free Index): 8.21e-06 +/- 9.10e-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/300711/cmap_HighResolution_246067201_246326401_4FGL_J0218.9-2305_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', comment='SUCCESS', energy_flux2='8.21e-06', dlogl='7.50e-01', photon_flux2='6.24e-08', job_status='DONE', time_completed='2021-08-15 17:32:10.885608', photon_index_error2='8.17', photon_index2='5.13', ts='0.00', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.86e-08', energy_flux_error2='9.10e-06', EG='1.21', time_epoch_completed='1629073930.89', return_code='0', job_id='300711', GAL2='0.85', EG2='1.13', return_code2='102', photon_flux_error2='5.42e-08', ts2='1.61', photon_index='2.60' WHERE bin_id='26' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:32:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 300711: <4FGL_J0218.9-2305_daily_bin26> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin26> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 17:15:36 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:16:50 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:16:50 2021
Terminated at Sun Aug 15 17:32:12 2021
Results reported at Sun Aug 15 17:32:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin26 34.731 -23.0986 246067201 246326401 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 :                                   728.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            996 sec.

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

