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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin33
RA = 34.731, Dec = -23.0986
tmin = 247881601, tmax = 248140801
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='300721', job_status='RUN', time_executed='2021-08-15 17:17:47.684246', time_epoch_executed='1629073067.68' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300721/ft1_4FGL_J0218.9-2305_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300721/ft2_4FGL_J0218.9-2305_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300721/ft1_4FGL_J0218.9-2305_daily_bin33.fits outfile=/scratch/kocevski/300721/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin33.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=247881601.0 tmax=248140801.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.63
user 1.23
sys 2.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300721/ft2_4FGL_J0218.9-2305_daily_bin33.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/300721/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin33.fits evtable="EVENTS" outfile="/scratch/kocevski/300721/ft1_filtered_4FGL_J0218.9-2305_daily_bin33.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.83
user 0.34
sys 2.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300721/ft1_filtered_4FGL_J0218.9-2305_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/300721/ft2_4FGL_J0218.9-2305_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/300721/ltcube_247881601_248140801_4FGL_J0218.9-2305_daily_bin33.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/300721/ft2_4FGL_J0218.9-2305_daily_bin33.fits
.....................!
real 17.67
user 14.52
sys 2.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300721/ft1_filtered_4FGL_J0218.9-2305_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/300721/ft2_4FGL_J0218.9-2305_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/300721/ltcube_247881601_248140801_4FGL_J0218.9-2305_daily_bin33.fits outfile=/scratch/kocevski/300721/expmap_247881601_248140801_4FGL_J0218.9-2305_daily_bin33.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/300721/ltcube_247881601_248140801_4FGL_J0218.9-2305_daily_bin33.fits
.....................!
real 195.51
user 185.69
sys 7.99

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/300721/ft1_filtered_4FGL_J0218.9-2305_daily_bin33.fits scfile=/scratch/kocevski/300721/ft2_4FGL_J0218.9-2305_daily_bin33.fits outfile=/scratch/kocevski/300721/cmap_247881601_248140801_4FGL_J0218.9-2305_daily_bin33.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.75
user 0.37
sys 2.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300721/ft1_filtered_4FGL_J0218.9-2305_daily_bin33.fits scfile=/scratch/kocevski/300721/ft2_4FGL_J0218.9-2305_daily_bin33.fits outfile=/scratch/kocevski/300721/cmap_HighResolution_247881601_248140801_4FGL_J0218.9-2305_daily_bin33.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.84
user 0.37
sys 2.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300721/ft1_filtered_4FGL_J0218.9-2305_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/300721/ft2_4FGL_J0218.9-2305_daily_bin33.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300721/Model_4FGL_J0218.9-2305_daily_bin33.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/300721/ft1_filtered_4FGL_J0218.9-2305_daily_bin33.fits.....................!
real 126.82
user 122.19
sys 4.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73739       1.0000         .10000E-03   10000.    
     2 'norm      '    10.886       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.551       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9939       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7373       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6891       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.564       1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11652E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.9404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    101.10       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .30036       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92027       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93778       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=   6156.395     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2418 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73754        1.6499       -.42473E-07   -.12203E-03
   2  norm          10.887        3.7706       -.12602E-07   -.17217E-03
   3  Prefactor     47.551        39.908        .44722E-07    .15911E-05
   4  norm          1.9938        1.7705       -.68928E-07   -.50824E-04
   5  Prefactor     1.7374        3.3741       -.48695E-07   -.65456E-04
   6  Prefactor     8.6893        9.7636       -.83977E-07   -.48179E-06
   7  Prefactor     .10000E-03    1.7919       -.91088E-07** at limit **
   8  Prefactor     1.8671        1.8013        .21650E-06   -.11453E-02
   9  Prefactor     19.564        17.885        .13561E-07   -.71851E-09
  10  norm          .10000E-03    40.687        .80043E-05** at limit **
  11  Prefactor     .10000E-03    3.4586        .10668E-06** at limit **
  12  Prefactor     .10000E-03    103.43       -.53590E-05** at limit **
  13  Prefactor     .10000E-03    22.783        .12068E-04** at limit **
  14  Prefactor     .10000E-03    18.205       -.28623E-05** at limit **
  15  Prefactor     .10000E-03    2.1780       -.19846E-07** at limit **
  16  Prefactor     .10000E-03    27.542       -.15125E-04** at limit **
  17  norm          6.9405        2.6595        .25830E-07    .25771E-03
  18  Prefactor     101.09        98.519       -.22830E-05    .24996E-05
  19  Prefactor     .10000E-03    3.4603       -.23052E-07** at limit **
  20  norm          .29825        1.9037       -.10307E-06    .92884E-04
  21  Normalizat    .92023        .15738        .22649E-06    .79866E-04
  22  Prefactor     .93783        .17285        .24662E-07    .52674E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.737537
  norm       = 10.8866
  Prefactor  = 47.5512
  norm       = 1.99377
  Prefactor  = 1.73735
  Prefactor  = 8.68932
  Prefactor  = 0.0001
  Prefactor  = 1.86712
  Prefactor  = 19.5639
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.94055
  Prefactor  = 101.095
  Prefactor  = 0.0001
  norm       = 0.298246
  Normalizat = 0.920227
  Prefactor  = 0.937827
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.395     FROM HESSE     STATUS=OK           346 CALLS     2764 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73754        1.6181        .14335E-03   -1.5536    
   2  norm          10.887        3.7737        .42381E-03   -1.5048    
   3  Prefactor     47.551        39.916        .58149E-04   -1.4328    
   4  norm          1.9938        1.7714        .92269E-04   -1.5426    
   5  Prefactor     1.7374        3.3488        .19327E-03   -1.5444    
   6  Prefactor     8.6893        9.7663        .13598E-03   -1.5118    
   7  Prefactor     .10000E-03    1.8103        .10253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8671        7.8478        .15209E-02   -1.5435    
   9  Prefactor     19.564        17.887        .90552E-04   -1.4823    
  10  norm          .10000E-03    40.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4923        .14242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    104.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2450        .22609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.9405        2.6471        .72395E-04   -1.5181    
  18  Prefactor     101.09        98.654        .39985E-04   -1.3694    
  19  Prefactor     .10000E-03    3.4620        .14254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .29825        7.8008        .20251E-02   -1.5599    
  21  Normalizat    .92023        .18386        .22612E-03   -.95753    
  22  Prefactor     .93783        .20302        .25489E-03   -.94832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11101e-09
