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


Performing analysis on: 4FGL_J1339.9-0138_daily_bin1088
RA = 204.976, Dec = -1.6378
tmin = 521337601, tmax = 521596801
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='875982', job_status='RUN', time_executed='2021-09-08 08:39:07.264155', time_epoch_executed='1631115547.26' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875982/ft1_4FGL_J1339.9-0138_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875982/ft1_4FGL_J1339.9-0138_daily_bin1088.fits outfile=/scratch/kocevski/875982/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1088.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=521337601.0 tmax=521596801.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.19
user 4.91
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.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/875982/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1088.fits evtable="EVENTS" outfile="/scratch/kocevski/875982/ft1_filtered_4FGL_J1339.9-0138_daily_bin1088.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875982/ft1_filtered_4FGL_J1339.9-0138_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/875982/ltcube_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.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/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits
.....................!
real 15.14
user 14.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875982/ft1_filtered_4FGL_J1339.9-0138_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/875982/ltcube_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.fits outfile=/scratch/kocevski/875982/expmap_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.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/875982/ltcube_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.fits
.....................!
real 193.35
user 187.02
sys 5.62

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

Setting source of interest to:
4FGL J1339.9-0138 @ 204.976 -1.6378

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875982/ft1_filtered_4FGL_J1339.9-0138_daily_bin1088.fits scfile=/scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits outfile=/scratch/kocevski/875982/cmap_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.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=204.976 yref=-1.6378 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875982/ft1_filtered_4FGL_J1339.9-0138_daily_bin1088.fits scfile=/scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits outfile=/scratch/kocevski/875982/cmap_HighResolution_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.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=204.976 yref=-1.6378 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.60
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875982/ft1_filtered_4FGL_J1339.9-0138_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875982/Model_4FGL_J1339.9-0138_daily_bin1088.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/875982/ft1_filtered_4FGL_J1339.9-0138_daily_bin1088.fits.....................!
real 53.07
user 51.55
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875982/ft1_filtered_4FGL_J1339.9-0138_daily_bin1088.fits', '/scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits', expMap='/scratch/kocevski/875982/expmap_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.fits', expCube='/scratch/kocevski/875982/ltcube_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875982/Model_4FGL_J1339.9-0138_daily_bin1088.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.9-0138'

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.717e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875982/ft1_filtered_4FGL_J1339.9-0138_daily_bin1088.fits
Spacecraft file(s): /scratch/kocevski/875982/ft2_4FGL_J1339.9-0138_daily_bin1088.fits
Exposure map: /scratch/kocevski/875982/expmap_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.fits
Exposure cube: /scratch/kocevski/875982/ltcube_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875982/Model_4FGL_J1339.9-0138_daily_bin1088.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) = 6375.28980108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4824       1.0000         .10000E-03   10000.    
     2 'Prefactor '    100.87       1.0000         .10000E-03   10000.    
     3 'norm      '    56.640       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.358       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.260       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.867       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55664E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2415       1.0000         .10000E-03   10000.    
    18 'norm      '    .93875       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.991       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4838       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6375.288     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2345 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4825        .87300       -.43305E-07    .32860E-03
   2  Prefactor     100.88        90.334        .70956E-05    .18214E-05
   3  norm          56.643        20.252       -.10978E-06    .18455E-04
   4  norm          .10000E-03    7.2395       -.15785E-06** at limit **
   5  Prefactor     .10000E-03    19.668       -.17531E-05** at limit **
   6  Prefactor     24.360        14.543       -.30832E-06    .35202E-05
   7  Prefactor     .10000E-03    5.2172       -.14473E-06** at limit **
   8  Prefactor     .10000E-03    53.400        .34733E-05** at limit **
   9  norm          .10000E-03    .60270        .38564E-08** at limit **
  10  norm          .10000E-03    3.9830        .32266E-07** at limit **
  11  norm          .10000E-03    2.7428        .28138E-07** at limit **
  12  norm          14.257        20.862       -.16461E-05    .19422E-04
  13  Prefactor     .10000E-03    2.1645        .12493E-07** at limit **
  14  Prefactor     12.869        6.6197       -.29855E-06   -.66154E-04
  15  Prefactor     .10000E-03    99.015       -.43884E-04** at limit **
  16  norm          .10000E-03    5.5421        .29496E-06** at limit **
  17  Prefactor     2.2093        22.970        .11232E-04    .32547E-05
  18  norm          .93901        2.2308       -.43229E-06   -.11333E-02
  19  Prefactor     .10000E-03    14.769        .68263E-06** at limit **
  20  norm          20.995        18.283        .25791E-06    .59650E-05
  21  Normalizat    1.4836        .25153       -.30461E-06    .26416E-03
  22  Prefactor     .78496        .16443       -.25592E-06    .20194E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.48253
  Prefactor  = 100.881
  norm       = 56.6426
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.36
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.2571
  Prefactor  = 0.0001
  Prefactor  = 12.8692
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.20928
  norm       = 0.939011
  Prefactor  = 0.0001
  norm       = 20.995
  Normalizat = 1.48357
  Prefactor  = 0.784957
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.288     FROM HESSE     STATUS=OK           340 CALLS     2685 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4825        .87608        .24015E-04   -1.5161    
   2  Prefactor     100.88        90.280        .40029E-04   -1.3696    
   3  norm          56.643        20.257        .53303E-04   -1.4201    
   4  norm          .10000E-03    7.2747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.360        14.554        .81163E-04   -1.4720    
   7  Prefactor     .10000E-03    5.2332        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    53.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .61376        .60485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.0981        .31096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7487        .12913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.257        20.860        .10607E-03   -1.4953    
  13  Prefactor     .10000E-03    2.2357        .22937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.869        6.6213        .11167E-03   -1.4990    
  15  Prefactor     .10000E-03    100.45        .42207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.6022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2093        22.523        .27451E-03   -1.5411    
  18  norm          .93901        2.0157        .17664E-02   -1.5514    
  19  Prefactor     .10000E-03    14.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.995        18.305        .87423E-04   -1.4791    
  21  Normalizat    1.4836        .30048        .31041E-03   -.78241    
  22  Prefactor     .78496        .19610        .27002E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29164e-10
