/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 116 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7417
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0218.9-2305_daily_bin89
RA = 34.731, Dec = -23.0986
tmin = 262396801, tmax = 262656001
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='301938', job_status='RUN', time_executed='2021-08-15 17:22:49.345366', time_epoch_executed='1629073369.35' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301938

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301938/ft1_4FGL_J0218.9-2305_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301938/ft2_4FGL_J0218.9-2305_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301938/ft1_4FGL_J0218.9-2305_daily_bin89.fits outfile=/scratch/kocevski/301938/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin89.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=262396801.0 tmax=262656001.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 1.43
user 1.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/301938/ft1_filtered_4FGL_J0218.9-2305_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/301938/ft2_4FGL_J0218.9-2305_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/301938/ltcube_262396801_262656001_4FGL_J0218.9-2305_daily_bin89.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/301938/ft2_4FGL_J0218.9-2305_daily_bin89.fits
.....................!
real 16.74
user 16.31
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301938/ft1_filtered_4FGL_J0218.9-2305_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/301938/ft2_4FGL_J0218.9-2305_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/301938/ltcube_262396801_262656001_4FGL_J0218.9-2305_daily_bin89.fits outfile=/scratch/kocevski/301938/expmap_262396801_262656001_4FGL_J0218.9-2305_daily_bin89.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/301938/ltcube_262396801_262656001_4FGL_J0218.9-2305_daily_bin89.fits
.....................!
real 192.85
user 186.12
sys 6.07

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/301938/ft1_filtered_4FGL_J0218.9-2305_daily_bin89.fits scfile=/scratch/kocevski/301938/ft2_4FGL_J0218.9-2305_daily_bin89.fits outfile=/scratch/kocevski/301938/cmap_262396801_262656001_4FGL_J0218.9-2305_daily_bin89.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301938/ft1_filtered_4FGL_J0218.9-2305_daily_bin89.fits scfile=/scratch/kocevski/301938/ft2_4FGL_J0218.9-2305_daily_bin89.fits outfile=/scratch/kocevski/301938/cmap_HighResolution_262396801_262656001_4FGL_J0218.9-2305_daily_bin89.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/301938/ft1_filtered_4FGL_J0218.9-2305_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/301938/ft2_4FGL_J0218.9-2305_daily_bin89.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/301938/Model_4FGL_J0218.9-2305_daily_bin89.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/301938/ft1_filtered_4FGL_J0218.9-2305_daily_bin89.fits.....................!
real 120.07
user 118.31
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8117       1.0000         .10000E-03   10000.    
     2 'norm      '    11.176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .49740       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.038       1.0000         .10000E-03   10000.    
    10 'norm      '    57.269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0264       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.776       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2616       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0229       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72463       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=   5980.561     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2452 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8116        1.7771       -.32360E-07   -.82742E-04
   2  norm          11.176        3.7811       -.45450E-07   -.64627E-04
   3  Prefactor     .10000E-03    57.094       -.84257E-06** at limit **
   4  norm          .49730        1.3762       -.72240E-06   -.14390E-02
   5  Prefactor     .10000E-03    1.2527        .99851E-08** at limit **
   6  Prefactor     .10000E-03    3.0408       -.94046E-07** at limit **
   7  Prefactor     .10000E-03    2.4448       -.66463E-07** at limit **
   8  Prefactor     .10000E-03    5.9254       -.26933E-06** at limit **
   9  Prefactor     13.034        14.124       -.63753E-06    .55181E-04
  10  norm          57.258        38.393       -.14869E-05    .80666E-04
  11  Prefactor     7.0273        7.1493       -.31543E-06   -.24234E-03
  12  Prefactor     19.712        28.374        .30734E-05   -.75268E-04
  13  Prefactor     25.792        49.936        .12323E-04   -.14612E-03
  14  Prefactor     24.509        25.609       -.45308E-06    .23291E-05
  15  Prefactor     .10000E-03    1.6321       -.49357E-06** at limit **
  16  Prefactor     .10000E-03    184.88       -.42421E-06** at limit **
  17  norm          2.2615        1.5823        .52563E-07   -.30196E-03
  18  Prefactor     .10000E-03    30.218        .29976E-06** at limit **
  19  Prefactor     .10000E-03    21.368       -.36853E-06** at limit **
  20  norm          .10000E-03    .70173        .28277E-07** at limit **
  21  Normalizat    1.0229        .15652        .77654E-06   -.74659E-05
  22  Prefactor     .72466        .16484       -.37989E-06    .31056E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.81164
  norm       = 11.176
  Prefactor  = 0.0001
  norm       = 0.497301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0344
  norm       = 57.258
  Prefactor  = 7.02728
  Prefactor  = 19.712
  Prefactor  = 25.7921
  Prefactor  = 24.5091
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.26152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02294
  Prefactor  = 0.724662
 **********
 **   18 **HESSE 
 **********

 FCN=   5980.561     FROM HESSE     STATUS=OK           342 CALLS     2794 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8116        1.7776        .78628E-04   -1.5373    
   2  norm          11.176        3.8006        .82363E-04   -1.5039    
   3  Prefactor     .10000E-03    57.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .49730        1.4768        .15040E-03   -1.5567    
   5  Prefactor     .10000E-03    1.2605        .84516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0450        .13169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5024        .23590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.034        14.117        .11093E-03   -1.4986    
  10  norm          57.258        37.895        .53011E-04   -1.4193    
  11  Prefactor     7.0273        7.2181        .15134E-03   -1.5178    
  12  Prefactor     19.712        28.196        .90198E-04   -1.4820    
  13  Prefactor     25.792        48.122        .78903E-04   -1.4692    
  14  Prefactor     24.509        25.581        .80916E-04   -1.4717    
  15  Prefactor     .10000E-03    2.7962        .19274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    191.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2615        1.5802        .77627E-04   -1.5407    
  18  Prefactor     .10000E-03    30.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .70427        .63255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0229        .18557        .20407E-03   -.92266    
  22  Prefactor     .72466        .19316        .26753E-03   -1.0257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44991e-09
