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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1513
RA = 56.3187, Dec = -23.885
tmin = 631497601, tmax = 631756801
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='943963', job_status='RUN', time_executed='2021-08-19 11:01:00.496439', time_epoch_executed='1629396060.5' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943963/ft1_4FGL_J0345.2-2353_daily_bin1513.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943963/ft2_4FGL_J0345.2-2353_daily_bin1513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943963/ft1_4FGL_J0345.2-2353_daily_bin1513.fits outfile=/scratch/kocevski/943963/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1513.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=631497601.0 tmax=631756801.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 2.80
user 2.34
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943963/ft1_filtered_4FGL_J0345.2-2353_daily_bin1513.fits" evtable="EVENTS" scfile=/scratch/kocevski/943963/ft2_4FGL_J0345.2-2353_daily_bin1513.fits sctable="SC_DATA" outfile=/scratch/kocevski/943963/ltcube_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.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/943963/ft2_4FGL_J0345.2-2353_daily_bin1513.fits
.....................!
real 12.41
user 11.80
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943963/ft1_filtered_4FGL_J0345.2-2353_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/943963/ft2_4FGL_J0345.2-2353_daily_bin1513.fits sctable="SC_DATA" expcube=/scratch/kocevski/943963/ltcube_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.fits outfile=/scratch/kocevski/943963/expmap_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.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/943963/ltcube_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.fits
.....................!
real 189.82
user 185.02
sys 4.44

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/943963/ft1_filtered_4FGL_J0345.2-2353_daily_bin1513.fits scfile=/scratch/kocevski/943963/ft2_4FGL_J0345.2-2353_daily_bin1513.fits outfile=/scratch/kocevski/943963/cmap_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.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 0.80
user 0.37
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943963/ft1_filtered_4FGL_J0345.2-2353_daily_bin1513.fits scfile=/scratch/kocevski/943963/ft2_4FGL_J0345.2-2353_daily_bin1513.fits outfile=/scratch/kocevski/943963/cmap_HighResolution_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.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 0.80
user 0.36
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/943963/ft1_filtered_4FGL_J0345.2-2353_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/943963/ft2_4FGL_J0345.2-2353_daily_bin1513.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/943963/Model_4FGL_J0345.2-2353_daily_bin1513.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/943963/ft1_filtered_4FGL_J0345.2-2353_daily_bin1513.fits.....................!
real 143.14
user 141.31
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/943963/ft1_filtered_4FGL_J0345.2-2353_daily_bin1513.fits', '/scratch/kocevski/943963/ft2_4FGL_J0345.2-2353_daily_bin1513.fits', expMap='/scratch/kocevski/943963/expmap_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.fits', expCube='/scratch/kocevski/943963/ltcube_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/943963/Model_4FGL_J0345.2-2353_daily_bin1513.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/943963/ft1_filtered_4FGL_J0345.2-2353_daily_bin1513.fits
Spacecraft file(s): /scratch/kocevski/943963/ft2_4FGL_J0345.2-2353_daily_bin1513.fits
Exposure map: /scratch/kocevski/943963/expmap_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.fits
Exposure cube: /scratch/kocevski/943963/ltcube_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/943963/Model_4FGL_J0345.2-2353_daily_bin1513.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) = 6449.00591254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.7041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14555E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8855       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11703E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.393       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14310E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.529       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6841       1.0000         .10000E-03   10000.    
    14 'norm      '    .58906E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.930       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5707       1.0000         .10000E-03   10000.    
    18 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10193E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13652E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3760       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95727       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6448.970     FROM MIGRAD    STATUS=CONVERGED    981 CALLS     3295 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9416        .18142E-02** at limit **
   2  norm          4.7044        3.3186        .11908E-03   -.86880E-05
   3  Prefactor     .10000E-03    180.16        .18142E-02** at limit **
   4  Prefactor     4.8874        4.2218        .74377E-03    .32191E-03
   5  Prefactor     .10000E-03    15.290        .18142E-02** at limit **
   6  Prefactor     .10000E-03    60.048        .18142E-02** at limit **
   7  Prefactor     41.400        41.367        .62306E-04    .10619E-04
   8  Prefactor     .10000E-03    52.277        .18142E-02** at limit **
   9  Prefactor     .10003E-03    8.2055        .18453E-02** at limit **
  10  Prefactor     .10000E-03    4.5282        .16507E-02** at limit **
  11  Prefactor     .10000E-03    4.9653        .34397E-03** at limit **
  12  norm          18.528        2.3622        .41247E-04    .14095E-02
  13  Prefactor     7.6165        54.384        .14466E-03    .18075E-05
  14  norm          .58263E-01    9.0816        .13124E-02    .76852E-03
  15  Prefactor     26.987        93.806        .77197E-04    .43032E-04
  16  Prefactor     27.570        38.623        .76313E-04    .16068E-03
  17  Prefactor     6.5705        3.6247        .53822E-03    .34404E-03
  18  norm          .10000E-03    8.6570        .18142E-02** at limit **
  19  Prefactor     .10035E-03    33.273        .11629    ** at limit **
  20  Prefactor     .10000E-03    12.628        .18142E-02** at limit **
  21  Prefactor     .10000E-03    5.2925        .35293E-03** at limit **
  22  Prefactor     .10000E-03    34.551        .18142E-02** at limit **
  23  Normalizat    1.3757        .25009        .27853E-03    .55631E-03
  24  Prefactor     .95747        .23002        .30672E-03    .33271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.7044
  Prefactor  = 0.0001
  Prefactor  = 4.8874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.4004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5282
  Prefactor  = 7.61646
  norm       = 0.0582631
  Prefactor  = 26.9872
  Prefactor  = 27.57
  Prefactor  = 6.57053
  norm       = 0.0001
  Prefactor  = 0.000100347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37573
  Prefactor  = 0.957465
 **********
 **   18 **HESSE 
 **********

 FCN=   6448.970     FROM HESSE     STATUS=OK           385 CALLS     3680 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7044        3.3185        .47631E-05   -1.5274    
   3  Prefactor     .10000E-03    180.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8874        4.2216        .29751E-04   -1.5266    
   5  Prefactor     .10000E-03    15.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    60.063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.400        41.367        .12461E-04   -1.4420    
   8  Prefactor     .10000E-03    52.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    8.2520        .36907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5311        .33014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9654        .68795E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.528        2.3622        .82494E-05   -1.4847    
  13  Prefactor     7.6165        54.261        .57865E-05   -1.5156    
  14  norm          .58263E-01    9.0472        .52496E-04   -1.5660    
  15  Prefactor     26.987        93.807        .15439E-04   -1.4669    
  16  Prefactor     27.570        38.588        .15263E-04   -1.4657    
  17  Prefactor     6.5705        3.6164        .21529E-04   -1.5195    
  18  norm          .10000E-03    8.6575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10035E-03    31.588        .12041       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2928        .70586E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3757        .25022        .55706E-04   -.81333    
  24  Prefactor     .95747        .22959        .61344E-04   -.94161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04252e-09
