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


Performing analysis on: 4FGL_J2145.0-3356_daily_bin1627
RA = 326.253, Dec = -33.9439
tmin = 661046401, tmax = 661305601
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='250916', job_status='RUN', time_executed='2021-12-16 00:35:52.469850', time_epoch_executed='1639643752.47' WHERE source_name='4FGL J2145.0-3356' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250916/ft1_4FGL_J2145.0-3356_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250916/ft2_4FGL_J2145.0-3356_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250916/ft1_4FGL_J2145.0-3356_daily_bin1627.fits outfile=/scratch/kocevski/250916/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1627.fits ra=326.253 dec=-33.9439 rad=12.0 tmin=661046401.0 tmax=661305601.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.58
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250916/ft2_4FGL_J2145.0-3356_daily_bin1627.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/250916/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1627.fits evtable="EVENTS" outfile="/scratch/kocevski/250916/ft1_filtered_4FGL_J2145.0-3356_daily_bin1627.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.51
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250916/ft1_filtered_4FGL_J2145.0-3356_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/250916/ft2_4FGL_J2145.0-3356_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/250916/ltcube_661046401_661305601_4FGL_J2145.0-3356_daily_bin1627.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/250916/ft2_4FGL_J2145.0-3356_daily_bin1627.fits
.....................!
real 12.38
user 12.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250916/ft1_filtered_4FGL_J2145.0-3356_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250916/ft2_4FGL_J2145.0-3356_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/250916/ltcube_661046401_661305601_4FGL_J2145.0-3356_daily_bin1627.fits outfile=/scratch/kocevski/250916/expmap_661046401_661305601_4FGL_J2145.0-3356_daily_bin1627.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/250916/ltcube_661046401_661305601_4FGL_J2145.0-3356_daily_bin1627.fits
.....................!
real 190.62
user 185.86
sys 4.39

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/250916/ft1_filtered_4FGL_J2145.0-3356_daily_bin1627.fits scfile=/scratch/kocevski/250916/ft2_4FGL_J2145.0-3356_daily_bin1627.fits outfile=/scratch/kocevski/250916/cmap_661046401_661305601_4FGL_J2145.0-3356_daily_bin1627.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250916/ft1_filtered_4FGL_J2145.0-3356_daily_bin1627.fits scfile=/scratch/kocevski/250916/ft2_4FGL_J2145.0-3356_daily_bin1627.fits outfile=/scratch/kocevski/250916/cmap_HighResolution_661046401_661305601_4FGL_J2145.0-3356_daily_bin1627.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250916/ft1_filtered_4FGL_J2145.0-3356_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250916/ft2_4FGL_J2145.0-3356_daily_bin1627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250916/Model_4FGL_J2145.0-3356_daily_bin1627.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/250916/ft1_filtered_4FGL_J2145.0-3356_daily_bin1627.fits.....................!
real 49.09
user 47.74
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.709       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.6345       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0762       1.0000         .10000E-03   10000.    
     9 'norm      '    19.466       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.531       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0993       1.0000         .10000E-03   10000.    
    13 'norm      '    .22534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .77800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16944E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6649       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .48426       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5649.686     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2057 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.006        28.624         .0000       -.14397E-02
   2  Prefactor     44.715        30.196         .0000       -.17475E-02
   3  Prefactor     .10000E-03    17.929         .0000    ** at limit **
   4  norm          .10002E-03    5.7348         .0000    ** at limit **
   5  norm          6.6360        5.2373         .0000       -.98906E-03
   6  Prefactor     .10000E-03    4.1090         .0000    ** at limit **
   7  Prefactor     .10000E-03    6.9812         .0000    ** at limit **
   8  Prefactor     6.0781        6.1099         .0000        .83131E-03
   9  norm          19.469        10.268         .0000       -.14514E-03
  10  Prefactor     .10001E-03    10.418         .0000    ** at limit **
  11  Prefactor     38.538        41.440         .0000       -.32975E-02
  12  norm          8.1006        5.2960         .0000       -.87473E-03
  13  norm          .22544        .29429         .0000        .28039E-02
  14  Prefactor     .10000E-03    4.3249         .0000    ** at limit **
  15  Prefactor     .10003E-03    10.641         .0000    ** at limit **
  16  Prefactor     .77780        9.4124         .0000        .30463E-01
  17  Prefactor     .10000E-03    13.739         .0000    ** at limit **
  18  Prefactor     .10005E-03    102.87         .0000    ** at limit **
  19  Normalizat    1.6647        .19855         .0000        .10472E-04
  20  Prefactor     .48425        .12461         .0000        .53835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.0056
  Prefactor  = 44.7147
  Prefactor  = 0.000100001
  norm       = 0.000100022
  norm       = 6.63601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.07809
  norm       = 19.4687
  Prefactor  = 0.000100011
  Prefactor  = 38.5378
  norm       = 8.10057
  norm       = 0.225445
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 0.777803
  Prefactor  = 0.000100003
  Prefactor  = 0.00010005
  Normalizat = 1.66467
  Prefactor  = 0.484254
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.686     FROM HESSE     STATUS=OK           289 CALLS     2346 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.006        28.620        .51373E-04   -1.4144    
   2  Prefactor     44.715        30.236        .59960E-04   -1.4370    
   3  Prefactor     .10000E-03    17.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10002E-03    28.279        .34926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.6360        5.2321        .14645E-03   -1.5193    
   6  Prefactor     .10000E-03    4.1305        .14875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0781        6.1109        .16288E-03   -1.5215    
   9  norm          19.469        10.268        .90781E-04   -1.4825    
  10  Prefactor     .10001E-03    10.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.538        41.433        .64570E-04   -1.4466    
  12  norm          8.1006        5.2623        .12745E-03   -1.5139    
  13  norm          .22544        .26582        .43639E-03   -1.5613    
  14  Prefactor     .10000E-03    4.3363        .15266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    10.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .77780        9.5412        .22017E-02   -1.5532    
  17  Prefactor     .10000E-03    13.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    107.39        .40744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.6647        .22256        .23705E-03   -.73251    
  20  Prefactor     .48425        .13868        .25853E-03   -1.1270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77137e-08
