/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 46 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 proviDone.


Performing analysis on: 4FGL_J0218.9-2305_daily_bin1627
RA = 34.731, Dec = -23.0986
tmin = 661046401, tmax = 661305601
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 souDone.


Performing analysis on: 4FGL_J0218.9-2305_daily_bin1627
RA = 34.731, Dec = -23.0986
tmin = 661046401, tmax = 661305601
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='241267', job_status='RUN', time_executed='2021-12-16 00:08:36.168124', time_epoch_executed='1639642116.17' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241267

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241267/ft1_4FGL_J0218.9-2305_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241267/ft2_4FGL_J0218.9-2305_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241267/ft1_4FGL_J0218.9-2305_daily_bin1627.fits outfile=/scratch/kocevski/241267/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1627.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=661046401.0 tmax=661305601.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.43
user 3.34
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241267/ft2_4FGL_J0218.9-2305_daily_bin1627.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/241267/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1627.fits evtable="EVENTS" outfile="/scratch/kocevski/241267/ft1_filtered_4FGL_J0218.9-2305_daily_bin1627.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.81
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241267/ft1_filtered_4FGL_J0218.9-2305_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/241267/ft2_4FGL_J0218.9-2305_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/241267/ltcube_661046401_661305601_4FGL_J0218.9-2305_daily_bin1627.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/241267/ft2_4FGL_J0218.9-2305_daily_bin1627.fits
.....................!
real 20.44
user 14.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241267/ft1_filtered_4FGL_J0218.9-2305_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/241267/ft2_4FGL_J0218.9-2305_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/241267/ltcube_661046401_661305601_4FGL_J0218.9-2305_daily_bin1627.fits outfile=/scratch/kocevski/241267/expmap_661046401_661305601_4FGL_J0218.9-2305_daily_bin1627.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/241267/ltcube_661046401_661305601_4FGL_J0218.9-2305_daily_bin1627.fits
.....................!
real 214.14
user 185.17
sys 5.43

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/241267/ft1_filtered_4FGL_J0218.9-2305_daily_bin1627.fits scfile=/scratch/kocevski/241267/ft2_4FGL_J0218.9-2305_daily_bin1627.fits outfile=/scratch/kocevski/241267/cmap_661046401_661305601_4FGL_J0218.9-2305_daily_bin1627.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.68
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241267/ft1_filtered_4FGL_J0218.9-2305_daily_bin1627.fits scfile=/scratch/kocevski/241267/ft2_4FGL_J0218.9-2305_daily_bin1627.fits outfile=/scratch/kocevski/241267/cmap_HighResolution_661046401_661305601_4FGL_J0218.9-2305_daily_bin1627.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/241267/ft1_filtered_4FGL_J0218.9-2305_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/241267/ft2_4FGL_J0218.9-2305_daily_bin1627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/241267/Model_4FGL_J0218.9-2305_daily_bin1627.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/241267/ft1_filtered_4FGL_J0218.9-2305_daily_bin1627.fits.....................!
real 123.38
user 119.17
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38523       1.0000         .10000E-03   10000.    
     2 'norm      '    .10780E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.585       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1376       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1350       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26410E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16433E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9606       1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.105       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.031       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2045       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74735       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=   6140.567     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     2790 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38592        .98566        .12862E-02    .43980E-03
   2  norm          .10000E-03    1.7356        .15247E-02** at limit **
   3  Prefactor     13.580        21.735        .10867E-03   -.23015E-05
   4  norm          3.1381        2.0290        .85269E-04   -.43958E-03
   5  Prefactor     3.6725        4.9109        .19296E-03   -.23472E-03
   6  Prefactor     4.1353        7.4748        .99114E-03    .65140E-04
   7  Prefactor     .10000E-03    1.3360        .88184E-03** at limit **
   8  Prefactor     .10000E-03    15.031        .36285E-03** at limit **
   9  Prefactor     .10000E-03    121.17        .57580E-02** at limit **
  10  norm          .10000E-03    23.016        .18142E-02** at limit **
  11  Prefactor     .10000E-03    8.6383        .28209E-02** at limit **
  12  Prefactor     .10000E-03    16.529        .18142E-02** at limit **
  13  Prefactor     .10000E-03    20.661        .18142E-02** at limit **
  14  Prefactor     .10000E-03    6.1501        .18142E-02** at limit **
  15  Prefactor     .10000E-03    1.2081        .83932E-03** at limit **
  16  Prefactor     .10000E-03    42.915        .18142E-02** at limit **
  17  norm          2.9604        1.6338        .71515E-04    .31094E-03
  18  Prefactor     47.090        58.151        .58422E-04   -.18331E-04
  19  Prefactor     12.028        14.487        .11549E-03    .47249E-04
  20  norm          .10000E-03    2.8833        .19230E-02** at limit **
  21  Normalizat    1.2045        .17429        .19788E-03   -.13192E-03
  22  Prefactor     .74729        .19176        .27748E-03    .15037E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.385917
  norm       = 0.0001
  Prefactor  = 13.5802
  norm       = 3.13806
  Prefactor  = 3.67251
  Prefactor  = 4.13526
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.96045
  Prefactor  = 47.0897
  Prefactor  = 12.0281
  norm       = 0.0001
  Normalizat = 1.20448
  Prefactor  = 0.747292
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.567     FROM HESSE     STATUS=OK           324 CALLS     3114 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38592        .98447        .51448E-04   -1.5584    
   2  norm          .10000E-03    1.7399        .30494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.580        21.736        .43469E-05   -1.4971    
   4  norm          3.1381        2.0289        .34108E-05   -1.5354    
   5  Prefactor     3.6725        4.9105        .77185E-05   -1.5325    
   6  Prefactor     4.1353        7.4732        .39646E-04   -1.5301    
   7  Prefactor     .10000E-03    1.3360        .17637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.032        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    123.96        .11516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    23.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.6979        .56418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2081        .16786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9604        1.6338        .28606E-05   -1.5364    
  18  Prefactor     47.090        58.150        .11684E-04   -1.4334    
  19  Prefactor     12.028        14.486        .46197E-05   -1.5014    
  20  norm          .10000E-03    2.8911        .38459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2045        .17436        .39577E-04   -.86464    
  22  Prefactor     .74729        .19190        .11099E-04   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03858e-10
