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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1599
RA = 204.424, Dec = -12.9517
tmin = 653788801, tmax = 654048001
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='953784', job_status='RUN', time_executed='2021-09-23 00:27:47.325335', time_epoch_executed='1632382067.33' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953784

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953784/ft1_4FGL_J1337.6-1257_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953784/ft1_4FGL_J1337.6-1257_daily_bin1599.fits outfile=/scratch/kocevski/953784/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1599.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=653788801.0 tmax=654048001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.06
user 3.72
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.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/953784/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1599.fits evtable="EVENTS" outfile="/scratch/kocevski/953784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1599.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.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/953784/ltcube_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.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/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits
.....................!
real 15.52
user 15.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/953784/ltcube_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.fits outfile=/scratch/kocevski/953784/expmap_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.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/953784/ltcube_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.fits
.....................!
real 195.73
user 189.43
sys 4.13

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

Setting source of interest to:
4FGL J1337.6-1257 @ 204.424 -12.9517

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1599.fits scfile=/scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits outfile=/scratch/kocevski/953784/cmap_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.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.424 yref=-12.9517 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1599.fits scfile=/scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits outfile=/scratch/kocevski/953784/cmap_HighResolution_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.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.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953784/Model_4FGL_J1337.6-1257_daily_bin1599.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/953784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1599.fits.....................!
real 68.63
user 66.99
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1599.fits', '/scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits', expMap='/scratch/kocevski/953784/expmap_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.fits', expCube='/scratch/kocevski/953784/ltcube_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953784/Model_4FGL_J1337.6-1257_daily_bin1599.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.6-1257'

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.146e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/953784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1599.fits
Spacecraft file(s): /scratch/kocevski/953784/ft2_4FGL_J1337.6-1257_daily_bin1599.fits
Exposure map: /scratch/kocevski/953784/expmap_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.fits
Exposure cube: /scratch/kocevski/953784/ltcube_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953784/Model_4FGL_J1337.6-1257_daily_bin1599.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) = 8454.02221595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3447       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9338       1.0000         .10000E-03   10000.    
     3 'norm      '    15.199       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.325       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.390       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5885       1.0000         .10000E-03   10000.    
     9 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.0284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0230       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    26.708       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6908       1.0000         .10000E-03   10000.    
    15 'norm      '    4.8157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7683       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .34786       1.0000         .10000E-03   10000.    
    19 'norm      '    9.1150       1.0000         .10000E-03   10000.    
    20 'norm      '    .53787       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .69741E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1805       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0635       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8453.996     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2204 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3459        10.052        .11337E-05    .21282E-03
   2  norm          1.9340        2.3304        .55925E-06    .10599E-02
   3  norm          15.199        12.331        .72744E-07   -.37922E-05
   4  norm          .10000E-03    8.3915        .18424E-08** at limit **
   5  Prefactor     .10000E-03    4.0675        .15817E-07** at limit **
   6  Prefactor     25.326        12.186        .50367E-07   -.97614E-04
   7  Prefactor     17.393        18.944        .36955E-08   -.48660E-04
   8  norm          2.5886        1.9096        .26963E-06    .81330E-03
   9  norm          .10000E-03    1.5378        .10031E-06** at limit **
  10  norm          9.0282        6.4491       -.21944E-07   -.85242E-04
  11  Prefactor     3.0237        12.072        .67942E-06    .14555E-03
  12  Prefactor     .10000E-03    15.509       -.78855E-07** at limit **
  13  norm          26.708        23.409       -.68270E-08   -.26663E-05
  14  Prefactor     3.6946        12.163        .11384E-05    .18688E-03
  15  norm          4.8154        4.7043        .41845E-06    .35148E-03
  16  Prefactor     3.7640        5.2511        .23589E-06    .10560E-03
  17  Prefactor     .10000E-03    61.842       -.55874E-07** at limit **
  18  norm          .35617        6.2289       -.16488E-05    .11612E-03
  19  norm          9.1148        3.5309       -.13412E-06   -.98343E-03
  20  norm          .52162        13.690        .72647E-05   -.36563E-03
  21  Prefactor     .10006E-03    54.619        .50290E-05** at limit **
  22  Normalizat    1.1805        .25118       -.93596E-06   -.13188E-03
  23  Prefactor     1.0635        .12221       -.27464E-06   -.16099E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.34589
  norm       = 1.93399
  norm       = 15.1992
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3261
  Prefactor  = 17.3928
  norm       = 2.58856
  norm       = 0.0001
  norm       = 9.02819
  Prefactor  = 3.02372
  Prefactor  = 0.0001
  norm       = 26.7082
  Prefactor  = 3.69458
  norm       = 4.81542
  Prefactor  = 3.76402
  Prefactor  = 0.000100001
  norm       = 0.356168
  norm       = 9.11482
  norm       = 0.521617
  Prefactor  = 0.000100056
  Normalizat = 1.18049
  Prefactor  = 1.06352
 **********
 **   18 **HESSE 
 **********

 FCN=   8453.996     FROM HESSE     STATUS=OK           384 CALLS     2588 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3459        10.143        .19325E-03   -1.5291    
   2  norm          1.9340        2.3685        .15199E-03   -1.5430    
   3  norm          15.199        12.338        .10274E-03   -1.4928    
   4  norm          .10000E-03    8.4315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0820        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.326        12.239        .79601E-04   -1.4701    
   7  Prefactor     17.393        18.925        .96044E-04   -1.4874    
   8  norm          2.5886        1.9309        .10224E-03   -1.5386    
   9  norm          .10000E-03    1.5412        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.0282        6.4366        .13339E-03   -1.5107    
  11  Prefactor     3.0237        11.719        .23341E-03   -1.5360    
  12  Prefactor     .10000E-03    15.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          26.708        23.410        .77517E-04   -1.4674    
  14  Prefactor     3.6946        11.883        .21023E-03   -1.5324    
  15  norm          4.8154        4.7363        .18332E-03   -1.5269    
  16  Prefactor     3.7640        5.2892        .20797E-03   -1.5320    
  17  Prefactor     .10000E-03    62.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .35617        27.324        .37487E-02   -1.5589    
  19  norm          9.1148        3.5166        .10037E-03   -1.5104    
  20  norm          .52162        14.926        .38211E-02   -1.5564    
  21  Prefactor     .10006E-03    58.764        .41964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1805        .29105        .37442E-03   -.87208    
  23  Prefactor     1.0635        .14186        .20531E-03   -.90641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77891e-09
