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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin224
RA = 34.731, Dec = -23.0986
tmin = 297388801, tmax = 297648001
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='302152', job_status='RUN', time_executed='2021-08-15 17:22:35.982165', time_epoch_executed='1629073355.98' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302152

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302152/ft1_4FGL_J0218.9-2305_daily_bin224.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302152/ft2_4FGL_J0218.9-2305_daily_bin224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302152/ft1_4FGL_J0218.9-2305_daily_bin224.fits outfile=/scratch/kocevski/302152/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin224.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=297388801.0 tmax=297648001.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.70
user 3.44
sys 2.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302152/ft2_4FGL_J0218.9-2305_daily_bin224.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/302152/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin224.fits evtable="EVENTS" outfile="/scratch/kocevski/302152/ft1_filtered_4FGL_J0218.9-2305_daily_bin224.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.54
user 0.36
sys 2.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302152/ft1_filtered_4FGL_J0218.9-2305_daily_bin224.fits" evtable="EVENTS" scfile=/scratch/kocevski/302152/ft2_4FGL_J0218.9-2305_daily_bin224.fits sctable="SC_DATA" outfile=/scratch/kocevski/302152/ltcube_297388801_297648001_4FGL_J0218.9-2305_daily_bin224.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/302152/ft2_4FGL_J0218.9-2305_daily_bin224.fits
.....................!
real 15.73
user 13.11
sys 2.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302152/ft1_filtered_4FGL_J0218.9-2305_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/302152/ft2_4FGL_J0218.9-2305_daily_bin224.fits sctable="SC_DATA" expcube=/scratch/kocevski/302152/ltcube_297388801_297648001_4FGL_J0218.9-2305_daily_bin224.fits outfile=/scratch/kocevski/302152/expmap_297388801_297648001_4FGL_J0218.9-2305_daily_bin224.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/302152/ltcube_297388801_297648001_4FGL_J0218.9-2305_daily_bin224.fits
.....................!
real 193.94
user 185.53
sys 7.58

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/302152/ft1_filtered_4FGL_J0218.9-2305_daily_bin224.fits scfile=/scratch/kocevski/302152/ft2_4FGL_J0218.9-2305_daily_bin224.fits outfile=/scratch/kocevski/302152/cmap_297388801_297648001_4FGL_J0218.9-2305_daily_bin224.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.51
user 0.39
sys 2.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302152/ft1_filtered_4FGL_J0218.9-2305_daily_bin224.fits scfile=/scratch/kocevski/302152/ft2_4FGL_J0218.9-2305_daily_bin224.fits outfile=/scratch/kocevski/302152/cmap_HighResolution_297388801_297648001_4FGL_J0218.9-2305_daily_bin224.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.51
user 0.39
sys 2.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302152/ft1_filtered_4FGL_J0218.9-2305_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/302152/ft2_4FGL_J0218.9-2305_daily_bin224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302152/Model_4FGL_J0218.9-2305_daily_bin224.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/302152/ft1_filtered_4FGL_J0218.9-2305_daily_bin224.fits.....................!
real 73.78
user 69.49
sys 3.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8249       1.0000         .10000E-03   10000.    
     2 'norm      '    .19519E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.310       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.531       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33282E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1148       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4925       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    95.904       1.0000         .10000E-03   10000.    
    17 'norm      '    9.0383       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.9384       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2130       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57851       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=   3353.467     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2358 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8243        3.2912        .47030E-06    .27266E-03
   2  norm          .10014E-03    3.3354       -.94889E-06** at limit **
   3  Prefactor     43.295        76.531       -.23492E-05   -.11743E-03
   4  norm          1.1574        1.7000       -.15871E-07   -.13184E-03
   5  Prefactor     3.3835        4.8392        .29434E-05   -.32274E-03
   6  Prefactor     11.538        20.423        .96237E-06   -.13464E-03
   7  Prefactor     .10001E-03    7.9696        .20963E-05** at limit **
   8  Prefactor     4.1149        9.1034        .14742E-06   -.44448E-04
   9  Prefactor     .10000E-03    18.127        .20435E-05** at limit **
  10  norm          .10000E-03    26.445       -.13360E-05** at limit **
  11  Prefactor     2.4930        5.7041        .77020E-06    .94280E-04
  12  Prefactor     .10000E-03    24.921       -.11951E-05** at limit **
  13  Prefactor     .10001E-03    35.343        .39303E-05** at limit **
  14  Prefactor     .10000E-03    15.022       -.59666E-06** at limit **
  15  Prefactor     .10000E-03    2.5311        .53005E-07** at limit **
  16  Prefactor     95.923        71.975        .25945E-05    .23196E-03
  17  norm          9.0385        3.5255        .17038E-07   -.56755E-04
  18  Prefactor     .10000E-03    71.015       -.20945E-05** at limit **
  19  Prefactor     .10000E-03    10.454        .12834E-06** at limit **
  20  norm          5.9385        4.8470       -.11700E-06   -.22115E-03
  21  Normalizat    1.2130        .24025       -.13568E-05   -.11011E-04
  22  Prefactor     .57849        .23760        .78176E-06   -.45210E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82428
  norm       = 0.00010014
  Prefactor  = 43.295
  norm       = 1.15738
  Prefactor  = 3.38349
  Prefactor  = 11.5378
  Prefactor  = 0.000100007
  Prefactor  = 4.11487
  Prefactor  = 0.000100004
  norm       = 0.000100002
  Prefactor  = 2.49302
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 95.9226
  norm       = 9.03846
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 5.93853
  Normalizat = 1.21303
  Prefactor  = 0.578493
 **********
 **   18 **HESSE 
 **********

 FCN=   3353.467     FROM HESSE     STATUS=OK           344 CALLS     2702 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8243        3.2159        .13029E-03   -1.5438    
   2  norm          .10014E-03    26.236        .19057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.295        77.072        .60917E-04   -1.4391    
   4  norm          1.1574        1.6561        .88099E-04   -1.5493    
   5  Prefactor     3.3835        5.0105        .76347E-03   -1.5340    
   6  Prefactor     11.538        19.998        .11797E-03   -1.5028    
   7  Prefactor     .10001E-03    13.754        .29444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1149        9.0766        .19873E-03   -1.5302    
   9  Prefactor     .10000E-03    18.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    26.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4930        5.6667        .20140E-03   -1.5392    
  12  Prefactor     .10000E-03    25.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    36.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5465        .89965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     95.923        73.599        .41043E-04   -1.3746    
  17  norm          9.0385        3.5240        .64418E-04   -1.5107    
  18  Prefactor     .10000E-03    71.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9385        4.8503        .11073E-03   -1.5221    
  21  Normalizat    1.2130        .27458        .20885E-03   -.86201    
  22  Prefactor     .57849        .27326        .30877E-03   -1.0850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18855e-09
