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


Performing analysis on: 4FGL_J2145.0-3356_daily_bin1622
RA = 326.253, Dec = -33.9439
tmin = 659750401, tmax = 660009601
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='476283', job_status='RUN', time_executed='2021-12-08 08:04:14.439405', time_epoch_executed='1638979454.44' WHERE source_name='4FGL J2145.0-3356' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476283/ft1_4FGL_J2145.0-3356_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476283/ft2_4FGL_J2145.0-3356_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476283/ft1_4FGL_J2145.0-3356_daily_bin1622.fits outfile=/scratch/kocevski/476283/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1622.fits ra=326.253 dec=-33.9439 rad=12.0 tmin=659750401.0 tmax=660009601.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.00
user 1.79
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476283/ft1_filtered_4FGL_J2145.0-3356_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/476283/ft2_4FGL_J2145.0-3356_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/476283/ltcube_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.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/476283/ft2_4FGL_J2145.0-3356_daily_bin1622.fits
.....................!
real 11.20
user 10.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476283/ft1_filtered_4FGL_J2145.0-3356_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/476283/ft2_4FGL_J2145.0-3356_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/476283/ltcube_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.fits outfile=/scratch/kocevski/476283/expmap_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.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/476283/ltcube_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.fits
.....................!
real 155.81
user 151.05
sys 4.17

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/476283/ft1_filtered_4FGL_J2145.0-3356_daily_bin1622.fits scfile=/scratch/kocevski/476283/ft2_4FGL_J2145.0-3356_daily_bin1622.fits outfile=/scratch/kocevski/476283/cmap_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.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.48
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476283/ft1_filtered_4FGL_J2145.0-3356_daily_bin1622.fits scfile=/scratch/kocevski/476283/ft2_4FGL_J2145.0-3356_daily_bin1622.fits outfile=/scratch/kocevski/476283/cmap_HighResolution_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.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.51
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476283/ft1_filtered_4FGL_J2145.0-3356_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/476283/ft2_4FGL_J2145.0-3356_daily_bin1622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476283/Model_4FGL_J2145.0-3356_daily_bin1622.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/476283/ft1_filtered_4FGL_J2145.0-3356_daily_bin1622.fits.....................!
real 48.82
user 47.64
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/476283/ft1_filtered_4FGL_J2145.0-3356_daily_bin1622.fits', '/scratch/kocevski/476283/ft2_4FGL_J2145.0-3356_daily_bin1622.fits', expMap='/scratch/kocevski/476283/expmap_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.fits', expCube='/scratch/kocevski/476283/ltcube_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/476283/Model_4FGL_J2145.0-3356_daily_bin1622.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  1.000e-04  1.000e+04 ( 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  0.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/476283/ft1_filtered_4FGL_J2145.0-3356_daily_bin1622.fits
Spacecraft file(s): /scratch/kocevski/476283/ft2_4FGL_J2145.0-3356_daily_bin1622.fits
Exposure map: /scratch/kocevski/476283/expmap_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.fits
Exposure cube: /scratch/kocevski/476283/ltcube_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/476283/Model_4FGL_J2145.0-3356_daily_bin1622.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) = 7438.0180275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.7670       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.166       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13347E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4520       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.152       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.406       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4493       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95212       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=   7437.985     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     1745 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.580        .90712E-02** at limit **
   2  Prefactor     .10001E-03    81.458        .90712E-02** at limit **
   3  Prefactor     .10000E-03    9.5574        .90712E-02** at limit **
   4  norm          5.7669        5.7527        .41812E-02   -.11879E-03
   5  norm          3.0729        3.3643        .57850E-02   -.35972E-05
   6  Prefactor     .10000E-03    4.9227        .90712E-02** at limit **
   7  Prefactor     18.167        14.831        .23492E-02    .39261E-03
   8  Prefactor     .10000E-03    6.6260        .90712E-01** at limit **
   9  norm          18.262        9.3978        .23431E-02   -.55836E-04
  10  Prefactor     .10000E-03    13.906        .90712E-02** at limit **
  11  Prefactor     .10001E-03    83.204        .90712E-02** at limit **
  12  norm          .10000E-03    3.5619        .90712E-02** at limit **
  13  norm          1.4520        .42035        .65957E-02   -.10338E-03
  14  Prefactor     3.1847        5.7313        .56768E-02    .28018E-03
  15  Prefactor     .10000E-03    6.8882        .90712E-02** at limit **
  16  Prefactor     .10000E-03    3.0635        .90712E-02** at limit **
  17  Prefactor     19.152        17.946        .22880E-02   -.14223E-03
  18  Prefactor     18.396        24.101        .23339E-02    .90756E-03
  19  Normalizat    1.4494        .19581        .64044E-01    .63330E-05
  20  Prefactor     .95213        .12672        .45666E-01    .95169E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 5.76688
  norm       = 3.07292
  Prefactor  = 0.0001
  Prefactor  = 18.1667
  Prefactor  = 0.0001
  norm       = 18.2616
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  norm       = 1.45202
  Prefactor  = 3.18469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.152
  Prefactor  = 18.3958
  Normalizat = 1.44937
  Prefactor  = 0.952126
 **********
 **   18 **HESSE 
 **********

 FCN=   7437.985     FROM HESSE     STATUS=OK           289 CALLS     2034 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    82.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.7669        5.7560        .16725E-03   -1.5228    
   5  norm          3.0729        3.3553        .16030E-03   -1.5357    
   6  Prefactor     .10000E-03    4.9648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.167        14.829        .46985E-03   -1.4855    
   8  Prefactor     .10000E-03    48.226        .42254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.262        9.4006        .93725E-04   -1.4853    
  10  Prefactor     .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    83.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6483        .31728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4520        .42092        .29079E-04   -1.5467    
  14  Prefactor     3.1847        5.7143        .22707E-03   -1.5351    
  15  Prefactor     .10000E-03    6.8992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0779        .14740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.152        17.953        .91520E-04   -1.4832    
  18  Prefactor     18.396        24.102        .93357E-04   -1.4850    
  19  Normalizat    1.4494        .22386        .28327E-03   -.79211    
  20  Prefactor     .95213        .14566        .22353E-03   -.94343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92472e-09
