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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin622
RA = 325.462, Dec = -37.4545
tmin = 400550401, tmax = 400809601
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='679965', job_status='RUN', time_executed='2021-09-27 00:08:09.836086', time_epoch_executed='1632726489.84' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/679965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/679965/ft1_4FGL_J2141.8-3727_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/679965/ft2_4FGL_J2141.8-3727_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/679965/ft1_4FGL_J2141.8-3727_daily_bin622.fits outfile=/scratch/kocevski/679965/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin622.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=400550401.0 tmax=400809601.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.49
user 4.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/679965/ft2_4FGL_J2141.8-3727_daily_bin622.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/679965/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin622.fits evtable="EVENTS" outfile="/scratch/kocevski/679965/ft1_filtered_4FGL_J2141.8-3727_daily_bin622.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/679965/ft1_filtered_4FGL_J2141.8-3727_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/679965/ft2_4FGL_J2141.8-3727_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/679965/ltcube_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.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/679965/ft2_4FGL_J2141.8-3727_daily_bin622.fits
.....................!
real 14.55
user 13.62
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/679965/ft1_filtered_4FGL_J2141.8-3727_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/679965/ft2_4FGL_J2141.8-3727_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/679965/ltcube_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.fits outfile=/scratch/kocevski/679965/expmap_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.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/679965/ltcube_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.fits
.....................!
real 191.84
user 186.95
sys 4.45

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/679965/ft1_filtered_4FGL_J2141.8-3727_daily_bin622.fits scfile=/scratch/kocevski/679965/ft2_4FGL_J2141.8-3727_daily_bin622.fits outfile=/scratch/kocevski/679965/cmap_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/679965/ft1_filtered_4FGL_J2141.8-3727_daily_bin622.fits scfile=/scratch/kocevski/679965/ft2_4FGL_J2141.8-3727_daily_bin622.fits outfile=/scratch/kocevski/679965/cmap_HighResolution_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/679965/ft1_filtered_4FGL_J2141.8-3727_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/679965/ft2_4FGL_J2141.8-3727_daily_bin622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/679965/Model_4FGL_J2141.8-3727_daily_bin622.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/679965/ft1_filtered_4FGL_J2141.8-3727_daily_bin622.fits....................!
real 52.96
user 51.24
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/679965/ft1_filtered_4FGL_J2141.8-3727_daily_bin622.fits', '/scratch/kocevski/679965/ft2_4FGL_J2141.8-3727_daily_bin622.fits', expMap='/scratch/kocevski/679965/expmap_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.fits', expCube='/scratch/kocevski/679965/ltcube_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/679965/Model_4FGL_J2141.8-3727_daily_bin622.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/679965/ft1_filtered_4FGL_J2141.8-3727_daily_bin622.fits
Spacecraft file(s): /scratch/kocevski/679965/ft2_4FGL_J2141.8-3727_daily_bin622.fits
Exposure map: /scratch/kocevski/679965/expmap_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.fits
Exposure cube: /scratch/kocevski/679965/ltcube_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/679965/Model_4FGL_J2141.8-3727_daily_bin622.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) = 6313.33435237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    127.24       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.244       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.6370       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.986       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0971       1.0000         .10000E-03   10000.    
    11 'norm      '    23.561       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.649       1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.734       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7119       1.0000         .10000E-03   10000.    
    15 'norm      '    .75625       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.829       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.088       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91301       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0851       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=   6313.331     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2511 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     127.24        94.523        .12741E-05   -.28546E-07
   2  Prefactor     .10000E-03    54.126        .64237E-05** at limit **
   3  Prefactor     .10000E-03    20.601       -.12431E-06** at limit **
   4  Prefactor     11.243        9.8735        .25331E-06   -.59279E-04
   5  Prefactor     .10000E-03    9.9784        .29177E-07** at limit **
   6  norm          5.6371        5.6993       -.37286E-07    .84557E-04
   7  norm          .10000E-03    1.5115       -.30999E-07** at limit **
   8  Prefactor     .10000E-03    6.9224       -.37453E-07** at limit **
   9  Prefactor     16.986        18.246       -.17694E-05    .23952E-05
  10  Prefactor     1.0926        1.4047        .16507E-06   -.62292E-03
  11  norm          23.561        11.261        .53663E-07    .41163E-04
  12  Prefactor     14.650        14.923       -.26621E-05    .58800E-05
  13  Prefactor     68.753        61.658        .18996E-04    .29435E-04
  14  norm          1.7089        4.5716       -.20095E-05   -.20038E-03
  15  norm          .75633        .32182       -.24787E-07   -.12200E-04
  16  Prefactor     13.826        37.292       -.59725E-05   -.12902E-05
  17  Prefactor     .10000E-03    2.1214        .42179E-08** at limit **
  18  Prefactor     4.6561        3.8755        .10395E-06    .38665E-04
  19  Prefactor     .10000E-03    56.109       -.62686E-05** at limit **
  20  Prefactor     .10000E-03    7.7584       -.14109E-07** at limit **
  21  Prefactor     19.085        21.373       -.79845E-06    .82625E-05
  22  Normalizat    .91311        .20502       -.80750E-06    .37111E-04
  23  Prefactor     1.0850        .13391        .13171E-06   -.30940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 127.237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2434
  Prefactor  = 0.0001
  norm       = 5.63709
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.986
  Prefactor  = 1.09259
  norm       = 23.5609
  Prefactor  = 14.65
  Prefactor  = 68.7534
  norm       = 1.70889
  norm       = 0.756326
  Prefactor  = 13.8257
  Prefactor  = 0.0001
  Prefactor  = 4.65614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0854
  Normalizat = 0.91311
  Prefactor  = 1.08503
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.331     FROM HESSE     STATUS=OK           370 CALLS     2881 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     127.24        94.559        .35689E-04   -1.3447    
   2  Prefactor     .10000E-03    55.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.243        9.9171        .59737E-03   -1.5037    
   5  Prefactor     .10000E-03    9.9907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.6371        5.7061        .84598E-03   -1.5233    
   7  norm          .10000E-03    1.5247        .95384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.986        18.244        .97179E-04   -1.4883    
  10  Prefactor     1.0926        14.051        .22734E-02   -1.5499    
  11  norm          23.561        11.252        .82523E-04   -1.4737    
  12  Prefactor     14.650        14.895        .10465E-03   -1.4942    
  13  Prefactor     68.753        61.725        .48415E-04   -1.4048    
  14  norm          1.7089        4.5302        .24998E-03   -1.5447    
  15  norm          .75633        .32238        .28138E-04   -1.5534    
  16  Prefactor     13.826        37.349        .10771E-03   -1.4964    
  17  Prefactor     .10000E-03    2.1266        .11301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6561        3.8839        .13757E-03   -1.5276    
  19  Prefactor     .10000E-03    56.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.085        21.433        .91675E-04   -1.4834    
  22  Normalizat    .91311        .23659        .31131E-03   -.96001    
  23  Prefactor     1.0850        .15334        .19736E-03   -.89947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10251e-09