Minuit parameter uncertainties:
  1  3.21624
  2  0.00383014
  3  77.2499
  4  1.65617
  5  5.01117
  6  20.0098
  7  0.000614442
  8  9.07966
  9  0.000544166
  10  0.000417045
  11  5.66796
  12  0.00036927
  13  0.00143617
  14  0.000179488
  15  1.72447e-08
  16  73.6693
  17  3.52409
  18  0.00107507
  19  2.74455e-05
  20  4.85057
  21  0.274904
  22  0.273885
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  6.144e-04  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:  5.785e-01  2.739e-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.213e+00  2.749e-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: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302152/likelihoodResults_297388801_297648001_4FGL_J0218.9-2305_daily_bin224.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) = 3353.46776332
delta logL = -0.000345887212916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3353.4674222
delta logL = -4.76471541333e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26804E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6982       1.0000          .0000       10.000    
     3 'Normalizat'    1.2136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57785       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3353.467     FROM MIGRAD    STATUS=FAILED        97 CALLS      262 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10096E-03    1782.1        .24493E-02** at limit **
   2  Index         2.7044        5.1439        .50000       -.81487E-04
   3  Normalizat    1.2130        .50219E-01    .20885E-03   -.72523E-04
   4  Prefactor     .57849        .53026E-01    .30877E-03   -.73584E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3353.467     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      413 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10096E-03    1782.1        .96222E-03** at limit **
   2  Index         2.7044        5.1439        .12719E-04   -.81487E-04
   3  Normalizat    1.2130        .50219E-01    .38523E-06   -.72523E-04
   4  Prefactor     .57849        .53026E-01    .46416E-06   -.73584E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3352.157     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      551 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24225E-02    .37704E-01    .48985E-03** at limit **
   2  Index         8.5067        7.8367        .15336        .54925E-04
   3  Normalizat    1.0622        .66752E-01    .41770E-03    .66805E-04
   4  Prefactor     .69266        .70976E-01    .12351E-03    .54686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00242253
  Index      = 8.50669
  Normalizat = 1.06223
  Prefactor  = 0.692664
 **********
 **   18 **HESSE 
 **********

 FCN=   3352.157     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      580 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24225E-02    .69927E-01    .20844E-05   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.5067        8.8230        .65767E-02    .77727    
   3  Normalizat    1.0622        .23260        .16708E-04   -.90974    
   4  Prefactor     .69266        .24133        .24701E-04   -1.0382    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.66143e-10
Minuit parameter uncertainties:
  1  0.0254879
  2  6.24641
  3  0.23282
  4  0.241698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302152': 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) = 3352.15731015
delta logL = 1.31010729053

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  2.423e-03  2.549e-02  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  8.507e+00  6.246e+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.927e-01  2.417e-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.062e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 8.51 +/- 6.25
Photon Flux (Free Index): 1.34e-07 +/- 9.88e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.19e-05

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/302152/cmap_HighResolution_297388801_297648001_4FGL_J0218.9-2305_daily_bin224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-03', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='1.31e+00', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-08-15 17:32:11.702094', photon_index_error2='6.25', photon_index2='8.51', ts='-0.00', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.19e-05', EG='1.21', time_epoch_completed='1629073931.7', return_code='0', job_id='302152', GAL2='0.69', EG2='1.06', return_code2='102', photon_flux_error2='9.88e-08', ts2='2.87', photon_index='2.60' WHERE bin_id='224' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:32:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 302152: <4FGL_J0218.9-2305_daily_bin224> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin224> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:20:52 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:21:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 17:21:55 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_bin224 34.731 -23.0986 297388801 297648001 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 :                                   602.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            680 sec.

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