Minuit parameter uncertainties:
  1  0.876081
  2  90.4029
  3  20.2593
  4  1.27571e-06
  5  1.43865e-06
  6  14.5558
  7  2.49302e-06
  8  3.98198e-05
  9  6.45741e-07
  10  3.83218e-06
  11  1.64489e-06
  12  20.8708
  13  5.22022e-07
  14  6.6217
  15  0.000359249
  16  1.34175e-05
  17  14.1146
  18  2.01581
  19  4.19292e-05
  20  18.3101
  21  0.300845
  22  0.196273
Done.

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

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.426e+01  2.087e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.850e-01  1.963e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.484e+00  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 204.976 -1.638
Photon Flux Upper Limit: 3.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875982/likelihoodResults_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.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) = 6375.10642449
delta logL = 0.18179251313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6375.1021444
delta logL = 0.186072598605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.240       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6375.102     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      191 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.240        22.209        .24847E-02    .12840E-02
   2  alpha         1.1290        1.4252        .50000        .50588E-05
   3  Normalizat    1.4856        .24576        .70121E-01    .10587E-04
   4  Prefactor     .78423        .16237        .43515E-01    .11487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.24
  alpha      = 1.12897
  Normalizat = 1.48557
  Prefactor  = 0.784228
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.102     FROM HESSE     STATUS=OK            29 CALLS      220 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.240        22.356        .99387E-04   -1.4902    
   2  alpha         1.1290        1.4275        .56700E-02   -.58047    
   3  Normalizat    1.4856        .29349        .31021E-03   -.78185    
   4  Prefactor     .78423        .19404        .27006E-03   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10412e-09
Minuit parameter uncertainties:
  1  22.3672
  2  1.57139
  3  0.293828
  4  0.194211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875982': 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) = 6375.10214156
delta logL = 0.186075437138

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.624e+01  2.237e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  1.129e+00  1.571e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  6.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.842e-01  1.942e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.486e+00  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 204.976 -1.638
Photon Index (Free Index): 1.13 +/- 1.57
Photon Flux (Free Index): 4.40e-09 +/- 6.26e-09
Energy Flux (Free Index): 7.28e-06 +/- 1.07e-05

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/875982/cmap_HighResolution_521337601_521596801_4FGL_J1339.9-0138_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-05', comment='SUCCESS', energy_flux2='7.28e-06', dlogl='1.86e-01', photon_flux2='4.40e-09', job_status='DONE', time_completed='2021-09-08 08:50:34.273048', photon_index_error2='1.57', photon_index2='1.13', ts='0.91', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='3.71e-08', energy_flux_error2='1.07e-05', EG='1.48', time_epoch_completed='1631116234.27', return_code='0', job_id='875982', GAL2='0.78', EG2='1.49', return_code2='0', photon_flux_error2='6.26e-09', ts2='1.28', photon_index='2.12' WHERE bin_id='1088' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:50:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 875982: <4FGL_J1339.9-0138_daily_bin1088> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin1088> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 08:35:41 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:36:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 08:36:04 2021
Terminated at Wed Sep  8 08:50:35 2021
Results reported at Wed Sep  8 08:50:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1088 204.976 -1.6378 521337601 521596801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.9-0138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   621.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            894 sec.

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

