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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin1656
RA = 34.731, Dec = -23.0986
tmin = 668563201, tmax = 668822401
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='371167', job_status='RUN', time_executed='2022-03-13 00:11:35.884754', time_epoch_executed='1647159095.88' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='1656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371167/ft1_4FGL_J0218.9-2305_daily_bin1656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371167/ft2_4FGL_J0218.9-2305_daily_bin1656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371167/ft1_4FGL_J0218.9-2305_daily_bin1656.fits outfile=/scratch/kocevski/371167/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1656.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=668563201.0 tmax=668822401.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.27
user 5.01
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/371167/ft2_4FGL_J0218.9-2305_daily_bin1656.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/371167/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1656.fits evtable="EVENTS" outfile="/scratch/kocevski/371167/ft1_filtered_4FGL_J0218.9-2305_daily_bin1656.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16
Number of photons that survived the gtmktime cut: 242

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371167/ft1_filtered_4FGL_J0218.9-2305_daily_bin1656.fits" evtable="EVENTS" scfile=/scratch/kocevski/371167/ft2_4FGL_J0218.9-2305_daily_bin1656.fits sctable="SC_DATA" outfile=/scratch/kocevski/371167/ltcube_668563201_668822401_4FGL_J0218.9-2305_daily_bin1656.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/371167/ft2_4FGL_J0218.9-2305_daily_bin1656.fits
.....................!
real 12.00
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371167/ft1_filtered_4FGL_J0218.9-2305_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/371167/ft2_4FGL_J0218.9-2305_daily_bin1656.fits sctable="SC_DATA" expcube=/scratch/kocevski/371167/ltcube_668563201_668822401_4FGL_J0218.9-2305_daily_bin1656.fits outfile=/scratch/kocevski/371167/expmap_668563201_668822401_4FGL_J0218.9-2305_daily_bin1656.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/371167/ltcube_668563201_668822401_4FGL_J0218.9-2305_daily_bin1656.fits
.....................!
real 191.59
user 185.87
sys 5.37

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/371167/ft1_filtered_4FGL_J0218.9-2305_daily_bin1656.fits scfile=/scratch/kocevski/371167/ft2_4FGL_J0218.9-2305_daily_bin1656.fits outfile=/scratch/kocevski/371167/cmap_668563201_668822401_4FGL_J0218.9-2305_daily_bin1656.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=34.731 yref=-23.0986 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371167/ft1_filtered_4FGL_J0218.9-2305_daily_bin1656.fits scfile=/scratch/kocevski/371167/ft2_4FGL_J0218.9-2305_daily_bin1656.fits outfile=/scratch/kocevski/371167/cmap_HighResolution_668563201_668822401_4FGL_J0218.9-2305_daily_bin1656.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=34.731 yref=-23.0986 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371167/ft1_filtered_4FGL_J0218.9-2305_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/371167/ft2_4FGL_J0218.9-2305_daily_bin1656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371167/Model_4FGL_J0218.9-2305_daily_bin1656.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/371167/ft1_filtered_4FGL_J0218.9-2305_daily_bin1656.fits.....................!
real 62.82
user 61.38
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1703       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.1251       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.337       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.995       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7999       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11628E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11146E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.322       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.440       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11614E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4520       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.832       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0223       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71380       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=   2899.067     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6687       -.13881E-06** at limit **
   2  norm          1.1698        4.4892       -.49810E-05   -.77358E-03
   3  Prefactor     .10000E-03    77.908        .88763E-05** at limit **
   4  norm          8.1257        3.8013       -.10491E-05   -.55105E-03
   5  Prefactor     11.336        8.5557       -.10849E-05    .18473E-05
   6  Prefactor     34.007        22.533       -.11939E-05    .98207E-04
   7  Prefactor     .10000E-03    5.5484       -.89831E-06** at limit **
   8  Prefactor     .10000E-03    5.5426        .50355E-06** at limit **
   9  Prefactor     .10000E-03    12.713       -.87627E-07** at limit **
  10  norm          .10000E-03    48.362        .44447E-05** at limit **
  11  Prefactor     6.8044        13.233       -.85319E-06   -.10395E-05
  12  Prefactor     .10000E-03    33.332        .23636E-05** at limit **
  13  Prefactor     .10000E-03    41.911       -.12924E-04** at limit **
  14  Prefactor     34.310        51.386       -.15685E-04    .27937E-04
  15  Prefactor     14.441        8.0102       -.11634E-05    .11566E-03
  16  Prefactor     .10000E-03    33.367        .21034E-05** at limit **
  17  norm          2.4520        3.2359        .39075E-06    .19852E-03
  18  Prefactor     39.574        125.07       -.38356E-03    .39927E-04
  19  Prefactor     .10000E-03    7.9450       -.49799E-07** at limit **
  20  norm          .10000E-03    2.3239       -.12283E-06** at limit **
  21  Normalizat    1.0222        .24052        .53669E-05    .25510E-03
  22  Prefactor     .71388        .24541        .19441E-04   -.63164E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.16982
  Prefactor  = 0.0001
  norm       = 8.12572
  Prefactor  = 11.3363
  Prefactor  = 34.007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.80436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.31
  Prefactor  = 14.4406
  Prefactor  = 0.0001
  norm       = 2.45204
  Prefactor  = 39.5744
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02222
  Prefactor  = 0.713877
 **********
 **   18 **HESSE 
 **********

 FCN=   2899.067     FROM HESSE     STATUS=OK           336 CALLS     2644 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6908        .67847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1698        4.4368        .20874E-03   -1.5492    
   3  Prefactor     .10000E-03    77.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.1257        3.8075        .34017E-03   -1.5138    
   5  Prefactor     11.336        8.5546        .11898E-03   -1.5034    
   6  Prefactor     34.007        22.547        .68729E-04   -1.4541    
   7  Prefactor     .10000E-03    5.5673        .12378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5615        .12379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    48.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8044        13.238        .15387E-03   -1.5186    
  12  Prefactor     .10000E-03    33.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.310        51.252        .68401E-04   -1.4536    
  15  Prefactor     14.441        8.0106        .10540E-03   -1.4948    
  16  Prefactor     .10000E-03    33.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4520        3.2198        .10411E-03   -1.5395    
  18  Prefactor     39.574        125.35        .31755E-03   -1.4449    
  19  Prefactor     .10000E-03    7.9500        .14824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3466        .80142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0222        .28257        .22679E-03   -.92290    
  22  Prefactor     .71388        .28618        .28270E-03   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37856e-09
