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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin190
RA = 34.731, Dec = -23.0986
tmin = 288576001, tmax = 288835201
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='302099', job_status='RUN', time_executed='2021-08-15 17:24:45.095718', time_epoch_executed='1629073485.1' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302099/ft1_4FGL_J0218.9-2305_daily_bin190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302099/ft2_4FGL_J0218.9-2305_daily_bin190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302099/ft1_4FGL_J0218.9-2305_daily_bin190.fits outfile=/scratch/kocevski/302099/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin190.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=288576001.0 tmax=288835201.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.81
user 3.39
sys 2.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302099/ft2_4FGL_J0218.9-2305_daily_bin190.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/302099/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin190.fits evtable="EVENTS" outfile="/scratch/kocevski/302099/ft1_filtered_4FGL_J0218.9-2305_daily_bin190.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.69
user 0.35
sys 2.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302099/ft1_filtered_4FGL_J0218.9-2305_daily_bin190.fits" evtable="EVENTS" scfile=/scratch/kocevski/302099/ft2_4FGL_J0218.9-2305_daily_bin190.fits sctable="SC_DATA" outfile=/scratch/kocevski/302099/ltcube_288576001_288835201_4FGL_J0218.9-2305_daily_bin190.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/302099/ft2_4FGL_J0218.9-2305_daily_bin190.fits
.....................!
real 17.40
user 14.56
sys 2.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302099/ft1_filtered_4FGL_J0218.9-2305_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/302099/ft2_4FGL_J0218.9-2305_daily_bin190.fits sctable="SC_DATA" expcube=/scratch/kocevski/302099/ltcube_288576001_288835201_4FGL_J0218.9-2305_daily_bin190.fits outfile=/scratch/kocevski/302099/expmap_288576001_288835201_4FGL_J0218.9-2305_daily_bin190.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/302099/ltcube_288576001_288835201_4FGL_J0218.9-2305_daily_bin190.fits
.....................!
real 195.51
user 186.61
sys 8.17

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/302099/ft1_filtered_4FGL_J0218.9-2305_daily_bin190.fits scfile=/scratch/kocevski/302099/ft2_4FGL_J0218.9-2305_daily_bin190.fits outfile=/scratch/kocevski/302099/cmap_288576001_288835201_4FGL_J0218.9-2305_daily_bin190.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.69
user 0.39
sys 2.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302099/ft1_filtered_4FGL_J0218.9-2305_daily_bin190.fits scfile=/scratch/kocevski/302099/ft2_4FGL_J0218.9-2305_daily_bin190.fits outfile=/scratch/kocevski/302099/cmap_HighResolution_288576001_288835201_4FGL_J0218.9-2305_daily_bin190.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.66
user 0.39
sys 2.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302099/ft1_filtered_4FGL_J0218.9-2305_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/302099/ft2_4FGL_J0218.9-2305_daily_bin190.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302099/Model_4FGL_J0218.9-2305_daily_bin190.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/302099/ft1_filtered_4FGL_J0218.9-2305_daily_bin190.fits.....................!
real 87.61
user 83.28
sys 4.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12502E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.4426       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.407       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6959       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2436       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4100       1.0000         .10000E-03   10000.    
    10 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2826       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.865       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .95830E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.543       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.3113       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.134       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.353       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1949       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1997       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78981       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=   4158.053     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2401 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8349       -.17247E-06** at limit **
   2  norm          6.4428        5.0901        .44981E-06    .52436E-04
   3  Prefactor     54.402        70.881        .50528E-06    .33498E-05
   4  norm          .10000E-03    1.0069       -.98672E-07** at limit **
   5  Prefactor     .10000E-03    2.9363       -.12108E-06** at limit **
   6  Prefactor     .10000E-03    24.797       -.23603E-05** at limit **
   7  Prefactor     1.6966        9.4149        .22570E-05    .19375E-04
   8  Prefactor     6.2448        10.114        .53262E-06   -.18048E-04
   9  Prefactor     3.4119        43.956        .14110E-04   -.87278E-05
  10  norm          .10000E-03    152.69        .11278E-05** at limit **
  11  Prefactor     4.2823        9.5793       -.75196E-06   -.45179E-04
  12  Prefactor     21.882        47.416        .46651E-06   -.10198E-05
  13  Prefactor     .10000E-03    454.11       -.82195E-05** at limit **
  14  Prefactor     .10000E-03    29.997       -.33681E-06** at limit **
  15  Prefactor     10.540        6.0152       -.20864E-06    .36038E-04
  16  Prefactor     .10000E-03    20.261       -.81277E-07** at limit **
  17  norm          6.3118        3.1013        .12372E-06   -.38760E-04
  18  Prefactor     50.336        118.12        .25001E-05    .46952E-04
  19  Prefactor     14.359        15.872        .21353E-06   -.99549E-05
  20  norm          5.1944        4.5185        .17768E-06   -.13031E-04
  21  Normalizat    1.1995        .22172       -.11744E-05    .31974E-04
  22  Prefactor     .78991        .22916       -.11147E-05   -.58926E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 6.44283
  Prefactor  = 54.4019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.69658
  Prefactor  = 6.24477
  Prefactor  = 3.41186
  norm       = 0.0001
  Prefactor  = 4.28225
  Prefactor  = 21.8815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5402
  Prefactor  = 0.0001
  norm       = 6.31185
  Prefactor  = 50.3357
  Prefactor  = 14.359
  norm       = 5.19439
  Normalizat = 1.1995
  Prefactor  = 0.789913
 **********
 **   18 **HESSE 
 **********

 FCN=   4158.053     FROM HESSE     STATUS=OK           348 CALLS     2749 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6623        .16368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.4428        5.0094        .11884E-03   -1.5200    
   3  Prefactor     54.402        70.866        .54380E-04   -1.4231    
   4  norm          .10000E-03    1.0230        .63113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9965        .10788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6966        9.3457        .32313E-03   -1.5447    
   8  Prefactor     6.2448        10.088        .16065E-03   -1.5208    
   9  Prefactor     3.4119        43.942        .10954E-02   -1.5339    
  10  norm          .10000E-03    153.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2823        9.5089        .19468E-03   -1.5294    
  12  Prefactor     21.882        47.328        .85659E-04   -1.4772    
  13  Prefactor     .10000E-03    459.80        .20790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.540        6.0105        .11518E-03   -1.5059    
  16  Prefactor     .10000E-03    20.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.3118        3.1034        .74681E-04   -1.5205    
  18  Prefactor     50.336        118.44        .28319E-03   -1.4288    
  19  Prefactor     14.359        15.867        .10572E-03   -1.4950    
  20  norm          5.1944        4.5109        .12172E-03   -1.5252    
  21  Normalizat    1.1995        .26895        .22560E-03   -.86618    
  22  Prefactor     .78991        .27665        .29552E-03   -1.0010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02565e-10