Minuit parameter uncertainties:
  1  5.90332e-06
  2  3.31862
  3  0.000252031
  4  4.22182
  5  4.19405e-05
  6  1.52899e-05
  7  41.3956
  8  0.000369856
  9  0.00101985
  10  2.91077e-05
  11  3.01478e-05
  12  2.36219
  13  40.7105
  14  1.45103
  15  94.3254
  16  38.6227
  17  3.61647
  18  7.33268e-06
  19  0.00662423
  20  9.61291e-05
  21  6.94444e-05
  22  3.23149e-05
  23  0.250446
  24  0.229822
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  3.015e-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.575e-01  2.298e-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:  1.376e+00  2.504e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/943963/likelihoodResults_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.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) = 6448.9707398
delta logL = -0.000960924018727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6448.96977975
delta logL = -8.69895302458e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4576       1.0000          .0000       10.000    
     3 'Normalizat'    1.3755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95771       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6448.970     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      251 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4995        .34570E-03** at limit **
   2  Index         2.4698        6.2229        .50000       -.22727E-04
   3  Normalizat    1.3757        .23728        .27853E-03    .10635E-03
   4  Prefactor     .95747        .22382        .30672E-03    .83805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.46983
  Normalizat = 1.37573
  Prefactor  = 0.957467
 **********
 **   18 **HESSE 
 **********

 FCN=   6448.970     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0600        .69140E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4698        6.2333        .50000       -.53058    
   3  Normalizat    1.3757        .23748        .55707E-04   -.81333    
   4  Prefactor     .95747        .22401        .12269E-04   -.94161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16404e-09
Minuit parameter uncertainties:
  1  0.000231521
  2  4.33154
  3  0.237672
  4  0.224224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943963': 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) = 6448.96977876
delta logL = 1.21024640976e-07

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  2.315e-04  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.470e+00  4.332e+00  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.575e-01  2.242e-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:  1.376e+00  2.377e-01  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/943963/cmap_HighResolution_631497601_631756801_4FGL_J0345.2-2353_daily_bin1513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-19 11:14:02.554177', job_id='943963', GAL2='0.96', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1629396842.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1513' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 11:14:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 943963: <4FGL_J0345.2-2353_daily_bin1513> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1513> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 11:00:40 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 11:00:42 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:42 2021
Terminated at Thu Aug 19 11:14:03 2021
Results reported at Thu Aug 19 11:14:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1513 56.3187 -23.885 631497601 631756801 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 :                                   780.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            803 sec.

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

