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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin674
RA = 264.886, Dec = 49.932
tmin = 414028801, tmax = 414288001
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='963025', job_status='RUN', time_executed='2021-09-18 02:03:26.868710', time_epoch_executed='1631955806.87' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963025

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963025/ft1_4FGL_J1739.5+4955_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963025/ft2_4FGL_J1739.5+4955_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963025/ft1_4FGL_J1739.5+4955_daily_bin674.fits outfile=/scratch/kocevski/963025/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin674.fits ra=264.886 dec=49.932 rad=12.0 tmin=414028801.0 tmax=414288001.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.19
user 4.94
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963025/ft2_4FGL_J1739.5+4955_daily_bin674.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/963025/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/963025/ft1_filtered_4FGL_J1739.5+4955_daily_bin674.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.98
user 0.33
sys 0.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963025/ft1_filtered_4FGL_J1739.5+4955_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/963025/ft2_4FGL_J1739.5+4955_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/963025/ltcube_414028801_414288001_4FGL_J1739.5+4955_daily_bin674.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/963025/ft2_4FGL_J1739.5+4955_daily_bin674.fits
.....................!
real 12.65
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963025/ft1_filtered_4FGL_J1739.5+4955_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/963025/ft2_4FGL_J1739.5+4955_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/963025/ltcube_414028801_414288001_4FGL_J1739.5+4955_daily_bin674.fits outfile=/scratch/kocevski/963025/expmap_414028801_414288001_4FGL_J1739.5+4955_daily_bin674.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/963025/ltcube_414028801_414288001_4FGL_J1739.5+4955_daily_bin674.fits
.....................!
real 192.95
user 187.40
sys 5.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/963025/ft1_filtered_4FGL_J1739.5+4955_daily_bin674.fits scfile=/scratch/kocevski/963025/ft2_4FGL_J1739.5+4955_daily_bin674.fits outfile=/scratch/kocevski/963025/cmap_414028801_414288001_4FGL_J1739.5+4955_daily_bin674.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963025/ft1_filtered_4FGL_J1739.5+4955_daily_bin674.fits scfile=/scratch/kocevski/963025/ft2_4FGL_J1739.5+4955_daily_bin674.fits outfile=/scratch/kocevski/963025/cmap_HighResolution_414028801_414288001_4FGL_J1739.5+4955_daily_bin674.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0799       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4664       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63695E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1309       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1890       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .65335E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.614       1.0000         .10000E-03   10000.    
    14 'norm      '    7.1417       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6939       1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.070       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7887       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.120       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3185       1.0000         .10000E-03   10000.    
    22 'Prefactor '    110.31       1.0000         .10000E-03   10000.    
    23 'Prefactor '    276.54       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    40.890       1.0000         .10000E-03   10000.    
    26 'Prefactor '    56.953       1.0000         .10000E-03   10000.    
    27 'norm      '    .31107E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.671       1.0000         .10000E-03   10000.    
    29 'norm      '    12.749       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10012E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.4100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3030.586     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     4370 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0891        1.2409        .23335E-06    .36085E-03
   2  Prefactor     7.4666        5.5914       -.17093E-05   -.63619E-03
   3  Prefactor     .10037E-03    20.498        .37689E-05** at limit **
   4  Prefactor     .10000E-03    1.2368        .10433E-05** at limit **
   5  Prefactor     .60220E-01    17.700       -.33988E-05    .19755E-02
   6  Prefactor     .10000E-03    7.7842       -.11169E-05** at limit **
   7  Prefactor     .10236E-03    20.841        .11216E-04** at limit **
   8  norm          .10000E-03    .45198       -.27086E-06** at limit **
   9  Prefactor     2.1316        1.1936       -.72050E-07    .30656E-03
  10  norm          2.1892        1.4377       -.95294E-07    .60973E-04
  11  Prefactor     .10000E-03    8.6118        .39737E-06** at limit **
  12  norm          .64796E-02    .22758       -.19660E-06    .41033E-04
  13  Prefactor     19.615        1.0143        .49259E-07   -.71907E-04
  14  norm          7.1408        4.0344        .22543E-06    .64393E-04
  15  Prefactor     4.6936        5.0388       -.96277E-06   -.89575E-04
  16  Prefactor     69.083        2.1895        .33361E-06   -.28685E-02
  17  norm          2.7879        1.1441        .13123E-06   -.46004E-03
  18  Prefactor     .10093E-03    20.619       -.25904E-05** at limit **
  19  norm          .10000E-03    4.0124       -.94714E-06** at limit **
  20  Prefactor     28.128        1.5126        .30652E-06   -.10671E-02
  21  Prefactor     1.2941        1.7613       -.74406E-06   -.33554E-03
  22  Prefactor     110.33        4.6376        .60574E-06   -.97515E-02
  23  Prefactor     276.54        1.0061        .95710E-08   -.42159E-03
  24  Prefactor     .10647E-03    43.385       -.15498E-04** at limit **
  25  Prefactor     40.941        4.7813        .80612E-06    .44877E-02
  26  Prefactor     56.927        3.5920       -.65843E-06    .35313E-02
  27  norm          .10115E-03    330.13       -.52641E-04** at limit **
  28  Prefactor     30.647        3.3577       -.83567E-06    .25027E-02
  29  norm          12.746        1.2719        .92335E-07   -.24636E-03
  30  Prefactor     .10560E-03    77.156       -.10912E-04** at limit **
  31  norm          .10000E-03    10.085       -.14217E-05** at limit **
  32  norm          .10102E-03    21.859       -.34021E-05** at limit **
  33  Prefactor     .10000E-03    2.6051        .62900E-06** at limit **
  34  Normalizat    .10000E-01    .78208       -.45403E-04** at limit **
  35  Prefactor     1.4102        .12480        .65929E-05    .13856E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.08909
  Prefactor  = 7.4666
  Prefactor  = 0.000100375
  Prefactor  = 0.0001
  Prefactor  = 0.0602201
  Prefactor  = 0.0001
  Prefactor  = 0.000102364
  norm       = 0.0001
  Prefactor  = 2.13158
  norm       = 2.18922
  Prefactor  = 0.0001
  norm       = 0.00647957
  Prefactor  = 19.6147
  norm       = 7.14084
  Prefactor  = 4.69358
  Prefactor  = 69.0833
  norm       = 2.78792
  Prefactor  = 0.000100935
  norm       = 0.0001
  Prefactor  = 28.1282
  Prefactor  = 1.29412
  Prefactor  = 110.334
  Prefactor  = 276.543
  Prefactor  = 0.000106475
  Prefactor  = 40.9409
  Prefactor  = 56.9272
  norm       = 0.000101147
  Prefactor  = 30.6471
  norm       = 12.7458
  Prefactor  = 0.000105599
  norm       = 0.0001
  norm       = 0.000101018
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.41018
 **********
 **   18 **HESSE 
 **********

 FCN=   3030.586     FROM HESSE     STATUS=OK           858 CALLS     5228 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0891        27.005        .33252E-02   -1.5105    
   2  Prefactor     7.4666        5.6775        .36694E-02   -1.5161    
   3  Prefactor     .10037E-03    7.7694        .51862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .60220E-01    2.1555        .44413E-01   -1.5659    
   6  Prefactor     .10000E-03    7.7569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10236E-03    27.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .44641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1316        14.574        .70609E-02   -1.5416    
  10  norm          2.1892        1.5562        .69545E-02   -1.5412    
  11  Prefactor     .10000E-03    8.5806        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .64796E-02    13.971        .94047E-01   -1.5692    
  13  Prefactor     19.615        18.470        .22609E-02   -1.4822    
  14  norm          7.1408        4.2176        .37526E-02   -1.5173    
  15  Prefactor     4.6936        5.0414        .46435E-02   -1.5275    
  16  Prefactor     69.083        94.330        .12075E-02   -1.4044    
  17  norm          2.7879        6.8976        .60913E-02   -1.5374    
  18  Prefactor     .10093E-03    42.760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.128        107.58        .18887E-02   -1.4647    
  21  Prefactor     1.2941        41.936        .95842E-02   -1.5480    
  22  Prefactor     110.33        196.03        .95745E-03   -1.3603    
  23  Prefactor     276.54        342.36        .60983E-03   -1.2367    
  24  Prefactor     .10647E-03    63.443        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     40.941        28.667        .15672E-02   -1.4427    
  26  Prefactor     56.927        66.477        .13289E-02   -1.4198    
  27  norm          .10115E-03    27.713        .91775E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     30.647        71.431        .18087E-02   -1.4600    
  29  norm          12.746        22.473        .28047E-02   -1.4994    
  30  Prefactor     .10560E-03    99.134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    10.071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10102E-03    24.833        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    2.5881        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    .37585        .23867       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     1.4102        .18465        .30925E-01   -.80087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78128e-06
