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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1107
RA = 325.462, Dec = -37.4545
tmin = 526262401, tmax = 526521601
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='682786', job_status='RUN', time_executed='2021-09-27 00:17:59.959925', time_epoch_executed='1632727079.96' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682786/ft1_4FGL_J2141.8-3727_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682786/ft1_4FGL_J2141.8-3727_daily_bin1107.fits outfile=/scratch/kocevski/682786/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1107.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=526262401.0 tmax=526521601.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 4.50
user 3.77
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.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/682786/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1107.fits evtable="EVENTS" outfile="/scratch/kocevski/682786/ft1_filtered_4FGL_J2141.8-3727_daily_bin1107.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.71
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682786/ft1_filtered_4FGL_J2141.8-3727_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/682786/ltcube_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.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/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits
.....................!
real 13.16
user 12.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682786/ft1_filtered_4FGL_J2141.8-3727_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/682786/ltcube_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.fits outfile=/scratch/kocevski/682786/expmap_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.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/682786/ltcube_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.fits
.....................!
real 191.80
user 185.54
sys 5.64

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

Setting source of interest to:
4FGL J2141.8-3727 @ 325.462 -37.4545

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/682786/ft1_filtered_4FGL_J2141.8-3727_daily_bin1107.fits scfile=/scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits outfile=/scratch/kocevski/682786/cmap_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.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=325.462 yref=-37.4545 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682786/ft1_filtered_4FGL_J2141.8-3727_daily_bin1107.fits scfile=/scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits outfile=/scratch/kocevski/682786/cmap_HighResolution_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.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=325.462 yref=-37.4545 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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682786/ft1_filtered_4FGL_J2141.8-3727_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682786/Model_4FGL_J2141.8-3727_daily_bin1107.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/682786/ft1_filtered_4FGL_J2141.8-3727_daily_bin1107.fits.....................!
real 61.10
user 59.40
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682786/ft1_filtered_4FGL_J2141.8-3727_daily_bin1107.fits', '/scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits', expMap='/scratch/kocevski/682786/expmap_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.fits', expCube='/scratch/kocevski/682786/ltcube_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682786/Model_4FGL_J2141.8-3727_daily_bin1107.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2141.8-3727'

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  3.345e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/682786/ft1_filtered_4FGL_J2141.8-3727_daily_bin1107.fits
Spacecraft file(s): /scratch/kocevski/682786/ft2_4FGL_J2141.8-3727_daily_bin1107.fits
Exposure map: /scratch/kocevski/682786/expmap_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.fits
Exposure cube: /scratch/kocevski/682786/ltcube_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682786/Model_4FGL_J2141.8-3727_daily_bin1107.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) = 8013.83380009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.488       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8223       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.992       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.060       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5433       1.0000         .10000E-03   10000.    
     7 'norm      '    12.790       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8427       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6614       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0618       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.2201       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4326       1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.558       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3313       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .47066       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2161       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8013.828     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2497 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.329        .27351E-05** at limit **
   2  Prefactor     29.483        18.684       -.11537E-06   -.33310E-04
   3  Prefactor     1.7683        49.731       -.11990E-04   -.18832E-03
   4  Prefactor     11.992        7.0707        .83692E-06   -.21264E-03
   5  Prefactor     32.051        26.120       -.13879E-05   -.20086E-03
   6  norm          6.5410        9.6301        .83952E-07   -.10671E-04
   7  norm          12.790        5.1614        .17013E-06    .41642E-04
   8  Prefactor     4.8419        5.6311        .24184E-06   -.13937E-04
   9  Prefactor     7.6601        12.901        .93338E-07   -.22907E-04
  10  Prefactor     7.0615        6.5338        .11186E-06    .32496E-05
  11  norm          .10000E-03    1.5037        .44818E-07** at limit **
  12  Prefactor     .10000E-03    5.5119        .30312E-07** at limit **
  13  Prefactor     .10000E-03    18.589       -.41733E-06** at limit **
  14  norm          8.2198        4.3535       -.73081E-07   -.25657E-03
  15  norm          1.4325        .40746        .64876E-08   -.38176E-04
  16  Prefactor     52.546        36.834       -.17274E-05   -.23363E-03
  17  Prefactor     5.3326        7.0313        .42410E-05   -.73176E-03
  18  Prefactor     .10000E-03    .90977        .59531E-07** at limit **
  19  Prefactor     .10000E-03    9.9048        .27275E-06** at limit **
  20  Prefactor     .10000E-03    18.624       -.26780E-06** at limit **
  21  Prefactor     .10000E-03    8.4053        .84044E-08** at limit **
  22  Normalizat    .47056        .18862       -.35424E-05    .95632E-04
  23  Prefactor     1.2162        .12375        .11098E-05    .37873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 29.4835
  Prefactor  = 1.76829
  Prefactor  = 11.992
  Prefactor  = 32.0507
  norm       = 6.54096
  norm       = 12.7903
  Prefactor  = 4.84188
  Prefactor  = 7.66011
  Prefactor  = 7.06152
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.21984
  norm       = 1.4325
  Prefactor  = 52.5461
  Prefactor  = 5.33261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.470558
  Prefactor  = 1.21619
 **********
 **   18 **HESSE 
 **********

 FCN=   8013.828     FROM HESSE     STATUS=OK           372 CALLS     2869 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.483        18.705        .73780E-04   -1.4621    
   3  Prefactor     1.7683        56.737        .30930E-03   -1.5442    
   4  Prefactor     11.992        7.0812        .57838E-03   -1.5015    
   5  Prefactor     32.051        26.322        .70766E-04   -1.4575    
   6  norm          6.5410        9.6471        .15689E-03   -1.5196    
   7  norm          12.790        5.1587        .11200E-03   -1.4993    
   8  Prefactor     4.8419        5.6163        .18280E-03   -1.5268    
   9  Prefactor     7.6601        12.896        .14488E-03   -1.5154    
  10  Prefactor     7.0615        6.5218        .15096E-03   -1.5176    
  11  norm          .10000E-03    1.5060        .10720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.2198        4.3689        .12434E-03   -1.5134    
  15  norm          1.4325        .40901        .28483E-04   -1.5469    
  16  Prefactor     52.546        37.389        .55323E-04   -1.4257    
  17  Prefactor     5.3326        7.3306        .87030E-03   -1.5246    
  18  Prefactor     .10000E-03    .91239        .83383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .47056        .19907        .39742E-03   -1.1380    
  23  Prefactor     1.2162        .13190        .17775E-03   -.85834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12099e-09
