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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1132
RA = 325.462, Dec = -37.4545
tmin = 532742401, tmax = 533001601
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='682823', job_status='RUN', time_executed='2021-09-27 00:19:52.242100', time_epoch_executed='1632727192.24' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682823

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682823/ft1_4FGL_J2141.8-3727_daily_bin1132.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682823/ft2_4FGL_J2141.8-3727_daily_bin1132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682823/ft1_4FGL_J2141.8-3727_daily_bin1132.fits outfile=/scratch/kocevski/682823/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1132.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=532742401.0 tmax=533001601.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.04
user 2.81
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682823/ft2_4FGL_J2141.8-3727_daily_bin1132.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/682823/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1132.fits evtable="EVENTS" outfile="/scratch/kocevski/682823/ft1_filtered_4FGL_J2141.8-3727_daily_bin1132.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682823/ft1_filtered_4FGL_J2141.8-3727_daily_bin1132.fits" evtable="EVENTS" scfile=/scratch/kocevski/682823/ft2_4FGL_J2141.8-3727_daily_bin1132.fits sctable="SC_DATA" outfile=/scratch/kocevski/682823/ltcube_532742401_533001601_4FGL_J2141.8-3727_daily_bin1132.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/682823/ft2_4FGL_J2141.8-3727_daily_bin1132.fits
.....................!
real 12.68
user 12.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682823/ft1_filtered_4FGL_J2141.8-3727_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/682823/ft2_4FGL_J2141.8-3727_daily_bin1132.fits sctable="SC_DATA" expcube=/scratch/kocevski/682823/ltcube_532742401_533001601_4FGL_J2141.8-3727_daily_bin1132.fits outfile=/scratch/kocevski/682823/expmap_532742401_533001601_4FGL_J2141.8-3727_daily_bin1132.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/682823/ltcube_532742401_533001601_4FGL_J2141.8-3727_daily_bin1132.fits
.....................!
real 156.87
user 152.28
sys 4.16

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/682823/ft1_filtered_4FGL_J2141.8-3727_daily_bin1132.fits scfile=/scratch/kocevski/682823/ft2_4FGL_J2141.8-3727_daily_bin1132.fits outfile=/scratch/kocevski/682823/cmap_532742401_533001601_4FGL_J2141.8-3727_daily_bin1132.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.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682823/ft1_filtered_4FGL_J2141.8-3727_daily_bin1132.fits scfile=/scratch/kocevski/682823/ft2_4FGL_J2141.8-3727_daily_bin1132.fits outfile=/scratch/kocevski/682823/cmap_HighResolution_532742401_533001601_4FGL_J2141.8-3727_daily_bin1132.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.48
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682823/ft1_filtered_4FGL_J2141.8-3727_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/682823/ft2_4FGL_J2141.8-3727_daily_bin1132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682823/Model_4FGL_J2141.8-3727_daily_bin1132.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/682823/ft1_filtered_4FGL_J2141.8-3727_daily_bin1132.fits....................!
real 39.28
user 37.84
sys 0.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10457E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4547       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.0363       1.0000         .10000E-03   10000.    
     7 'norm      '    51.977       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10597E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6923       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4942       1.0000         .10000E-03   10000.    
    14 'norm      '    16.872       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9149       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9203       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85276       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=   5284.845     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2175 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.517       -.44230E-06** at limit **
   2  Prefactor     .10000E-03    46.622        .15041E-05** at limit **
   3  Prefactor     .10000E-03    10.773       -.42044E-07** at limit **
   4  Prefactor     1.4563        11.602        .79979E-06   -.17767E-05
   5  Prefactor     .10000E-03    22.089       -.65281E-06** at limit **
   6  norm          6.0358        13.105        .10365E-05   -.63173E-05
   7  norm          51.979        11.321       -.39489E-08   -.11622E-03
   8  Prefactor     .10059E-03    9.0122        .97056E-06** at limit **
   9  Prefactor     2.1286        27.132        .53725E-05   -.15471E-04
  10  Prefactor     4.6840        11.787        .12935E-05   -.11390E-03
  11  norm          .10000E-03    4.4717        .14240E-07** at limit **
  12  Prefactor     .10001E-03    39.625       -.56519E-05** at limit **
  13  Prefactor     4.4147        166.88        .17671E-04   -.90353E-05
  14  norm          16.874        9.1280       -.30061E-06   -.10997E-03
  15  norm          2.9149        .77240       -.17354E-07   -.18088E-03
  16  Prefactor     .10000E-03    11.104        .41624E-07** at limit **
  17  Prefactor     .10000E-03    8.3693        .75970E-09** at limit **
  18  Prefactor     9.9225        6.5535        .58270E-07   -.14039E-04
  19  Prefactor     .10000E-03    28.123       -.90867E-06** at limit **
  20  Prefactor     .10000E-03    8.8225        .64239E-08** at limit **
  21  Prefactor     .10000E-03    24.236        .14075E-05** at limit **
  22  Normalizat    1.1468        .23285       -.46877E-06   -.14051E-03
  23  Prefactor     .85283        .13949       -.54760E-06   -.15330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.45635
  Prefactor  = 0.0001
  norm       = 6.0358
  norm       = 51.9794
  Prefactor  = 0.000100593
  Prefactor  = 2.12862
  Prefactor  = 4.684
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 4.41471
  norm       = 16.8741
  norm       = 2.91493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.92249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14679
  Prefactor  = 0.852834
 **********
 **   18 **HESSE 
 **********

 FCN=   5284.845     FROM HESSE     STATUS=OK           368 CALLS     2543 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4563        11.543        .35702E-03   -1.5467    
   5  Prefactor     .10000E-03    22.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0358        13.107        .81711E-03   -1.5217    
   7  norm          51.979        11.314        .55630E-04   -1.4265    
   8  Prefactor     .10059E-03    148.68        .39186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1286        27.067        .14128E-02   -1.5416    
  10  Prefactor     4.6840        11.551        .92887E-03   -1.5275    
  11  norm          .10000E-03    4.4820        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    41.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4147        168.48        .18992E-03   -1.5288    
  14  norm          16.874        9.1898        .97506E-04   -1.4886    
  15  norm          2.9149        .77572        .29830E-04   -1.5366    
  16  Prefactor     .10000E-03    11.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9225        6.5966        .12722E-03   -1.5078    
  19  Prefactor     .10000E-03    28.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1468        .26305        .30641E-03   -.88263    
  23  Prefactor     .85283        .15867        .22048E-03   -.97809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75607e-09
