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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin1123
RA = 34.731, Dec = -23.0986
tmin = 530409601, tmax = 530668801
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='306386', job_status='RUN', time_executed='2021-08-15 17:38:26.183303', time_epoch_executed='1629074306.18' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306386

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306386/ft1_4FGL_J0218.9-2305_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306386/ft2_4FGL_J0218.9-2305_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306386/ft1_4FGL_J0218.9-2305_daily_bin1123.fits outfile=/scratch/kocevski/306386/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1123.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=530409601.0 tmax=530668801.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 4.55
user 3.44
sys 1.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/306386/ft2_4FGL_J0218.9-2305_daily_bin1123.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/306386/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1123.fits evtable="EVENTS" outfile="/scratch/kocevski/306386/ft1_filtered_4FGL_J0218.9-2305_daily_bin1123.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 1.39
user 0.33
sys 1.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306386/ft1_filtered_4FGL_J0218.9-2305_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/306386/ft2_4FGL_J0218.9-2305_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/306386/ltcube_530409601_530668801_4FGL_J0218.9-2305_daily_bin1123.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/306386/ft2_4FGL_J0218.9-2305_daily_bin1123.fits
.....................!
real 15.17
user 13.75
sys 1.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306386/ft1_filtered_4FGL_J0218.9-2305_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/306386/ft2_4FGL_J0218.9-2305_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/306386/ltcube_530409601_530668801_4FGL_J0218.9-2305_daily_bin1123.fits outfile=/scratch/kocevski/306386/expmap_530409601_530668801_4FGL_J0218.9-2305_daily_bin1123.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/306386/ltcube_530409601_530668801_4FGL_J0218.9-2305_daily_bin1123.fits
.....................!
real 193.94
user 186.59
sys 6.62

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/306386/ft1_filtered_4FGL_J0218.9-2305_daily_bin1123.fits scfile=/scratch/kocevski/306386/ft2_4FGL_J0218.9-2305_daily_bin1123.fits outfile=/scratch/kocevski/306386/cmap_530409601_530668801_4FGL_J0218.9-2305_daily_bin1123.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 1.40
user 0.37
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306386/ft1_filtered_4FGL_J0218.9-2305_daily_bin1123.fits scfile=/scratch/kocevski/306386/ft2_4FGL_J0218.9-2305_daily_bin1123.fits outfile=/scratch/kocevski/306386/cmap_HighResolution_530409601_530668801_4FGL_J0218.9-2305_daily_bin1123.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 1.43
user 0.40
sys 1.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306386/ft1_filtered_4FGL_J0218.9-2305_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/306386/ft2_4FGL_J0218.9-2305_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306386/Model_4FGL_J0218.9-2305_daily_bin1123.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/306386/ft1_filtered_4FGL_J0218.9-2305_daily_bin1123.fits.....................!
real 94.77
user 91.56
sys 2.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2541       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4235       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.704       1.0000         .10000E-03   10000.    
    10 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .38328E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    84.022       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3456       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8990       1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.326       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8069       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84676       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1532       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=   4652.389     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2374 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .68079        .24294E-07** at limit **
   2  norm          .10000E-03    .83443        .17223E-07** at limit **
   3  Prefactor     .10000E-03    26.725        .11096E-05** at limit **
   4  norm          3.2535        2.9467       -.80219E-06   -.56658E-03
   5  Prefactor     11.852        7.3393       -.10709E-05   -.10031E-03
   6  Prefactor     .10000E-03    9.0676       -.52918E-07** at limit **
   7  Prefactor     6.4233        5.6424       -.65114E-06    .30412E-04
   8  Prefactor     .10000E-03    5.4734       -.87003E-06** at limit **
   9  Prefactor     10.694        28.947        .50685E-04   -.32007E-05
  10  norm          .10000E-03    18.728       -.11157E-06** at limit **
  11  Prefactor     .10005E-03    4.6806       -.32038E-06** at limit **
  12  Prefactor     28.570        43.960        .77099E-04    .20923E-04
  13  Prefactor     83.986        61.417        .23503E-04    .26874E-04
  14  Prefactor     1.3403        71.751       -.52881E-04   -.54020E-04
  15  Prefactor     .10000E-03    1.4935       -.15170E-06** at limit **
  16  Prefactor     .10000E-03    23.083       -.66324E-06** at limit **
  17  norm          2.8986        2.6771        .81609E-06   -.57370E-04
  18  Prefactor     55.929        104.82       -.11314E-03   -.58598E-05
  19  Prefactor     15.308        21.712       -.52766E-05    .14195E-04
  20  norm          3.8072        4.0714        .57444E-06   -.11002E-03
  21  Normalizat    .84741        .19818       -.45648E-05    .31118E-03
  22  Prefactor     1.1526        .21337        .36712E-06    .74103E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.2535
  Prefactor  = 11.8518
  Prefactor  = 0.0001
  Prefactor  = 6.42333
  Prefactor  = 0.000100002
  Prefactor  = 10.6937
  norm       = 0.000100002
  Prefactor  = 0.00010005
  Prefactor  = 28.57
  Prefactor  = 83.9861
  Prefactor  = 1.34031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8986
  Prefactor  = 55.9292
  Prefactor  = 15.3079
  norm       = 3.80723
  Normalizat = 0.847405
  Prefactor  = 1.15259
 **********
 **   18 **HESSE 
 **********

 FCN=   4652.389     FROM HESSE     STATUS=OK           346 CALLS     2720 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .69196        .54931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .84352        .60830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2535        2.9362        .10301E-03   -1.5347    
   5  Prefactor     11.852        7.3423        .11635E-03   -1.5019    
   6  Prefactor     .10000E-03    9.1189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4233        5.5888        .14321E-03   -1.5201    
   8  Prefactor     .10000E-03    5.5090        .15583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.694        28.915        .12246E-03   -1.5054    
  10  norm          .10000E-03    18.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    25.771        .27421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.570        43.912        .74921E-04   -1.4638    
  13  Prefactor     83.986        61.424        .21912E-03   -1.3873    
  14  Prefactor     1.3403        73.125        .37751E-03   -1.5476    
  15  Prefactor     .10000E-03    1.4988        .81389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8986        2.6671        .10027E-03   -1.5367    
  18  Prefactor     55.929        104.97        .26731E-03   -1.4211    
  19  Prefactor     15.308        21.714        .10231E-03   -1.4925    
  20  norm          3.8072        4.0611        .13547E-03   -1.5318    
  21  Normalizat    .84741        .23218        .24957E-03   -.98334    
  22  Prefactor     1.1526        .25355        .24784E-03   -.87803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.111e-09
