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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1457
RA = 325.462, Dec = -37.4545
tmin = 616982401, tmax = 617241601
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='684391', job_status='RUN', time_executed='2021-09-27 00:23:51.012797', time_epoch_executed='1632727431.01' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684391

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684391/ft1_4FGL_J2141.8-3727_daily_bin1457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684391/ft2_4FGL_J2141.8-3727_daily_bin1457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684391/ft1_4FGL_J2141.8-3727_daily_bin1457.fits outfile=/scratch/kocevski/684391/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1457.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=616982401.0 tmax=617241601.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.67
user 2.84
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684391/ft2_4FGL_J2141.8-3727_daily_bin1457.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/684391/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1457.fits evtable="EVENTS" outfile="/scratch/kocevski/684391/ft1_filtered_4FGL_J2141.8-3727_daily_bin1457.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.59
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684391/ft1_filtered_4FGL_J2141.8-3727_daily_bin1457.fits" evtable="EVENTS" scfile=/scratch/kocevski/684391/ft2_4FGL_J2141.8-3727_daily_bin1457.fits sctable="SC_DATA" outfile=/scratch/kocevski/684391/ltcube_616982401_617241601_4FGL_J2141.8-3727_daily_bin1457.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/684391/ft2_4FGL_J2141.8-3727_daily_bin1457.fits
.....................!
real 16.67
user 16.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684391/ft1_filtered_4FGL_J2141.8-3727_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/684391/ft2_4FGL_J2141.8-3727_daily_bin1457.fits sctable="SC_DATA" expcube=/scratch/kocevski/684391/ltcube_616982401_617241601_4FGL_J2141.8-3727_daily_bin1457.fits outfile=/scratch/kocevski/684391/expmap_616982401_617241601_4FGL_J2141.8-3727_daily_bin1457.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/684391/ltcube_616982401_617241601_4FGL_J2141.8-3727_daily_bin1457.fits
.....................!
real 191.73
user 186.46
sys 4.67

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/684391/ft1_filtered_4FGL_J2141.8-3727_daily_bin1457.fits scfile=/scratch/kocevski/684391/ft2_4FGL_J2141.8-3727_daily_bin1457.fits outfile=/scratch/kocevski/684391/cmap_616982401_617241601_4FGL_J2141.8-3727_daily_bin1457.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684391/ft1_filtered_4FGL_J2141.8-3727_daily_bin1457.fits scfile=/scratch/kocevski/684391/ft2_4FGL_J2141.8-3727_daily_bin1457.fits outfile=/scratch/kocevski/684391/cmap_HighResolution_616982401_617241601_4FGL_J2141.8-3727_daily_bin1457.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/684391/ft1_filtered_4FGL_J2141.8-3727_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/684391/ft2_4FGL_J2141.8-3727_daily_bin1457.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684391/Model_4FGL_J2141.8-3727_daily_bin1457.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/684391/ft1_filtered_4FGL_J2141.8-3727_daily_bin1457.fits.......................!
real 17.02
user 15.64
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39439E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4726.8       1.0000         .10000E-03   10000.    
     4 'Prefactor '    140.51       1.0000         .10000E-03   10000.    
     5 'Prefactor '    111.66       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10858E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29237E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16800E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    79.422       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9446       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.347       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3375       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .37609       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=   552.4431     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2925 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9806.6        .33470E-03** at limit **
   2  Prefactor     .10000E-03    9199.5       -.12114E-02** at limit **
   3  Prefactor     4727.2        3468.0        .79839E-04    .77495E-05
   4  Prefactor     140.54        143.82        .19635E-04    .36603E-04
   5  Prefactor     111.59        376.18       -.65107E-04    .34598E-04
   6  norm          .10000E-03    69.208        .11956E-04** at limit **
   7  norm          .10001E-03    46.575       -.15487E-04** at limit **
   8  Prefactor     .10000E-03    26.522       -.18942E-04** at limit **
   9  Prefactor     .10000E-03    93.275        .26939E-04** at limit **
  10  Prefactor     .10000E-03    18.450        .30176E-06** at limit **
  11  norm          .10000E-03    28.889        .26919E-04** at limit **
  12  Prefactor     .10000E-03    73.990        .20718E-04** at limit **
  13  Prefactor     .10000E-03    430.30       -.10185E-03** at limit **
  14  norm          .10000E-03    116.42       -.28028E-04** at limit **
  15  norm          .10000E-03    1.1272       -.28575E-06** at limit **
  16  Prefactor     79.404        141.85       -.19228E-04    .62747E-05
  17  Prefactor     .10000E-03    13.841       -.10179E-06** at limit **
  18  Prefactor     5.9408        11.954       -.44823E-06    .18176E-04
  19  Prefactor     .10000E-03    43.832       -.97061E-05** at limit **
  20  Prefactor     29.339        47.562       -.85328E-05    .30325E-04
  21  Prefactor     .10000E-03    116.99       -.24643E-04** at limit **
  22  Normalizat    1.3380        .64552        .93988E-06    .15675E-03
  23  Prefactor     .37584        .52635        .95196E-05    .84386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 4727.15
  Prefactor  = 140.537
  Prefactor  = 111.592
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 79.4041
  Prefactor  = 0.0001
  Prefactor  = 5.94076
  Prefactor  = 0.0001
  Prefactor  = 29.3385
  Prefactor  = 0.0001
  Normalizat = 1.33797
  Prefactor  = 0.375835
 **********
 **   18 **HESSE 
 **********

 FCN=   552.4431     FROM HESSE     STATUS=OK           350 CALLS     3275 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9806.6        .21279E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9202.1        .19512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4727.2        3466.7        .40060E-04   -.54596E-01
   4  Prefactor     140.54        143.73        .16992E-03   -1.3331    
   5  Prefactor     111.59        374.10        .19034E-03   -1.3591    
   6  norm          .10000E-03    69.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    46.550        .15584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.532        .11833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    93.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.450        .98666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    28.885        .12347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    73.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    430.60        .21401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    118.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1827        .48557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     79.404        141.60        .45064E-04   -1.3923    
  17  Prefactor     .10000E-03    13.849        .85431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9408        12.041        .10407E-03   -1.5220    
  19  Prefactor     .10000E-03    43.836        .15214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.339        47.697        .73958E-04   -1.4624    
  21  Prefactor     .10000E-03    117.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3380        .74563        .23482E-03   -.82440    
  23  Prefactor     .37584        .58990        .34204E-03   -1.1806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92571e-10
