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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1161
RA = 325.462, Dec = -37.4545
tmin = 540259201, tmax = 540518401
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='682872', job_status='RUN', time_executed='2021-09-27 00:19:09.148078', time_epoch_executed='1632727149.15' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682872

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682872/ft1_4FGL_J2141.8-3727_daily_bin1161.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682872/ft2_4FGL_J2141.8-3727_daily_bin1161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682872/ft1_4FGL_J2141.8-3727_daily_bin1161.fits outfile=/scratch/kocevski/682872/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1161.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=540259201.0 tmax=540518401.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.55
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682872/ft1_filtered_4FGL_J2141.8-3727_daily_bin1161.fits" evtable="EVENTS" scfile=/scratch/kocevski/682872/ft2_4FGL_J2141.8-3727_daily_bin1161.fits sctable="SC_DATA" outfile=/scratch/kocevski/682872/ltcube_540259201_540518401_4FGL_J2141.8-3727_daily_bin1161.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/682872/ft2_4FGL_J2141.8-3727_daily_bin1161.fits
.....................!
real 12.36
user 11.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682872/ft1_filtered_4FGL_J2141.8-3727_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/682872/ft2_4FGL_J2141.8-3727_daily_bin1161.fits sctable="SC_DATA" expcube=/scratch/kocevski/682872/ltcube_540259201_540518401_4FGL_J2141.8-3727_daily_bin1161.fits outfile=/scratch/kocevski/682872/expmap_540259201_540518401_4FGL_J2141.8-3727_daily_bin1161.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/682872/ltcube_540259201_540518401_4FGL_J2141.8-3727_daily_bin1161.fits
.....................!
real 190.08
user 185.06
sys 4.35

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/682872/ft1_filtered_4FGL_J2141.8-3727_daily_bin1161.fits scfile=/scratch/kocevski/682872/ft2_4FGL_J2141.8-3727_daily_bin1161.fits outfile=/scratch/kocevski/682872/cmap_540259201_540518401_4FGL_J2141.8-3727_daily_bin1161.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682872/ft1_filtered_4FGL_J2141.8-3727_daily_bin1161.fits scfile=/scratch/kocevski/682872/ft2_4FGL_J2141.8-3727_daily_bin1161.fits outfile=/scratch/kocevski/682872/cmap_HighResolution_540259201_540518401_4FGL_J2141.8-3727_daily_bin1161.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682872/ft1_filtered_4FGL_J2141.8-3727_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/682872/ft2_4FGL_J2141.8-3727_daily_bin1161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682872/Model_4FGL_J2141.8-3727_daily_bin1161.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/682872/ft1_filtered_4FGL_J2141.8-3727_daily_bin1161.fits.....................!
real 56.78
user 55.49
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28873E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43738E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.643       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3721       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .88018       1.0000         .10000E-03   10000.    
    15 'norm      '    .94603       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.627       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2334       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95405       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=   6999.998     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2618 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.895       -.41555E-05** at limit **
   2  Prefactor     .10033E-03    15.249       -.29544E-05** at limit **
   3  Prefactor     .10003E-03    32.852        .39937E-05** at limit **
   4  Prefactor     2.2011        7.0779       -.41930E-05    .26543E-03
   5  Prefactor     14.643        21.081        .44718E-07    .45182E-04
   6  norm          .10000E-03    5.0697       -.27229E-07** at limit **
   7  norm          14.631        5.4219        .12871E-06    .19582E-03
   8  Prefactor     36.643        12.560       -.19176E-06    .13929E-03
   9  Prefactor     11.648        12.426        .34952E-06    .15130E-04
  10  Prefactor     .10000E-03    3.7784       -.22478E-07** at limit **
  11  norm          4.3718        5.4011       -.14245E-06    .20446E-04
  12  Prefactor     .10000E-03    14.950        .16369E-05** at limit **
  13  Prefactor     .10000E-03    45.049        .36801E-05** at limit **
  14  norm          .87973        3.4682       -.11392E-05    .27253E-03
  15  norm          .94599        .39496        .15652E-06    .58686E-03
  16  Prefactor     33.621        44.349        .37216E-06    .58571E-04
  17  Prefactor     .10000E-03    9.6001       -.34012E-06** at limit **
  18  Prefactor     .10000E-03    19.430        .52091E-05** at limit **
  19  Prefactor     .10000E-03    21.265        .43066E-05** at limit **
  20  Prefactor     .10000E-03    4.7888       -.35310E-08** at limit **
  21  Prefactor     .10000E-03    8.9742        .17848E-07** at limit **
  22  Normalizat    1.2336        .20510        .28574E-05    .36825E-03
  23  Prefactor     .95390        .12449        .23509E-06    .63717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100327
  Prefactor  = 0.000100027
  Prefactor  = 2.20106
  Prefactor  = 14.6427
  norm       = 0.0001
  norm       = 14.631
  Prefactor  = 36.6434
  Prefactor  = 11.6479
  Prefactor  = 0.0001
  norm       = 4.37177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.879731
  norm       = 0.945993
  Prefactor  = 33.621
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23355
  Prefactor  = 0.953905
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.998     FROM HESSE     STATUS=OK           378 CALLS     2996 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10033E-03    12.363        .94188E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    128.02        .65070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2011        7.0962        .27733E-03   -1.5411    
   5  Prefactor     14.643        21.063        .10467E-03   -1.4942    
   6  norm          .10000E-03    5.1199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.631        5.4217        .10471E-03   -1.4943    
   8  Prefactor     36.643        12.593        .66204E-04   -1.4497    
   9  Prefactor     11.648        12.417        .11738E-03   -1.5025    
  10  Prefactor     .10000E-03    3.7890        .15878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3718        5.3916        .19263E-03   -1.5290    
  12  Prefactor     .10000E-03    14.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .87973        5.7910        .26900E-02   -1.5520    
  15  norm          .94599        .39341        .31302E-04   -1.5513    
  16  Prefactor     33.621        44.561        .69103E-04   -1.4548    
  17  Prefactor     .10000E-03    10.012        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.322        .24951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7891        .17882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2336        .23263        .28906E-03   -.85572    
  23  Prefactor     .95390        .14291        .21047E-03   -.94282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10609e-09