Minuit parameter uncertainties:
  1  0.984513
  2  2.23542e-07
  3  21.7489
  4  2.02893
  5  4.91106
  6  7.47485
  7  3.13005e-06
  8  0.00034179
  9  0.000563077
  10  5.57033e-05
  11  6.28647e-05
  12  2.01013e-05
  13  4.8744e-05
  14  5.89343e-06
  15  4.06635e-06
  16  0.000175744
  17  1.6338
  18  58.2205
  19  14.4905
  20  1.06162e-05
  21  0.174448
  22  0.192073
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.130e-06  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.473e-01  1.921e-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.204e+00  1.744e-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: 4.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241267/likelihoodResults_661046401_661305601_4FGL_J0218.9-2305_daily_bin1627.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) = 6140.57020296
delta logL = -0.00351505279741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6140.56668789
delta logL = 1.62544893101e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5971       1.0000          .0000       10.000    
     3 'Normalizat'    1.2045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74731       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=   6140.567     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      247 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    173.25        .88328E-03** at limit **
   2  Index         2.2841        7.4135        .50000        .18119E-06
   3  Normalizat    1.2045        .50432E-01    .19788E-03    .79041E-04
   4  Prefactor     .74729        .57283E-01    .27748E-03    .69283E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2841
  Normalizat = 1.20448
  Prefactor  = 0.747291
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.567     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1746        .17666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2841        7.9908        .50000       -.57422    
   3  Normalizat    1.2045        .16872        .39577E-04   -.86464    
   4  Prefactor     .74729        .19157        .11099E-04   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20981e-11
Minuit parameter uncertainties:
  1  2.59714e-05
  2  119.275
  3  0.168795
  4  0.191743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241267': 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) = 6140.56668631
delta logL = 1.59239516506e-06

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.597e-05  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.284e+00  1.193e+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.473e-01  1.917e-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.204e+00  1.688e-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/241267/cmap_HighResolution_661046401_661305601_4FGL_J0218.9-2305_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2021-12-16 00:21:41.762558', job_id='241267', GAL2='0.75', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1639642901.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1627' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:21:41 PST 2021

 <slac> at Thu Dec 16 00:05:52 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:05:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:05:57 2021
Terminated at Thu Dec 16 00:19:58 2021
Results reported at Thu Dec 16 00:19:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1627 34.731 -23.0986 661046401 661305601 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 :                                   734.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             324.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            846 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 241267: <4FGL_J0218.9-2305_daily_bin1627> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin1627> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Dec 16 00:05:52 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:05:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:05:57 2021
Terminated at Thu Dec 16 00:21:42 2021
Results reported at Thu Dec 16 00:21:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1627 34.731 -23.0986 661046401 661305601 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 :                                   738.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            950 sec.

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