Minuit parameter uncertainties:
  1  4.14278e-05
  2  7.67446e-05
  3  3.33174e-06
  4  8.20207
  5  2.30874e-05
  6  13.1128
  7  11.3149
  8  0.0188334
  9  15.1891
  10  11.5561
  11  4.96301e-07
  12  0.000929574
  13  54.7113
  14  9.19054
  15  0.775722
  16  1.23669e-07
  17  5.42182e-06
  18  6.59711
  19  3.91564e-05
  20  8.15856e-07
  21  4.58161e-05
  22  0.263354
  23  0.158755
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.006e-04  1.883e-02  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:  8.528e-01  1.588e-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:  1.147e+00  2.634e-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: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682823/likelihoodResults_532742401_533001601_4FGL_J2141.8-3727_daily_bin1132.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) = 5284.84455919
delta logL = -3.09477009068e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5284.84455912
delta logL = -3.08728021992e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96318E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6228       1.0000          .0000       10.000    
     3 'Normalizat'    1.1467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85288       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=   5284.827     FROM MIGRAD    STATUS=CONVERGED    176 CALLS      339 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1763        15.520        .18143E-02    .86642E-03
   2  Index         3.2501        2.7910        .11675E-01    .45212E-04
   3  Normalizat    1.1354        .25045        .30772E-03   -.29556E-05
   4  Prefactor     .85533        .15444        .22017E-03   -.35113E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17632
  Index      = 3.25009
  Normalizat = 1.13543
  Prefactor  = 0.855331
 **********
 **   18 **HESSE 
 **********

 FCN=   5284.827     FROM HESSE     STATUS=OK            27 CALLS      366 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1763        11.368        .36287E-03   -1.5491    
   2  Index         3.2501        2.4392        .23350E-02   -.35755    
   3  Normalizat    1.1354        .24996        .12309E-04   -.88622    
   4  Prefactor     .85533        .15454        .88067E-05   -.97720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01358e-13
Minuit parameter uncertainties:
  1  7.31526
  2  2.56564
  3  0.250218
  4  0.154619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682823': 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) = 5284.82667132
delta logL = 0.0178569247555

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.176e+00  7.315e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.250e+00  2.566e+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:  8.553e-01  1.546e-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:  1.135e+00  2.502e-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/682823/cmap_HighResolution_532742401_533001601_4FGL_J2141.8-3727_daily_bin1132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-27 00:28:45.106538', job_id='682823', GAL2='0.86', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1632727725.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.79e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1132' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:28:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 682823: <4FGL_J2141.8-3727_daily_bin1132> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1132> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:15:34 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:18:09 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:18:09 2021
Terminated at Mon Sep 27 00:28:45 2021
Results reported at Mon Sep 27 00:28:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1132 325.462 -37.4545 532742401 533001601 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 :                                   477.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            791 sec.

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

