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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin675
RA = 264.886, Dec = 49.932
tmin = 414288001, tmax = 414547201
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='963026', job_status='RUN', time_executed='2021-09-18 02:00:54.877905', time_epoch_executed='1631955654.88' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963026

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963026/ft1_4FGL_J1739.5+4955_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963026/ft2_4FGL_J1739.5+4955_daily_bin675.fits


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

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

Done.
real 5.49
user 5.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963026/ft2_4FGL_J1739.5+4955_daily_bin675.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/963026/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin675.fits evtable="EVENTS" outfile="/scratch/kocevski/963026/ft1_filtered_4FGL_J1739.5+4955_daily_bin675.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/963026/ft1_filtered_4FGL_J1739.5+4955_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/963026/ft2_4FGL_J1739.5+4955_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/963026/ltcube_414288001_414547201_4FGL_J1739.5+4955_daily_bin675.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/963026/ft2_4FGL_J1739.5+4955_daily_bin675.fits
.....................!
real 12.47
user 12.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963026/ft1_filtered_4FGL_J1739.5+4955_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/963026/ft2_4FGL_J1739.5+4955_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/963026/ltcube_414288001_414547201_4FGL_J1739.5+4955_daily_bin675.fits outfile=/scratch/kocevski/963026/expmap_414288001_414547201_4FGL_J1739.5+4955_daily_bin675.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/963026/ltcube_414288001_414547201_4FGL_J1739.5+4955_daily_bin675.fits
.....................!
real 190.57
user 184.46
sys 5.76

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/963026/ft1_filtered_4FGL_J1739.5+4955_daily_bin675.fits scfile=/scratch/kocevski/963026/ft2_4FGL_J1739.5+4955_daily_bin675.fits outfile=/scratch/kocevski/963026/cmap_414288001_414547201_4FGL_J1739.5+4955_daily_bin675.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963026/ft1_filtered_4FGL_J1739.5+4955_daily_bin675.fits scfile=/scratch/kocevski/963026/ft2_4FGL_J1739.5+4955_daily_bin675.fits outfile=/scratch/kocevski/963026/cmap_HighResolution_414288001_414547201_4FGL_J1739.5+4955_daily_bin675.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.103       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.489       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.698       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.491       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6770       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .51564E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3130       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.3296       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    155.34       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7435       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    107.56       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.899       1.0000         .10000E-03   10000.    
    26 'Prefactor '    84.388       1.0000         .10000E-03   10000.    
    27 'norm      '    12.930       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    37.292       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    11.777       1.0000         .10000E-03   10000.    
    32 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .71723       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .93557       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=   3186.499     FROM MIGRAD    STATUS=CONVERGED    952 CALLS     5065 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.118        52.772       -.19215E-06    .15431E-04
   2  Prefactor     11.897        10.574        .29132E-06    .21895E-03
   3  Prefactor     19.491        24.914       -.49442E-07    .88081E-05
   4  Prefactor     .10000E-03    6.1114       -.14672E-06** at limit **
   5  Prefactor     .10000E-03    2.3349       -.11029E-06** at limit **
   6  Prefactor     31.702        31.167        .11303E-06    .44618E-04
   7  Prefactor     .10000E-03    42.865        .49454E-07** at limit **
   8  norm          .10000E-03    1.1217       -.49048E-06** at limit **
   9  Prefactor     .10000E-03    8.9130       -.25203E-06** at limit **
  10  norm          .10000E-03    .63147       -.22656E-06** at limit **
  11  Prefactor     14.493        16.383       -.71704E-07    .64030E-05
  12  norm          1.6766        12.161        .17414E-05    .64860E-04
  13  Prefactor     .10000E-03    11.513       -.45500E-07** at limit **
  14  norm          .10004E-03    2.9297       -.21721E-05** at limit **
  15  Prefactor     3.3130        7.3481        .35374E-06    .94305E-04
  16  Prefactor     .10000E-03    94.445        .52465E-07** at limit **
  17  norm          7.3296        7.5378       -.32240E-06    .11825E-03
  18  Prefactor     .10000E-03    155.15       -.49973E-06** at limit **
  19  norm          .10000E-03    10.124        .27082E-06** at limit **
  20  Prefactor     154.97        220.32        .72868E-05    .16634E-03
  21  Prefactor     6.7454        11.349       -.12196E-06    .59554E-04
  22  Prefactor     .10000E-03    140.64       -.39363E-06** at limit **
  23  Prefactor     .10000E-03    86.075       -.19817E-07** at limit **
  24  Prefactor     107.88        163.75       -.10415E-05    .16322E-03
  25  Prefactor     19.897        13.941        .19177E-06    .18028E-03
  26  Prefactor     84.401        62.406       -.80085E-06    .14369E-04
  27  norm          12.928        13.831       -.23209E-06    .99547E-04
  28  Prefactor     .10000E-03    47.106       -.24846E-06** at limit **
  29  norm          37.295        17.744       -.36143E-06    .15966E-04
  30  Prefactor     .10000E-03    96.401       -.33573E-07** at limit **
  31  norm          11.778        15.515       -.23172E-06    .21468E-04
  32  norm          .10000E-03    8.8803       -.10642E-07** at limit **
  33  Prefactor     .10000E-03    8.5149       -.15386E-07** at limit **
  34  Normalizat    .71695        .35381        .18120E-06    .36730E-03
  35  Prefactor     .93571        .22215        .23846E-05    .46493E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.118
  Prefactor  = 11.8966
  Prefactor  = 19.4915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4932
  norm       = 1.67656
  Prefactor  = 0.0001
  norm       = 0.000100039
  Prefactor  = 3.31298
  Prefactor  = 0.0001
  norm       = 7.3296
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 154.97
  Prefactor  = 6.74536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.876
  Prefactor  = 19.8973
  Prefactor  = 84.4008
  norm       = 12.9281
  Prefactor  = 0.0001
  norm       = 37.2946
  Prefactor  = 0.0001
  norm       = 11.7781
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.716952
  Prefactor  = 0.935706
 **********
 **   18 **HESSE 
 **********

 FCN=   3186.499     FROM HESSE     STATUS=OK           766 CALLS     5831 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.118        52.824        .74265E-04   -1.4628    
   2  Prefactor     11.897        10.522        .11615E-03   -1.5018    
   3  Prefactor     19.491        24.981        .90726E-04   -1.4825    
   4  Prefactor     .10000E-03    6.1452        .13617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3475        .84240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.702        31.158        .71168E-04   -1.4581    
   7  Prefactor     .10000E-03    42.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7569        .11392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.9636        .16451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .79741        .86729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.493        16.437        .10522E-03   -1.4946    
  12  norm          1.6766        11.871        .32538E-03   -1.5449    
  13  Prefactor     .10000E-03    11.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10004E-03    8.8084        .15895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3130        7.3313        .21894E-03   -1.5344    
  16  Prefactor     .10000E-03    94.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.3296        7.5215        .14764E-03   -1.5166    
  18  Prefactor     .10000E-03    155.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.130        .17514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     154.97        220.90        .16173E-03   -1.3212    
  21  Prefactor     6.7454        11.351        .15451E-03   -1.5188    
  22  Prefactor     .10000E-03    140.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    86.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     107.88        163.07        .19389E-03   -1.3627    
  25  Prefactor     19.897        13.937        .89787E-04   -1.4816    
  26  Prefactor     84.401        62.408        .21864E-03   -1.3868    
  27  norm          12.928        13.851        .11140E-03   -1.4989    
  28  Prefactor     .10000E-03    47.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          37.295        17.763        .65630E-04   -1.4486    
  30  Prefactor     .10000E-03    96.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          11.778        15.503        .11673E-03   -1.5021    
  32  norm          .10000E-03    8.8837        .16430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    8.8163        .32103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .71695        .41619        .36593E-03   -1.0323    
  35  Prefactor     .93571        .26159        .21109E-03   -.94904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31533e-09
