/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 1 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1739.5+4955_daily_bin15
RA = 264.886, Dec = 49.932
tmin = 243216001, tmax = 243475201
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='958830', job_status='RUN', time_executed='2021-09-18 01:45:45.790445', time_epoch_executed='1631954745.79' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958830

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958830/ft1_4FGL_J1739.5+4955_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958830/ft1_4FGL_J1739.5+4955_daily_bin15.fits outfile=/scratch/kocevski/958830/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin15.fits ra=264.886 dec=49.932 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.06
user 0.90
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.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/958830/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/958830/ft1_filtered_4FGL_J1739.5+4955_daily_bin15.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.40
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958830/ft1_filtered_4FGL_J1739.5+4955_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/958830/ltcube_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.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/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits
.....................!
real 9.69
user 9.41
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958830/ft1_filtered_4FGL_J1739.5+4955_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/958830/ltcube_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.fits outfile=/scratch/kocevski/958830/expmap_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.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/958830/ltcube_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.fits
.....................!
real 143.30
user 140.07
sys 3.00

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

Setting source of interest to:
4FGL J1739.5+4955 @ 264.886 49.932

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/958830/ft1_filtered_4FGL_J1739.5+4955_daily_bin15.fits scfile=/scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits outfile=/scratch/kocevski/958830/cmap_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.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=264.886 yref=49.932 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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958830/ft1_filtered_4FGL_J1739.5+4955_daily_bin15.fits scfile=/scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits outfile=/scratch/kocevski/958830/cmap_HighResolution_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.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=264.886 yref=49.932 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.45
user 0.31
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/958830/ft1_filtered_4FGL_J1739.5+4955_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/958830/Model_4FGL_J1739.5+4955_daily_bin15.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/958830/ft1_filtered_4FGL_J1739.5+4955_daily_bin15.fits.....................!
real 40.07
user 39.01
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958830/ft1_filtered_4FGL_J1739.5+4955_daily_bin15.fits', '/scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits', expMap='/scratch/kocevski/958830/expmap_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.fits', expCube='/scratch/kocevski/958830/ltcube_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958830/Model_4FGL_J1739.5+4955_daily_bin15.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1739.5+4955'

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  3.625e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/958830/ft1_filtered_4FGL_J1739.5+4955_daily_bin15.fits
Spacecraft file(s): /scratch/kocevski/958830/ft2_4FGL_J1739.5+4955_daily_bin15.fits
Exposure map: /scratch/kocevski/958830/expmap_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.fits
Exposure cube: /scratch/kocevski/958830/ltcube_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958830/Model_4FGL_J1739.5+4955_daily_bin15.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) = 5878.56715273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0977       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0156       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1125       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6491       1.0000         .10000E-03   10000.    
    10 'norm      '    .10665E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .25016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1178       1.0000         .10000E-03   10000.    
    14 'norm      '    .47006       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .72041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11791E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9193       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2350       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.0559       1.0000         .10000E-03   10000.    
    27 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.804       1.0000         .10000E-03   10000.    
    29 'norm      '    9.2849       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .83425       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5878.562     FROM MIGRAD    STATUS=CONVERGED   1017 CALLS     5137 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.631        21.922        .10095E-07    .27587E-06
   2  Prefactor     9.0963        5.6236        .46171E-07   -.98351E-05
   3  Prefactor     .10000E-03    2.6976        .89461E-07** at limit **
   4  Prefactor     .10000E-03    4.1379       -.33116E-07** at limit **
   5  Prefactor     .10000E-03    .82385        .74354E-08** at limit **
   6  Prefactor     3.0135        10.000        .41406E-06    .89230E-05
   7  Prefactor     4.0760        29.417       -.47989E-05   -.52274E-05
   8  norm          1.3484        1.1566       -.57782E-07    .16867E-04
   9  Prefactor     5.6426        7.7710        .15933E-05    .77561E-04
  10  norm          .10000E-03    .60393       -.10985E-06** at limit **
  11  Prefactor     .10000E-03    6.0312        .24770E-06** at limit **
  12  norm          .10001E-03    7.9830        .20378E-05** at limit **
  13  Prefactor     5.1148        9.4669        .54468E-06    .19710E-04
  14  norm          .47013        1.5388       -.31979E-07   -.18074E-03
  15  Prefactor     .10000E-03    2.6502       -.38700E-07** at limit **
  16  Prefactor     .10000E-03    39.062        .15773E-06** at limit **
  17  norm          .10000E-03    2.7177        .72187E-08** at limit **
  18  Prefactor     .10000E-03    28.339        .59671E-07** at limit **
  19  norm          .10000E-03    1.5975       -.51375E-07** at limit **
  20  Prefactor     .10000E-03    35.169       -.21119E-05** at limit **
  21  Prefactor     4.9189        4.0684       -.49157E-07   -.84117E-05
  22  Prefactor     .10000E-03    27.982        .53074E-06** at limit **
  23  Prefactor     .10000E-03    46.136        .17228E-05** at limit **
  24  Prefactor     9.1208        55.817        .43335E-05    .71969E-05
  25  Prefactor     .10000E-03    3.9052       -.34500E-07** at limit **
  26  Prefactor     4.0548        15.710        .25981E-05    .40909E-04
  27  norm          .10000E-03    2.5421       -.36170E-07** at limit **
  28  Prefactor     12.802        21.112       -.17874E-06   -.18601E-05
  29  norm          9.2841        10.320        .63243E-06    .49168E-04
  30  Prefactor     .10000E-03    12.118        .80303E-07** at limit **
  31  norm          .10000E-03    2.1759       -.77833E-08** at limit **
  32  norm          .10000E-03    3.0153       -.40256E-09** at limit **
  33  Prefactor     .10000E-03    1.0018       -.58822E-08** at limit **
  34  Normalizat    .83444        .22186       -.13647E-05   -.70021E-04
  35  Prefactor     1.0226        .14293        .41084E-06   -.11583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6305
  Prefactor  = 9.09634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01348
  Prefactor  = 4.07601
  norm       = 1.34844
  Prefactor  = 5.64257
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 5.11475
  norm       = 0.470126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.91888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.12076
  Prefactor  = 0.0001
  Prefactor  = 4.05484
  norm       = 0.0001
  Prefactor  = 12.8021
  norm       = 9.28413
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.834439
  Prefactor  = 1.02256
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.562     FROM HESSE     STATUS=OK           772 CALLS     5909 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.631        21.908        .11745E-03   -1.5026    
   2  Prefactor     9.0963        5.6326        .13288E-03   -1.5105    
   3  Prefactor     .10000E-03    2.7022        .12300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2667        .30297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .82702        .67958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0135        9.9599        .23371E-03   -1.5361    
   7  Prefactor     4.0760        29.365        .19879E-03   -1.5304    
   8  norm          1.3484        1.1323        .68991E-04   -1.5476    
   9  Prefactor     5.6426        7.9331        .84506E-03   -1.5233    
  10  norm          .10000E-03    1.4410        .11273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    18.246        .37185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1148        9.4427        .17772E-03   -1.5256    
  14  norm          .47013        1.8333        .15310E-02   -1.5571    
  15  Prefactor     .10000E-03    2.7262        .24369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.271        .24367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6000        .94632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9189        4.0654        .13547E-03   -1.5264    
  22  Prefactor     .10000E-03    28.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    46.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.1208        56.004        .13188E-03   -1.5104    
  25  Prefactor     .10000E-03    3.9143        .14797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.0548        15.738        .10011E-02   -1.5305    
  27  norm          .10000E-03    2.5474        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.802        21.082        .11194E-03   -1.4992    
  29  norm          9.2841        10.302        .65762E-03   -1.5098    
  30  Prefactor     .10000E-03    12.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.1771        .11045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    3.0157        .13003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.0044        .74939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .83444        .25657        .30277E-03   -.98804    
  35  Prefactor     1.0226        .16855        .19701E-03   -.91981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56643e-08
