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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin678
RA = 264.886, Dec = 49.932
tmin = 415065601, tmax = 415324801
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='963031', job_status='RUN', time_executed='2021-09-18 02:03:40.966739', time_epoch_executed='1631955820.97' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963031/ft1_4FGL_J1739.5+4955_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963031/ft2_4FGL_J1739.5+4955_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963031/ft1_4FGL_J1739.5+4955_daily_bin678.fits outfile=/scratch/kocevski/963031/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin678.fits ra=264.886 dec=49.932 rad=12.0 tmin=415065601.0 tmax=415324801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.69
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963031/ft2_4FGL_J1739.5+4955_daily_bin678.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/963031/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin678.fits evtable="EVENTS" outfile="/scratch/kocevski/963031/ft1_filtered_4FGL_J1739.5+4955_daily_bin678.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963031/ft1_filtered_4FGL_J1739.5+4955_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/963031/ft2_4FGL_J1739.5+4955_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/963031/ltcube_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.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/963031/ft2_4FGL_J1739.5+4955_daily_bin678.fits
.....................!
real 12.19
user 11.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963031/ft1_filtered_4FGL_J1739.5+4955_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/963031/ft2_4FGL_J1739.5+4955_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/963031/ltcube_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.fits outfile=/scratch/kocevski/963031/expmap_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.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/963031/ltcube_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.fits
.....................!
real 192.21
user 186.12
sys 5.73

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/963031/ft1_filtered_4FGL_J1739.5+4955_daily_bin678.fits scfile=/scratch/kocevski/963031/ft2_4FGL_J1739.5+4955_daily_bin678.fits outfile=/scratch/kocevski/963031/cmap_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963031/ft1_filtered_4FGL_J1739.5+4955_daily_bin678.fits scfile=/scratch/kocevski/963031/ft2_4FGL_J1739.5+4955_daily_bin678.fits outfile=/scratch/kocevski/963031/cmap_HighResolution_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/963031/ft1_filtered_4FGL_J1739.5+4955_daily_bin678.fits', '/scratch/kocevski/963031/ft2_4FGL_J1739.5+4955_daily_bin678.fits', expMap='/scratch/kocevski/963031/expmap_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.fits', expCube='/scratch/kocevski/963031/ltcube_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/963031/Model_4FGL_J1739.5+4955_daily_bin678.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/963031/ft1_filtered_4FGL_J1739.5+4955_daily_bin678.fits
Spacecraft file(s): /scratch/kocevski/963031/ft2_4FGL_J1739.5+4955_daily_bin678.fits
Exposure map: /scratch/kocevski/963031/expmap_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.fits
Exposure cube: /scratch/kocevski/963031/ltcube_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/963031/Model_4FGL_J1739.5+4955_daily_bin678.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) = 19.4393920326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27440E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20549E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25351E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22945E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11512E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36950E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    253.99       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16394E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10665E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9253       1.0000         .10000E-03   10000.    
    17 'norm      '    .20178E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20528E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .39746E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27755E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22512E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3978.6       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .30578E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19849E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .94087E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .30183E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .72659       1.0000         .10000E-03   10000.    
    31 'norm      '    .41548E-02   1.0000         .10000E-03   10000.    
    32 'norm      '    .21265E-01   1.0000         .10000E-03   10000.    
    33 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .23738E-07   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=   16.90554     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     5017 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    847.06       -.86987E-07** at limit **
   2  Prefactor     .10000E-03    91.425       -.30026E-06** at limit **
   3  Prefactor     .10000E-03    651.03       -.20896E-06** at limit **
   4  Prefactor     .10000E-03    84.315       -.30392E-06** at limit **
   5  Prefactor     .10000E-03    89.413       -.25817E-05** at limit **
   6  Prefactor     .10000E-03    519.64       -.40619E-06** at limit **
   7  Prefactor     .10000E-03    7852.6       -.16958E-05** at limit **
   8  norm          .10000E-03    23.003       -.46038E-06** at limit **
   9  Prefactor     .10000E-03    185.28       -.21133E-05** at limit **
  10  norm          .10000E-03    24.628       -.40026E-05** at limit **
  11  Prefactor     .10000E-03    7158.0       -.27453E-05** at limit **
  12  norm          253.55        343.44        .24382E-05    .20959E-04
  13  Prefactor     .10000E-03    2047.0       -.13490E-05** at limit **
  14  norm          .10000E-03    49.272       -.14266E-05** at limit **
  15  Prefactor     .10000E-03    231.99       -.78809E-06** at limit **
  16  Prefactor     .10002E-03    9302.1       -.38334E-04** at limit **
  17  norm          .10000E-03    190.00       -.34997E-05** at limit **
  18  Prefactor     .10000E-03    2060.8       -.45901E-05** at limit **
  19  norm          .10000E-03    352.28       -.11397E-05** at limit **
  20  Prefactor     .10000E-03    1958.9       -.62866E-06** at limit **
  21  Prefactor     .10000E-03    1190.7       -.70167E-05** at limit **
  22  Prefactor     3974.0        6400.0       -.44447E-04    .51410E-06
  23  Prefactor     .10000E-03    7573.5       -.87097E-05** at limit **
  24  Prefactor     .10000E-03    1777.3       -.67309E-06** at limit **
  25  Prefactor     .10000E-03    383.99       -.73308E-06** at limit **
  26  Prefactor     .10000E-03    8258.4       -.20470E-05** at limit **
  27  norm          .10000E-03    346.22       -.46252E-06** at limit **
  28  Prefactor     .10000E-03    7409.4       -.29080E-05** at limit **
  29  norm         10000.0        9072.4        .94011E-06** at limit **
  30  Prefactor     .10001E-03    9987.1       -.41544E-05** at limit **
  31  norm          .10000E-03    1162.3       -.17668E-06** at limit **
  32  norm          .10000E-03    6409.2       -.26958E-06** at limit **
  33  Prefactor    10000.0        9246.4        .25044E-05** at limit **
  34  Normalizat    .10000E-01    1.7958       -.51069E-04** at limit **
  35  Prefactor      .0000        .70496       -.97136E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 253.546
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3974.01
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   16.90554     FROM HESSE     STATUS=OK           736 CALLS     5753 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    847.06        .12032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    91.431        .39016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    651.09        .10512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    84.319        .37463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    89.483        .38585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    519.67        .93698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7853.1        .18274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.004        .19547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    185.37        .55630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    24.694        .20234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7158.8        .19591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          253.55        346.01        .12712E-03   -1.2510    
  13  Prefactor     .10000E-03    2047.5        .19128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    49.289        .28622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    232.01        .62295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    9308.1        .14971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    190.18        .56340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2062.5        .19198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    352.32        .76921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1959.1        .18680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1191.3        .14341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3974.0        6413.1        .40862E-04   -.20667    
  23  Prefactor     .10000E-03    7567.5        .18350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1777.5        .17730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    384.05        .80357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8259.0        .18187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    346.25        .76254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7410.3        .19822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm         10000.0        9071.3        .18681E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    9987.0        .24327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1162.3        .14174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    6409.3        .18258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor    10000.0        9244.9        .18497E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    1.7966        .17816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor      .0000        .70511        .10948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35675e-11
