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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin949
RA = 34.731, Dec = -23.0986
tmin = 485308801, tmax = 485568001
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='305097', job_status='RUN', time_executed='2021-08-15 17:35:44.613631', time_epoch_executed='1629074144.61' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305097

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305097/ft1_4FGL_J0218.9-2305_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305097/ft2_4FGL_J0218.9-2305_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305097/ft1_4FGL_J0218.9-2305_daily_bin949.fits outfile=/scratch/kocevski/305097/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin949.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=485308801.0 tmax=485568001.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.64
user 5.40
sys 3.08

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305097/ft1_filtered_4FGL_J0218.9-2305_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/305097/ft2_4FGL_J0218.9-2305_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/305097/ltcube_485308801_485568001_4FGL_J0218.9-2305_daily_bin949.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/305097/ft2_4FGL_J0218.9-2305_daily_bin949.fits
.....................!
real 17.12
user 13.52
sys 3.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305097/ft1_filtered_4FGL_J0218.9-2305_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/305097/ft2_4FGL_J0218.9-2305_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/305097/ltcube_485308801_485568001_4FGL_J0218.9-2305_daily_bin949.fits outfile=/scratch/kocevski/305097/expmap_485308801_485568001_4FGL_J0218.9-2305_daily_bin949.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/305097/ltcube_485308801_485568001_4FGL_J0218.9-2305_daily_bin949.fits
.....................!
real 197.14
user 188.28
sys 8.36

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/305097/ft1_filtered_4FGL_J0218.9-2305_daily_bin949.fits scfile=/scratch/kocevski/305097/ft2_4FGL_J0218.9-2305_daily_bin949.fits outfile=/scratch/kocevski/305097/cmap_485308801_485568001_4FGL_J0218.9-2305_daily_bin949.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 3.38
user 0.36
sys 2.99

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

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

This is gtbin version HEAD
real 3.40
user 0.39
sys 2.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305097/ft1_filtered_4FGL_J0218.9-2305_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/305097/ft2_4FGL_J0218.9-2305_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305097/Model_4FGL_J0218.9-2305_daily_bin949.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/305097/ft1_filtered_4FGL_J0218.9-2305_daily_bin949.fits.....................!
real 77.11
user 71.89
sys 4.93

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5524       1.0000         .10000E-03   10000.    
     2 'norm      '    .22345E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .19786       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.908       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.612       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1183       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    41.605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.570       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1170       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11150E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1229       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.685       1.0000         .10000E-03   10000.    
    20 'norm      '    9.9668       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2132       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83639       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=   3367.150     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2355 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5504        2.9664        .23926E-06    .17256E-03
   2  norm          .10000E-03    3.2022        .35119E-06** at limit **
   3  Prefactor     .10000E-03    55.850       -.28844E-05** at limit **
   4  norm          .20288        5.8081       -.61287E-05    .13847E-02
   5  Prefactor     33.909        11.695        .23567E-06    .28997E-03
   6  Prefactor     15.638        25.899       -.63732E-05    .29474E-04
   7  Prefactor     2.0970        18.276        .14493E-04    .57156E-03
   8  Prefactor     .10000E-03    6.7803        .15716E-06** at limit **
   9  Prefactor     .10000E-03    12.032        .32030E-07** at limit **
  10  norm          41.608        57.010       -.57763E-06    .35818E-04
  11  Prefactor     15.576        11.879       -.68015E-06    .58201E-04
  12  Prefactor     .10000E-03    31.638        .99841E-06** at limit **
  13  Prefactor     .10000E-03    57.550       -.32558E-05** at limit **
  14  Prefactor     .10000E-03    28.974       -.25832E-06** at limit **
  15  Prefactor     9.1177        7.0449        .28207E-06    .10451E-03
  16  Prefactor     .10000E-03    73.370        .56048E-05** at limit **
  17  norm          1.1242        2.7423       -.39506E-06   -.33276E-03
  18  Prefactor     .10000E-03    34.436        .51617E-06** at limit **
  19  Prefactor     28.684        28.674       -.37923E-06   -.97529E-04
  20  norm          9.9672        6.2509        .40094E-06    .10065E-03
  21  Normalizat    1.2129        .25478       -.21629E-05    .28178E-03
  22  Prefactor     .83646        .25652        .24533E-05    .20864E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5504
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.202878
  Prefactor  = 33.9085
  Prefactor  = 15.638
  Prefactor  = 2.09705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 41.6078
  Prefactor  = 15.5763
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.11766
  Prefactor  = 0.0001
  norm       = 1.12421
  Prefactor  = 0.0001
  Prefactor  = 28.684
  norm       = 9.96718
  Normalizat = 1.21295
  Prefactor  = 0.83646
 **********
 **   18 **HESSE 
 **********

 FCN=   3367.150     FROM HESSE     STATUS=OK           338 CALLS     2693 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5504        2.9302        .13064E-03   -1.5459    
   2  norm          .10000E-03    5.6212        .19908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    55.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .20288        18.784        .16381E-02   -1.5618    
   5  Prefactor     33.909        11.680        .68817E-04   -1.4543    
   6  Prefactor     15.638        26.366        .10137E-03   -1.4917    
   7  Prefactor     2.0970        21.473        .14169E-02   -1.5418    
   8  Prefactor     .10000E-03    6.7873        .14738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          41.608        56.897        .62148E-04   -1.4417    
  11  Prefactor     15.576        11.924        .10150E-03   -1.4918    
  12  Prefactor     .10000E-03    31.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    57.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1177        7.0522        .13067E-03   -1.5104    
  16  Prefactor     .10000E-03    73.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1242        2.6882        .14162E-03   -1.5496    
  18  Prefactor     .10000E-03    34.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.684        28.713        .74803E-04   -1.4636    
  20  norm          9.9672        6.2433        .10994E-03   -1.5076    
  21  Normalizat    1.2129        .30315        .24040E-03   -.86204    
  22  Prefactor     .83646        .30307        .30096E-03   -.98398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66864e-08
