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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1479
RA = 325.462, Dec = -37.4545
tmin = 622684801, tmax = 622944001
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='685490', job_status='RUN', time_executed='2021-09-27 00:25:57.700976', time_epoch_executed='1632727557.7' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685490/ft1_4FGL_J2141.8-3727_daily_bin1479.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685490/ft2_4FGL_J2141.8-3727_daily_bin1479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685490/ft1_4FGL_J2141.8-3727_daily_bin1479.fits outfile=/scratch/kocevski/685490/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1479.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=622684801.0 tmax=622944001.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 5.21
user 4.96
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685490/ft1_filtered_4FGL_J2141.8-3727_daily_bin1479.fits" evtable="EVENTS" scfile=/scratch/kocevski/685490/ft2_4FGL_J2141.8-3727_daily_bin1479.fits sctable="SC_DATA" outfile=/scratch/kocevski/685490/ltcube_622684801_622944001_4FGL_J2141.8-3727_daily_bin1479.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/685490/ft2_4FGL_J2141.8-3727_daily_bin1479.fits
.....................!
real 14.17
user 13.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685490/ft1_filtered_4FGL_J2141.8-3727_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/685490/ft2_4FGL_J2141.8-3727_daily_bin1479.fits sctable="SC_DATA" expcube=/scratch/kocevski/685490/ltcube_622684801_622944001_4FGL_J2141.8-3727_daily_bin1479.fits outfile=/scratch/kocevski/685490/expmap_622684801_622944001_4FGL_J2141.8-3727_daily_bin1479.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/685490/ltcube_622684801_622944001_4FGL_J2141.8-3727_daily_bin1479.fits
.....................!
real 192.08
user 186.36
sys 5.15

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/685490/ft1_filtered_4FGL_J2141.8-3727_daily_bin1479.fits scfile=/scratch/kocevski/685490/ft2_4FGL_J2141.8-3727_daily_bin1479.fits outfile=/scratch/kocevski/685490/cmap_622684801_622944001_4FGL_J2141.8-3727_daily_bin1479.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.64
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685490/ft1_filtered_4FGL_J2141.8-3727_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/685490/ft2_4FGL_J2141.8-3727_daily_bin1479.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685490/Model_4FGL_J2141.8-3727_daily_bin1479.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/685490/ft1_filtered_4FGL_J2141.8-3727_daily_bin1479.fits.....................!
real 59.09
user 57.76
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31561       1.0000         .10000E-03   10000.    
     3 'Prefactor '    73.574       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4823       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6464       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11551E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4587       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .61620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12864E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11662E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.071       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5514       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93199       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=   7374.234     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2596 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.983        .36761E-07** at limit **
   2  Prefactor     .24157        286.40       -.51503E-04    .10784E-03
   3  Prefactor     73.574        33.255        .18510E-06   -.51217E-04
   4  Prefactor     .38042        12.343        .90207E-05    .42269E-03
   5  Prefactor     1.5483        129.47       -.30637E-05    .40315E-04
   6  norm          .10000E-03    2.2360        .29641E-07** at limit **
   7  norm          4.6363        4.7032       -.68859E-06    .96326E-04
   8  Prefactor     .10000E-03    11.547        .12847E-06** at limit **
   9  Prefactor     .10000E-03    12.438        .13718E-05** at limit **
  10  Prefactor     .10000E-03    3.5510        .27711E-06** at limit **
  11  norm          2.4644        7.6007       -.17199E-05   -.14124E-03
  12  Prefactor     .10000E-03    5.8270        .43334E-07** at limit **
  13  Prefactor     .10000E-03    19.689        .60096E-06** at limit **
  14  norm          .10000E-03    1.4397        .71286E-07** at limit **
  15  norm          .61624        .30600        .11866E-07   -.99163E-04
  16  Prefactor     .10000E-03    19.758        .81072E-06** at limit **
  17  Prefactor     .10000E-03    16.178       -.25888E-06** at limit **
  18  Prefactor     .10000E-03    2.6059       -.34821E-06** at limit **
  19  Prefactor     .10000E-03    24.413       -.15710E-06** at limit **
  20  Prefactor     12.051        27.327        .13610E-05    .46485E-04
  21  Prefactor     .10000E-03    9.7327        .16016E-06** at limit **
  22  Normalizat    1.5511        .19855       -.23270E-05   -.74378E-03
  23  Prefactor     .93200        .12544        .11501E-05   -.44202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.241572
  Prefactor  = 73.5737
  Prefactor  = 0.380416
  Prefactor  = 1.54827
  norm       = 0.0001
  norm       = 4.63626
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.616243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0507
  Prefactor  = 0.0001
  Normalizat = 1.55112
  Prefactor  = 0.932001
 **********
 **   18 **HESSE 
 **********

 FCN=   7374.234     FROM HESSE     STATUS=OK           372 CALLS     2968 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .24157        19.693        .10011       -1.5610    
   3  Prefactor     73.574        33.303        .46807E-04   -1.3990    
   4  Prefactor     .38042        39.820        .40435E-02   -1.5585    
   5  Prefactor     1.5483        130.54        .35245E-03   -1.5459    
   6  norm          .10000E-03    2.2368        .12541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6363        4.7007        .86032E-03   -1.5277    
   8  Prefactor     .10000E-03    11.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5660        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4644        7.6230        .13042E-02   -1.5394    
  12  Prefactor     .10000E-03    5.8292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4467        .10062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .61624        .31056        .32531E-04   -1.5551    
  16  Prefactor     .10000E-03    19.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9004        .26783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.051        27.514        .11530E-03   -1.5014    
  21  Prefactor     .10000E-03    9.7417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5511        .22821        .27906E-03   -.76352    
  23  Prefactor     .93200        .14132        .22124E-03   -.95032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32162e-09
