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


Performing analysis on: 4FGL_J2145.0-3356_daily_bin1618
RA = 326.253, Dec = -33.9439
tmin = 658713601, tmax = 658972801
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='476278', job_status='RUN', time_executed='2021-12-08 08:03:14.712257', time_epoch_executed='1638979394.71' WHERE source_name='4FGL J2145.0-3356' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476278/ft1_4FGL_J2145.0-3356_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476278/ft1_4FGL_J2145.0-3356_daily_bin1618.fits outfile=/scratch/kocevski/476278/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1618.fits ra=326.253 dec=-33.9439 rad=12.0 tmin=658713601.0 tmax=658972801.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.06
user 2.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.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/476278/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1618.fits evtable="EVENTS" outfile="/scratch/kocevski/476278/ft1_filtered_4FGL_J2145.0-3356_daily_bin1618.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476278/ft1_filtered_4FGL_J2145.0-3356_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/476278/ltcube_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.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/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.fits
.....................!
real 14.51
user 14.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476278/ft1_filtered_4FGL_J2145.0-3356_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/476278/ltcube_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.fits outfile=/scratch/kocevski/476278/expmap_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.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/476278/ltcube_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.fits
.....................!
real 190.80
user 185.73
sys 4.70

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/476278/ft1_filtered_4FGL_J2145.0-3356_daily_bin1618.fits scfile=/scratch/kocevski/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.fits outfile=/scratch/kocevski/476278/cmap_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476278/ft1_filtered_4FGL_J2145.0-3356_daily_bin1618.fits scfile=/scratch/kocevski/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.fits outfile=/scratch/kocevski/476278/cmap_HighResolution_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476278/ft1_filtered_4FGL_J2145.0-3356_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476278/Model_4FGL_J2145.0-3356_daily_bin1618.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/476278/ft1_filtered_4FGL_J2145.0-3356_daily_bin1618.fits.....................!
real 83.93
user 82.08
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/476278/ft1_filtered_4FGL_J2145.0-3356_daily_bin1618.fits', '/scratch/kocevski/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.fits', expMap='/scratch/kocevski/476278/expmap_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.fits', expCube='/scratch/kocevski/476278/ltcube_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/476278/Model_4FGL_J2145.0-3356_daily_bin1618.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/476278/ft1_filtered_4FGL_J2145.0-3356_daily_bin1618.fits
Spacecraft file(s): /scratch/kocevski/476278/ft2_4FGL_J2145.0-3356_daily_bin1618.fits
Exposure map: /scratch/kocevski/476278/expmap_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.fits
Exposure cube: /scratch/kocevski/476278/ltcube_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/476278/Model_4FGL_J2145.0-3356_daily_bin1618.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) = 11317.6127988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    25.729       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.8482       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1069       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2732       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.181       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7070       1.0000         .10000E-03   10000.    
    13 'norm      '    .85945       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0745       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.379       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99746       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0208       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.

 FCN=   11317.58     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2028 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0642        .42028E-06** at limit **
   2  Prefactor     25.729        16.229        .98923E-07   -.36055E-05
   3  Prefactor     .10000E-03    8.1055       -.30324E-06** at limit **
   4  norm          7.8489        6.3424        .77087E-06   -.12037E-03
   5  norm          1.1069        2.4399        .89557E-06   -.65178E-04
   6  Prefactor     .10000E-03    1.6454        .68417E-08** at limit **
   7  Prefactor     .10000E-03    13.830       -.10430E-05** at limit **
   8  Prefactor     6.2729        5.4864        .31089E-07   -.61916E-04
   9  norm          .10000E-03    1.2336        .92861E-08** at limit **
  10  Prefactor     13.186        12.755       -.14610E-06   -.34659E-04
  11  Prefactor     .10000E-03    54.591       -.42018E-06** at limit **
  12  norm          2.7069        2.4474        .12796E-06   -.33231E-04
  13  norm          .85943        .27282       -.24246E-08   -.46080E-04
  14  Prefactor     .10000E-03    6.8104        .75466E-07** at limit **
  15  Prefactor     4.0755        9.9572        .38968E-06   -.17240E-04
  16  Prefactor     1.6037        3.3351        .93377E-06   -.87477E-04
  17  Prefactor     .10000E-03    15.961        .60463E-06** at limit **
  18  Prefactor     30.374        22.247        .32570E-07   -.86514E-04
  19  Normalizat    .99770        .14482       -.20555E-06   -.48504E-04
  20  Prefactor     1.0206        .98323E-01   -.22393E-06   -.23785E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.7285
  Prefactor  = 0.0001
  norm       = 7.84888
  norm       = 1.10687
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.27293
  norm       = 0.0001
  Prefactor  = 13.1863
  Prefactor  = 0.0001
  norm       = 2.70691
  norm       = 0.859433
  Prefactor  = 0.0001
  Prefactor  = 4.07553
  Prefactor  = 1.60368
  Prefactor  = 0.000100001
  Prefactor  = 30.3741
  Normalizat = 0.9977
  Prefactor  = 1.02062
 **********
 **   18 **HESSE 
 **********

 FCN=   11317.58     FROM HESSE     STATUS=OK           295 CALLS     2323 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.729        16.249        .78976E-04   -1.4693    
   3  Prefactor     .10000E-03    8.1384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.8489        6.3353        .71566E-03   -1.5148    
   5  norm          1.1069        2.4244        .24035E-03   -1.5498    
   6  Prefactor     .10000E-03    1.6524        .13321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2729        5.4789        .16027E-03   -1.5207    
   9  norm          .10000E-03    1.2359        .11538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.186        12.714        .11033E-03   -1.4982    
  11  Prefactor     .10000E-03    55.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7069        2.4376        .14814E-03   -1.5379    
  13  norm          .85943        .27266        .29679E-04   -1.5523    
  14  Prefactor     .10000E-03    6.9607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0755        9.9501        .19974E-03   -1.5304    
  16  Prefactor     1.6037        3.3208        .27108E-03   -1.5455    
  17  Prefactor     .10000E-03    16.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.374        22.340        .72693E-04   -1.4605    
  19  Normalizat    .99770        .16696        .28384E-03   -.93108    
  20  Prefactor     1.0206        .11349        .19431E-03   -.92045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93542e-10