Minuit parameter uncertainties:
  1  7.99033e-06
  2  0.00216548
  3  7.31507e-07
  4  5.75657
  5  3.35553
  6  3.85642e-07
  7  14.8317
  8  9.58684e-05
  9  9.40133
  10  3.57916e-06
  11  0.00168944
  12  2.91832e-07
  13  0.420924
  14  5.71531
  15  1.04263e-07
  16  3.39599e-07
  17  17.9585
  18  24.1145
  19  0.224014
  20  0.145721
Done.

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

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  1.826e+01  9.401e+00  1.000e-04  1.000e+04 ( 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  0.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:  9.521e-01  1.457e-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.449e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.32
Ra Dec: 326.253 -33.944
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.16e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.49e-05

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) = 7437.8406083
delta logL = 0.144123529712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7437.83670657
delta logL = 0.148025260081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.630       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8930       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94777       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7437.837     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      237 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.626        9.9740        .95388E-04    .61975E-04
   2  alpha         1.8928        .49527        .14267E-01    .34509E-04
   3  Normalizat    1.4654        .22225        .28207E-03    .69002E-03
   4  Prefactor     .94775        .14564        .22401E-03    .77541E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.6265
  alpha      = 1.89281
  Normalizat = 1.46537
  Prefactor  = 0.947747
 **********
 **   18 **HESSE 
 **********

 FCN=   7437.837     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.626        10.063        .38155E-05   -1.4868    
   2  alpha         1.8928        .49958        .57068E-03   -.24533    
   3  Normalizat    1.4654        .22241        .56414E-04   -.78756    
   4  Prefactor     .94775        .14573        .44803E-04   -.94492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59243e-10
Minuit parameter uncertainties:
  1  10.0639
  2  0.503181
  3  0.222556
  4  0.145787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476283': 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) = 7437.83670642
delta logL = 0.148025417014

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  1.763e+01  1.006e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  1.893e+00  5.032e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  1.178e-01  0.000e+00  0.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:  9.477e-01  1.458e-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.465e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.61
Ra Dec: 326.253 -33.944
Photon Index (Free Index): 1.89 +/- 0.50
Photon Flux (Free Index): 5.49e-08 +/- 4.28e-08
Energy Flux (Free Index): 3.26e-05 +/- 1.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/476283/cmap_HighResolution_659750401_660009601_4FGL_J2145.0-3356_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.16e-08', energy_flux2='3.26e-05', photon_flux_error='3.69e-08', dlogl='1.48e-01', energy_flux='2.89e-05', photon_flux2='5.49e-08', job_status='DONE', time_completed='2021-12-08 08:11:40.301230', photon_index_error2='0.50', photon_index2='1.89', ts='10.32', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.45', time_epoch_completed='1638979900.3', return_code='0', job_id='476283', GAL2='0.95', EG2='1.47', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.28e-08', ts2='10.61', photon_index='2.16' WHERE bin_id='1622' AND source_name='4FGL J2145.0-3356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:11:40 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 476283: <4FGL_J2145.0-3356_daily_bin1622> in cluster <slac> Done

Job <4FGL_J2145.0-3356_daily_bin1622> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 08:00:28 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:02:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:02:08 2021
Terminated at Wed Dec  8 08:11:41 2021
Results reported at Wed Dec  8 08:11:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2145.0-3356_daily_bin1622 326.253 -33.9439 659750401 660009601 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 :                                   446.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            673 sec.

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