Minuit parameter uncertainties:
  1  0.000228905
  2  5.00972
  3  70.9759
  4  2.49663e-06
  5  2.30856e-06
  6  2.31447e-05
  7  7.96552
  8  10.0904
  9  24.5106
  10  6.46609e-05
  11  9.51225
  12  47.4092
  13  0.000134184
  14  7.35282e-05
  15  6.01088
  16  2.30258e-05
  17  3.10346
  18  119.003
  19  15.872
  20  4.51119
  21  0.269258
  22  0.277141
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.697e+00  7.966e+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.899e-01  2.771e-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.199e+00  2.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 34.731 -23.099
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302099/likelihoodResults_288576001_288835201_4FGL_J0218.9-2305_daily_bin190.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) = 4157.84751055
delta logL = 0.205350918191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4157.83147583
delta logL = 0.221385629258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3100       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4380       1.0000          .0000       10.000    
     3 'Normalizat'    1.1602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81403       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=   4157.831     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3118        105.75        .67488E-02    .26098E-03
   2  Index         3.4361        6.7180        .21267        .22309E-04
   3  Normalizat    1.1606        .55385E-01    .51749E-01   -.21748E-03
   4  Prefactor     .81379        .60681E-01    .65887E-01   -.26301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.31182
  Index      = 3.43609
  Normalizat = 1.16055
  Prefactor  = 0.813787
 **********
 **   18 **HESSE 
 **********

 FCN=   4157.831     FROM HESSE     STATUS=OK            29 CALLS      247 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3118        5.2495        .13770E-03   -1.5404    
   2  Index         3.4361        1.2917        .84270E-02   -.31812    
   3  Normalizat    1.1606        .25783        .22880E-03   -.87831    
   4  Prefactor     .81379        .27312        .29147E-03   -.99222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28065e-10
Minuit parameter uncertainties:
  1  5.25055
  2  1.30823
  3  0.258114
  4  0.273573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302099': 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) = 4157.83147314
delta logL = 0.221388321474

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  2.312e+00  5.251e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  3.436e+00  1.308e+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.138e-01  2.736e-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.161e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/302099/cmap_HighResolution_288576001_288835201_4FGL_J0218.9-2305_daily_bin190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-08-15 17:35:03.556221', job_id='302099', GAL2='0.81', fit_tolerance='1e-08', EG2='1.16', EG='1.20', time_epoch_completed='1629074103.56', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.21e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='190' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:35:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 302099: <4FGL_J0218.9-2305_daily_bin190> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin190> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:20:47 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:21:32 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:21:32 2021
Terminated at Sun Aug 15 17:35:04 2021
Results reported at Sun Aug 15 17:35:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin190 34.731 -23.0986 288576001 288835201 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 :                                   648.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            857 sec.

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

