/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7572
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1439.7+4958_daily_bin958
RA = 219.941, Dec = 49.9775
tmin = 487641601, tmax = 487900801
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='683486', job_status='RUN', time_executed='2021-09-10 04:06:24.692896', time_epoch_executed='1631271984.69' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683486

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683486/ft1_4FGL_J1439.7+4958_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683486/ft1_4FGL_J1439.7+4958_daily_bin958.fits outfile=/scratch/kocevski/683486/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin958.fits ra=219.941 dec=49.9775 rad=12.0 tmin=487641601.0 tmax=487900801.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.04
user 4.82
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.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/683486/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin958.fits evtable="EVENTS" outfile="/scratch/kocevski/683486/ft1_filtered_4FGL_J1439.7+4958_daily_bin958.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/683486/ft1_filtered_4FGL_J1439.7+4958_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/683486/ltcube_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.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/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits
.....................!
real 11.97
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683486/ft1_filtered_4FGL_J1439.7+4958_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/683486/ltcube_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.fits outfile=/scratch/kocevski/683486/expmap_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.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/683486/ltcube_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.fits
.....................!
real 191.26
user 185.03
sys 5.84

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

Setting source of interest to:
4FGL J1439.7+4958 @ 219.941 49.9775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/683486/ft1_filtered_4FGL_J1439.7+4958_daily_bin958.fits scfile=/scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits outfile=/scratch/kocevski/683486/cmap_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.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=219.941 yref=49.9775 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683486/ft1_filtered_4FGL_J1439.7+4958_daily_bin958.fits scfile=/scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits outfile=/scratch/kocevski/683486/cmap_HighResolution_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.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=219.941 yref=49.9775 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/683486/ft1_filtered_4FGL_J1439.7+4958_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/683486/Model_4FGL_J1439.7+4958_daily_bin958.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/683486/ft1_filtered_4FGL_J1439.7+4958_daily_bin958.fits.....................!
real 36.40
user 35.07
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/683486/ft1_filtered_4FGL_J1439.7+4958_daily_bin958.fits', '/scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits', expMap='/scratch/kocevski/683486/expmap_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.fits', expCube='/scratch/kocevski/683486/ltcube_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/683486/Model_4FGL_J1439.7+4958_daily_bin958.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1439.7+4958'

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  6.204e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/683486/ft1_filtered_4FGL_J1439.7+4958_daily_bin958.fits
Spacecraft file(s): /scratch/kocevski/683486/ft2_4FGL_J1439.7+4958_daily_bin958.fits
Exposure map: /scratch/kocevski/683486/expmap_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.fits
Exposure cube: /scratch/kocevski/683486/ltcube_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/683486/Model_4FGL_J1439.7+4958_daily_bin958.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) = 3858.3881596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4592       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.1553       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.593       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.333       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6755       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2492       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.249       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.5585       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .31793       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.787       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13547       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .44014       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98846       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .75151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3858.328     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     4634 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7621       -.15095E-07** at limit **
   2  Prefactor     .10000E-03    12.229        .11149E-06** at limit **
   3  norm          .10000E-03    1.7065       -.31444E-07** at limit **
   4  Prefactor     .10000E-03    90.768       -.20408E-05** at limit **
   5  Prefactor     .10000E-03    50.519        .17527E-05** at limit **
   6  norm          1.4590        1.2757       -.40970E-07    .13223E-04
   7  norm          .10000E-03    44.073       -.91793E-06** at limit **
   8  norm          6.1550        4.8454       -.86947E-07    .25699E-03
   9  Prefactor     .10000E-03    229.67        .60807E-06** at limit **
  10  Prefactor     37.589        40.000        .12355E-06    .62386E-04
  11  Prefactor     13.312        38.822       -.17817E-06    .41438E-04
  12  Prefactor     .10000E-03    2.2828        .78190E-07** at limit **
  13  Prefactor     .10000E-03    7.9976       -.21618E-06** at limit **
  14  Prefactor     .10000E-03    1.3405       -.92916E-06** at limit **
  15  Prefactor     .10000E-03    7.8521        .18104E-06** at limit **
  16  Prefactor     8.6941        33.384        .30159E-05    .13589E-03
  17  Prefactor     .10000E-03    20.101       -.19481E-05** at limit **
  18  Prefactor     .10000E-03    16.195       -.55906E-07** at limit **
  19  Prefactor     .10000E-03    17.692        .53440E-06** at limit **
  20  Prefactor     9.1744        54.278       -.20531E-05    .53689E-04
  21  Prefactor     29.245        32.076        .55018E-07    .10330E-04
  22  Prefactor     22.091        16.488       -.57468E-07    .50742E-04
  23  Prefactor     .10000E-03    6.6534       -.39674E-07** at limit **
  24  norm          5.5598        2.3799       -.32397E-08    .21585E-03
  25  Prefactor     .10000E-03    6.3123       -.46801E-07** at limit **
  26  Prefactor     .28353        6.9464        .29361E-05    .16435E-03
  27  Prefactor     15.788        11.425       -.17585E-06    .93523E-04
  28  norm          .10000E-03    1.4361       -.10306E-07** at limit **
  29  Prefactor     .15657        17.006       -.40317E-06    .17726E-03
  30  Prefactor     .10000E-03    15.563       -.44494E-06** at limit **
  31  Prefactor     .44611        71.573       -.11711E-04    .10632E-03
  32  Normalizat    .98837        .20188        .61528E-06    .12467E-03
  33  Prefactor     .75180        .21549        .21530E-06    .34438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 1.45896
  norm       = 0.0001
  norm       = 6.15496
  Prefactor  = 0.0001
  Prefactor  = 37.5887
  Prefactor  = 13.3123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.69412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.17443
  Prefactor  = 29.2454
  Prefactor  = 22.0912
  Prefactor  = 0.0001
  norm       = 5.55978
  Prefactor  = 0.0001
  Prefactor  = 0.283527
  Prefactor  = 15.7883
  norm       = 0.0001
  Prefactor  = 0.156568
  Prefactor  = 0.0001
  Prefactor  = 0.44611
  Normalizat = 0.988365
  Prefactor  = 0.751798
 **********
 **   18 **HESSE 
 **********

 FCN=   3858.328     FROM HESSE     STATUS=OK           687 CALLS     5321 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7630        .11767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7328        .79234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    91.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4590        1.2728        .63292E-04   -1.5466    
   7  norm          .10000E-03    44.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.1550        4.8430        .11480E-03   -1.5212    
   9  Prefactor     .10000E-03    229.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.589        40.000        .65368E-04   -1.4481    
  11  Prefactor     13.312        39.149        .10970E-03   -1.4978    
  12  Prefactor     .10000E-03    2.2857        .91582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0127        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3953        .70909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8597        .17000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6941        34.978        .13609E-03   -1.5118    
  17  Prefactor     .10000E-03    20.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.1744        54.910        .13178E-03   -1.5102    
  21  Prefactor     29.245        32.095        .74080E-04   -1.4626    
  22  Prefactor     22.091        16.487        .85227E-04   -1.4768    
  23  Prefactor     .10000E-03    6.6586        .15647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.5598        2.3790        .60411E-04   -1.5236    
  25  Prefactor     .10000E-03    6.3221        .15229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .28353        17.689        .23937E-02   -1.5601    
  27  Prefactor     15.788        11.537        .10080E-03   -1.4913    
  28  norm          .10000E-03    1.4379        .72615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .15657        2217.0        .35383E-02   -1.5629    
  30  Prefactor     .10000E-03    15.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .44611        2084.6        .42360E-02   -1.5574    
  32  Normalizat    .98837        .25775        .20544E-03   -.93421    
  33  Prefactor     .75180        .27082        .26817E-03   -1.0153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55836e-09