Minuit parameter uncertainties:
  1  27.0409
  2  5.67791
  3  0.00341268
  4  3.47568e-06
  5  0.719992
  6  1.68974e-05
  7  0.0161177
  8  7.38882e-07
  9  11.151
  10  1.55626
  11  2.62209e-05
  12  0.597228
  13  18.4754
  14  4.21773
  15  5.04186
  16  94.5351
  17  6.89952
  18  0.0126549
  19  7.33266e-07
  20  108.338
  21  14.7444
  22  197.198
  23  344.902
  24  0.0405784
  25  28.677
  26  66.5642
  27  0.0112794
  28  71.6313
  29  22.488
  30  0.047199
  31  3.41867e-05
  32  0.0100582
  33  5.726e-06
  34  2.78861e-06
  35  0.18474
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  7.333e-07  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.410e+00  1.847e-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:  1.000e-02  2.789e-06  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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963025/likelihoodResults_414028801_414288001_4FGL_J1739.5+4955_daily_bin674.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) = 3030.5866696
delta logL = -0.00112455095041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3030.58554774
delta logL = -2.68343637799e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2642       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4099       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3030.586     FROM MIGRAD    STATUS=FAILED        92 CALLS      236 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    661.76        .10787E-02** at limit **
   2  alpha         1.9821        2.6605        .50000       -.75602E-07
   3  Normalizat    .10000E-01    .37592        .13356E-01** at limit **
   4  Prefactor     1.4102        .81272E-01    .18109E-03    .23178E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3030.586     FROM SIMPLEX   STATUS=UNCHANGED    208 CALLS      444 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    661.76        .22852E-03** at limit **
   2  alpha         1.9821        2.6605        .10117E-06   -.75602E-07
   3  Normalizat    .10000E-01    .37592        .26311E-02** at limit **
   4  Prefactor     1.4102        .81272E-01    .70163E-09    .23178E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3030.586     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      476 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3004        .21575E-03** at limit **
   2  alpha         1.9840        3.9992        .20000       -.16627E-07
   3  Normalizat    .10000E-01    .78166        .26712E-02** at limit **
   4  Prefactor     1.4102        .11723        .36217E-04    .23163E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98401
  Normalizat = 0.01
  Prefactor  = 1.41018
 **********
 **   18 **HESSE 
 **********

 FCN=   3030.586     FROM HESSE     STATUS=OK            27 CALLS      503 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1699        .43149E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9840        3.7851        .80000E-01   -.20789    
   3  Normalizat    .10000E-01    .78173        .53423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4102        .11720        .72435E-05   -.80087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16821e-11
Minuit parameter uncertainties:
  1  1.35822e-05
  2  289.158
  3  6.20925e-06
  4  0.117223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963025': 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) = 3030.58554459
delta logL = 4.60501269117e-07

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  1.358e-05  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  1.984e+00  2.892e+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.410e+00  1.172e-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:  1.000e-02  6.209e-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/963025/cmap_HighResolution_414028801_414288001_4FGL_J1739.5+4955_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-05', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-18 02:14:59.898027', job_id='963025', GAL2='1.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631956499.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='4.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='674' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:14:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 963025: <4FGL_J1739.5+4955_daily_bin674> in cluster <slac> Done

Job <4FGL_J1739.5+4955_daily_bin674> 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) <bullet0282>, 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:15:00 2021
Results reported at Sat Sep 18 02:15:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin674 264.886 49.932 414028801 414288001 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 :                                   691.48 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             250.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            864 sec.

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