Minuit parameter uncertainties:
  1  52.9089
  2  10.5238
  3  24.9942
  4  2.46715e-06
  5  2.0965e-06
  6  31.174
  7  4.31749e-05
  8  1.87686e-05
  9  1.69827e-06
  10  1.59076e-06
  11  16.4423
  12  8.92479
  13  9.31718e-06
  14  0.00117421
  15  7.33328
  16  3.66774e-05
  17  7.52243
  18  0.00037882
  19  3.37068e-05
  20  222.1
  21  11.3547
  22  9.1716e-05
  23  1.53571e-05
  24  163.755
  25  13.939
  26  62.4568
  27  13.8544
  28  0.000148239
  29  17.7656
  30  7.41121e-05
  31  15.5079
  32  8.79539e-06
  33  4.51244e-05
  34  0.418039
  35  0.261938
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  3.371e-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:  9.357e-01  2.619e-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:  7.170e-01  4.180e-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: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963026/likelihoodResults_414288001_414547201_4FGL_J1739.5+4955_daily_bin675.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) = 3186.49936212
delta logL = -0.000470040897653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3186.49889672
delta logL = -4.64080676466e-06

Fit tolerance = 1e-08

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

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

 FCN=   3186.499     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.506        .90712E-02** at limit **
   2  alpha         2.3143        3.5346        .41332       -.10590E-04
   3  Normalizat    .71694        .31975        .82638E-01    .12875E-04
   4  Prefactor     .93571        .21034        .45465E-01   -.11084E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.3143
  Normalizat = 0.716944
  Prefactor  = 0.935708
 **********
 **   18 **HESSE 
 **********

 FCN=   3186.499     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.551        .17849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3143        3.5081        .50000       -.74349E-01
   3  Normalizat    .71694        .37397        .36594E-03   -1.0323    
   4  Prefactor     .93571        .24669        .21108E-03   -.94904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1926e-10
Minuit parameter uncertainties:
  1  3.78676e-05
  2  2.50101
  3  0.375316
  4  0.246987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963026': 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) = 3186.49889189
delta logL = 1.87171735888e-07

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  3.787e-05  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.314e+00  2.501e+00  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:  9.357e-01  2.470e-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:  7.169e-01  3.753e-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/963026/cmap_HighResolution_414288001_414547201_4FGL_J1739.5+4955_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-05', job_status='DONE', photon_flux_upper_limit='1.84e-07', time_completed='2021-09-18 02:13:25.325312', job_id='963026', GAL2='0.94', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1631956405.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='675' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:13:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 963026: <4FGL_J1739.5+4955_daily_bin675> in cluster <slac> Done

Job <4FGL_J1739.5+4955_daily_bin675> 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) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 02:00: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 02:00:37 2021
Terminated at Sat Sep 18 02:13:26 2021
Results reported at Sat Sep 18 02:13:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin675 264.886 49.932 414288001 414547201 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 :                                   744.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

