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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin912
RA = 325.462, Dec = -37.4545
tmin = 475718401, tmax = 475977601
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='681478', job_status='RUN', time_executed='2021-09-27 00:12:46.812120', time_epoch_executed='1632726766.81' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='912'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681478/ft1_4FGL_J2141.8-3727_daily_bin912.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681478/ft2_4FGL_J2141.8-3727_daily_bin912.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681478/ft1_4FGL_J2141.8-3727_daily_bin912.fits outfile=/scratch/kocevski/681478/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin912.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=475718401.0 tmax=475977601.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.53
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681478/ft1_filtered_4FGL_J2141.8-3727_daily_bin912.fits" evtable="EVENTS" scfile=/scratch/kocevski/681478/ft2_4FGL_J2141.8-3727_daily_bin912.fits sctable="SC_DATA" outfile=/scratch/kocevski/681478/ltcube_475718401_475977601_4FGL_J2141.8-3727_daily_bin912.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/681478/ft2_4FGL_J2141.8-3727_daily_bin912.fits
.....................!
real 13.96
user 13.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681478/ft1_filtered_4FGL_J2141.8-3727_daily_bin912.fits evtable="EVENTS" scfile=/scratch/kocevski/681478/ft2_4FGL_J2141.8-3727_daily_bin912.fits sctable="SC_DATA" expcube=/scratch/kocevski/681478/ltcube_475718401_475977601_4FGL_J2141.8-3727_daily_bin912.fits outfile=/scratch/kocevski/681478/expmap_475718401_475977601_4FGL_J2141.8-3727_daily_bin912.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/681478/ltcube_475718401_475977601_4FGL_J2141.8-3727_daily_bin912.fits
.....................!
real 193.71
user 187.92
sys 5.32

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/681478/ft1_filtered_4FGL_J2141.8-3727_daily_bin912.fits scfile=/scratch/kocevski/681478/ft2_4FGL_J2141.8-3727_daily_bin912.fits outfile=/scratch/kocevski/681478/cmap_475718401_475977601_4FGL_J2141.8-3727_daily_bin912.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681478/ft1_filtered_4FGL_J2141.8-3727_daily_bin912.fits scfile=/scratch/kocevski/681478/ft2_4FGL_J2141.8-3727_daily_bin912.fits outfile=/scratch/kocevski/681478/cmap_HighResolution_475718401_475977601_4FGL_J2141.8-3727_daily_bin912.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 1.01
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681478/ft1_filtered_4FGL_J2141.8-3727_daily_bin912.fits evtable="EVENTS" scfile=/scratch/kocevski/681478/ft2_4FGL_J2141.8-3727_daily_bin912.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681478/Model_4FGL_J2141.8-3727_daily_bin912.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/681478/ft1_filtered_4FGL_J2141.8-3727_daily_bin912.fits.....................!
real 73.09
user 71.69
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17512E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3069       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .97571       1.0000         .10000E-03   10000.    
     7 'norm      '    12.941       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8304       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.010       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7422       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21129E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6671       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8525       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .59262E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2739       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.199       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0198       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1301       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=   10117.98     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2220 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.083        .88152E-07** at limit **
   2  Prefactor     .10000E-03    25.765       -.42926E-08** at limit **
   3  Prefactor     12.725        16.231       -.14200E-05   -.29569E-03
   4  Prefactor     2.3050        5.0314        .45958E-06   -.20001E-03
   5  Prefactor     .10000E-03    11.459       -.15761E-05** at limit **
   6  norm          .97379        4.3101        .26666E-05   -.29484E-03
   7  norm          12.941        4.5916        .88011E-08    .73900E-04
   8  Prefactor     4.8299        4.8595        .11007E-06    .72523E-05
   9  Prefactor     10.008        9.7189        .26902E-06    .11374E-03
  10  Prefactor     4.7429        5.5319        .29439E-06    .13046E-03
  11  norm          4.3036        6.4459        .62116E-06    .12036E-03
  12  Prefactor     .10000E-03    7.6081       -.14632E-07** at limit **
  13  Prefactor     .10000E-03    46.284       -.10931E-06** at limit **
  14  norm          1.6652        3.0591        .52816E-06   -.19866E-03
  15  norm          1.8524        .41682       -.16817E-07   -.12424E-03
  16  Prefactor     .10009E-03    29.608        .51331E-07** at limit **
  17  Prefactor     .10000E-03    3.9776        .47797E-07** at limit **
  18  Prefactor     4.2729        3.5192        .12033E-06   -.70985E-04
  19  Prefactor     .10000E-03    11.418        .15136E-05** at limit **
  20  Prefactor     16.199        12.971        .19564E-06    .57258E-04
  21  Prefactor     .10000E-03    5.6823        .18189E-07** at limit **
  22  Normalizat    1.0198        .16365       -.68405E-06   -.25236E-04
  23  Prefactor     1.1302        .10693        .88026E-07   -.10023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7246
  Prefactor  = 2.30497
  Prefactor  = 0.000100001
  norm       = 0.97379
  norm       = 12.9409
  Prefactor  = 4.82994
  Prefactor  = 10.0076
  Prefactor  = 4.74295
  norm       = 4.30364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66517
  norm       = 1.85243
  Prefactor  = 0.000100092
  Prefactor  = 0.0001
  Prefactor  = 4.27286
  Prefactor  = 0.000100001
  Prefactor  = 16.1992
  Prefactor  = 0.0001
  Normalizat = 1.01982
  Prefactor  = 1.13024
 **********
 **   18 **HESSE 
 **********

 FCN=   10117.98     FROM HESSE     STATUS=OK           380 CALLS     2600 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.725        16.832        .11233E-03   -1.4994    
   4  Prefactor     2.3050        5.0662        .27015E-03   -1.5404    
   5  Prefactor     .10000E-03    11.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .97379        4.5884        .42030E-03   -1.5511    
   7  norm          12.941        4.5922        .11135E-03   -1.4988    
   8  Prefactor     4.8299        4.8542        .18304E-03   -1.5268    
   9  Prefactor     10.008        9.7427        .12665E-03   -1.5075    
  10  Prefactor     4.7429        5.5331        .18477E-03   -1.5272    
  11  norm          4.3036        6.4458        .19415E-03   -1.5293    
  12  Prefactor     .10000E-03    7.6326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6652        3.0443        .22149E-03   -1.5450    
  15  norm          1.8524        .41684        .28885E-04   -1.5436    
  16  Prefactor     .10009E-03    27.733        .14543       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2729        3.5223        .16543E-03   -1.5295    
  19  Prefactor     .10000E-03    11.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.199        12.986        .99513E-04   -1.4903    
  21  Prefactor     .10000E-03    5.6895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0198        .18433        .30902E-03   -.92369    
  23  Prefactor     1.1302        .12083        .19994E-03   -.88506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22449e-10