Minuit parameter uncertainties:
  1  0.00053121
  2  18.7083
  3  20.0529
  4  7.0817
  5  26.3319
  6  9.64941
  7  5.1589
  8  5.61696
  9  12.9009
  10  6.52247
  11  9.16455e-07
  12  2.76605e-06
  13  5.36388e-05
  14  4.3691
  15  0.409015
  16  37.4061
  17  7.33179
  18  7.72908e-07
  19  2.21734e-05
  20  0.000101884
  21  1.34247e-05
  22  0.199368
  23  0.131935
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  4.842e+00  5.617e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.216e+00  1.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  4.706e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 6.64e-06 +/- 7.70e-06

TS (Fixed Index): 1.10
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 9.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682786/likelihoodResults_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.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) = 8013.7884751
delta logL = 0.0398761398046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8013.7877408
delta logL = 0.0406104376725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6009       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3840       1.0000          .0000       10.000    
     3 'Normalizat'    .47423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8013.788     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      297 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6169        6.6732        .84875E-03    .19624E-03
   2  Index         2.3864        .80080        .12547E-01    .11121E-03
   3  Normalizat    .47409        .18244        .39598E-03   -.22968E-06
   4  Prefactor     1.2144        .12715        .17786E-03   -.10227E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61685
  Index      = 2.38637
  Normalizat = 0.474091
  Prefactor  = 1.21442
 **********
 **   18 **HESSE 
 **********

 FCN=   8013.788     FROM HESSE     STATUS=OK            27 CALLS      324 TOTAL
                     EDM=   .40E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6169        6.5644        .16975E-03   -1.5234    
   2  Index         2.3864        .78814        .25094E-02   -.55005    
   3  Normalizat    .47409        .18249        .15839E-04   -1.1363    
   4  Prefactor     1.2144        .12717        .71143E-05   -.85889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98093e-15
Minuit parameter uncertainties:
  1  6.56521
  2  0.792698
  3  0.18272
  4  0.127203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682786': 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) = 8013.78773089
delta logL = 0.0406203535504

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  5.617e+00  6.565e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.386e+00  7.927e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.214e+00  1.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  4.741e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 2.39 +/- 0.79
Photon Flux (Free Index): 2.35e-08 +/- 2.86e-08
Energy Flux (Free Index): 7.84e-06 +/- 1.00e-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/682786/cmap_HighResolution_526262401_526521601_4FGL_J2141.8-3727_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='7.84e-06', photon_flux_error='3.00e-08', dlogl='4.06e-02', energy_flux='6.64e-06', photon_flux2='2.35e-08', job_status='DONE', time_completed='2021-09-27 00:30:30.903609', photon_index_error2='0.79', photon_index2='2.39', ts='1.10', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='1.00e-05', EG='0.47', time_epoch_completed='1632727830.9', return_code='0', job_id='682786', GAL2='1.21', EG2='0.47', return_code2='0', energy_flux_error='7.70e-06', photon_flux_error2='2.86e-08', ts2='1.17', photon_index='2.62' WHERE bin_id='1107' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 682786: <4FGL_J2141.8-3727_daily_bin1107> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1107> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:15:31 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:17:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 00:17:44 2021
Terminated at Mon Sep 27 00:30:31 2021
Results reported at Mon Sep 27 00:30:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1107 325.462 -37.4545 526262401 526521601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2141.8-3727 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            900 sec.

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