Minuit parameter uncertainties:
  1  28.6262
  2  30.2464
  3  0.000212116
  4  0.00159388
  5  5.2325
  6  6.75792e-05
  7  2.30444e-05
  8  6.1115
  9  10.2687
  10  0.000664584
  11  41.4635
  12  5.26255
  13  0.265821
  14  6.49891e-05
  15  0.00119347
  16  5.44908
  17  0.000415116
  18  0.00465552
  19  0.222691
  20  0.138778
Done.

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

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  1.947e+01  1.027e+01  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:  4.843e-01  1.388e-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.665e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.81
Ra Dec: 326.253 -33.944
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.64e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 1.63e-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) = 5649.685534
delta logL = 1.05139906736e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5649.68553382
delta logL = 1.06935021904e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.469       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1615       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48428       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=   5649.686     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      204 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.475        45.555        .22693E-02    .27329E-03
   2  alpha         2.1614        1.7483        .31490        .11271E-04
   3  Normalizat    1.6648        .20704        .53618E-01   -.23309E-05
   4  Prefactor     .48422        .12902        .58439E-01    .27274E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.4745
  alpha      = 2.16141
  Normalizat = 1.66479
  Prefactor  = 0.484218
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.686     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.475        10.342        .45387E-03   -1.4825    
   2  alpha         2.1614        .47863        .12626E-01   -.13585    
   3  Normalizat    1.6648        .21660        .23704E-03   -.73247    
   4  Prefactor     .48422        .13519        .25854E-03   -1.1271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86642e-13
Minuit parameter uncertainties:
  1  10.3429
  2  0.481665
  3  0.216723
  4  0.135278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250916': 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) = 5649.68553356
delta logL = 1.09552429421e-05

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  1.947e+01  1.034e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.161e+00  4.817e-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:  4.842e-01  1.353e-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.665e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.80
Ra Dec: 326.253 -33.944
Photon Index (Free Index): 2.16 +/- 0.48
Photon Flux (Free Index): 7.62e-08 +/- 4.94e-08
Energy Flux (Free Index): 3.09e-05 +/- 1.75e-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/250916/cmap_HighResolution_661046401_661305601_4FGL_J2145.0-3356_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.64e-08', energy_flux2='3.09e-05', photon_flux_error='4.03e-08', dlogl='1.10e-05', energy_flux='3.09e-05', photon_flux2='7.62e-08', job_status='DONE', time_completed='2021-12-16 00:44:14.299593', photon_index_error2='0.48', photon_index2='2.16', ts='8.81', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.66', time_epoch_completed='1639644254.3', return_code='0', job_id='250916', GAL2='0.48', EG2='1.66', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='4.94e-08', ts2='8.80', photon_index='2.16' WHERE bin_id='1627' AND source_name='4FGL J2145.0-3356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:44:14 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 250916: <4FGL_J2145.0-3356_daily_bin1627> in cluster <slac> Done

Job <4FGL_J2145.0-3356_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:35:37 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:35:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:35:40 2021
Terminated at Thu Dec 16 00:44:15 2021
Results reported at Thu Dec 16 00:44:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2145.0-3356_daily_bin1627 326.253 -33.9439 661046401 661305601 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 :                                   504.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            518 sec.

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

