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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin1157
RA = 34.731, Dec = -23.0986
tmin = 539222401, tmax = 539481601
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='306435', job_status='RUN', time_executed='2021-08-15 17:39:08.588637', time_epoch_executed='1629074348.59' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306435/ft1_4FGL_J0218.9-2305_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306435/ft2_4FGL_J0218.9-2305_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306435/ft1_4FGL_J0218.9-2305_daily_bin1157.fits outfile=/scratch/kocevski/306435/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1157.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=539222401.0 tmax=539481601.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 8.19
user 5.29
sys 2.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/306435/ft2_4FGL_J0218.9-2305_daily_bin1157.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/306435/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/306435/ft1_filtered_4FGL_J0218.9-2305_daily_bin1157.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.01
user 0.31
sys 2.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306435/ft1_filtered_4FGL_J0218.9-2305_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/306435/ft2_4FGL_J0218.9-2305_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/306435/ltcube_539222401_539481601_4FGL_J0218.9-2305_daily_bin1157.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/306435/ft2_4FGL_J0218.9-2305_daily_bin1157.fits
.....................!
real 17.23
user 13.93
sys 3.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306435/ft1_filtered_4FGL_J0218.9-2305_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/306435/ft2_4FGL_J0218.9-2305_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/306435/ltcube_539222401_539481601_4FGL_J0218.9-2305_daily_bin1157.fits outfile=/scratch/kocevski/306435/expmap_539222401_539481601_4FGL_J0218.9-2305_daily_bin1157.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/306435/ltcube_539222401_539481601_4FGL_J0218.9-2305_daily_bin1157.fits
.....................!
real 196.13
user 186.58
sys 8.45

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/306435/ft1_filtered_4FGL_J0218.9-2305_daily_bin1157.fits scfile=/scratch/kocevski/306435/ft2_4FGL_J0218.9-2305_daily_bin1157.fits outfile=/scratch/kocevski/306435/cmap_539222401_539481601_4FGL_J0218.9-2305_daily_bin1157.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.97
user 0.38
sys 2.54

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

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

This is gtbin version HEAD
real 2.98
user 0.41
sys 2.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306435/ft1_filtered_4FGL_J0218.9-2305_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/306435/ft2_4FGL_J0218.9-2305_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306435/Model_4FGL_J0218.9-2305_daily_bin1157.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/306435/ft1_filtered_4FGL_J0218.9-2305_daily_bin1157.fits.....................!
real 97.43
user 91.88
sys 4.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10387E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.320       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0522       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    22.878       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24939E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.223       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0189       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .20985E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .60624E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.724       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2611       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79543       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=   4403.519     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2467 TOTAL
                     EDM=   .97E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2329        .56514E-07** at limit **
   2  norm          .10000E-03    1.5430        .54353E-07** at limit **
   3  Prefactor     70.330        47.448        .30629E-05   -.12000E-04
   4  norm          3.0528        2.2292        .28792E-07   -.13733E-04
   5  Prefactor     7.4411        4.5106        .88732E-08   -.42842E-05
   6  Prefactor     2.8704        10.867       -.12039E-06   -.98209E-05
   7  Prefactor     .10000E-03    1.4558        .65494E-08** at limit **
   8  Prefactor     5.4773        18.571        .31072E-05    .23489E-04
   9  Prefactor     .10000E-03    21.384        .56064E-07** at limit **
  10  norm          22.512        141.28       -.63248E-05    .44829E-06
  11  Prefactor     2.4810        7.5035       -.80094E-07   -.17467E-04
  12  Prefactor     .10000E-03    74.327       -.11226E-05** at limit **
  13  Prefactor     48.237        51.953        .45358E-05   -.85376E-05
  14  Prefactor     .10000E-03    30.140        .28777E-08** at limit **
  15  Prefactor     1.0194        3.5810        .30560E-07   -.24902E-04
  16  Prefactor     .10000E-03    16.678       -.19356E-07** at limit **
  17  norm          .10000E-03    1.2003        .18534E-06** at limit **
  18  Prefactor     .10000E-03    223.48        .14309E-05** at limit **
  19  Prefactor     11.728        15.330        .90499E-06   -.11561E-04
  20  norm          2.2610        2.2214       -.17055E-07   -.53466E-04
  21  Normalizat    1.0394        .18386        .25881E-07   -.56015E-04
  22  Prefactor     .79564        .20001       -.97288E-06   -.46757E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 70.3302
  norm       = 3.05285
  Prefactor  = 7.44108
  Prefactor  = 2.87041
  Prefactor  = 0.0001
  Prefactor  = 5.47729
  Prefactor  = 0.0001
  norm       = 22.5123
  Prefactor  = 2.48101
  Prefactor  = 0.0001
  Prefactor  = 48.2369
  Prefactor  = 0.0001
  Prefactor  = 1.01937
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7276
  norm       = 2.26102
  Normalizat = 1.03937
  Prefactor  = 0.795637
 **********
 **   18 **HESSE 
 **********

 FCN=   4403.519     FROM HESSE     STATUS=OK           350 CALLS     2817 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9967        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.7432        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     70.330        47.377        .23935E-03   -1.4029    
   4  norm          3.0528        2.2220        .80226E-04   -1.5359    
   5  Prefactor     7.4411        4.5099        .10665E-03   -1.5162    
   6  Prefactor     2.8704        10.831        .24003E-03   -1.5369    
   7  Prefactor     .10000E-03    1.4574        .78170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4773        18.566        .86114E-03   -1.5240    
   9  Prefactor     .10000E-03    21.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.512        140.65        .83745E-04   -1.4759    
  11  Prefactor     2.4810        7.5494        .25987E-03   -1.5393    
  12  Prefactor     .10000E-03    75.011        .21466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.237        51.977        .57744E-04   -1.4318    
  14  Prefactor     .10000E-03    30.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0194        3.5165        .22557E-03   -1.5506    
  16  Prefactor     .10000E-03    16.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4245        .13817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    225.42        .21059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.728        15.321        .11700E-03   -1.5023    
  20  norm          2.2610        2.2262        .95163E-04   -1.5407    
  21  Normalizat    1.0394        .21594        .20393E-03   -.91723    
  22  Prefactor     .79564        .23460        .26117E-03   -.99889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34153e-11
