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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin573
RA = 219.941, Dec = 49.9775
tmin = 387849601, tmax = 388108801
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='680429', job_status='RUN', time_executed='2021-09-10 03:56:29.541291', time_epoch_executed='1631271389.54' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680429/ft1_4FGL_J1439.7+4958_daily_bin573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680429/ft2_4FGL_J1439.7+4958_daily_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680429/ft1_4FGL_J1439.7+4958_daily_bin573.fits outfile=/scratch/kocevski/680429/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin573.fits ra=219.941 dec=49.9775 rad=12.0 tmin=387849601.0 tmax=388108801.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 4.53
user 4.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680429/ft2_4FGL_J1439.7+4958_daily_bin573.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/680429/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin573.fits evtable="EVENTS" outfile="/scratch/kocevski/680429/ft1_filtered_4FGL_J1439.7+4958_daily_bin573.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680429/ft1_filtered_4FGL_J1439.7+4958_daily_bin573.fits" evtable="EVENTS" scfile=/scratch/kocevski/680429/ft2_4FGL_J1439.7+4958_daily_bin573.fits sctable="SC_DATA" outfile=/scratch/kocevski/680429/ltcube_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.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/680429/ft2_4FGL_J1439.7+4958_daily_bin573.fits
.....................!
real 11.88
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680429/ft1_filtered_4FGL_J1439.7+4958_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/680429/ft2_4FGL_J1439.7+4958_daily_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/680429/ltcube_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.fits outfile=/scratch/kocevski/680429/expmap_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.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/680429/ltcube_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.fits
.....................!
real 192.31
user 187.05
sys 4.87

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/680429/ft1_filtered_4FGL_J1439.7+4958_daily_bin573.fits scfile=/scratch/kocevski/680429/ft2_4FGL_J1439.7+4958_daily_bin573.fits outfile=/scratch/kocevski/680429/cmap_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680429/ft1_filtered_4FGL_J1439.7+4958_daily_bin573.fits scfile=/scratch/kocevski/680429/ft2_4FGL_J1439.7+4958_daily_bin573.fits outfile=/scratch/kocevski/680429/cmap_HighResolution_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/680429/ft1_filtered_4FGL_J1439.7+4958_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/680429/ft2_4FGL_J1439.7+4958_daily_bin573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/680429/Model_4FGL_J1439.7+4958_daily_bin573.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/680429/ft1_filtered_4FGL_J1439.7+4958_daily_bin573.fits.....................!
real 48.71
user 47.36
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/680429/ft1_filtered_4FGL_J1439.7+4958_daily_bin573.fits', '/scratch/kocevski/680429/ft2_4FGL_J1439.7+4958_daily_bin573.fits', expMap='/scratch/kocevski/680429/expmap_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.fits', expCube='/scratch/kocevski/680429/ltcube_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/680429/Model_4FGL_J1439.7+4958_daily_bin573.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/680429/ft1_filtered_4FGL_J1439.7+4958_daily_bin573.fits
Spacecraft file(s): /scratch/kocevski/680429/ft2_4FGL_J1439.7+4958_daily_bin573.fits
Exposure map: /scratch/kocevski/680429/expmap_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.fits
Exposure cube: /scratch/kocevski/680429/ltcube_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/680429/Model_4FGL_J1439.7+4958_daily_bin573.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) = 5911.24118539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    78.694       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.927       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .38652       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58982E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.217       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13357E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34158E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13297E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    68.156       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.110       1.0000         .10000E-03   10000.    
    24 'norm      '    .74687       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .91479       1.0000         .10000E-03   10000.    
    28 'norm      '    5.5467       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .89194       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0141       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=   5911.210     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     4592 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4998       -.94397E-06** at limit **
   2  Prefactor     .10000E-03    18.052       -.19509E-05** at limit **
   3  norm          .10000E-03    1.5613       -.20741E-07** at limit **
   4  Prefactor     78.696        52.266        .84090E-07    .10489E-03
   5  Prefactor     .10000E-03    19.132       -.45163E-06** at limit **
   6  norm          12.927        2.5880       -.32856E-08    .85331E-03
   7  norm          .10001E-03    30.211       -.62738E-05** at limit **
   8  norm          .38660        3.6754       -.44573E-05    .70271E-03
   9  Prefactor     .10010E-03    355.63        .23652E-04** at limit **
  10  Prefactor     54.212        53.084        .20034E-05    .22151E-03
  11  Prefactor     .10000E-03    18.336       -.14638E-05** at limit **
  12  Prefactor     .10001E-03    4.2429        .26423E-05** at limit **
  13  Prefactor     .10001E-03    103.75        .31419E-04** at limit **
  14  Prefactor     3.2765        2.8403       -.60718E-07    .11731E-02
  15  Prefactor     .10000E-03    25.027        .57235E-05** at limit **
  16  Prefactor     .10022E-03    19.812       -.69292E-05** at limit **
  17  Prefactor     .10000E-03    10.318       -.16182E-05** at limit **
  18  Prefactor     .10000E-03    13.008        .18755E-05** at limit **
  19  Prefactor     68.158        32.485        .16032E-06    .11419E-03
  20  Prefactor     .10000E-03    13.300        .14641E-05** at limit **
  21  Prefactor     .10000E-03    13.798        .71348E-06** at limit **
  22  Prefactor     .10000E-03    4.8832        .11054E-06** at limit **
  23  Prefactor     10.111        14.709       -.44335E-06    .98966E-04
  24  norm          .74682        .87250        .33726E-07   -.39122E-04
  25  Prefactor     .10000E-03    24.980        .59893E-05** at limit **
  26  Prefactor     .10000E-03    1.8377        .25670E-07** at limit **
  27  Prefactor     .88416        4.1930       -.14064E-05    .12186E-04
  28  norm          5.5471        3.5806       -.13598E-06    .67703E-05
  29  Prefactor     .10000E-03    4.5808       -.49895E-07** at limit **
  30  Prefactor     .10000E-03    6.6582        .77664E-06** at limit **
  31  Prefactor     .10000E-03    7.5960        .33156E-06** at limit **
  32  Normalizat    .89175        .17937        .33691E-05    .65669E-03
  33  Prefactor     1.0142        .19384       -.72327E-06    .68992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 78.6959
  Prefactor  = 0.0001
  norm       = 12.9272
  norm       = 0.000100007
  norm       = 0.386598
  Prefactor  = 0.000100096
  Prefactor  = 54.2116
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100006
  Prefactor  = 3.27653
  Prefactor  = 0.000100003
  Prefactor  = 0.000100219
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 68.1582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1112
  norm       = 0.746816
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.884163
  norm       = 5.54714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.891746
  Prefactor  = 1.01425
 **********
 **   18 **HESSE 
 **********

 FCN=   5911.210     FROM HESSE     STATUS=OK           683 CALLS     5275 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5720        .93806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     78.696        52.275        .45270E-04   -1.3931    
   5  Prefactor     .10000E-03    19.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.927        2.5874        .53176E-04   -1.4989    
   7  norm          .10001E-03    30.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .38660        3.8372        .28438E-03   -1.5584    
   9  Prefactor     .10010E-03    361.95        .21073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     54.212        53.107        .54474E-04   -1.4234    
  11  Prefactor     .10000E-03    18.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    16.947        .28156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    107.43        .61940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2765        2.7717        .10820E-03   -1.5346    
  15  Prefactor     .10000E-03    25.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10022E-03    189.78        .58813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     68.158        32.527        .48619E-04   -1.4055    
  20  Prefactor     .10000E-03    13.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8885        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.111        14.643        .12602E-03   -1.5072    
  24  norm          .74682        .85057        .74405E-04   -1.5535    
  25  Prefactor     .10000E-03    25.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.8408        .10174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .88416        13.645        .28561E-02   -1.5520    
  28  norm          5.5471        3.5742        .11254E-03   -1.5237    
  29  Prefactor     .10000E-03    4.6227        .16053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.6697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    7.6542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .89175        .20559        .23413E-03   -.96751    
  33  Prefactor     1.0142        .22768        .25913E-03   -.92256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80734e-09