Minuit parameter uncertainties:
  1  0.000105183
  2  4.36277
  3  33.3112
  4  7.78847
  5  28.4966
  6  2.7282e-06
  7  4.70106
  8  0.00034979
  9  0.000113419
  10  6.60013e-05
  11  7.62601
  12  7.70687e-06
  13  7.16051e-05
  14  6.26724e-06
  15  0.310561
  16  0.000122437
  17  4.51108e-05
  18  7.53196e-05
  19  4.95797e-06
  20  27.5426
  21  1.03697e-05
  22  0.228359
  23  0.141378
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  3.498e-04  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.320e-01  1.414e-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.551e+00  2.284e-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: 9.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/685490/likelihoodResults_622684801_622944001_4FGL_J2141.8-3727_daily_bin1479.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) = 7374.23481747
delta logL = -0.000404272726882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7374.23441357
delta logL = -3.78400727641e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11455E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5506       1.0000          .0000       10.000    
     3 'Normalizat'    1.5514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93185       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7374.234     FROM MIGRAD    STATUS=FAILED        99 CALLS      258 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10117E-03    7225.8        .36108E-02** at limit **
   2  Index         2.4399        5.5918        .50000        .74342E-04
   3  Normalizat    1.5511        .93821E-01    .27906E-03    .78000E-04
   4  Prefactor     .93200        .59611E-01    .22124E-03    .79134E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7374.234     FROM SIMPLEX   STATUS=UNCHANGED    164 CALLS      422 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10117E-03    7225.8        .99362E-03** at limit **
   2  Index         2.4399        5.5918        .23487E-04    .74342E-04
   3  Normalizat    1.5511        .93821E-01    .77768E-06    .78000E-04
   4  Prefactor     .93200        .59611E-01    .32581E-06    .79134E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7373.804     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      528 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5348        2.3203        .72217E-02    .45196E-04
   2  Index         1.2468        .45022        .20000       -.11899E-03
   3  Normalizat    1.5547        .21750        .55811E-04    .60010E-04
   4  Prefactor     .92638        .13900        .88496E-05    .15930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53479
  Index      = 1.24678
  Normalizat = 1.55472
  Prefactor  = 0.926375
 **********
 **   18 **HESSE 
 **********

 FCN=   7373.804     FROM HESSE     STATUS=OK            29 CALLS      557 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5348        3.2529        .15673E-03   -1.5956    
   2  Index         1.2468        .73322        .11446E-01   -.84904    
   3  Normalizat    1.5547        .21750        .11162E-04   -.76252    
   4  Prefactor     .92638        .13898        .17699E-05   -.95225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28751e-10
Minuit parameter uncertainties:
  1  3.25332
  2  0.739383
  3  0.21763
  4  0.139033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685490': 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) = 7373.80433503
delta logL = 0.430078162804

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.535e+00  3.253e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.247e+00  7.394e-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.264e-01  1.390e-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.555e+00  2.176e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/685490/cmap_HighResolution_622684801_622944001_4FGL_J2141.8-3727_daily_bin1479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-03', job_status='DONE', photon_flux_upper_limit='9.78e-08', time_completed='2021-09-27 00:40:11.047639', job_id='685490', GAL2='0.93', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1632728411.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.30e-01', ts2='0.86', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1479' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:40:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 685490: <4FGL_J2141.8-3727_daily_bin1479> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1479> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 00:25:18 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:25:29 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:25:29 2021
Terminated at Mon Sep 27 00:40:11 2021
Results reported at Mon Sep 27 00:40:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1479 325.462 -37.4545 622684801 622944001 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            893 sec.

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