Minuit parameter uncertainties:
  1  10.1471
  2  2.36862
  3  12.3397
  4  3.60766e-06
  5  2.29521e-06
  6  12.2401
  7  18.9319
  8  1.93093
  9  7.99254e-06
  10  6.43708
  11  11.7275
  12  3.74353e-05
  13  23.4176
  14  11.8907
  15  4.73669
  16  5.28981
  17  0.000467393
  18  6.24125
  19  3.51664
  20  5.5816
  21  0.00362053
  22  0.29145
  23  0.141911
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  9.028e+00  6.437e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.064e+00  1.419e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.180e+00  2.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.91
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.41e-05

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) = 8453.91545573
delta logL = 0.0803747907376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8453.90818905
delta logL = 0.0876414695504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5121       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6498       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0702       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+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=   8453.908     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5112        6.2192        .13740E-03    .17854E-02
   2  alpha         2.6504        .81028        .17417E-01    .14486E-03
   3  Normalizat    1.1549        .26809        .37787E-03   -.23510E-03
   4  Prefactor     1.0701        .13737        .20470E-03   -.62764E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.5112
  alpha      = 2.65036
  Normalizat = 1.15486
  Prefactor  = 1.07014
 **********
 **   18 **HESSE 
 **********

 FCN=   8453.908     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5112        6.0089        .54959E-05   -1.5124    
   2  alpha         2.6504        .78198        .69666E-03    .60179E-01
   3  Normalizat    1.1549        .26763        .15115E-04   -.88009    
   4  Prefactor     1.0701        .13731        .40941E-04   -.90427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1992e-09
Minuit parameter uncertainties:
  1  6.0093
  2  0.795383
  3  0.267943
  4  0.137351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953784': 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) = 8453.90818869
delta logL = 0.0876418311545

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.511e+00  6.009e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.650e+00  7.954e-01  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.070e+00  1.374e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.155e+00  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.65 +/- 0.80
Photon Flux (Free Index): 7.98e-08 +/- 7.72e-08
Energy Flux (Free Index): 2.13e-05 +/- 1.39e-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/953784/cmap_HighResolution_653788801_654048001_4FGL_J1337.6-1257_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='2.13e-05', photon_flux_error='3.92e-08', dlogl='8.76e-02', energy_flux='1.98e-05', photon_flux2='7.98e-08', job_status='DONE', time_completed='2021-09-23 00:38:36.744454', photon_index_error2='0.80', photon_index2='2.65', ts='4.91', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='1.18', time_epoch_completed='1632382716.74', return_code='0', job_id='953784', GAL2='1.07', EG2='1.15', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='7.72e-08', ts2='5.11', photon_index='2.30' WHERE bin_id='1599' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:38:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 953784: <4FGL_J1337.6-1257_daily_bin1599> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 23 00:26:52 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:27:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:27:15 2021
Terminated at Thu Sep 23 00:38:37 2021
Results reported at Thu Sep 23 00:38:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1599 204.424 -12.9517 653788801 654048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1337.6-1257 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   647.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            705 sec.

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