Minuit parameter uncertainties:
  1  4.62143e-05
  2  1.0411e-06
  3  0.000288449
  4  7.67862e-06
  5  1.49948e-05
  6  3.51791e-05
  7  0.00230551
  8  1.77489e-06
  9  2.01229e-05
  10  7.51489e-06
  11  0.000144601
  12  348.865
  13  0.000284266
  14  9.96888e-07
  15  2.78012e-05
  16  0.110432
  17  8.71501e-06
  18  0.000106359
  19  5.3432e-05
  20  2.5276e-05
  21  0.00133634
  22  10058.3
  23  0.0034324
  24  4.98945e-05
  25  2.05619e-05
  26  0.00134563
  27  2.23084e-05
  28  0.000170935
  29  0.0071761
  30  0.0351964
  31  0.000192879
  32  0.00087104
  33  0.00228993
  34  1.23882e-08
  35  1.20814e-08
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  5.343e-05  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:  0.000e+00  1.208e-08  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:  1.000e-02  1.239e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/963031/likelihoodResults_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.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) = 16.9055572324
delta logL = -1.42430077474e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16.9055433884
delta logL = -3.98957556769e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5188       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52829E-08   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=   16.90554     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      263 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    9398.2        .47651E-02** at limit **
   2  alpha         1.8256        2.6424        .18648        .12458E-07
   3  Normalizat    .10000E-01    .43084        .17827E-02** at limit **
   4  Prefactor     .55511E-15    .16391        .10950E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100023
  alpha      = 1.82562
  Normalizat = 0.01
  Prefactor  = 5.55112e-16
 **********
 **   18 **HESSE 
 **********

 FCN=   16.90554     FROM HESSE     STATUS=OK            27 CALLS      290 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    457.33        .81312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8256        3.8296        .74593E-01   -.27314    
   3  Normalizat    .10000E-01    1.7966        .35654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-15    .70511        .21900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03469e-10
Minuit parameter uncertainties:
  1  0.0064705
  2  2928.37
  3  2.83987e-06
  4  2.87932e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963031': 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) = 16.9055429747
delta logL = 1.46813050605e-08

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  6.471e-03  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  1.826e+00  2.928e+03  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:  5.551e-16  2.879e-08  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:  1.000e-02  2.840e-06  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/963031/cmap_HighResolution_415065601_415324801_4FGL_J1739.5+4955_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-03', job_status='DONE', photon_flux_upper_limit='1.01e-05', time_completed='2021-09-18 02:09:26.072708', job_id='963031', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631956166.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='1.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='678' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:09:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 963031: <4FGL_J1739.5+4955_daily_bin678> in cluster <slac> Done

Job <4FGL_J1739.5+4955_daily_bin678> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 18 02:00:36 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 02:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 02:00:38 2021
Terminated at Sat Sep 18 02:09:26 2021
Results reported at Sat Sep 18 02:09:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin678 264.886 49.932 415065601 415324801 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 :                                   345.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             241.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            530 sec.

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

