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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin950
RA = 325.462, Dec = -37.4545
tmin = 485568001, tmax = 485827201
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='682563', job_status='RUN', time_executed='2021-09-27 00:18:07.154228', time_epoch_executed='1632727087.15' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682563/ft1_4FGL_J2141.8-3727_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682563/ft2_4FGL_J2141.8-3727_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682563/ft1_4FGL_J2141.8-3727_daily_bin950.fits outfile=/scratch/kocevski/682563/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin950.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=485568001.0 tmax=485827201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.04
user 3.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682563/ft1_filtered_4FGL_J2141.8-3727_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/682563/ft2_4FGL_J2141.8-3727_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/682563/ltcube_485568001_485827201_4FGL_J2141.8-3727_daily_bin950.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/682563/ft2_4FGL_J2141.8-3727_daily_bin950.fits
.....................!
real 15.78
user 14.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682563/ft1_filtered_4FGL_J2141.8-3727_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/682563/ft2_4FGL_J2141.8-3727_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/682563/ltcube_485568001_485827201_4FGL_J2141.8-3727_daily_bin950.fits outfile=/scratch/kocevski/682563/expmap_485568001_485827201_4FGL_J2141.8-3727_daily_bin950.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/682563/ltcube_485568001_485827201_4FGL_J2141.8-3727_daily_bin950.fits
.....................!
real 194.26
user 187.21
sys 5.05

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/682563/ft1_filtered_4FGL_J2141.8-3727_daily_bin950.fits scfile=/scratch/kocevski/682563/ft2_4FGL_J2141.8-3727_daily_bin950.fits outfile=/scratch/kocevski/682563/cmap_485568001_485827201_4FGL_J2141.8-3727_daily_bin950.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.93
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682563/ft1_filtered_4FGL_J2141.8-3727_daily_bin950.fits scfile=/scratch/kocevski/682563/ft2_4FGL_J2141.8-3727_daily_bin950.fits outfile=/scratch/kocevski/682563/cmap_HighResolution_485568001_485827201_4FGL_J2141.8-3727_daily_bin950.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.55
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682563/ft1_filtered_4FGL_J2141.8-3727_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/682563/ft2_4FGL_J2141.8-3727_daily_bin950.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682563/Model_4FGL_J2141.8-3727_daily_bin950.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/682563/ft1_filtered_4FGL_J2141.8-3727_daily_bin950.fits.....................!
real 57.49
user 56.15
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.840       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.189       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0064       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6836       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.1233       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6997       1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.230       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3026       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77647       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=   7131.830     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2505 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.792       -.13367E-04** at limit **
   2  Prefactor     17.839        21.274       -.96649E-06    .84415E-05
   3  Prefactor     .18373        10.458       -.18400E-05    .13409E-03
   4  Prefactor     .10000E-03    4.6635       -.51577E-06** at limit **
   5  Prefactor     .10000E-03    13.329       -.39428E-05** at limit **
   6  norm          .10000E-03    2.1874       -.53628E-07** at limit **
   7  norm          21.188        6.0358        .51427E-07    .13395E-03
   8  Prefactor     .10000E-03    4.6550       -.10188E-06** at limit **
   9  Prefactor     .10000E-03    9.2436       -.17239E-05** at limit **
  10  Prefactor     2.0054        4.5833       -.79072E-06   -.61371E-03
  11  norm          4.6830        5.3811       -.11749E-06   -.29391E-04
  12  Prefactor     .10000E-03    6.2187        .21707E-06** at limit **
  13  Prefactor     .10000E-03    20.607        .11741E-04** at limit **
  14  norm          6.1234        5.0246       -.37825E-06   -.36984E-03
  15  norm          1.6997        .46483       -.30478E-07   -.33082E-04
  16  Prefactor     66.745        50.920       -.88911E-05    .94644E-05
  17  Prefactor     .10000E-03    13.758        .12729E-05** at limit **
  18  Prefactor     .10000E-03    1.5207       -.95226E-08** at limit **
  19  Prefactor     26.227        31.678       -.27380E-05   -.46517E-05
  20  Prefactor     .10000E-03    10.202        .29773E-05** at limit **
  21  Prefactor     .10000E-03    37.656        .51476E-05** at limit **
  22  Normalizat    1.3026        .18069        .13894E-05    .14751E-04
  23  Prefactor     .77653        .11137        .43828E-07    .18554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.8387
  Prefactor  = 0.183727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.1883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.00535
  norm       = 4.68299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.1234
  norm       = 1.69968
  Prefactor  = 66.7452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30261
  Prefactor  = 0.776531
 **********
 **   18 **HESSE 
 **********

 FCN=   7131.830     FROM HESSE     STATUS=OK           374 CALLS     2879 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.839        21.310        .94824E-04   -1.4863    
   3  Prefactor     .18373        11.548        .93489E-01   -1.5622    
   4  Prefactor     .10000E-03    4.7668        .17803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1885        .12198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.188        6.0398        .87014E-04   -1.4787    
   8  Prefactor     .10000E-03    4.7237        .17785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0054        4.5977        .26793E-03   -1.5425    
  11  norm          4.6830        5.3778        .18595E-03   -1.5275    
  12  Prefactor     .10000E-03    6.2264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.1234        5.0601        .15709E-03   -1.5213    
  15  norm          1.6997        .46678        .28209E-04   -1.5447    
  16  Prefactor     66.745        51.035        .49123E-04   -1.4072    
  17  Prefactor     .10000E-03    14.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5283        .10168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.227        31.691        .78219E-04   -1.4683    
  20  Prefactor     .10000E-03    10.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3026        .20587        .26689E-03   -.83489    
  23  Prefactor     .77653        .12688        .21262E-03   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1948e-09