Minuit parameter uncertainties:
  1  6.75636e-05
  2  0.000237183
  3  4.06797e-06
  4  52.3055
  5  5.00979e-05
  6  2.58741
  7  0.000903998
  8  2.43584
  9  0.0118765
  10  53.153
  11  0.000222181
  12  0.000750085
  13  0.00159337
  14  2.77184
  15  0.000516042
  16  0.0129238
  17  0.000150716
  18  0.000167287
  19  32.5357
  20  0.000135079
  21  5.86488e-05
  22  4.13669e-06
  23  14.6482
  24  0.850584
  25  0.000355571
  26  4.50759e-06
  27  6.94837
  28  3.57432
  29  2.34919e-05
  30  4.02286e-05
  31  1.34789e-05
  32  0.205767
  33  0.227892
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  4.137e-06  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:  1.014e+00  2.279e-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:  8.917e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/680429/likelihoodResults_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.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) = 5911.21117148
delta logL = -0.000973145785792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5911.21019829
delta logL = 3.98695192416e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2894       1.0000          .0000       10.000    
     3 'Normalizat'    .89174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0143       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=   5911.210     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      231 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10186E-03    115.83        .16704E-02** at limit **
   2  Index         2.1891        8.4940        .50000        .16715E-04
   3  Normalizat    .89175        .19184E-01    .23413E-03   -.38846E-05
   4  Prefactor     1.0142        .22623E-01    .25913E-03   -.14303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101855
  Index      = 2.18912
  Normalizat = 0.891747
  Prefactor  = 1.01424
 **********
 **   18 **HESSE 
 **********

 FCN=   5911.210     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      260 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10186E-03    452.22        .33409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1891        6.0945        .50000       -.59701    
   3  Normalizat    .89175        .41833E-01    .93652E-05   -.96751    
   4  Prefactor     1.0142        .49320E-01    .10365E-04   -.92256    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.23982e-08
Minuit parameter uncertainties:
  1  0.0583799
  2  1381.03
  3  0.0418342
  4  0.0493226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680429': 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): 102
logL (Free Index) = 5911.21019798
delta logL = 3.55510564987e-07

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.019e-04  5.838e-02  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.189e+00  1.381e+03  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:  1.014e+00  4.932e-02  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:  8.917e-01  4.183e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/680429/cmap_HighResolution_387849601_388108801_4FGL_J1439.7+4958_daily_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-10 04:12:55.654365', job_id='680429', GAL2='1.01', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631272375.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='573' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 04:12:55 PDT 2021


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

Job <4FGL_J1439.7+4958_daily_bin573> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:56:18 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:56:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:56:20 2021
Terminated at Fri Sep 10 04:12:56 2021
Results reported at Fri Sep 10 04:12:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin573 219.941 49.9775 387849601 388108801 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 :                                   980.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