Minuit parameter uncertainties:
  1  0.00035055
  2  0.00402113
  3  0.00373854
  4  7.09888
  5  21.0738
  6  6.96052e-06
  7  5.42187
  8  12.5936
  9  12.4197
  10  7.88611e-06
  11  5.39217
  12  2.69552e-05
  13  0.000219688
  14  4.51459
  15  0.393407
  16  44.6053
  17  6.21638e-05
  18  0.000433459
  19  0.000296573
  20  1.87844e-06
  21  9.41574e-06
  22  0.232826
  23  0.142967
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  3.664e+01  1.259e+01  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:  9.539e-01  1.430e-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.234e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.40
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 1.96e-07 +/- 6.72e-08
Energy Flux (Fixed Index): 5.03e-05 +/- 1.73e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6999.91956418
delta logL = 0.077962688857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6999.9030019
delta logL = 0.0945249739334

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.628       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4754       1.0000          .0000       10.000    
     3 'Normalizat'    1.2504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94685       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=   6999.903     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      267 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.628        15.079        .63673E-04   -.23054E-03
   2  Index         2.4753        .33482        .51685E-02   -.11805E-03
   3  Normalizat    1.2504        .22229        .28749E-03    .24122E-04
   4  Prefactor     .94685        .14166        .21117E-03    .39140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.6284
  Index      = 2.47531
  Normalizat = 1.25039
  Prefactor  = 0.946852
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.903     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.628        14.916        .12735E-04   -1.4448    
   2  Index         2.4753        .33097        .20674E-03   -.52931    
   3  Normalizat    1.2504        .22245        .11500E-04   -.85060    
   4  Prefactor     .94685        .14174        .84467E-05   -.94523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19144e-11
Minuit parameter uncertainties:
  1  14.917
  2  0.331291
  3  0.222618
  4  0.141796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682872': 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) = 6999.90300188
delta logL = 0.0945249868673

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  3.963e+01  1.492e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.475e+00  3.313e-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:  9.469e-01  1.418e-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.250e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.51
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 2.48 +/- 0.33
Photon Flux (Free Index): 1.81e-07 +/- 7.28e-08
Energy Flux (Free Index): 5.41e-05 +/- 2.14e-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/682872/cmap_HighResolution_540259201_540518401_4FGL_J2141.8-3727_daily_bin1161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.96e-07', energy_flux2='5.41e-05', photon_flux_error='6.72e-08', dlogl='9.45e-02', energy_flux='5.03e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-27 00:29:52.516668', photon_index_error2='0.33', photon_index2='2.48', ts='17.40', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.23', time_epoch_completed='1632727792.52', return_code='0', job_id='682872', GAL2='0.95', EG2='1.25', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='7.28e-08', ts2='17.51', photon_index='2.62' WHERE bin_id='1161' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:29:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 682872: <4FGL_J2141.8-3727_daily_bin1161> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1161 325.462 -37.4545 540259201 540518401 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 :                                   628.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            856 sec.

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