Minuit parameter uncertainties:
  1  2.93051
  2  4.00331e-05
  3  1.51933e-05
  4  3.90453
  5  11.681
  6  26.3852
  7  13.4268
  8  3.96458e-05
  9  2.25951e-07
  10  56.9714
  11  11.9255
  12  0.000110123
  13  0.000414916
  14  3.34905e-05
  15  7.05284
  16  0.000365197
  17  2.68846
  18  3.49346e-05
  19  28.7271
  20  6.24366
  21  0.303588
  22  0.303677
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.365e-01  3.037e-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.213e+00  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/305097/likelihoodResults_485308801_485568001_4FGL_J0218.9-2305_daily_bin949.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) = 3366.73933818
delta logL = 0.410511823308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3366.40028368
delta logL = 0.749566327316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14686E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.1292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90487       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=   3366.400     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      454 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14686E-03    .12979E-03    .25761E-03** at limit **
   2  Index        10.0000        .96940        .50000    ** at limit **
   3  Normalizat    1.1288        .24237        .55962E-01    .75789E-04
   4  Prefactor     .90518        .25602        .65739E-01    .15025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000146855
  Index      = 10
  Normalizat = 1.12877
  Prefactor  = 0.905184
 **********
 **   18 **HESSE 
 **********

 FCN=   3366.400     FROM HESSE     STATUS=OK            35 CALLS      489 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14686E-03    .14667E-03    .10742E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.9495        .35089E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1288        .29227        .24746E-03   -.88833    
   4  Prefactor     .90518        .30842        .29078E-03   -.95960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94954e-10
Minuit parameter uncertainties:
  1  0.000146673
  2  0.000174042
  3  0.292696
  4  0.309015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305097': 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) = 3366.40028248
delta logL = 0.749567530941

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.469e-04  1.467e-04  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  1.000e+01  1.740e-04  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:  9.052e-01  3.090e-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.129e+00  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 9.93e-08 +/- 9.60e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.08e-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/305097/cmap_HighResolution_485308801_485568001_4FGL_J0218.9-2305_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='7.50e-01', photon_flux2='9.93e-08', job_status='DONE', time_completed='2021-08-15 17:45:42.971233', photon_index_error2='0.00', photon_index2='10.00', ts='0.04', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.08e-05', EG='1.21', time_epoch_completed='1629074742.97', return_code='0', job_id='305097', GAL2='0.91', EG2='1.13', return_code2='0', photon_flux_error2='9.60e-08', ts2='1.63', photon_index='2.60' WHERE bin_id='949' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:45:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 305097: <4FGL_J0218.9-2305_daily_bin949> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin949> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:30:57 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:32:39 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:32:39 2021
Terminated at Sun Aug 15 17:45:44 2021
Results reported at Sun Aug 15 17:45:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin949 34.731 -23.0986 485308801 485568001 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 :                             270.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            887 sec.

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

