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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1555
RA = 56.3187, Dec = -23.885
tmin = 642384001, tmax = 642643201
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='944023', job_status='RUN', time_executed='2021-08-19 11:03:09.034610', time_epoch_executed='1629396189.03' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944023/ft1_4FGL_J0345.2-2353_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944023/ft1_4FGL_J0345.2-2353_daily_bin1555.fits outfile=/scratch/kocevski/944023/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1555.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=642384001.0 tmax=642643201.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 11.92
user 3.39
sys 8.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.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/944023/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1555.fits evtable="EVENTS" outfile="/scratch/kocevski/944023/ft1_filtered_4FGL_J0345.2-2353_daily_bin1555.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 8.72
user 0.33
sys 8.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944023/ft1_filtered_4FGL_J0345.2-2353_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/944023/ltcube_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.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/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits
.....................!
real 22.70
user 12.89
sys 9.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944023/ft1_filtered_4FGL_J0345.2-2353_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/944023/ltcube_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.fits outfile=/scratch/kocevski/944023/expmap_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.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/944023/ltcube_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.fits
.....................!
real 202.10
user 186.53
sys 14.91

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 155 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 J0345.2-2353 @ 56.3187 -23.885

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/944023/ft1_filtered_4FGL_J0345.2-2353_daily_bin1555.fits scfile=/scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits outfile=/scratch/kocevski/944023/cmap_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.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=56.3187 yref=-23.885 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 8.69
user 0.39
sys 8.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944023/ft1_filtered_4FGL_J0345.2-2353_daily_bin1555.fits scfile=/scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits outfile=/scratch/kocevski/944023/cmap_HighResolution_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.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=56.3187 yref=-23.885 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 8.64
user 0.38
sys 8.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/944023/ft1_filtered_4FGL_J0345.2-2353_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/944023/Model_4FGL_J0345.2-2353_daily_bin1555.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/944023/ft1_filtered_4FGL_J0345.2-2353_daily_bin1555.fits.....................!
real 144.72
user 131.83
sys 12.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/944023/ft1_filtered_4FGL_J0345.2-2353_daily_bin1555.fits', '/scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits', expMap='/scratch/kocevski/944023/expmap_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.fits', expCube='/scratch/kocevski/944023/ltcube_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/944023/Model_4FGL_J0345.2-2353_daily_bin1555.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0345.2-2353'

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/944023/ft1_filtered_4FGL_J0345.2-2353_daily_bin1555.fits
Spacecraft file(s): /scratch/kocevski/944023/ft2_4FGL_J0345.2-2353_daily_bin1555.fits
Exposure map: /scratch/kocevski/944023/expmap_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.fits
Exposure cube: /scratch/kocevski/944023/ltcube_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/944023/Model_4FGL_J0345.2-2353_daily_bin1555.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) = 5969.28359171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0624       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.392       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4271       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0245       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34649E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.7219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11844E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5730       1.0000         .10000E-03   10000.    
    18 'norm      '    .75003       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7607       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11927E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1518       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .72613       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98423       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5969.243     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2377 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7685       -.22138E-07** at limit **
   2  norm          2.0631        1.9134        .70419E-08    .11511E-03
   3  Prefactor     .10000E-03    126.47        .40902E-04** at limit **
   4  Prefactor     .10000E-03    1.1388       -.69764E-07** at limit **
   5  Prefactor     11.380        12.779        .49744E-05   -.71087E-04
   6  Prefactor     .10000E-03    11.421        .61276E-06** at limit **
   7  Prefactor     1.1589        761.22       -.30251E-04   -.12914E-04
   8  Prefactor     .10000E-03    12.785       -.18973E-05** at limit **
   9  Prefactor     2.0232        1.7791       -.13417E-06   -.39557E-03
  10  Prefactor     .10000E-03    1.1046        .42574E-07** at limit **
  11  Prefactor     .10000E-03    1.7698        .43502E-06** at limit **
  12  norm          8.7206        1.5620        .13105E-06   -.10999E-02
  13  Prefactor     .10000E-03    5.5698        .22255E-07** at limit **
  14  norm          .10000E-03    .83382        .21104E-07** at limit **
  15  Prefactor     .10000E-03    47.099        .11451E-05** at limit **
  16  Prefactor     .10000E-03    7.0190       -.13570E-06** at limit **
  17  Prefactor     4.5713        2.5697        .12929E-06   -.33614E-03
  18  norm          .76908        10.360        .50679E-05   -.85745E-03
  19  Prefactor     5.7286        17.791       -.16381E-04   -.26000E-03
  20  Prefactor     .10000E-03    13.585        .15234E-05** at limit **
  21  Prefactor     4.1517        3.2312       -.26539E-08   -.22941E-03
  22  Prefactor     .10000E-03    5.2573        .31474E-08** at limit **
  23  Normalizat    .72609        .15873       -.15989E-06   -.26743E-03
  24  Prefactor     .98418        .15140        .36611E-06   -.31329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.0631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3803
  Prefactor  = 0.0001
  Prefactor  = 1.1589
  Prefactor  = 0.0001
  Prefactor  = 2.02322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.72057
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.57126
  norm       = 0.769081
  Prefactor  = 5.72856
  Prefactor  = 0.0001
  Prefactor  = 4.1517
  Prefactor  = 0.0001
  Normalizat = 0.726093
  Prefactor  = 0.98418
 **********
 **   18 **HESSE 
 **********

 FCN=   5969.243     FROM HESSE     STATUS=OK           395 CALLS     2772 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7855        .18122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0631        1.9218        .10022E-03   -1.5421    
   3  Prefactor     .10000E-03    125.34        .21157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1405        .80499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.380        12.717        .11869E-03   -1.5033    
   6  Prefactor     .10000E-03    11.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1589        764.44        .36180E-03   -1.5493    
   8  Prefactor     .10000E-03    12.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0232        1.7416        .90483E-04   -1.5423    
  10  Prefactor     .10000E-03    1.1081        .79229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.2162        .19193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.7206        1.5442        .36444E-04   -1.5117    
  13  Prefactor     .10000E-03    5.5733        .17808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8055        .13272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.0417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5713        2.5549        .88042E-04   -1.5280    
  18  norm          .76908        36.808        .45199E-02   -1.5533    
  19  Prefactor     5.7286        17.669        .16734E-03   -1.5229    
  20  Prefactor     .10000E-03    13.927        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1517        3.2260        .11724E-03   -1.5300    
  22  Prefactor     .10000E-03    5.2610        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .72609        .17958        .25566E-03   -1.0287    
  24  Prefactor     .98418        .17303        .22135E-03   -.93259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91205e-09
