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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin658
RA = 219.941, Dec = 49.9775
tmin = 409881601, tmax = 410140801
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='681810', job_status='RUN', time_executed='2021-09-10 04:01:22.977337', time_epoch_executed='1631271682.98' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681810

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681810/ft1_4FGL_J1439.7+4958_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681810/ft2_4FGL_J1439.7+4958_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681810/ft1_4FGL_J1439.7+4958_daily_bin658.fits outfile=/scratch/kocevski/681810/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin658.fits ra=219.941 dec=49.9775 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.23
user 5.96
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681810/ft2_4FGL_J1439.7+4958_daily_bin658.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/681810/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/681810/ft1_filtered_4FGL_J1439.7+4958_daily_bin658.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681810/ft1_filtered_4FGL_J1439.7+4958_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/681810/ft2_4FGL_J1439.7+4958_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/681810/ltcube_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.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/681810/ft2_4FGL_J1439.7+4958_daily_bin658.fits
.....................!
real 12.25
user 11.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681810/ft1_filtered_4FGL_J1439.7+4958_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/681810/ft2_4FGL_J1439.7+4958_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/681810/ltcube_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.fits outfile=/scratch/kocevski/681810/expmap_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.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/681810/ltcube_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.fits
.....................!
real 192.00
user 187.08
sys 4.52

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/681810/ft1_filtered_4FGL_J1439.7+4958_daily_bin658.fits scfile=/scratch/kocevski/681810/ft2_4FGL_J1439.7+4958_daily_bin658.fits outfile=/scratch/kocevski/681810/cmap_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681810/ft1_filtered_4FGL_J1439.7+4958_daily_bin658.fits scfile=/scratch/kocevski/681810/ft2_4FGL_J1439.7+4958_daily_bin658.fits outfile=/scratch/kocevski/681810/cmap_HighResolution_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.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.57
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681810/ft1_filtered_4FGL_J1439.7+4958_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/681810/ft2_4FGL_J1439.7+4958_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681810/Model_4FGL_J1439.7+4958_daily_bin658.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/681810/ft1_filtered_4FGL_J1439.7+4958_daily_bin658.fits.....................!
real 32.18
user 30.86
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681810/ft1_filtered_4FGL_J1439.7+4958_daily_bin658.fits', '/scratch/kocevski/681810/ft2_4FGL_J1439.7+4958_daily_bin658.fits', expMap='/scratch/kocevski/681810/expmap_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.fits', expCube='/scratch/kocevski/681810/ltcube_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681810/Model_4FGL_J1439.7+4958_daily_bin658.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/681810/ft1_filtered_4FGL_J1439.7+4958_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/681810/ft2_4FGL_J1439.7+4958_daily_bin658.fits
Exposure map: /scratch/kocevski/681810/expmap_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.fits
Exposure cube: /scratch/kocevski/681810/ltcube_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681810/Model_4FGL_J1439.7+4958_daily_bin658.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2948.65694308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.003       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33228E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    7.3973       1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.792       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.181       1.0000         .10000E-03   10000.    
     6 'norm      '    11.227       1.0000         .10000E-03   10000.    
     7 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20675E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    86.785       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9662       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.480       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.933       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.897       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8392       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7090       1.0000         .10000E-03   10000.    
    24 'norm      '    5.4209       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.2443       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.2319       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    11.204       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .78541       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .71541       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2948.494     FROM MIGRAD    STATUS=CONVERGED   1599 CALLS     5384 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.008        25.083        .68721E-04    .25642E-04
   2  Prefactor     .10000E-03    51.368        .10983    ** at limit **
   3  norm          7.3974        6.3459        .11084E-03    .32564E-04
   4  Prefactor     72.799        64.653        .47056E-04    .58225E-05
   5  Prefactor     20.188        43.616        .89158E-04   -.31240E-05
   6  norm          11.227        2.9027        .44865E-04    .28728E-03
   7  norm          .10000E-03    32.925        .18142E-02** at limit **
   8  norm          .10000E-03    1.3713        .62016E-03** at limit **
   9  Prefactor     .10000E-03    317.17        .18142E-02** at limit **
  10  Prefactor     .10000E-03    34.743        .18142E-02** at limit **
  11  Prefactor     86.776        63.249        .43126E-04    .31871E-04
  12  Prefactor     3.9661        6.9828        .17615E-03   -.18891E-03
  13  Prefactor     .10000E-03    9.1827        .16065E-02** at limit **
  14  Prefactor     .10000E-03    2.0725        .75756E-03** at limit **
  15  Prefactor     23.502        30.125        .82650E-04   -.35764E-05
  16  Prefactor     60.506        42.191        .51593E-04    .16765E-03
  17  Prefactor     .10001E-03    106.15        .18142E-02** at limit **
  18  Prefactor     .10000E-03    36.796        .18142E-02** at limit **
  19  Prefactor     17.939        29.738        .94578E-04   -.19233E-05
  20  Prefactor     .10000E-03    27.935        .18142E-02** at limit **
  21  Prefactor     41.901        45.070        .61932E-04    .17990E-05
  22  Prefactor     7.8396        13.391        .14321E-03   -.39691E-07
  23  Prefactor     5.7288        35.917        .16811E-03   -.10665E-03
  24  norm          5.4207        3.1712        .67638E-04    .11848E-03
  25  Prefactor     9.2459        21.958        .13181E-03    .17034E-04
  26  Prefactor     1.2357        41.666        .40500E-03   -.47370E-04
  27  Prefactor     .10000E-03    6.3046        .13304E-02** at limit **
  28  norm          11.204        7.1108        .10968E-03   -.36539E-04
  29  Prefactor     .10000E-03    6.6995        .13713E-02** at limit **
  30  Prefactor     .10000E-03    8.6469        .15595E-02** at limit **
  31  Prefactor     .10000E-03    6.7532        .13776E-02** at limit **
  32  Normalizat    .78497        .30268        .24039E-03    .18234E-03
  33  Prefactor     .71586        .30176        .28435E-03    .20071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.0079
  Prefactor  = 0.0001
  norm       = 7.39743
  Prefactor  = 72.7985
  Prefactor  = 20.1879
  norm       = 11.2271
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.7759
  Prefactor  = 3.96607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5018
  Prefactor  = 60.5063
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 17.9387
  Prefactor  = 0.0001
  Prefactor  = 41.9011
  Prefactor  = 7.83962
  Prefactor  = 5.72877
  norm       = 5.42075
  Prefactor  = 9.24592
  Prefactor  = 1.23569
  Prefactor  = 0.0001
  norm       = 11.2041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.784972
  Prefactor  = 0.715858
 **********
 **   18 **HESSE 
 **********

 FCN=   2948.494     FROM HESSE     STATUS=OK           671 CALLS     6055 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.008        25.084        .27488E-05   -1.4541    
   2  Prefactor     .10000E-03    49.857        .11231       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.3974        6.3460        .44338E-05   -1.5164    
   4  Prefactor     72.799        64.652        .94112E-05   -1.3999    
   5  Prefactor     20.188        43.628        .35663E-05   -1.4809    
   6  norm          11.227        2.9028        .89730E-05   -1.5038    
   7  norm          .10000E-03    32.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.3713        .12403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    317.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     86.776        63.247        .86252E-05   -1.3842    
  12  Prefactor     3.9661        6.9825        .70461E-05   -1.5310    
  13  Prefactor     .10000E-03    9.1829        .32129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0727        .15151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.502        30.128        .33060E-05   -1.4738    
  16  Prefactor     60.506        42.187        .10319E-04   -1.4151    
  17  Prefactor     .10001E-03    106.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.939        29.739        .37831E-05   -1.4861    
  20  Prefactor     .10000E-03    27.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     41.901        45.070        .12386E-04   -1.4412    
  22  Prefactor     7.8396        13.391        .57286E-05   -1.5148    
  23  Prefactor     5.7288        35.715        .67244E-05   -1.5229    
  24  norm          5.4207        3.1706        .13528E-04   -1.5242    
  25  Prefactor     9.2459        21.955        .52726E-05   -1.5100    
  26  Prefactor     1.2357        41.364        .16200E-04   -1.5486    
  27  Prefactor     .10000E-03    6.3047        .26608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.204        7.1093        .43871E-05   -1.5038    
  29  Prefactor     .10000E-03    6.6996        .27426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    8.6469        .31190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    6.7533        .27552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .78497        .30296        .48077E-04   -1.0063    
  33  Prefactor     .71586        .30208        .11374E-04   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60517e-10