Minuit parameter uncertainties:
  1  3.98402e-06
  2  3.46225e-06
  3  3.41415e-05
  4  2.93635
  5  7.34285
  6  1.67171e-05
  7  5.58921
  8  0.00020601
  9  28.9533
  10  0.000374302
  11  0.00227322
  12  43.9621
  13  61.4707
  14  19.8248
  15  1.55147e-05
  16  0.000136538
  17  2.66717
  18  105.318
  19  21.7248
  20  4.0614
  21  0.232455
  22  0.253813
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  6.423e+00  5.589e+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:  1.153e+00  2.538e-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:  8.474e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 9.61e-06

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

Saving results to:
/scratch/kocevski/306386/likelihoodResults_530409601_530668801_4FGL_J0218.9-2305_daily_bin1123.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) = 4651.75574483
delta logL = 0.633254092912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4651.64562079
delta logL = 0.743378134003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3376       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4873       1.0000          .0000       10.000    
     3 'Normalizat'    .89228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1235       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4651.646     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3376        3.5559        .55387E-02   -.29537E-02
   2  Index         1.4873        .44673        .20717       -.51503E-04
   3  Normalizat    .89224        .18341        .44803E-01    .10719E-04
   4  Prefactor     1.1235        .20987        .56655E-01    .46324E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33757
  Index      = 1.48735
  Normalizat = 0.89224
  Prefactor  = 1.12353
 **********
 **   18 **HESSE 
 **********

 FCN=   4651.646     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3376        4.9918        .12295E-03   -1.5343    
   2  Index         1.4873        .71935        .79542E-02   -.77895    
   3  Normalizat    .89224        .21827        .24373E-03   -.96733    
   4  Prefactor     1.1235        .24958        .25052E-03   -.88718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26184e-08
Minuit parameter uncertainties:
  1  4.99246
  2  0.724341
  3  0.21849
  4  0.249837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306386': 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) = 4651.64562075
delta logL = 0.74337817555

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  3.338e+00  4.992e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  1.487e+00  7.243e-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:  1.124e+00  2.498e-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:  8.922e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.96
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 1.49 +/- 0.72
Photon Flux (Free Index): 9.46e-09 +/- 1.41e-08
Energy Flux (Free Index): 3.12e-05 +/- 5.26e-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/306386/cmap_HighResolution_530409601_530668801_4FGL_J0218.9-2305_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='3.12e-05', photon_flux_error='3.67e-08', dlogl='7.43e-01', energy_flux='1.10e-05', photon_flux2='9.46e-09', job_status='DONE', time_completed='2021-08-15 17:48:54.831009', photon_index_error2='0.72', photon_index2='1.49', ts='3.49', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='5.26e-05', EG='0.85', time_epoch_completed='1629074934.83', return_code='0', job_id='306386', GAL2='1.12', EG2='0.89', return_code2='0', energy_flux_error='9.61e-06', photon_flux_error2='1.41e-08', ts2='4.96', photon_index='2.60' WHERE bin_id='1123' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:48:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 306386: <4FGL_J0218.9-2305_daily_bin1123> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin1123> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 17:35:32 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:36:00 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:36:00 2021
Terminated at Sun Aug 15 17:48:55 2021
Results reported at Sun Aug 15 17:48:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1123 34.731 -23.0986 530409601 530668801 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            803 sec.

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

