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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin1005
RA = 34.731, Dec = -23.0986
tmin = 499824001, tmax = 500083201
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='305180', job_status='RUN', time_executed='2021-08-15 17:36:21.290249', time_epoch_executed='1629074181.29' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305180/ft1_4FGL_J0218.9-2305_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305180/ft2_4FGL_J0218.9-2305_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305180/ft1_4FGL_J0218.9-2305_daily_bin1005.fits outfile=/scratch/kocevski/305180/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1005.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=499824001.0 tmax=500083201.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 6.26
user 5.00
sys 1.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/305180/ft2_4FGL_J0218.9-2305_daily_bin1005.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/305180/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/305180/ft1_filtered_4FGL_J0218.9-2305_daily_bin1005.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.41
user 0.36
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305180/ft1_filtered_4FGL_J0218.9-2305_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/305180/ft2_4FGL_J0218.9-2305_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/305180/ltcube_499824001_500083201_4FGL_J0218.9-2305_daily_bin1005.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/305180/ft2_4FGL_J0218.9-2305_daily_bin1005.fits
.....................!
real 15.51
user 13.99
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305180/ft1_filtered_4FGL_J0218.9-2305_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/305180/ft2_4FGL_J0218.9-2305_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/305180/ltcube_499824001_500083201_4FGL_J0218.9-2305_daily_bin1005.fits outfile=/scratch/kocevski/305180/expmap_499824001_500083201_4FGL_J0218.9-2305_daily_bin1005.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/305180/ltcube_499824001_500083201_4FGL_J0218.9-2305_daily_bin1005.fits
.....................!
real 192.14
user 185.42
sys 5.93

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/305180/ft1_filtered_4FGL_J0218.9-2305_daily_bin1005.fits scfile=/scratch/kocevski/305180/ft2_4FGL_J0218.9-2305_daily_bin1005.fits outfile=/scratch/kocevski/305180/cmap_499824001_500083201_4FGL_J0218.9-2305_daily_bin1005.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.53
user 0.39
sys 1.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305180/ft1_filtered_4FGL_J0218.9-2305_daily_bin1005.fits scfile=/scratch/kocevski/305180/ft2_4FGL_J0218.9-2305_daily_bin1005.fits outfile=/scratch/kocevski/305180/cmap_HighResolution_499824001_500083201_4FGL_J0218.9-2305_daily_bin1005.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.42
user 0.41
sys 0.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305180/ft1_filtered_4FGL_J0218.9-2305_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/305180/ft2_4FGL_J0218.9-2305_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305180/Model_4FGL_J0218.9-2305_daily_bin1005.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/305180/ft1_filtered_4FGL_J0218.9-2305_daily_bin1005.fits.....................!
real 52.28
user 49.10
sys 2.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12771E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10774E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.444       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10939E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11508E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.934       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3888       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12908E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.7353       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81774       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80244       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=   2137.402     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2446 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1353       -.49734E-07** at limit **
   2  norm          .10000E-03    3.0042       -.47088E-07** at limit **
   3  Prefactor     .10000E-03    90.651        .52975E-05** at limit **
   4  norm          .10000E-03    4.3627        .18387E-06** at limit **
   5  Prefactor     34.450        12.846       -.84131E-07    .12663E-03
   6  Prefactor     .10000E-03    30.790       -.36343E-06** at limit **
   7  Prefactor     9.9145        10.289        .10593E-05   -.37581E-04
   8  Prefactor     7.5267        12.581        .82419E-06   -.17827E-04
   9  Prefactor     .10000E-03    131.57       -.51373E-04** at limit **
  10  norm          .10000E-03    49.381       -.35252E-06** at limit **
  11  Prefactor     .10000E-03    4.9080       -.59801E-08** at limit **
  12  Prefactor     69.927        78.695       -.15708E-04    .15224E-05
  13  Prefactor     2.0773        824.63       -.32482E-04   -.43056E-05
  14  Prefactor     .10000E-03    34.063        .33705E-06** at limit **
  15  Prefactor     .10000E-03    2.7197        .14450E-07** at limit **
  16  Prefactor     .10000E-03    19.740        .11779E-07** at limit **
  17  norm          .10000E-03    2.3878       -.65662E-07** at limit **
  18  Prefactor     .10000E-03    142.48        .49560E-04** at limit **
  19  Prefactor     .10000E-03    17.284       -.49631E-07** at limit **
  20  norm          7.7345        5.5126       -.39152E-06   -.68437E-03
  21  Normalizat    .81815        .24186        .14079E-05    .48502E-04
  22  Prefactor     .80261        .25556        .15555E-05    .49053E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.4497
  Prefactor  = 0.0001
  Prefactor  = 9.91453
  Prefactor  = 7.52673
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.9275
  Prefactor  = 2.0773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.73451
  Normalizat = 0.818149
  Prefactor  = 0.802613
 **********
 **   18 **HESSE 
 **********

 FCN=   2137.402     FROM HESSE     STATUS=OK           338 CALLS     2784 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1600        .65940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.0330        .78223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    90.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.2059        .18109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.450        12.797        .68281E-04   -1.4533    
   6  Prefactor     .10000E-03    31.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9145        10.338        .12725E-03   -1.5078    
   8  Prefactor     7.5267        12.509        .14625E-03   -1.5159    
   9  Prefactor     .10000E-03    131.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    49.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9161        .10000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     69.927        78.675        .48001E-04   -1.4034    
  13  Prefactor     2.0773        824.99        .26499E-03   -1.5420    
  14  Prefactor     .10000E-03    34.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7238        .74442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.1591        .13698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    142.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.7345        5.5032        .44022E-03   -1.5152    
  21  Normalizat    .81815        .27863        .21988E-03   -.99399    
  22  Prefactor     .80261        .29615        .24109E-03   -.99632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49464e-10