Minuit parameter uncertainties:
  1  25.0914
  2  4.39013e-05
  3  6.34658
  4  64.7149
  5  43.6972
  6  2.90285
  7  9.95967e-06
  8  1.24665e-07
  9  0.000786662
  10  8.88473e-06
  11  63.2961
  12  6.98397
  13  5.23103e-06
  14  2.67033e-05
  15  30.1471
  16  42.2079
  17  0.00152321
  18  2.82e-05
  19  29.7636
  20  4.95725e-05
  21  45.1065
  22  13.3959
  23  28.633
  24  3.17068
  25  21.9745
  26  14.3088
  27  1.9256e-06
  28  7.10987
  29  6.00778e-05
  30  1.33448e-05
  31  2.41231e-05
  32  0.303608
  33  0.30278
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  7.840e+00  1.340e+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.159e-01  3.028e-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:  7.850e-01  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 219.941 49.977
Photon Flux Upper Limit: 9.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681810/likelihoodResults_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.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) = 2948.49368773
delta logL = 0.000223441750677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2948.49354192
delta logL = 0.000369255812529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5501       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3462       1.0000          .0000       10.000    
     3 'Normalizat'    .78464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71577       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2948.494     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      244 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5476        18.045        .14595E-03    .13421E-03
   2  Index         2.3449        1.6378        .10234E-01    .26939E-04
   3  Normalizat    .78440        .25506        .24046E-03   -.27002E-03
   4  Prefactor     .71631        .28990        .28427E-03   -.27809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.54757
  Index      = 2.34485
  Normalizat = 0.784397
  Prefactor  = 0.716308
 **********
 **   18 **HESSE 
 **********

 FCN=   2948.494     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5476        16.874        .58381E-05   -1.5158    
   2  Index         2.3449        1.5365        .40937E-03   -.55981    
   3  Normalizat    .78440        .25505        .48092E-04   -1.0065    
   4  Prefactor     .71631        .28997        .56853E-04   -1.0289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96908e-10
Minuit parameter uncertainties:
  1  16.8844
  2  1.57235
  3  0.255434
  4  0.29058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681810': 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) = 2948.49353849
delta logL = 0.000372688768493

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  7.548e+00  1.688e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.345e+00  1.572e+00  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.163e-01  2.906e-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:  7.844e-01  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
Ra Dec: 219.941 49.977

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/681810/cmap_HighResolution_409881601_410140801_4FGL_J1439.7+4958_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', job_status='DONE', photon_flux_upper_limit='9.86e-08', time_completed='2021-09-10 04:13:40.408142', job_id='681810', GAL2='0.72', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631272420.41', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.73e-04', ts2='0.58', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='658' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 04:13:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 681810: <4FGL_J1439.7+4958_daily_bin658> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin658> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 04:01:05 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:01:06 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:01:06 2021
Terminated at Fri Sep 10 04:13:41 2021
Results reported at Fri Sep 10 04:13:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin658 219.941 49.9775 409881601 410140801 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 :                                   733.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            756 sec.

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

