/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 118 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 = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2023.6-1139_daily_bin423
RA = 305.903, Dec = -11.6585
tmin = 348969601, tmax = 349228801
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='875476', job_status='RUN', time_executed='2021-09-25 02:19:05.128194', time_epoch_executed='1632561545.13' WHERE source_name='4FGL J2023.6-1139' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875476

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875476/ft1_4FGL_J2023.6-1139_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875476/ft1_4FGL_J2023.6-1139_daily_bin423.fits outfile=/scratch/kocevski/875476/ft1_filteredMKT_4FGL_J2023.6-1139_daily_bin423.fits ra=305.903 dec=-11.6585 rad=12.0 tmin=348969601.0 tmax=349228801.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.79
user 3.53
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.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/875476/ft1_filteredMKT_4FGL_J2023.6-1139_daily_bin423.fits evtable="EVENTS" outfile="/scratch/kocevski/875476/ft1_filtered_4FGL_J2023.6-1139_daily_bin423.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.53
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875476/ft1_filtered_4FGL_J2023.6-1139_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/875476/ltcube_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.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/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits
.....................!
real 13.98
user 13.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875476/ft1_filtered_4FGL_J2023.6-1139_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/875476/ltcube_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.fits outfile=/scratch/kocevski/875476/expmap_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.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/875476/ltcube_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.fits
.....................!
real 190.87
user 185.45
sys 4.74

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J2023.6-1139 @ 305.903 -11.6585

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875476/ft1_filtered_4FGL_J2023.6-1139_daily_bin423.fits scfile=/scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits outfile=/scratch/kocevski/875476/cmap_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.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=305.903 yref=-11.6585 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875476/ft1_filtered_4FGL_J2023.6-1139_daily_bin423.fits scfile=/scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits outfile=/scratch/kocevski/875476/cmap_HighResolution_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.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=305.903 yref=-11.6585 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875476/ft1_filtered_4FGL_J2023.6-1139_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875476/Model_4FGL_J2023.6-1139_daily_bin423.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/875476/ft1_filtered_4FGL_J2023.6-1139_daily_bin423.fits.....................!
real 74.15
user 72.82
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875476/ft1_filtered_4FGL_J2023.6-1139_daily_bin423.fits', '/scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits', expMap='/scratch/kocevski/875476/expmap_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.fits', expCube='/scratch/kocevski/875476/ltcube_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875476/Model_4FGL_J2023.6-1139_daily_bin423.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2023.6-1139'

4FGL J2023.6-1139
   Spectrum: LogParabola
342         norm:  9.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
343        alpha:  1.962e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.303e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  1.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875476/ft1_filtered_4FGL_J2023.6-1139_daily_bin423.fits
Spacecraft file(s): /scratch/kocevski/875476/ft2_4FGL_J2023.6-1139_daily_bin423.fits
Exposure map: /scratch/kocevski/875476/expmap_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.fits
Exposure cube: /scratch/kocevski/875476/ltcube_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875476/Model_4FGL_J2023.6-1139_daily_bin423.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) = 7351.20860614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13152E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7984       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19239E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11332E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11998E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.831       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9816       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14547E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12907E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10973E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    33.156       1.0000         .10000E-03   10000.    
    15 'norm      '    .59805       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12074E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.241       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.040       1.0000         .10000E-03   10000.    
    20 'Normalizat'    2.2151       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7351.201     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2233 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.107       -.64318E-07** at limit **
   2  Prefactor     .10000E-03    6.6638       -.20735E-08** at limit **
   3  Prefactor     5.8023        4.8848        .21892E-05   -.61756E-03
   4  Prefactor     .10000E-03    55.391       -.24977E-05** at limit **
   5  Prefactor     .10000E-03    11.312        .81001E-07** at limit **
   6  Prefactor     2.8237        177.80       -.12863E-04   -.43722E-04
   7  Prefactor     .10001E-03    1.6118        .11696E-05** at limit **
   8  Prefactor     .10000E-03    14.531        .17701E-06** at limit **
   9  Prefactor     19.797        22.186        .32915E-05    .21749E-03
  10  norm          6.9923        12.294       -.13924E-05   -.18599E-03
  11  Prefactor     .10000E-03    12.600       -.17121E-06** at limit **
  12  Prefactor     .10000E-03    43.918       -.14390E-05** at limit **
  13  norm          .10000E-03    8.8513       -.38428E-07** at limit **
  14  norm          33.165        30.814       -.14434E-05   -.14665E-03
  15  norm          .59765        1.3760        .51847E-06    .74634E-04
  16  Prefactor     .10000E-03    41.539        .24450E-05** at limit **
  17  norm          .10000E-03    2.6640       -.37185E-08** at limit **
  18  Prefactor     21.225        10.074       -.31021E-06   -.31407E-03
  19  Prefactor     15.046        17.814        .36815E-06   -.45280E-05
  20  Normalizat    2.2145        .34854       -.51878E-06   -.21427E-03
  21  Prefactor     .87079        .10560       -.85375E-06   -.34858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.80231
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.82372
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 19.7974
  norm       = 6.99233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.165
  norm       = 0.597655
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 21.2254
  Prefactor  = 15.0463
  Normalizat = 2.21449
  Prefactor  = 0.870793
 **********
 **   18 **HESSE 
 **********

 FCN=   7351.201     FROM HESSE     STATUS=OK           313 CALLS     2546 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8023        5.1079        .83395E-03   -1.5226    
   4  Prefactor     .10000E-03    55.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8237        179.81        .23330E-03   -1.5372    
   7  Prefactor     .10001E-03    2.7284        .19714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.797        22.970        .89941E-04   -1.4818    
  10  norm          6.9923        12.331        .15183E-03   -1.5179    
  11  Prefactor     .10000E-03    12.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.8736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          33.165        30.944        .69590E-04   -1.4556    
  15  norm          .59765        1.3190        .14425E-02   -1.5553    
  16  Prefactor     .10000E-03    42.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7551        .27329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.225        10.243        .86906E-04   -1.4786    
  19  Prefactor     15.046        17.900        .10328E-03   -1.4932    
  20  Normalizat    2.2145        .41433        .40256E-03   -.59277    
  21  Prefactor     .87079        .12550        .18804E-03   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59377e-09