Minuit parameter uncertainties:
  1  9.74989e-05
  2  16.2514
  3  7.66997e-05
  4  6.33584
  5  2.42458
  6  3.4847e-07
  7  0.000220992
  8  5.47934
  9  4.30153e-07
  10  12.7167
  11  7.00683e-05
  12  2.43766
  13  0.272664
  14  1.35929e-05
  15  9.95415
  16  3.32121
  17  0.000232286
  18  22.3457
  19  0.167052
  20  0.113512
Done.

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

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  1.000e-04  4.302e-07  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:  1.021e+00  1.135e-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:  9.977e-01  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 326.253 -33.944
Photon Flux Upper Limit: 2.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476278/likelihoodResults_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11317.5817128
delta logL = -0.00382687650199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11317.577886
delta logL = -8.19272827357e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1625       1.0000          .0000       5.0000    
     3 'Normalizat'    .99770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0206       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11317.58     FROM MIGRAD    STATUS=FAILED        79 CALLS      216 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    39.426        .11539E-02** at limit **
   2  alpha         2.1430        3.1267        .16654        .24394E-05
   3  Normalizat    .99770        .15976        .28384E-03   -.23231E-05
   4  Prefactor     1.0206        .11110        .19431E-03    .37444E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11317.58     FROM SIMPLEX   STATUS=UNCHANGED    138 CALLS      354 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    39.426        .20879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1430        3.1267        .40335E-04   -.14328    
   3  Normalizat    .99770        .15976        .51220E-05   -.93108    
   4  Prefactor     1.0206        .11110        .30252E-05   -.92045    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11317.58     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      386 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2387        .23078E-03** at limit **
   2  alpha         2.1204        3.9365        .33308E-01   -.68263E-09
   3  Normalizat    .99770        .15989        .11353E-04    .11616E-04
   4  Prefactor     1.0206        .11119        .77726E-05    .76058E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.12041
  Normalizat = 0.9977
  Prefactor  = 1.02062
 **********
 **   18 **HESSE 
 **********

 FCN=   11317.58     FROM HESSE     STATUS=OK            23 CALLS      409 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2372        .46156E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1204        3.9360        .13323E-02   -.15243    
   3  Normalizat    .99770        .16021        .22707E-05   -.93108    
   4  Prefactor     1.0206        .11138        .15545E-05   -.92045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36735e-13
Minuit parameter uncertainties:
  1  2.55783e-07
  2  150.808
  3  0.160291
  4  0.111407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476278': 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) = 11317.5778859
delta logL = 4.07726474805e-08

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  1.000e-04  2.558e-07  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.120e+00  1.508e+02  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:  1.021e+00  1.114e-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:  9.977e-01  1.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 326.253 -33.944

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/476278/cmap_HighResolution_658713601_658972801_4FGL_J2145.0-3356_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-05', job_status='DONE', photon_flux_upper_limit='2.65e-08', time_completed='2021-12-08 08:16:41.242267', job_id='476278', GAL2='1.02', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1638980201.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1618' AND source_name='4FGL J2145.0-3356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:16:41 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 476278: <4FGL_J2145.0-3356_daily_bin1618> in cluster <slac> Done

Job <4FGL_J2145.0-3356_daily_bin1618> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 08:00:27 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:02:00 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:00 2021
Terminated at Wed Dec  8 08:16:41 2021
Results reported at Wed Dec  8 08:16:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2145.0-3356_daily_bin1618 326.253 -33.9439 658713601 658972801 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 :                                   805.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            974 sec.

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

