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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin748
RA = 34.731, Dec = -23.0986
tmin = 433209601, tmax = 433468801
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='303868', job_status='RUN', time_executed='2021-08-15 17:29:50.929174', time_epoch_executed='1629073790.93' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303868

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303868/ft1_4FGL_J0218.9-2305_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303868/ft2_4FGL_J0218.9-2305_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303868/ft1_4FGL_J0218.9-2305_daily_bin748.fits outfile=/scratch/kocevski/303868/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin748.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=433209601.0 tmax=433468801.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.44
user 5.74
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303868/ft2_4FGL_J0218.9-2305_daily_bin748.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/303868/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/303868/ft1_filtered_4FGL_J0218.9-2305_daily_bin748.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.89
user 0.33
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303868/ft1_filtered_4FGL_J0218.9-2305_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/303868/ft2_4FGL_J0218.9-2305_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/303868/ltcube_433209601_433468801_4FGL_J0218.9-2305_daily_bin748.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/303868/ft2_4FGL_J0218.9-2305_daily_bin748.fits
.....................!
real 16.90
user 16.04
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303868/ft1_filtered_4FGL_J0218.9-2305_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/303868/ft2_4FGL_J0218.9-2305_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/303868/ltcube_433209601_433468801_4FGL_J0218.9-2305_daily_bin748.fits outfile=/scratch/kocevski/303868/expmap_433209601_433468801_4FGL_J0218.9-2305_daily_bin748.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/303868/ltcube_433209601_433468801_4FGL_J0218.9-2305_daily_bin748.fits
.....................!
real 191.34
user 185.18
sys 5.71

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/303868/ft1_filtered_4FGL_J0218.9-2305_daily_bin748.fits scfile=/scratch/kocevski/303868/ft2_4FGL_J0218.9-2305_daily_bin748.fits outfile=/scratch/kocevski/303868/cmap_433209601_433468801_4FGL_J0218.9-2305_daily_bin748.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.90
user 0.37
sys 0.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303868/ft1_filtered_4FGL_J0218.9-2305_daily_bin748.fits scfile=/scratch/kocevski/303868/ft2_4FGL_J0218.9-2305_daily_bin748.fits outfile=/scratch/kocevski/303868/cmap_HighResolution_433209601_433468801_4FGL_J0218.9-2305_daily_bin748.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.90
user 0.38
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/303868/ft1_filtered_4FGL_J0218.9-2305_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/303868/ft2_4FGL_J0218.9-2305_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/303868/Model_4FGL_J0218.9-2305_daily_bin748.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/303868/ft1_filtered_4FGL_J0218.9-2305_daily_bin748.fits.....................!
real 97.38
user 95.31
sys 1.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83356       1.0000         .10000E-03   10000.    
     2 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.873       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8021       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5087       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33295E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28419E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.462       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.865       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17793       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0002       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0884       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0364       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61773       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=   4631.445     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2433 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83393        1.6967        .24977E-06    .88072E-04
   2  norm          .10000E-03    1.6741        .22231E-06** at limit **
   3  Prefactor     10.875        27.275       -.19753E-06   -.19965E-05
   4  norm          3.8015        2.1539        .47408E-08   -.21410E-03
   5  Prefactor     1.5085        4.6515        .85649E-06    .11147E-04
   6  Prefactor     .10000E-03    8.8391       -.12320E-06** at limit **
   7  Prefactor     .10000E-03    2.8950       -.14677E-05** at limit **
   8  Prefactor     .10000E-03    6.7479       -.29779E-05** at limit **
   9  Prefactor     .10000E-03    7.1701        .21555E-07** at limit **
  10  norm          .10000E-03    21.841       -.23655E-05** at limit **
  11  Prefactor     2.2436        4.6922        .41971E-05    .43100E-04
  12  Prefactor     .10000E-03    35.876        .35359E-05** at limit **
  13  Prefactor     43.462        30.992       -.12872E-06   -.11585E-04
  14  Prefactor     19.862        21.687       -.39727E-06   -.52510E-04
  15  Prefactor     .10000E-03    .99752        .25741E-08** at limit **
  16  Prefactor     .10000E-03    19.027        .19077E-05** at limit **
  17  norm          .17905        1.2377        .32474E-06   -.18501E-03
  18  Prefactor     .10000E-03    30.178       -.29224E-05** at limit **
  19  Prefactor     6.9998        12.394        .12976E-05   -.80069E-04
  20  norm          6.0885        3.1256        .22823E-07   -.10694E-03
  21  Normalizat    1.0363        .15639       -.14502E-05   -.17747E-03
  22  Prefactor     .61769        .16596       -.23512E-06   -.19253E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.833929
  norm       = 0.0001
  Prefactor  = 10.8749
  norm       = 3.8015
  Prefactor  = 1.50855
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.24361
  Prefactor  = 0.0001
  Prefactor  = 43.4621
  Prefactor  = 19.8619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.179048
  Prefactor  = 0.0001
  Prefactor  = 6.99983
  norm       = 6.08847
  Normalizat = 1.03634
  Prefactor  = 0.61769
 **********
 **   18 **HESSE 
 **********

 FCN=   4631.445     FROM HESSE     STATUS=OK           350 CALLS     2783 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83393        1.5658        .11988E-02   -1.5525    
   2  norm          .10000E-03    2.8382        .16875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.875        27.253        .12150E-03   -1.5048    
   4  norm          3.8015        2.1532        .70970E-04   -1.5318    
   5  Prefactor     1.5085        4.6409        .24622E-03   -1.5462    
   6  Prefactor     .10000E-03    8.9159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.044        .21031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.121        .31848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1703        .17799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    21.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2436        4.8604        .10480E-02   -1.5408    
  12  Prefactor     .10000E-03    35.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.462        31.014        .60811E-04   -1.4388    
  14  Prefactor     19.862        21.702        .89863E-04   -1.4816    
  15  Prefactor     .10000E-03    1.0009        .66375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .17905        2.4228        .14144E-02   -1.5623    
  18  Prefactor     .10000E-03    30.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9998        12.386        .75813E-03   -1.5179    
  20  norm          6.0885        3.1164        .82954E-04   -1.5214    
  21  Normalizat    1.0363        .17864        .18403E-03   -.91823    
  22  Prefactor     .61769        .19381        .26380E-03   -1.0685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05924e-08