Minuit parameter uncertainties:
  1  94.6713
  2  8.26318e-05
  3  5.29977e-06
  4  9.91859
  5  3.27489e-06
  6  5.70661
  7  1.16373e-06
  8  6.47359e-06
  9  18.2499
  10  7.83835
  11  11.2529
  12  14.899
  13  61.7829
  14  4.53109
  15  0.322385
  16  37.4123
  17  9.81954e-07
  18  3.8841
  19  5.27001e-05
  20  3.73833e-06
  21  21.4413
  22  0.236857
  23  0.153407
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  6.474e-06  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.085e+00  1.534e-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:  9.131e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/679965/likelihoodResults_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.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): 102
logL (Free Index) = 6313.33142938
delta logL = -0.000678793521729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6313.33075018
delta logL = 4.16259354097e-07

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 'Index     '    2.6570       1.0000          .0000       10.000    
     3 'Normalizat'    .91316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0850       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6313.331     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    1261.3        .18142E-02** at limit **
   2  Index         2.7078        5.0995        .50000       -.65998E-04
   3  Normalizat    .91311        .84155E-01    .31131E-03    .12015E-04
   4  Prefactor     1.0850        .57937E-01    .19736E-03   -.23951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100038
  Index      = 2.70784
  Normalizat = 0.91311
  Prefactor  = 1.08503
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.331     FROM HESSE     STATUS=OK            29 CALLS      307 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    10.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7078        6.3529        .50000       -.47623    
   3  Normalizat    .91311        .21949        .12452E-04   -.96001    
   4  Prefactor     1.0850        .15147        .39473E-04   -.89947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07303e-09
Minuit parameter uncertainties:
  1  0.00126835
  2  4.98976
  3  0.219701
  4  0.15153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/679965': 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) = 6313.3307494
delta logL = 1.19159449241e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.268e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.708e+00  4.990e+00  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.085e+00  1.515e-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:  9.131e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.462 -37.455

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/679965/cmap_HighResolution_400550401_400809601_4FGL_J2141.8-3727_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.19e-03', job_status='DONE', photon_flux_upper_limit='9.18e-08', time_completed='2021-09-27 00:19:05.378669', job_id='679965', GAL2='1.09', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632727145.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='622' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:19:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 679965: <4FGL_J2141.8-3727_daily_bin622> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin622> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:05:45 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:06:34 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:06:34 2021
Terminated at Mon Sep 27 00:19:06 2021
Results reported at Mon Sep 27 00:19:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin622 325.462 -37.4545 400550401 400809601 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 :                                   652.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            801 sec.

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

