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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin1058
RA = 34.731, Dec = -23.0986
tmin = 513561601, tmax = 513820801
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='305289', job_status='RUN', time_executed='2021-08-15 17:34:40.508225', time_epoch_executed='1629074080.51' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305289/ft1_4FGL_J0218.9-2305_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305289/ft2_4FGL_J0218.9-2305_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305289/ft1_4FGL_J0218.9-2305_daily_bin1058.fits outfile=/scratch/kocevski/305289/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1058.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=513561601.0 tmax=513820801.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 6.24
user 3.49
sys 2.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305289/ft1_filtered_4FGL_J0218.9-2305_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/305289/ft2_4FGL_J0218.9-2305_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/305289/ltcube_513561601_513820801_4FGL_J0218.9-2305_daily_bin1058.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/305289/ft2_4FGL_J0218.9-2305_daily_bin1058.fits
.....................!
real 15.85
user 12.70
sys 3.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305289/ft1_filtered_4FGL_J0218.9-2305_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/305289/ft2_4FGL_J0218.9-2305_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/305289/ltcube_513561601_513820801_4FGL_J0218.9-2305_daily_bin1058.fits outfile=/scratch/kocevski/305289/expmap_513561601_513820801_4FGL_J0218.9-2305_daily_bin1058.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/305289/ltcube_513561601_513820801_4FGL_J0218.9-2305_daily_bin1058.fits
.....................!
real 194.22
user 185.77
sys 7.97

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/305289/ft1_filtered_4FGL_J0218.9-2305_daily_bin1058.fits scfile=/scratch/kocevski/305289/ft2_4FGL_J0218.9-2305_daily_bin1058.fits outfile=/scratch/kocevski/305289/cmap_513561601_513820801_4FGL_J0218.9-2305_daily_bin1058.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.96
user 0.38
sys 2.55

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305289/ft1_filtered_4FGL_J0218.9-2305_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/305289/ft2_4FGL_J0218.9-2305_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305289/Model_4FGL_J0218.9-2305_daily_bin1058.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/305289/ft1_filtered_4FGL_J0218.9-2305_daily_bin1058.fits......................!
real 75.90
user 71.14
sys 4.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5942       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21505E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9342       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3504       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    117.29       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6003       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.229       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1098       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1971       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0050       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3123       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94615       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82398       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=   3501.107     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     3095 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5938        2.6864        .94537E-04   -.26216E-04
   2  norm          .10000E-03    1.9459        .79882E-03** at limit **
   3  Prefactor     .10000E-03    86.433        .14441    ** at limit **
   4  norm          2.2871        3.1615        .57495E-03   -.30768E-03
   5  Prefactor     7.9347        6.7766        .13688E-03   -.39658E-04
   6  Prefactor     23.843        17.562        .82027E-04   -.81080E-05
   7  Prefactor     7.4579        8.1859        .14685E-03   -.24540E-04
   8  Prefactor     2.3490        16.255        .26737E-03   -.14329E-04
   9  Prefactor     .10000E-03    19.509        .18142E-02** at limit **
  10  norm          117.33        85.064        .18576E-03   -.60894E-05
  11  Prefactor     4.6001        5.0903        .13600E-03   -.20898E-06
  12  Prefactor     .10000E-03    29.956        .18142E-02** at limit **
  13  Prefactor     23.211        50.114        .83110E-04   -.86178E-05
  14  Prefactor     .10000E-03    11.985        .18142E-02** at limit **
  15  Prefactor     1.1083        3.9906        .21730E-03    .27075E-04
  16  Prefactor     7.1239        62.377        .14952E-03   -.25700E-04
  17  norm          1.0067        1.5347        .96918E-03    .49096E-03
  18  Prefactor     .10000E-03    95.114        .18142E-02** at limit **
  19  Prefactor     .10000E-03    9.3645        .17666E-02** at limit **
  20  norm          3.3108        4.0754        .63574E-03   -.12799E-03
  21  Normalizat    .94623        .25272        .22708E-03    .41603E-04
  22  Prefactor     .82397        .26105        .26229E-03   -.72817E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.59377
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.28713
  Prefactor  = 7.93465
  Prefactor  = 23.8425
  Prefactor  = 7.45793
  Prefactor  = 2.34904
  Prefactor  = 0.0001
  norm       = 117.331
  Prefactor  = 4.60015
  Prefactor  = 0.0001
  Prefactor  = 23.2114
  Prefactor  = 0.0001
  Prefactor  = 1.10832
  Prefactor  = 7.12385
  norm       = 1.00673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.31083
  Normalizat = 0.946226
  Prefactor  = 0.823972
 **********
 **   18 **HESSE 
 **********

 FCN=   3501.107     FROM HESSE     STATUS=OK           334 CALLS     3429 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5938        2.6863        .37815E-05   -1.5386    
   2  norm          .10000E-03    1.9461        .15976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    89.931        .14086       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2871        3.1598        .22998E-04   -1.5405    
   5  Prefactor     7.9347        6.7764        .54753E-05   -1.5145    
   6  Prefactor     23.843        17.566        .32811E-05   -1.4731    
   7  Prefactor     7.4579        8.1856        .58742E-05   -1.5162    
   8  Prefactor     2.3490        16.214        .10695E-04   -1.5401    
   9  Prefactor     .10000E-03    19.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          117.33        84.966        .74306E-05   -1.3537    
  11  Prefactor     4.6001        5.0902        .54400E-05   -1.5279    
  12  Prefactor     .10000E-03    29.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.211        50.104        .33244E-05   -1.4744    
  14  Prefactor     .10000E-03    11.985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1083        3.9901        .86920E-05   -1.5497    
  16  Prefactor     7.1239        62.350        .59808E-05   -1.5174    
  17  norm          1.0067        1.5342        .38767E-04   -1.5507    
  18  Prefactor     .10000E-03    95.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.3650        .35333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3108        4.0747        .25429E-04   -1.5344    
  21  Normalizat    .94623        .25294        .90834E-05   -.94854    
  22  Prefactor     .82397        .26136        .10492E-04   -.98851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73294e-10
