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


Performing analysis on: 4FGL_J1339.9-0138_daily_bin1525
RA = 204.976, Dec = -1.6378
tmin = 634608001, tmax = 634867201
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='877917', job_status='RUN', time_executed='2021-09-08 08:46:40.991418', time_epoch_executed='1631116000.99' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877917/ft1_4FGL_J1339.9-0138_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877917/ft2_4FGL_J1339.9-0138_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877917/ft1_4FGL_J1339.9-0138_daily_bin1525.fits outfile=/scratch/kocevski/877917/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1525.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=634608001.0 tmax=634867201.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 2.74
user 2.54
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877917/ft1_filtered_4FGL_J1339.9-0138_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/877917/ft2_4FGL_J1339.9-0138_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/877917/ltcube_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.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/877917/ft2_4FGL_J1339.9-0138_daily_bin1525.fits
.....................!
real 15.88
user 15.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877917/ft1_filtered_4FGL_J1339.9-0138_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/877917/ft2_4FGL_J1339.9-0138_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/877917/ltcube_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.fits outfile=/scratch/kocevski/877917/expmap_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.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/877917/ltcube_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.fits
.....................!
real 155.92
user 151.92
sys 3.63

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/877917/ft1_filtered_4FGL_J1339.9-0138_daily_bin1525.fits scfile=/scratch/kocevski/877917/ft2_4FGL_J1339.9-0138_daily_bin1525.fits outfile=/scratch/kocevski/877917/cmap_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.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.47
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877917/ft1_filtered_4FGL_J1339.9-0138_daily_bin1525.fits scfile=/scratch/kocevski/877917/ft2_4FGL_J1339.9-0138_daily_bin1525.fits outfile=/scratch/kocevski/877917/cmap_HighResolution_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.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.48
user 0.33
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877917/ft1_filtered_4FGL_J1339.9-0138_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/877917/ft2_4FGL_J1339.9-0138_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877917/Model_4FGL_J1339.9-0138_daily_bin1525.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/877917/ft1_filtered_4FGL_J1339.9-0138_daily_bin1525.fits.....................!
real 36.34
user 35.14
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/877917/ft1_filtered_4FGL_J1339.9-0138_daily_bin1525.fits', '/scratch/kocevski/877917/ft2_4FGL_J1339.9-0138_daily_bin1525.fits', expMap='/scratch/kocevski/877917/expmap_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.fits', expCube='/scratch/kocevski/877917/ltcube_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/877917/Model_4FGL_J1339.9-0138_daily_bin1525.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/877917/ft1_filtered_4FGL_J1339.9-0138_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/877917/ft2_4FGL_J1339.9-0138_daily_bin1525.fits
Exposure map: /scratch/kocevski/877917/expmap_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.fits
Exposure cube: /scratch/kocevski/877917/ltcube_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/877917/Model_4FGL_J1339.9-0138_daily_bin1525.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) = 5541.02284597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1489       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5734       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3018       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7894       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23653E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .17063E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6011       1.0000         .10000E-03   10000.    
    11 'norm      '    5.8476       1.0000         .10000E-03   10000.    
    12 'norm      '    17.777       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47025       1.0000         .10000E-03   10000.    
    16 'norm      '    6.7441       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7615       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0722       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.436       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3608       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95403       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=   5541.016     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2420 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1487        .52830       -.19590E-07    .45833E-03
   2  Prefactor     .10000E-03    22.827        .92734E-06** at limit **
   3  norm          3.5718        10.764       -.12648E-05   -.12136E-03
   4  norm          .10000E-03    4.8625       -.16529E-07** at limit **
   5  Prefactor     6.2926        28.121       -.14520E-04   -.18109E-04
   6  Prefactor     1.7766        52.014        .94801E-05   -.11049E-03
   7  Prefactor     .10000E-03    4.6462        .32432E-07** at limit **
   8  Prefactor     .10000E-03    54.121        .58650E-05** at limit **
   9  norm          .10000E-03    .67000       -.17242E-06** at limit **
  10  norm          2.5958        4.4389       -.55513E-05   -.80563E-03
  11  norm          5.8471        7.7097        .85643E-05   -.16085E-03
  12  norm          17.784        33.764        .11153E-04   -.14850E-04
  13  Prefactor     .10000E-03    2.1028       -.75643E-07** at limit **
  14  Prefactor     .10000E-03    2.0708        .12786E-06** at limit **
  15  Prefactor     .13149        23.923        .41649E-05    .14462E-03
  16  norm          6.7411        7.0498       -.63664E-05   -.16295E-03
  17  Prefactor     5.7865        15.083       -.23115E-04   -.24320E-03
  18  norm          4.0710        2.7963       -.13836E-06   -.18571E-03
  19  Prefactor     .10000E-03    7.0176        .21495E-06** at limit **
  20  norm          14.433        12.467       -.11312E-06    .35167E-05
  21  Normalizat    1.3611        .25118        .43533E-05   -.24929E-03
  22  Prefactor     .95414        .16954        .96359E-06   -.57507E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14874
  Prefactor  = 0.0001
  norm       = 3.57184
  norm       = 0.0001
  Prefactor  = 6.29261
  Prefactor  = 1.77658
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 2.59582
  norm       = 5.8471
  norm       = 17.7842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.131492
  norm       = 6.74107
  Prefactor  = 5.78645
  norm       = 4.07102
  Prefactor  = 0.0001
  norm       = 14.4326
  Normalizat = 1.36109
  Prefactor  = 0.954142
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.016     FROM HESSE     STATUS=OK           358 CALLS     2778 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1487        .52887        .25962E-04   -1.5415    
   2  Prefactor     .10000E-03    22.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5718        10.748        .21379E-03   -1.5330    
   4  norm          .10000E-03    4.8661        .16031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2926        28.240        .15990E-03   -1.5206    
   6  Prefactor     1.7766        52.112        .31270E-03   -1.5441    
   7  Prefactor     .10000E-03    4.6787        .15667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    54.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.087        .11733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5958        4.4312        .17010E-03   -1.5386    
  11  norm          5.8471        7.6764        .16608E-03   -1.5224    
  12  norm          17.784        33.714        .94992E-04   -1.4864    
  13  Prefactor     .10000E-03    2.1249        .10537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0850        .10451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13149        28.661        .98931E-01   -1.5635    
  16  norm          6.7411        7.0481        .15451E-03   -1.5189    
  17  Prefactor     5.7865        15.281        .16733E-03   -1.5227    
  18  norm          4.0710        2.7916        .98607E-04   -1.5304    
  19  Prefactor     .10000E-03    7.0242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.433        12.479        .10542E-03   -1.4948    
  21  Normalizat    1.3611        .30467        .28522E-03   -.81761    
  22  Prefactor     .95414        .20675        .23196E-03   -.94274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2492e-09