Minuit parameter uncertainties:
  1  1.45766e-05
  2  1.66965e-05
  3  16.8386
  4  5.06712
  5  0.000212471
  6  4.22789
  7  4.59236
  8  4.8546
  9  9.74424
  10  5.53366
  11  6.44685
  12  3.75567e-06
  13  4.84156e-05
  14  3.04455
  15  0.416845
  16  0.00319171
  17  2.9347e-06
  18  3.52249
  19  0.000208938
  20  12.9886
  21  1.21303e-06
  22  0.184446
  23  0.120856
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  4.830e+00  4.855e+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.130e+00  1.209e-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.020e+00  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 6.62e-06 +/- 6.66e-06

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

Saving results to:
/scratch/kocevski/681478/likelihoodResults_475718401_475977601_4FGL_J2141.8-3727_daily_bin912.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) = 10117.7117069
delta logL = 0.267185697052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10117.7094206
delta logL = 0.269472015272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8289       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9734       1.0000          .0000       10.000    
     3 'Normalizat'    1.0345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1247       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.

 FCN=   10117.71     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      204 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7857        4.9933        .45767E-02    .78578E-03
   2  Index         1.9707        .57833        .25944       -.80183E-04
   3  Normalizat    1.0346        .15595        .69402E-01    .24395E-04
   4  Prefactor     1.1247        .10575        .36716E-01    .19747E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78573
  Index      = 1.9707
  Normalizat = 1.03463
  Prefactor  = 1.1247
 **********
 **   18 **HESSE 
 **********

 FCN=   10117.71     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7857        5.1252        .91534E-03   -1.5270    
   2  Index         1.9707        .75317        .13673E-01   -.65085    
   3  Normalizat    1.0346        .17542        .30705E-03   -.91879    
   4  Prefactor     1.1247        .11917        .20035E-03   -.88681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7336e-09
Minuit parameter uncertainties:
  1  5.12571
  2  0.757741
  3  0.175516
  4  0.119196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681478': 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) = 10117.7093863
delta logL = 0.269506345419

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  4.786e+00  5.126e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.971e+00  7.577e-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.125e+00  1.192e-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.035e+00  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 1.97 +/- 0.76
Photon Flux (Free Index): 1.41e-08 +/- 1.89e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.51e-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/681478/cmap_HighResolution_475718401_475977601_4FGL_J2141.8-3727_daily_bin912.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='1.05e-05', photon_flux_error='2.59e-08', dlogl='2.70e-01', energy_flux='6.62e-06', photon_flux2='1.41e-08', job_status='DONE', time_completed='2021-09-27 00:26:34.958711', photon_index_error2='0.76', photon_index2='1.97', ts='2.10', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='9.00e-08', energy_flux_error2='1.51e-05', EG='1.02', time_epoch_completed='1632727594.96', return_code='0', job_id='681478', GAL2='1.12', EG2='1.03', return_code2='0', energy_flux_error='6.66e-06', photon_flux_error2='1.89e-08', ts2='2.64', photon_index='2.62' WHERE bin_id='912' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 681478: <4FGL_J2141.8-3727_daily_bin912> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin912> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:10:41 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:12:27 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:12:27 2021
Terminated at Mon Sep 27 00:26:35 2021
Results reported at Mon Sep 27 00:26:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin912 325.462 -37.4545 475718401 475977601 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 :                                   817.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            954 sec.

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