Minuit parameter uncertainties:
  1  4.94395e-06
  2  6.0958e-06
  3  47.4026
  4  2.22206
  5  4.51008
  6  10.8387
  7  1.42476e-07
  8  18.5858
  9  4.1167e-06
  10  112.935
  11  7.55227
  12  3.02842e-05
  13  52.0263
  14  1.25455e-05
  15  3.51718
  16  7.26981e-06
  17  7.82469e-05
  18  9.57647e-05
  19  15.3257
  20  2.22626
  21  0.216123
  22  0.234899
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.425e-07  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.956e-01  2.349e-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.039e+00  2.161e-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: 5.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306435/likelihoodResults_539222401_539481601_4FGL_J0218.9-2305_daily_bin1157.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) = 4403.52249674
delta logL = -0.0031931839485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4403.51930337
delta logL = 1.86469151231e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4403.519     FROM MIGRAD    STATUS=FAILED        96 CALLS      243 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.260        .78645E-02** at limit **
   2  Index         2.0726        6.2796        .50000       -.29371E-05
   3  Normalizat    1.0394        .16420E-01    .20393E-03   -.10417E-03
   4  Prefactor     .79564        .18733E-01    .26117E-03   -.70343E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4403.519     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      402 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.260        .21206E-03** at limit **
   2  Index         2.0726        6.2796        .10014E-04   -.29371E-05
   3  Normalizat    1.0394        .16420E-01    .13730E-06   -.10417E-03
   4  Prefactor     .79564        .18733E-01    .91303E-07   -.70343E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4403.519     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      433 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    190.35        .84256E-03** at limit **
   2  Index         2.0732        5.3454        .50000        .83901E-07
   3  Normalizat    1.0394        .53443E-01    .40786E-04   -.10391E-03
   4  Prefactor     .79564        .60970E-01    .10447E-04   -.70082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07317
  Normalizat = 1.03937
  Prefactor  = 0.795637
 **********
 **   18 **HESSE 
 **********

 FCN=   4403.519     FROM HESSE     STATUS=OK            29 CALLS      462 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1734        .16851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0732        8.9472        .50000       -.62533    
   3  Normalizat    1.0394        .20183        .81572E-05   -.91723    
   4  Prefactor     .79564        .23017        .20894E-05   -.99889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04512e-11
Minuit parameter uncertainties:
  1  1.94438e-05
  2  118.915
  3  0.201983
  4  0.230448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306435': 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) = 4403.51929882
delta logL = 4.7370140237e-06

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.944e-05  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.073e+00  1.189e+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:  7.956e-01  2.304e-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.039e+00  2.020e-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/306435/cmap_HighResolution_539222401_539481601_4FGL_J0218.9-2305_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.22e-08', time_completed='2021-08-15 17:50:27.112854', job_id='306435', GAL2='0.80', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1629075027.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='4.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1157' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 306435: <4FGL_J0218.9-2305_daily_bin1157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1157 34.731 -23.0986 539222401 539481601 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 :                                   709.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            893 sec.

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