Minuit parameter uncertainties:
  1  7.87319e-07
  2  1.92189
  3  0.00019193
  4  9.12186e-06
  5  12.7204
  6  1.45505e-05
  7  60.315
  8  1.97855e-05
  9  1.74164
  10  2.19542e-06
  11  8.46424e-05
  12  1.54425
  13  4.17552e-06
  14  2.0463e-06
  15  1.05631e-05
  16  4.08301e-06
  17  2.55496
  18  10.6473
  19  17.6849
  20  2.49151e-05
  21  3.22611
  22  1.15957e-06
  23  0.179726
  24  0.173129
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  8.464e-05  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.842e-01  1.731e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  7.261e-01  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 56.319 -23.885
Photon Flux Upper Limit: 7.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/944023/likelihoodResults_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.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) = 5969.24336869
delta logL = -0.00051750552575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5969.24285133
delta logL = -1.46622369357e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5969.243     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    1.3637        .62877E-01** at limit **
   2  Index         2.6293        6.3131        .50000       -.88612E-04
   3  Normalizat    .72609        .40657E-02    .42641E-01   -.88497E-04
   4  Prefactor     .98418        .40693E-02    .46067E-01    .69289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100265
  Index      = 2.6293
  Normalizat = 0.726091
  Prefactor  = 0.984182
 **********
 **   18 **HESSE 
 **********

 FCN=   5969.243     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      274 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    1653.1        .16927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6293        5.0835        .50000       -.49399    
   3  Normalizat    .72609        .36328E-01    .25566E-03   -1.0287    
   4  Prefactor     .98418        .36217E-01    .22135E-03   -.93259    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58072e-06
Minuit parameter uncertainties:
  1  0.0430748
  2  37.3061
  3  0.0363288
  4  0.0362176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944023': 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): 102
logL (Free Index) = 5969.24284779
delta logL = 3.39916914527e-06

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.003e-04  4.307e-02  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.629e+00  3.731e+01  0.000e+00  1.000e+01 (-1.000e+00)
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.842e-01  3.622e-02  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  7.261e-01  3.633e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 56.319 -23.885

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/944023/cmap_HighResolution_642384001_642643201_4FGL_J0345.2-2353_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-08-19 11:16:50.146144', job_id='944023', GAL2='0.98', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1629397010.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1555' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 11:16:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 944023: <4FGL_J0345.2-2353_daily_bin1555> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1555> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 11:00:44 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 11:00:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 11:00:47 2021
Terminated at Thu Aug 19 11:16:51 2021
Results reported at Thu Aug 19 11:16:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1555 56.3187 -23.885 642384001 642643201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0345.2-2353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   942.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