Minuit parameter uncertainties:
  1  3.06384e-06
  2  21.3187
  3  2.91299
  4  3.86371e-06
  5  2.32182e-06
  6  4.69531e-07
  7  6.03996
  8  3.39298e-06
  9  1.23186e-06
  10  4.59851
  11  5.37839
  12  1.40567e-06
  13  5.09723e-06
  14  5.06045
  15  0.466785
  16  51.0685
  17  6.13376e-05
  18  2.20355e-06
  19  31.7114
  20  8.20529e-06
  21  0.000142293
  22  0.206005
  23  0.126928
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  3.393e-06  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  7.765e-01  1.269e-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.303e+00  2.060e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682563/likelihoodResults_485568001_485827201_4FGL_J2141.8-3727_daily_bin950.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) = 7131.83148232
delta logL = -0.00100921639569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7131.83047416
delta logL = -1.04982882476e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6338       1.0000          .0000       10.000    
     3 'Normalizat'    1.3024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77665       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=   7131.830     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .18197        .43067E-01** at limit **
   2  Index         3.3417        7.9682        .50000       -.14720E-06
   3  Normalizat    1.3026        .13457E-02    .26689E-03   -.47147E-03
   4  Prefactor     .77653        .85595E-03    .21262E-03   -.64874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.34169
  Normalizat = 1.30261
  Prefactor  = 0.776529
 **********
 **   18 **HESSE 
 **********

 FCN=   7131.830     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.771        .25328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3417        5.7047        .50000       -.33806    
   3  Normalizat    1.3026        .17631E-01    .53377E-04   -.83489    
   4  Prefactor     .77653        .11215E-01    .42524E-04   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.12029e-10
Minuit parameter uncertainties:
  1  0.000432604
  2  683.189
  3  0.0176312
  4  0.0112146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682563': 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) = 7131.83047144
delta logL = 1.66502195498e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  4.326e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.342e+00  6.832e+02  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:  7.765e-01  1.121e-02  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.303e+00  1.763e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/682563/cmap_HighResolution_485568001_485827201_4FGL_J2141.8-3727_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.44e-08', time_completed='2021-09-27 00:29:57.763043', job_id='682563', GAL2='0.78', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632727797.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='950' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:29:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 682563: <4FGL_J2141.8-3727_daily_bin950> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin950 325.462 -37.4545 485568001 485827201 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 :                                   703.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            883 sec.

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

