/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 176 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2145.0-3356_daily_bin1751
RA = 326.253, Dec = -33.9439
tmin = 693187201, tmax = 693446401
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='87767', job_status='RUN', time_executed='2022-12-23 01:23:21.153938', time_epoch_executed='1671787401.15' WHERE source_name='4FGL J2145.0-3356' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87767

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87767/ft1_4FGL_J2145.0-3356_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87767/ft1_4FGL_J2145.0-3356_daily_bin1751.fits outfile=/scratch/kocevski/87767/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1751.fits ra=326.253 dec=-33.9439 rad=12.0 tmin=693187201.0 tmax=693446401.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 3.61
user 3.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.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/87767/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/87767/ft1_filtered_4FGL_J2145.0-3356_daily_bin1751.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 590

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87767/ft1_filtered_4FGL_J2145.0-3356_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/87767/ltcube_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.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/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits
.....................!
real 11.88
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87767/ft1_filtered_4FGL_J2145.0-3356_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/87767/ltcube_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.fits outfile=/scratch/kocevski/87767/expmap_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.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/87767/ltcube_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.fits
.....................!
real 191.07
user 185.39
sys 5.36

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
Added 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J2145.0-3356 @ 326.253 -33.9439

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/87767/ft1_filtered_4FGL_J2145.0-3356_daily_bin1751.fits scfile=/scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits outfile=/scratch/kocevski/87767/cmap_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.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=326.253 yref=-33.9439 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87767/ft1_filtered_4FGL_J2145.0-3356_daily_bin1751.fits scfile=/scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits outfile=/scratch/kocevski/87767/cmap_HighResolution_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.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=326.253 yref=-33.9439 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87767/ft1_filtered_4FGL_J2145.0-3356_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87767/Model_4FGL_J2145.0-3356_daily_bin1751.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 GAL_V02
Working on...
/scratch/kocevski/87767/ft1_filtered_4FGL_J2145.0-3356_daily_bin1751.fits.....................!
real 53.45
user 52.09
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87767/ft1_filtered_4FGL_J2145.0-3356_daily_bin1751.fits', '/scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits', expMap='/scratch/kocevski/87767/expmap_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.fits', expCube='/scratch/kocevski/87767/ltcube_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87767/Model_4FGL_J2145.0-3356_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2145.0-3356'

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  5.316e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        alpha:  2.164e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  1.178e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  6.388e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/87767/ft1_filtered_4FGL_J2145.0-3356_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/87767/ft2_4FGL_J2145.0-3356_daily_bin1751.fits
Exposure map: /scratch/kocevski/87767/expmap_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.fits
Exposure cube: /scratch/kocevski/87767/ltcube_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87767/Model_4FGL_J2145.0-3356_daily_bin1751.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) = 6406.98845736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73198E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    24.306       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46153       1.0000          .0000       .10000E+07
     4 'norm      '    .17181E-02   1.0000          .0000       .10000E+07
     5 'norm      '    3.8643       1.0000          .0000       .10000E+07
     6 'Prefactor '    .38133E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    15.518       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.2206       1.0000          .0000       .10000E+07
     9 'norm      '    7.8006       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14058E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .26850E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .29210E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .54072       1.0000          .0000       .10000E+07
    14 'Prefactor '    21.088       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28444E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .44090E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    39.234       1.0000          .0000       .10000E+07
    18 'Prefactor '    .20551       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1867       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6406.971     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1504 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11136E-06    97.057        .83858E-06** at limit **
   2  Prefactor     24.714        10.513        .10043E-06   -.75436E-01
   3  Prefactor     .29549        1.1495        .86292E-07   -.26327E-02
   4  norm          .35527E-08    4.5173        .73087E-07** at limit **
   5  norm          3.8731        3.5619        .10482E-06    .62738E-03
   6  Prefactor     .87153E-08    6.0453        .19314E-06** at limit **
   7  Prefactor     15.512        9.0633       -.84578E-07    .54973E-01
   8  Prefactor     6.2435        9.3338        .33922E-06    .68163E-03
   9  norm          7.9222        6.0621        .94950E-08   -.11455E-03
  10  Prefactor     .29421E-08    10.080        .20695E-06** at limit **
  11  Prefactor     .57454E-07    46.156        .21109E-06** at limit **
  12  norm          .10714E-07    5.5522        .84334E-07** at limit **
  13  norm          .54078        .27650        .10303E-07    .87507E-04
  14  Prefactor     21.071        1.4572       -.19786E-07   -.11292E-01
  15  Prefactor     .15543E-08    7.4924        .71048E-08** at limit **
  16  Prefactor     .27756E-09    2.8641       -.67368E-07** at limit **
  17  Prefactor     38.807        21.237       -.11797E-06   -.32714E-01
  18  Prefactor     .20277E-05    27.569       -.23629E-06** at limit **
  19  Normalizat    1.1870        .20838        .14949E-05   -.98210E-04
  20  Prefactor     .79651        .13858       -.52342E-05   -.14633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11355e-07
  Prefactor  = 24.7145
  Prefactor  = 0.295485
  norm       = 3.55271e-09
  norm       = 3.87312
  Prefactor  = 8.71525e-09
  Prefactor  = 15.5123
  Prefactor  = 6.24354
  norm       = 7.92218
  Prefactor  = 2.94209e-09
  Prefactor  = 5.7454e-08
  norm       = 1.07137e-08
  norm       = 0.540778
  Prefactor  = 21.0715
  Prefactor  = 1.55431e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 38.807
  Prefactor  = 2.02766e-06
  Normalizat = 1.187
  Prefactor  = 0.796509
 **********
 **   18 **HESSE 
 **********

 FCN=   6406.971     FROM HESSE     STATUS=OK           339 CALLS     1843 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11136E-06    95.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.714        27.864        .20288E-03   -1.5609    
   3  Prefactor     .29549        15.262        .10894E-01   -1.5697    
   4  norm          .35527E-08    4.5371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8731        3.6471        .51309E-03   -1.5669    
   6  Prefactor     .87153E-08    6.0964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.512        15.084        .25399E-03   -1.5629    
   8  Prefactor     6.2435        9.4368        .40225E-03   -1.5658    
   9  norm          7.9222        6.0665        .35879E-03   -1.5652    
  10  Prefactor     .29421E-08    10.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .57454E-07    46.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10714E-07    5.5523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54078        .27551        .66070E-03   -1.5693    
  14  Prefactor     21.071        10.918        .21782E-03   -1.5616    
  15  Prefactor     .15543E-08    7.5066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .27756E-09    2.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.807        22.979        .15967E-03   -1.5583    
  18  Prefactor     .20277E-05    39.799        .11679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1870        .18128        .58136E-01   -.87005    
  20  Prefactor     .79651        .12020        .43676E-01   -.99857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87265e-07