Minuit parameter uncertainties:
  1  1.6182
  2  3.77376
  3  39.9383
  4  1.77145
  5  3.34917
  6  9.76814
  7  1.63578e-07
  8  7.6573
  9  17.8914
  10  7.92623e-06
  11  8.82031e-07
  12  2.51482e-05
  13  2.03154e-05
  14  4.12703e-07
  15  1.07963e-06
  16  7.97248e-06
  17  2.64719
  18  98.8142
  19  7.70861e-07
  20  3.05055
  21  0.183983
  22  0.203186
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.636e-07  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:  9.378e-01  2.032e-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:  9.202e-01  1.840e-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: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300721/likelihoodResults_247881601_248140801_4FGL_J0218.9-2305_daily_bin33.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) = 6156.39763585
delta logL = -0.00262580233994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6156.39500981
delta logL = 2.43643626163e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5885       1.0000          .0000       10.000    
     3 'Normalizat'    .92023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93783       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6156.395     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      255 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.390        .10342E-01** at limit **
   2  Index         2.1953        5.8648        .50000        .13079E-06
   3  Normalizat    .92023        .89945E-02    .22612E-03    .14827E-03
   4  Prefactor     .93783        .10282E-01    .25489E-03    .14251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19528
  Normalizat = 0.920227
  Prefactor  = 0.937827
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.395     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.11        .10955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1953        5.9177        .50000       -.59552    
   3  Normalizat    .92023        .29048E-01    .90448E-05   -.95753    
   4  Prefactor     .93783        .33205E-01    .10196E-04   -.94832    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54862e-10
Minuit parameter uncertainties:
  1  2.18824e-05
  2  574.629
  3  0.0290484
  4  0.033206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300721': 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) = 6156.39500669
delta logL = 3.36493030773e-06

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.188e-05  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.195e+00  5.746e+02  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:  9.378e-01  3.321e-02  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:  9.202e-01  2.905e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/300721/cmap_HighResolution_247881601_248140801_4FGL_J0218.9-2305_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-08-15 17:30:14.431327', job_id='300721', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1629073814.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='33' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:30:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 300721: <4FGL_J0218.9-2305_daily_bin33> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin33 34.731 -23.0986 247881601 248140801 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            878 sec.

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