Minuit parameter uncertainties:
  1  2.23593e-06
  2  3.25733e-06
  3  5.10825
  4  0.000489884
  5  8.85669e-06
  6  45.2071
  7  0.000291772
  8  1.80169e-05
  9  22.9804
  10  12.335
  11  1.2319e-05
  12  0.000215255
  13  1.32822e-06
  14  30.9588
  15  1.3191
  16  0.000324751
  17  3.88939e-06
  18  10.2439
  19  17.9066
  20  0.415023
  21  0.125539
Done.

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

Extracting fit parameters...

4FGL J2023.6-1139
   Spectrum: LogParabola
342         norm:  3.316e+01  3.096e+01  1.000e-04  1.000e+04 ( 1.000e-13)
343        alpha:  1.962e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.303e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  1.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  8.708e-01  1.255e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  2.214e+00  4.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 305.903 -11.659
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 2.08e-05

TS (Fixed Index): 2.97
Ra Dec: 305.903 -11.659
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875476/likelihoodResults_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7351.15944789
delta logL = 0.0414069723502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7351.15626215
delta logL = 0.044592711487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.839       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2003       1.0000          .0000       5.0000    
     3 'Normalizat'    2.2045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87218       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+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=   7351.156     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      264 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.838        31.219        .72151E-04    .30902E-03
   2  alpha         2.2003        .81035        .18837E-01    .52990E-04
   3  Normalizat    2.2047        .38403        .40319E-03   -.33836E-04
   4  Prefactor     .87211        .12171        .18791E-03   -.71876E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 30.838
  alpha      = 2.20033
  Normalizat = 2.20469
  Prefactor  = 0.872105
 **********
 **   18 **HESSE 
 **********

 FCN=   7351.156     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.838        30.523        .14430E-04   -1.4597    
   2  alpha         2.2003        .79263        .75349E-03   -.12016    
   3  Normalizat    2.2047        .38419        .16128E-04   -.59514    
   4  Prefactor     .87211        .12180        .75163E-05   -.97123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29611e-10
Minuit parameter uncertainties:
  1  30.5383
  2  0.806767
  3  0.384744
  4  0.121835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875476': 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) = 7351.15626197
delta logL = 0.0445928865829

Extracting fit parameters...

4FGL J2023.6-1139
   Spectrum: LogParabola
342         norm:  3.084e+01  3.054e+01  1.000e-04  1.000e+04 ( 1.000e-13)
343        alpha:  2.200e+00  8.068e-01  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.303e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  1.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  8.721e-01  1.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  2.205e+00  3.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 305.903 -11.659
Photon Index (Free Index): 2.20 +/- 0.81
Photon Flux (Free Index): 4.22e-08 +/- 5.13e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.90e-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/875476/cmap_HighResolution_348969601_349228801_4FGL_J2023.6-1139_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-05', comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='2.01e-05', photon_flux_error='3.02e-08', dlogl='4.46e-02', energy_flux='2.22e-05', photon_flux2='4.22e-08', job_status='DONE', time_completed='2021-09-25 02:31:23.523501', photon_index_error2='0.81', photon_index2='2.20', ts='2.97', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.90e-05', EG='2.21', time_epoch_completed='1632562283.52', return_code='0', job_id='875476', GAL2='0.87', EG2='2.20', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='5.13e-08', ts2='3.06', photon_index='1.96' WHERE bin_id='423' AND source_name='4FGL J2023.6-1139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 02:31:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 875476: <4FGL_J2023.6-1139_daily_bin423> in cluster <slac> Done

Job <4FGL_J2023.6-1139_daily_bin423> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 02:16:11 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 02:16:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 02:16:58 2021
Terminated at Sat Sep 25 02:31:24 2021
Results reported at Sat Sep 25 02:31:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2023.6-1139_daily_bin423 305.903 -11.6585 348969601 349228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2023.6-1139 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            913 sec.

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

