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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin849
RA = 34.731, Dec = -23.0986
tmin = 459388801, tmax = 459648001
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='304970', job_status='RUN', time_executed='2021-08-15 17:31:57.267991', time_epoch_executed='1629073917.27' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='849'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304970

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304970/ft1_4FGL_J0218.9-2305_daily_bin849.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304970/ft2_4FGL_J0218.9-2305_daily_bin849.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304970/ft1_4FGL_J0218.9-2305_daily_bin849.fits outfile=/scratch/kocevski/304970/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin849.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=459388801.0 tmax=459648001.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.36
user 2.69
sys 0.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304970/ft2_4FGL_J0218.9-2305_daily_bin849.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/304970/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin849.fits evtable="EVENTS" outfile="/scratch/kocevski/304970/ft1_filtered_4FGL_J0218.9-2305_daily_bin849.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.91
user 0.29
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304970/ft1_filtered_4FGL_J0218.9-2305_daily_bin849.fits" evtable="EVENTS" scfile=/scratch/kocevski/304970/ft2_4FGL_J0218.9-2305_daily_bin849.fits sctable="SC_DATA" outfile=/scratch/kocevski/304970/ltcube_459388801_459648001_4FGL_J0218.9-2305_daily_bin849.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/304970/ft2_4FGL_J0218.9-2305_daily_bin849.fits
.....................!
real 12.21
user 11.40
sys 0.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304970/ft1_filtered_4FGL_J0218.9-2305_daily_bin849.fits evtable="EVENTS" scfile=/scratch/kocevski/304970/ft2_4FGL_J0218.9-2305_daily_bin849.fits sctable="SC_DATA" expcube=/scratch/kocevski/304970/ltcube_459388801_459648001_4FGL_J0218.9-2305_daily_bin849.fits outfile=/scratch/kocevski/304970/expmap_459388801_459648001_4FGL_J0218.9-2305_daily_bin849.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/304970/ltcube_459388801_459648001_4FGL_J0218.9-2305_daily_bin849.fits
.....................!
real 157.23
user 152.44
sys 4.23

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/304970/ft1_filtered_4FGL_J0218.9-2305_daily_bin849.fits scfile=/scratch/kocevski/304970/ft2_4FGL_J0218.9-2305_daily_bin849.fits outfile=/scratch/kocevski/304970/cmap_459388801_459648001_4FGL_J0218.9-2305_daily_bin849.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 0.93
user 0.34
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304970/ft1_filtered_4FGL_J0218.9-2305_daily_bin849.fits scfile=/scratch/kocevski/304970/ft2_4FGL_J0218.9-2305_daily_bin849.fits outfile=/scratch/kocevski/304970/cmap_HighResolution_459388801_459648001_4FGL_J0218.9-2305_daily_bin849.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 0.95
user 0.35
sys 0.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304970/ft1_filtered_4FGL_J0218.9-2305_daily_bin849.fits evtable="EVENTS" scfile=/scratch/kocevski/304970/ft2_4FGL_J0218.9-2305_daily_bin849.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304970/Model_4FGL_J0218.9-2305_daily_bin849.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/304970/ft1_filtered_4FGL_J0218.9-2305_daily_bin849.fits.....................!
real 79.61
user 77.73
sys 1.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8834       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6383       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8906       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.318       1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.723       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39721       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.921       1.0000         .10000E-03   10000.    
    17 'norm      '    .82037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5908       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0200       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .60902       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=   4778.516     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2444 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8836        1.8819       -.42463E-07    .27738E-05
   2  norm          .10000E-03    1.2577       -.16546E-07** at limit **
   3  Prefactor     .10000E-03    12.853       -.31234E-05** at limit **
   4  norm          .10000E-03    1.1916        .97935E-08** at limit **
   5  Prefactor     4.6385        4.2282       -.19922E-07   -.55130E-05
   6  Prefactor     1.3534        3.2211       -.25323E-06   -.40199E-03
   7  Prefactor     2.8899        5.1907        .35814E-06   -.32190E-03
   8  Prefactor     8.9809        7.4571       -.16244E-06   -.45450E-04
   9  Prefactor     .10000E-03    13.465        .18584E-05** at limit **
  10  norm          .10000E-03    28.365        .45917E-05** at limit **
  11  Prefactor     14.318        7.4292       -.16449E-06    .11369E-04
  12  Prefactor     43.170        34.511       -.37487E-05   -.80149E-05
  13  Prefactor     .10000E-03    17.943       -.50413E-05** at limit **
  14  Prefactor     60.726        40.353        .32875E-05    .28654E-05
  15  Prefactor     .38773        2.7263        .39667E-07   -.22100E-04
  16  Prefactor     14.916        41.049       -.99469E-05   -.28642E-04
  17  norm          .82075        1.6169        .81997E-07    .42572E-04
  18  Prefactor     .10000E-03    38.605       -.27476E-05** at limit **
  19  Prefactor     .10000E-03    14.125        .44888E-05** at limit **
  20  norm          3.5906        2.9401        .22424E-07   -.19744E-04
  21  Normalizat    1.0198        .16414        .68564E-06   -.82200E-04
  22  Prefactor     .60926        .17344       -.19026E-06   -.37898E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88356
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.63853
  Prefactor  = 1.35341
  Prefactor  = 2.88987
  Prefactor  = 8.98087
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3183
  Prefactor  = 43.1702
  Prefactor  = 0.0001
  Prefactor  = 60.726
  Prefactor  = 0.387733
  Prefactor  = 14.9158
  norm       = 0.820752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.5906
  Normalizat = 1.01976
  Prefactor  = 0.609258
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.516     FROM HESSE     STATUS=OK           350 CALLS     2794 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8836        1.8788        .90811E-04   -1.5433    
   2  norm          .10000E-03    1.2712        .75641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8985        .14465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6385        4.2269        .13126E-03   -1.5277    
   6  Prefactor     1.3534        10.940        .18785E-02   -1.5475    
   7  Prefactor     2.8899        5.3371        .10136E-02   -1.5368    
   8  Prefactor     8.9809        7.4507        .13373E-03   -1.5109    
   9  Prefactor     .10000E-03    13.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    28.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.318        7.4449        .10585E-03   -1.4951    
  12  Prefactor     43.170        34.461        .61012E-04   -1.4393    
  13  Prefactor     .10000E-03    17.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     60.726        40.370        .51490E-04   -1.4148    
  15  Prefactor     .38773        9.3632        .21632E-02   -1.5583    
  16  Prefactor     14.916        41.430        .10369E-03   -1.4935    
  17  norm          .82075        1.5825        .11603E-03   -1.5527    
  18  Prefactor     .10000E-03    38.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5906        2.9382        .10288E-03   -1.5329    
  21  Normalizat    1.0198        .19455        .19586E-03   -.92371    
  22  Prefactor     .60926        .20580        .27351E-03   -1.0720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40524e-08
