/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 192 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_bin1215
RA = 34.731, Dec = -23.0986
tmin = 554256001, tmax = 554515201
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='306518', job_status='RUN', time_executed='2021-08-15 17:40:31.548198', time_epoch_executed='1629074431.55' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306518/ft1_4FGL_J0218.9-2305_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306518/ft2_4FGL_J0218.9-2305_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306518/ft1_4FGL_J0218.9-2305_daily_bin1215.fits outfile=/scratch/kocevski/306518/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1215.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=554256001.0 tmax=554515201.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.14
user 3.84
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306518/ft1_filtered_4FGL_J0218.9-2305_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/306518/ft2_4FGL_J0218.9-2305_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/306518/ltcube_554256001_554515201_4FGL_J0218.9-2305_daily_bin1215.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/306518/ft2_4FGL_J0218.9-2305_daily_bin1215.fits
.....................!
real 15.25
user 14.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306518/ft1_filtered_4FGL_J0218.9-2305_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/306518/ft2_4FGL_J0218.9-2305_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/306518/ltcube_554256001_554515201_4FGL_J0218.9-2305_daily_bin1215.fits outfile=/scratch/kocevski/306518/expmap_554256001_554515201_4FGL_J0218.9-2305_daily_bin1215.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/306518/ltcube_554256001_554515201_4FGL_J0218.9-2305_daily_bin1215.fits
.....................!
real 192.87
user 187.20
sys 4.84

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/306518/ft1_filtered_4FGL_J0218.9-2305_daily_bin1215.fits scfile=/scratch/kocevski/306518/ft2_4FGL_J0218.9-2305_daily_bin1215.fits outfile=/scratch/kocevski/306518/cmap_554256001_554515201_4FGL_J0218.9-2305_daily_bin1215.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306518/ft1_filtered_4FGL_J0218.9-2305_daily_bin1215.fits scfile=/scratch/kocevski/306518/ft2_4FGL_J0218.9-2305_daily_bin1215.fits outfile=/scratch/kocevski/306518/cmap_HighResolution_554256001_554515201_4FGL_J0218.9-2305_daily_bin1215.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306518/ft1_filtered_4FGL_J0218.9-2305_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/306518/ft2_4FGL_J0218.9-2305_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306518/Model_4FGL_J0218.9-2305_daily_bin1215.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/306518/ft1_filtered_4FGL_J0218.9-2305_daily_bin1215.fits......................!
real 64.82
user 63.31
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.1106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    107.51       1.0000         .10000E-03   10000.    
     4 'norm      '    4.3484       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6206       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7085       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13572E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    102.05       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    73.500       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6392       1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2305       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .60990       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=   2972.367     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2762 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .94607        .19687E-07** at limit **
   2  norm          1.1106        4.2150        .17080E-07   -.43361E-03
   3  Prefactor     107.50        81.659       -.11193E-04    .17414E-05
   4  norm          4.3481        4.2634       -.56570E-06   -.14608E-03
   5  Prefactor     .10000E-03    4.6051       -.25650E-07** at limit **
   6  Prefactor     .10000E-03    5.2432        .97550E-07** at limit **
   7  Prefactor     .10000E-03    3.7270        .99472E-07** at limit **
   8  Prefactor     7.6198        14.312       -.14283E-06   -.34979E-04
   9  Prefactor     .10000E-03    68.990        .10619E-04** at limit **
  10  norm          .10000E-03    28.164       -.15305E-04** at limit **
  11  Prefactor     6.7070        7.1641       -.18223E-05   -.57827E-04
  12  Prefactor     .10000E-03    25.858        .10318E-04** at limit **
  13  Prefactor     .10000E-03    42.117        .81362E-05** at limit **
  14  Prefactor     .10000E-03    74.036       -.15549E-04** at limit **
  15  Prefactor     .10000E-03    2.8130        .64679E-07** at limit **
  16  Prefactor     102.04        69.061       -.64398E-05    .16121E-04
  17  norm          .10000E-03    1.1120       -.77836E-07** at limit **
  18  Prefactor     73.598        198.85        .11196E-03   -.19192E-06
  19  Prefactor     2.6296        42.080        .29136E-05   -.33546E-04
  20  norm          .10000E-03    2.1993       -.40533E-08** at limit **
  21  Normalizat    1.2308        .25899        .65297E-06   -.23031E-05
  22  Prefactor     .60963        .26298       -.21120E-05    .49950E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.11062
  Prefactor  = 107.498
  norm       = 4.34813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.61978
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.70702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 102.04
  norm       = 0.0001
  Prefactor  = 73.598
  Prefactor  = 2.62963
  norm       = 0.0001
  Normalizat = 1.23079
  Prefactor  = 0.609627
 **********
 **   18 **HESSE 
 **********

 FCN=   2972.367     FROM HESSE     STATUS=OK           336 CALLS     3098 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .95120        .51764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1106        4.1975        .19789E-03   -1.5497    
   3  Prefactor     107.50        81.619        .38787E-04   -1.3631    
   4  norm          4.3481        4.2612        .10599E-03   -1.5291    
   5  Prefactor     .10000E-03    4.6072        .11427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2470        .12192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7551        .10277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6198        14.298        .14527E-03   -1.5156    
   9  Prefactor     .10000E-03    69.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    28.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7070        7.1729        .14471E-03   -1.5190    
  12  Prefactor     .10000E-03    25.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    75.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8324        .89262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     102.04        69.198        .39801E-04   -1.3684    
  17  norm          .10000E-03    1.1195        .56119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     73.598        198.37        .23415E-03   -1.3990    
  19  Prefactor     2.6296        41.339        .25098E-03   -1.5384    
  20  norm          .10000E-03    2.2227        .78938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2308        .30735        .20780E-03   -.85657    
  22  Prefactor     .60963        .30960        .30517E-03   -1.0718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3828e-10