Minuit parameter uncertainties:
  1  1.81121e-05
  2  4.43806
  3  0.000360976
  4  3.80759
  5  8.5555
  6  22.5528
  7  5.02746e-05
  8  3.6183e-05
  9  1.02544e-05
  10  0.000286217
  11  13.2434
  12  7.23746e-05
  13  0.00011701
  14  51.3181
  15  8.01123
  16  4.54507e-06
  17  3.22007
  18  126.194
  19  1.7608e-05
  20  1.7501e-05
  21  0.282988
  22  0.286775
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.027e-05  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.139e-01  2.868e-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.022e+00  2.830e-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.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/371167/likelihoodResults_668563201_668822401_4FGL_J0218.9-2305_daily_bin1656.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) = 2899.06798767
delta logL = -0.000854450397583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2899.06713321
delta logL = 5.52381607122e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5940       1.0000          .0000       10.000    
     3 'Normalizat'    1.0222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71388       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=   2899.067     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.801        .12420E-01** at limit **
   2  Index         2.3290        5.3317        .50000       -.26882E-06
   3  Normalizat    1.0222        .15851E-01    .22679E-03    .42284E-04
   4  Prefactor     .71388        .16856E-01    .28269E-03    .42227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.32902
  Normalizat = 1.02221
  Prefactor  = 0.713885
 **********
 **   18 **HESSE 
 **********

 FCN=   2899.067     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    478.03        .12705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3290        6.1940        .50000       -.56356    
   3  Normalizat    1.0222        .58620E-01    .90714E-05   -.92290    
   4  Prefactor     .71388        .62332E-01    .11308E-04   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15478e-07
Minuit parameter uncertainties:
  1  0.00299698
  2  1338.55
  3  0.0586233
  4  0.0623381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371167': 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) = 2899.06713274
delta logL = 4.77906269225e-07

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.997e-03  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.329e+00  1.339e+03  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:  7.139e-01  6.234e-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:  1.022e+00  5.862e-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/371167/cmap_HighResolution_668563201_668822401_4FGL_J0218.9-2305_daily_bin1656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2022-03-13 00:19:50.391936', job_id='371167', GAL2='0.71', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1647159590.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1656' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar 13 00:19:50 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 371167: <4FGL_J0218.9-2305_daily_bin1656> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin1656> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Mar 13 00:04:51 2022
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar 13 00:07:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar 13 00:07:53 2022
Terminated at Sun Mar 13 00:19:51 2022
Results reported at Sun Mar 13 00:19:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1656 34.731 -23.0986 668563201 668822401 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 :                                   496.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            900 sec.

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