Minuit parameter uncertainties:
  1  1.87884
  2  1.31563e-06
  3  2.14647e-06
  4  1.66115e-06
  5  4.22715
  6  7.6975
  7  5.33796
  8  7.45148
  9  8.94893e-07
  10  3.65229e-05
  11  7.44534
  12  34.477
  13  5.80274e-06
  14  40.3887
  15  3.81092
  16  41.5095
  17  1.58262
  18  2.94553e-06
  19  5.88344e-05
  20  2.93828
  21  0.194682
  22  0.20605
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  2.890e+00  5.338e+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:  6.093e-01  2.061e-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.020e+00  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/304970/likelihoodResults_459388801_459648001_4FGL_J0218.9-2305_daily_bin849.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) = 4778.5138774
delta logL = 0.00221410031099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4778.51163077
delta logL = 0.00446072886916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4009       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8330       1.0000          .0000       10.000    
     3 'Normalizat'    1.0157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61340       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=   4778.512     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      223 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3880        97.441        .66065E-02    .41286E-03
   2  Index         2.8380        6.4190        .34408       -.88960E-05
   3  Normalizat    1.0158        .31050E-01    .44063E-01   -.64786E-04
   4  Prefactor     .61337        .34069E-01    .61632E-01   -.29166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38796
  Index      = 2.83795
  Normalizat = 1.01577
  Prefactor  = 0.613369
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.512     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3880        20.288        .18167E-03   -1.5399    
   2  Index         2.8380        6.4166        .10315E-01   -.44716    
   3  Normalizat    1.0158        .19879        .19619E-03   -.92504    
   4  Prefactor     .61337        .21963        .27266E-03   -1.0703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04872e-10
Minuit parameter uncertainties:
  1  13.9267
  2  5.26399
  3  0.198932
  4  0.219941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304970': 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) = 4778.51162929
delta logL = 0.00446220649246

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  2.388e+00  1.393e+01  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.838e+00  5.264e+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:  6.134e-01  2.199e-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.016e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
Ra Dec: 34.731 -23.099

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/304970/cmap_HighResolution_459388801_459648001_4FGL_J0218.9-2305_daily_bin849.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.67e-03', job_status='DONE', photon_flux_upper_limit='9.80e-08', time_completed='2021-08-15 17:40:48.957120', job_id='304970', GAL2='0.61', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1629074448.96', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='4.46e-03', ts2='0.36', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='849' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:40:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 304970: <4FGL_J0218.9-2305_daily_bin849> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin849> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:30:44 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:31:39 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:31:39 2021
Terminated at Sun Aug 15 17:40:49 2021
Results reported at Sun Aug 15 17:40:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin849 34.731 -23.0986 459388801 459648001 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 :                                   534.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             368.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            605 sec.

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