Minuit parameter uncertainties:
  1  0.00653779
  2  27.8638
  3  4.24721
  4  0.000254098
  5  3.64709
  6  0.000461479
  7  15.0836
  8  9.43679
  9  6.0665
  10  0.000346039
  11  0.00327743
  12  0.000487603
  13  0.275515
  14  10.9183
  15  0.0002159
  16  5.44e-05
  17  22.979
  18  0.0179667
  19  0.181371
  20  0.120237
Done.

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

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  7.922e+00  6.067e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        alpha:  2.164e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  1.178e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  6.388e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.965e-01  1.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.187e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.60
Ra Dec: 326.253 -33.944
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 9.62e-06

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) = 6406.89647753
delta logL = 0.0745488887251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6406.89531601
delta logL = 0.07571040727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6533       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8901       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79511       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6406.895     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6533        7.0746        .36225E-03    .26170E-01
   2  alpha         1.8899        .67657        .42817       -.12547E-04
   3  Normalizat    1.1933        .17706        .58006E-01    .75412E-05
   4  Prefactor     .79512        .11886        .43654E-01    .10897E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.65333
  alpha      = 1.88992
  Normalizat = 1.19331
  Prefactor  = 0.795122
 **********
 **   18 **HESSE 
 **********

 FCN=   6406.895     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6533        6.2563        .14490E-04   -1.5653    
   2  alpha         1.8899        .68872        .18714E-01   -.24652    
   3  Normalizat    1.1933        .20492        .25652E-03   -.86810    
   4  Prefactor     .79512        .13779        .20624E-03   -.99908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29654e-09
Minuit parameter uncertainties:
  1  6.25634
  2  0.69834
  3  0.205063
  4  0.137848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87767': 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) = 6406.89531597
delta logL = 0.0757104426857

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  7.653e+00  6.256e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        alpha:  1.890e+00  6.983e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  1.178e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  6.388e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.951e-01  1.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.193e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.75
Ra Dec: 326.253 -33.944
Photon Index (Free Index): 1.89 +/- 0.70
Photon Flux (Free Index): 2.38e-08 +/- 2.56e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.27e-05

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/87767/cmap_HighResolution_693187201_693446401_4FGL_J2145.0-3356_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='1.42e-05', photon_flux_error='2.38e-08', dlogl='7.57e-02', energy_flux='1.26e-05', photon_flux2='2.38e-08', job_status='DONE', time_completed='2022-12-23 01:31:33.506539', photon_index_error2='0.70', photon_index2='1.89', ts='5.60', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.19', time_epoch_completed='1671787893.51', return_code='0', job_id='87767', GAL2='0.80', EG2='1.19', return_code2='0', energy_flux_error='9.62e-06', photon_flux_error2='2.56e-08', ts2='5.75', photon_index='2.16' WHERE bin_id='1751' AND source_name='4FGL J2145.0-3356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:31:33 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 87767: <4FGL_J2145.0-3356_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2145.0-3356_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 01:20:15 2022
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:20:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:20:16 2022
Terminated at Fri Dec 23 01:31:34 2022
Results reported at Fri Dec 23 01:31:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2145.0-3356_daily_bin1751 326.253 -33.9439 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2145.0-3356 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   495.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            679 sec.

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