Minuit parameter uncertainties:
  1  21.9233
  2  5.63295
  3  6.55652e-06
  4  6.72381e-07
  5  6.98834e-08
  6  9.96536
  7  21.8957
  8  1.13232
  9  7.93457
  10  2.43618e-05
  11  2.70369e-05
  12  0.000719745
  13  9.44546
  14  1.83356
  15  1.89713e-06
  16  2.10636e-05
  17  0.000137962
  18  7.03713e-06
  19  2.67176e-06
  20  0.000109854
  21  4.06561
  22  4.28364e-06
  23  2.05824e-06
  24  45.2645
  25  2.75672e-06
  26  15.7544
  27  1.84523e-06
  28  21.0941
  29  10.3042
  30  1.27851e-07
  31  1.94445e-07
  32  8.21544e-08
  33  5.11001e-08
  34  0.256942
  35  0.168642
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  2.672e-06  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.023e+00  1.686e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  8.344e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.886 49.932
Photon Flux Upper Limit: 4.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958830/likelihoodResults_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5878.56492129
delta logL = -0.0029230039836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5878.56199819
delta logL = 9.66892912402e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2610       1.0000          .0000       5.0000    
     3 'Normalizat'    .83444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+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=   5878.562     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      234 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    106.54        .94950E-02** at limit **
   2  alpha         1.9110        3.4451        .16557       -.36255E-07
   3  Normalizat    .83444        .42170E-01    .30277E-03    .14607E-04
   4  Prefactor     1.0226        .30288E-01    .19701E-03    .31104E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91096
  Normalizat = 0.834439
  Prefactor  = 1.02256
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.562     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7192        .98062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9110        2.8706        .66227E-02   -.23785    
   3  Normalizat    .83444        .22943        .12111E-04   -.98804    
   4  Prefactor     1.0226        .16490        .78804E-05   -.91981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02074e-12
Minuit parameter uncertainties:
  1  2.86513e-06
  2  167.197
  3  0.229695
  4  0.164981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958830': 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) = 5878.56199614
delta logL = 2.14080773731e-06

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  2.865e-06  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  1.911e+00  1.672e+02  0.000e+00  5.000e+00 ( 1.000e+00)
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.023e+00  1.650e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  8.344e-01  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.886 49.932

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/958830/cmap_HighResolution_243216001_243475201_4FGL_J1739.5+4955_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-05', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-09-18 01:59:01.260592', job_id='958830', GAL2='1.02', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631955541.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='15' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:59:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 958830: <4FGL_J1739.5+4955_daily_bin15> in cluster <slac> Done

Job <4FGL_J1739.5+4955_daily_bin15> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 01:45:36 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:45:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 01:45:37 2021
Terminated at Sat Sep 18 01:59:02 2021
Results reported at Sat Sep 18 01:59:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin15 264.886 49.932 243216001 243475201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1739.5+4955 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   793.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             371.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