Minuit parameter uncertainties:
  1  0.528875
  2  5.30632e-06
  3  10.7533
  4  4.05268e-06
  5  26.6818
  6  19.2618
  7  1.08601e-05
  8  0.000629403
  9  3.58684e-05
  10  4.43176
  11  7.67773
  12  33.7498
  13  8.64643e-06
  14  2.70482e-05
  15  3.88304
  16  7.049
  17  15.2909
  18  2.79165
  19  5.17975e-05
  20  12.4813
  21  0.305079
  22  0.206922
Done.

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

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.778e+01  3.375e+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:  9.541e-01  2.069e-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.361e+00  3.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/877917/likelihoodResults_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.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) = 5540.53724538
delta logL = 0.478480284072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5540.52203392
delta logL = 0.493691745883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.622       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6270       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95260       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5540.522     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      248 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.602        28.537        .10853E-03   -.23654E-03
   2  alpha         3.6285        1.4484        .21445E-01   -.25876E-04
   3  Normalizat    1.3414        .29315        .28682E-03    .19459E-03
   4  Prefactor     .95265        .20393        .23194E-03   -.38785E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6021
  alpha      = 3.6285
  Normalizat = 1.34135
  Prefactor  = 0.952645
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.522     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.602        23.641        .43410E-05   -1.4970    
   2  alpha         3.6285        1.2314        .85780E-03    .46834    
   3  Normalizat    1.3414        .29214        .57364E-04   -.82340    
   4  Prefactor     .95265        .20350        .46389E-04   -.94325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98309e-09
Minuit parameter uncertainties:
  1  23.6574
  2  1.30443
  3  0.292497
  4  0.20366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877917': 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) = 5540.52203323
delta logL = 0.493692438134

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.360e+01  2.366e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  3.629e+00  1.304e+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:  9.526e-01  2.037e-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.341e+00  2.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 204.976 -1.638
Photon Index (Free Index): 3.63 +/- 1.30
Photon Flux (Free Index): 3.53e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.18e-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/877917/cmap_HighResolution_634608001_634867201_4FGL_J1339.9-0138_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', comment='SUCCESS', energy_flux2='1.15e-05', dlogl='4.94e-01', photon_flux2='3.53e-08', job_status='DONE', time_completed='2021-09-08 08:56:51.671156', photon_index_error2='1.30', photon_index2='3.63', ts='0.38', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='4.94e-08', energy_flux_error2='1.18e-05', EG='1.36', time_epoch_completed='1631116611.67', return_code='0', job_id='877917', GAL2='0.95', EG2='1.34', return_code2='0', photon_flux_error2='4.31e-08', ts2='1.37', photon_index='2.12' WHERE bin_id='1525' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:56:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 877917: <4FGL_J1339.9-0138_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin1525> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 08:40:47 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:43:41 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:43:41 2021
Terminated at Wed Sep  8 08:56:52 2021
Results reported at Wed Sep  8 08:56:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1525 204.976 -1.6378 634608001 634867201 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 :                                   492.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            965 sec.

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