Minuit parameter uncertainties:
  1  3.84744e-06
  2  4.19858
  3  81.7048
  4  4.26148
  5  1.15801e-06
  6  2.59691e-05
  7  1.55204e-05
  8  14.3044
  9  1.41911e-05
  10  4.12261e-07
  11  7.17386
  12  6.11543e-06
  13  5.24996e-05
  14  0.000665794
  15  9.93878e-06
  16  69.2528
  17  1.08896e-05
  18  200.196
  19  20.8692
  20  2.54406e-06
  21  0.307807
  22  0.310467
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.552e-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:  6.096e-01  3.105e-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.231e+00  3.078e-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: 9.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306518/likelihoodResults_554256001_554515201_4FGL_J0218.9-2305_daily_bin1215.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) = 2972.3679027
delta logL = -0.00125746160484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2972.36664613
delta logL = -8.91863237484e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5948       1.0000          .0000       10.000    
     3 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60923       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=   2972.367     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      227 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    246.56        .10308E-01** at limit **
   2  Index         2.2180        6.2738        .92861E-01   -.75293E-08
   3  Normalizat    1.2308        .48321E-01    .20780E-03    .13408E-03
   4  Prefactor     .60963        .51783E-01    .30518E-03    .83260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21798
  Normalizat = 1.23079
  Prefactor  = 0.609625
 **********
 **   18 **HESSE 
 **********

 FCN=   2972.367     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0610        .10681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2180        7.9982        .37144E-02   -.59005    
   3  Normalizat    1.2308        .28409        .41560E-04   -.85656    
   4  Prefactor     .60963        .30405        .12207E-04   -1.0718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74859e-11
Minuit parameter uncertainties:
  1  1.23749e-06
  2  248.436
  3  0.28445
  4  0.304872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306518': 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) = 2972.36664425
delta logL = 9.89521140582e-07

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.237e-06  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.218e+00  2.484e+02  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.096e-01  3.049e-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.231e+00  2.844e-01  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/306518/cmap_HighResolution_554256001_554515201_4FGL_J0218.9-2305_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-08-15 17:49:13.926815', job_id='306518', GAL2='0.61', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1629074953.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='9.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1215' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:49:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 306518: <4FGL_J0218.9-2305_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin1215> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 17:35:42 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:37:10 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:37:10 2021
Terminated at Sun Aug 15 17:49:14 2021
Results reported at Sun Aug 15 17:49:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1215 34.731 -23.0986 554256001 554515201 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 :                                   520.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            812 sec.

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