Minuit parameter uncertainties:
  1  1.77761
  2  3.80071
  3  6.05293e-05
  4  1.47693
  5  4.1747e-07
  6  4.11497e-07
  7  2.11883e-06
  8  5.44504e-05
  9  14.1204
  10  37.9107
  11  7.21896
  12  28.2154
  13  48.1945
  14  25.5922
  15  6.81715e-05
  16  0.000690796
  17  1.58026
  18  2.62261e-05
  19  1.122e-05
  20  7.81357e-07
  21  0.185684
  22  0.19334
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.119e-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.247e-01  1.933e-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.023e+00  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.731 -23.099
Photon Flux Upper Limit: 5.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301938/likelihoodResults_262396801_262656001_4FGL_J0218.9-2305_daily_bin89.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) = 5980.56335306
delta logL = -0.00190651128651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5980.56144665
delta logL = -1.08712811198e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5980.561     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .68E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    497.24        .23593E-03** at limit **
   2  Index         2.6650        7.4603        .50000       -.55638E-05
   3  Normalizat    1.0229        .83712E-01    .20407E-03   -.63175E-04
   4  Prefactor     .72466        .92810E-01    .26753E-03   -.21503E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5980.561     FROM SIMPLEX   STATUS=UNCHANGED    163 CALLS      401 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    497.24        .24486E-03** at limit **
   2  Index         2.6650        7.4603        .20650E-04   -.55638E-05
   3  Normalizat    1.0229        .83712E-01    .64135E-06   -.63175E-04
   4  Prefactor     .72466        .92810E-01    .45531E-06   -.21503E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5980.561     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      439 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5270        .47186E-04** at limit **
   2  Index         2.7622        6.3226        .20000       -.71054E-08
   3  Normalizat    1.0229        .16852        .81628E-05    .44289E-04
   4  Prefactor     .72466        .18983        .10701E-04    .43982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.76224
  Normalizat = 1.02294
  Prefactor  = 0.724662
 **********
 **   18 **HESSE 
 **********

 FCN=   5980.561     FROM HESSE     STATUS=OK            25 CALLS      464 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5230        .94372E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7622        6.3512        .80000E-02   -.46403    
   3  Normalizat    1.0229        .16895        .16326E-05   -.92266    
   4  Prefactor     .72466        .19036        .21402E-05   -1.0257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86239e-12
Minuit parameter uncertainties:
  1  2.36021e-06
  2  286.58
  3  0.169043
  4  0.190531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301938': 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) = 5980.56144638
delta logL = 1.62592186825e-07

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.360e-06  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.762e+00  2.866e+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.247e-01  1.905e-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.023e+00  1.690e-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/301938/cmap_HighResolution_262396801_262656001_4FGL_J0218.9-2305_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2021-08-15 17:34:50.705030', job_id='301938', GAL2='0.72', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1629074090.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='89' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:34:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 301938: <4FGL_J0218.9-2305_daily_bin89> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin89> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:20:35 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:20:42 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:20:42 2021
Terminated at Sun Aug 15 17:34:51 2021
Results reported at Sun Aug 15 17:34:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin89 34.731 -23.0986 262396801 262656001 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 :                                   720.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            856 sec.

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