Minuit parameter uncertainties:
  1  2.23292e-06
  2  8.40878e-06
  3  3.81932e-06
  4  0.000740462
  5  0.00039912
  6  1.27281
  7  0.000233985
  8  4.84335
  9  0.000364413
  10  40.0286
  11  39.2249
  12  9.08059e-07
  13  3.44603e-05
  14  1.42543e-05
  15  1.26153e-05
  16  34.9127
  17  0.000153017
  18  8.93e-06
  19  6.05512e-05
  20  44.9512
  21  32.1143
  22  16.4905
  23  6.50991e-06
  24  2.37907
  25  5.74482e-07
  26  4.47954
  27  11.5387
  28  9.85844e-07
  29  38.7854
  30  4.90063e-05
  31  63.3319
  32  0.258073
  33  0.271302
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  2.209e+01  1.649e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  7.518e-01  2.713e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  9.884e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.02
Ra Dec: 219.941 49.977
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.15e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3856.85668193
delta logL = 1.47100433774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3856.84887114
delta logL = 1.47881512424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.576       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3708       1.0000          .0000       10.000    
     3 'Normalizat'    1.0163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73397       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3856.849     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.576        18.272        .20624E-02   -.15514E-02
   2  Index         1.3709        .38630        .16190       -.35957E-04
   3  Normalizat    1.0162        .17633        .43965E-01    .36930E-05
   4  Prefactor     .73398        .20423        .61314E-01    .12142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5762
  Index      = 1.37088
  Normalizat = 1.01625
  Prefactor  = 0.733982
 **********
 **   18 **HESSE 
 **********

 FCN=   3856.849     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.576        21.258        .82496E-04   -1.4736    
   2  Index         1.3709        .47638        .67535E-02   -.81223    
   3  Normalizat    1.0162        .20826        .20299E-03   -.92488    
   4  Prefactor     .73398        .24101        .27120E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42884e-09
Minuit parameter uncertainties:
  1  21.2647
  2  0.477921
  3  0.208426
  4  0.241359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683486': 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) = 3856.84887112
delta logL = 1.47881514662

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  2.358e+01  2.126e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.371e+00  4.779e-01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  7.340e-01  2.414e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.016e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.01
Ra Dec: 219.941 49.977
Photon Index (Free Index): 1.37 +/- 0.48
Photon Flux (Free Index): 1.54e-08 +/- 1.50e-08
Energy Flux (Free Index): 7.48e-05 +/- 9.27e-05

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/683486/cmap_HighResolution_487641601_487900801_4FGL_J1439.7+4958_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='7.48e-05', photon_flux_error='3.05e-08', dlogl='1.48e+00', energy_flux='1.54e-05', photon_flux2='1.54e-08', job_status='DONE', time_completed='2021-09-10 04:17:38.177272', photon_index_error2='0.48', photon_index2='1.37', ts='8.02', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='9.27e-05', EG='0.99', time_epoch_completed='1631272658.18', return_code='0', job_id='683486', GAL2='0.73', EG2='1.02', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='1.50e-08', ts2='11.01', photon_index='2.30' WHERE bin_id='958' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 04:17:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 683486: <4FGL_J1439.7+4958_daily_bin958> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin958> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 04:06:13 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:06:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 04:06:15 2021
Terminated at Fri Sep 10 04:17:38 2021
Results reported at Fri Sep 10 04:17:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin958 219.941 49.9775 487641601 487900801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1439.7+4958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            685 sec.

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