Minuit parameter uncertainties:
  1  1.56586
  2  2.45954e-05
  3  27.284
  4  2.15322
  5  4.64199
  6  3.26833e-05
  7  0.000445762
  8  5.10212e-05
  9  1.45656e-06
  10  1.51113e-05
  11  4.86125
  12  2.35729e-05
  13  31.0254
  14  21.7106
  15  3.8476e-07
  16  1.62886e-05
  17  1.31697
  18  2.23821e-05
  19  12.3906
  20  3.11647
  21  0.178739
  22  0.194021
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.177e-01  1.940e-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.036e+00  1.787e-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: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/303868/likelihoodResults_433209601_433468801_4FGL_J0218.9-2305_daily_bin748.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) = 4631.4454125
delta logL = -0.000365054298527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4631.44504798
delta logL = -5.36770130566e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16507E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7151       1.0000          .0000       10.000    
     3 'Normalizat'    1.0367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61734       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   4631.199     FROM MIGRAD    STATUS=FAILED       145 CALLS      321 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92750E-01    9.1105        .15525E-02    .58913E-01
   2  Index         5.2687        6.7659        .80384E-02   -.46965E-04
   3  Normalizat    .99842        .80049E-01    .18708E-03   -.10598E-03
   4  Prefactor     .64468        .88913E-01    .25850E-03    .93764E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4631.199     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      412 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92750E-01    9.1105        .65774E-04    .58913E-01
   2  Index         5.2687        6.7659        .19086E-02   -.46965E-04
   3  Normalizat    .99842        .80049E-01    .88556E-04   -.10598E-03
   4  Prefactor     .64468        .88913E-01    .39709E-04    .93764E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4631.199     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      443 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92753E-01    10.818        .15028E-03   -.21360E-02
   2  Index         5.2687        6.2908        .32153E-03   -.56607E-04
   3  Normalizat    .99842        .16678        .37415E-04   -.10477E-03
   4  Prefactor     .64468        .18400        .10340E-04    .89058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0927531
  Index      = 5.26872
  Normalizat = 0.998415
  Prefactor  = 0.644683
 **********
 **   18 **HESSE 
 **********

 FCN=   4631.199     FROM HESSE     STATUS=OK            23 CALLS      466 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92753E-01    .80599        .60113E-05   -1.5647    
   2  Index         5.2687        3.3699        .12861E-04    .53770E-01
   3  Normalizat    .99842        .17870        .74831E-05   -.93084    
   4  Prefactor     .64468        .19784        .20680E-05   -1.0574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24023e-10
Minuit parameter uncertainties:
  1  0.546553
  2  3.69923
  3  0.178812
  4  0.198057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303868': 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) = 4631.19939133
delta logL = 0.245656107302

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.447e-01  1.981e-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:  9.984e-01  1.788e-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/303868/cmap_HighResolution_433209601_433468801_4FGL_J0218.9-2305_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-08-15 17:40:55.736242', job_id='303868', GAL2='0.64', fit_tolerance='1e-08', EG2='1.00', EG='1.04', time_epoch_completed='1629074455.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.46e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='748' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:40:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 303868: <4FGL_J0218.9-2305_daily_bin748> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin748> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 17:25:44 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:27:52 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:27:52 2021
Terminated at Sun Aug 15 17:40:56 2021
Results reported at Sun Aug 15 17:40:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin748 34.731 -23.0986 433209601 433468801 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 :                                   663.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             350.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            912 sec.

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