Minuit parameter uncertainties:
  1  5.97981e-06
  2  8.11588e-06
  3  0.000100383
  4  4.77088e-05
  5  12.7985
  6  8.01975e-05
  7  10.34
  8  12.5133
  9  0.000351504
  10  8.01932e-05
  11  9.94946e-07
  12  78.7919
  13  83.9852
  14  5.57627e-06
  15  4.03933e-06
  16  2.20166e-06
  17  1.39803e-05
  18  0.000110369
  19  1.63372e-05
  20  5.50352
  21  0.279116
  22  0.29674
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  9.915e+00  1.034e+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.026e-01  2.967e-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.181e-01  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 6.52e-08 +/- 6.80e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/305180/likelihoodResults_499824001_500083201_4FGL_J0218.9-2305_daily_bin1005.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) = 2136.00042884
delta logL = 1.40206001569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2135.67149818
delta logL = 1.73099066658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29928E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    .67048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93668       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=   2135.671     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      474 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29984E-03    .45285E-03    .12575E-03** at limit **
   2  Index        10.0000        2.1815        .49166    ** at limit **
   3  Normalizat    .67020        .24359        .41895E-01   -.13522E-04
   4  Prefactor     .93700        .26210        .45471E-01   -.29699E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000299837
  Index      = 10
  Normalizat = 0.670203
  Prefactor  = 0.937
 **********
 **   18 **HESSE 
 **********

 FCN=   2135.671     FROM HESSE     STATUS=OK            37 CALLS      511 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29984E-03    .20523E-03    .56813E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .49412        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .67020        .29422        .23934E-03   -1.0508    
   4  Prefactor     .93700        .31388        .22531E-03   -.94860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92472e-11
Minuit parameter uncertainties:
  1  0.000205225
  2  9.8271e-05
  3  0.294913
  4  0.314489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305180': 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) = 2135.67149038
delta logL = 1.73099847191

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  2.998e-04  2.052e-04  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  1.000e+01  9.827e-05  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.370e-01  3.145e-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:  6.702e-01  2.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.03e-07 +/- 1.34e-07
Energy Flux (Free Index): 2.26e-05 +/- 1.51e-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/305180/cmap_HighResolution_499824001_500083201_4FGL_J0218.9-2305_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', comment='SUCCESS', photon_flux='6.52e-08', energy_flux2='2.26e-05', photon_flux_error='6.80e-08', dlogl='1.73e+00', energy_flux='1.71e-05', photon_flux2='2.03e-07', job_status='DONE', time_completed='2021-08-15 17:44:28.205904', photon_index_error2='0.00', photon_index2='10.00', ts='1.44', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='2.20e-07', energy_flux_error2='1.51e-05', EG='0.82', time_epoch_completed='1629074668.21', return_code='0', job_id='305180', GAL2='0.94', EG2='0.67', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='1.34e-07', ts2='5.40', photon_index='2.60' WHERE bin_id='1005' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:44:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 305180: <4FGL_J0218.9-2305_daily_bin1005> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin1005> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:31:04 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:33:13 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:33:13 2021
Terminated at Sun Aug 15 17:44:29 2021
Results reported at Sun Aug 15 17:44:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1005 34.731 -23.0986 499824001 500083201 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 :                                   498.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            805 sec.

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