Minuit parameter uncertainties:
  1  0.00175196
  2  0.00783768
  3  3832.09
  4  144.088
  5  382.5
  6  6.00888e-06
  7  0.00124318
  8  1.01606e-05
  9  7.44092e-06
  10  1.04352e-05
  11  2.44915e-05
  12  1.24697e-05
  13  0.000123049
  14  0.000465868
  15  8.50055e-06
  16  142.209
  17  8.12637e-07
  18  12.0455
  19  3.58291e-06
  20  47.7594
  21  0.000241096
  22  0.751773
  23  0.599798
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.016e-05  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:  3.758e-01  5.998e-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.338e+00  7.518e-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: 7.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684391/likelihoodResults_616982401_617241601_4FGL_J2141.8-3727_daily_bin1457.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) = 552.443316283
delta logL = -0.000167902275962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 552.443150096
delta logL = -1.7146941218e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5817       1.0000          .0000       10.000    
     3 'Normalizat'    1.3379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37587       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=   552.4431     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      298 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    452.98        .86479E-02** at limit **
   2  Index         2.1682        8.1112        .50000        .14722E-08
   3  Normalizat    1.3380        .62215E-01    .23482E-03    .10837E-04
   4  Prefactor     .37584        .50679E-01    .34203E-03    .83969E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.16824
  Normalizat = 1.33797
  Prefactor  = 0.375838
 **********
 **   18 **HESSE 
 **********

 FCN=   552.4431     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      327 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6233.1        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1682        7.1065        .50000       -.60207    
   3  Normalizat    1.3380        .16730        .46965E-04   -.82440    
   4  Prefactor     .37584        .13622        .13681E-04   -1.1806    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04438e-09
Minuit parameter uncertainties:
  1  0.00258408
  2  3750.69
  3  0.167364
  4  0.136341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684391': 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): 102
logL (Free Index) = 552.443148196
delta logL = 1.85297153621e-07

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.584e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.168e+00  3.751e+03  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:  3.758e-01  1.363e-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.338e+00  1.674e-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/684391/cmap_HighResolution_616982401_617241601_4FGL_J2141.8-3727_daily_bin1457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-02', job_status='DONE', photon_flux_upper_limit='7.60e-07', time_completed='2021-09-27 00:30:25.055948', job_id='684391', GAL2='0.38', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632727825.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='1.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1457' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:30:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 684391: <4FGL_J2141.8-3727_daily_bin1457> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1457> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:20:40 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:23:38 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:23:38 2021
Terminated at Mon Sep 27 00:30:25 2021
Results reported at Mon Sep 27 00:30:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1457 325.462 -37.4545 616982401 617241601 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 :                                   351.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   407 sec.
    Turnaround time :                            585 sec.

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