Minuit parameter uncertainties:
  1  2.68645
  2  9.39912e-07
  3  0.000509096
  4  3.16
  5  6.77701
  6  17.5694
  7  8.18682
  8  12.3476
  9  1.36869e-06
  10  85.0545
  11  5.09067
  12  4.12542e-05
  13  50.1955
  14  2.81597e-05
  15  3.99104
  16  42.2096
  17  1.53424
  18  0.000134287
  19  6.24835e-05
  20  4.075
  21  0.253259
  22  0.261758
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  7.458e+00  8.187e+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:  8.240e-01  2.618e-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.462e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 5.38e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/305289/likelihoodResults_513561601_513820801_4FGL_J0218.9-2305_daily_bin1058.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) = 3501.10341459
delta logL = 0.00375128928772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3501.10217145
delta logL = 0.00499443432136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0392       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6901       1.0000          .0000       10.000    
     3 'Normalizat'    .94355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82631       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=   3501.102     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      227 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0388        9.1888        .15120E-03    .45557E-03
   2  Index         2.6903        .91225        .77251E-02    .10034E-03
   3  Normalizat    .94355        .23961        .22736E-03   -.14523E-03
   4  Prefactor     .82631        .25842        .26196E-03   -.13414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.03877
  Index      = 2.69025
  Normalizat = 0.94355
  Prefactor  = 0.826309
 **********
 **   18 **HESSE 
 **********

 FCN=   3501.102     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0388        8.8834        .60481E-05   -1.5177    
   2  Index         2.6903        .88194        .30900E-03   -.48019    
   3  Normalizat    .94355        .23982        .45471E-04   -.94946    
   4  Prefactor     .82631        .25856        .10479E-04   -.98766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70093e-10
Minuit parameter uncertainties:
  1  8.88506
  2  0.887857
  3  0.240097
  4  0.258942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305289': 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) = 3501.10217143
delta logL = 0.00499445264995

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  7.039e+00  8.885e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.690e+00  8.879e-01  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.263e-01  2.589e-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.436e-01  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 2.69 +/- 0.89
Photon Flux (Free Index): 5.13e-08 +/- 5.88e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.39e-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/305289/cmap_HighResolution_513561601_513820801_4FGL_J0218.9-2305_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='1.25e-05', photon_flux_error='5.38e-08', dlogl='4.99e-03', energy_flux='1.28e-05', photon_flux2='5.13e-08', job_status='DONE', time_completed='2021-08-15 17:44:40.913476', photon_index_error2='0.89', photon_index2='2.69', ts='1.16', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.39e-05', EG='0.95', time_epoch_completed='1629074680.91', return_code='0', job_id='305289', GAL2='0.83', EG2='0.94', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='5.88e-08', ts2='1.17', photon_index='2.60' WHERE bin_id='1058' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:44:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 305289: <4FGL_J0218.9-2305_daily_bin1058> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1058 34.731 -23.0986 513561601 513820801 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 :                                   636.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            811 sec.

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

