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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin970
RA = 219.941, Dec = 49.9775
tmin = 490752001, tmax = 491011201
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='683504', job_status='RUN', time_executed='2021-09-10 04:06:26.051295', time_epoch_executed='1631271986.05' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683504

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683504/ft1_4FGL_J1439.7+4958_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683504/ft2_4FGL_J1439.7+4958_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683504/ft1_4FGL_J1439.7+4958_daily_bin970.fits outfile=/scratch/kocevski/683504/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin970.fits ra=219.941 dec=49.9775 rad=12.0 tmin=490752001.0 tmax=491011201.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.76
user 5.51
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/683504/ft1_filtered_4FGL_J1439.7+4958_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/683504/ft2_4FGL_J1439.7+4958_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/683504/ltcube_490752001_491011201_4FGL_J1439.7+4958_daily_bin970.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/683504/ft2_4FGL_J1439.7+4958_daily_bin970.fits
.....................!
real 11.97
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683504/ft1_filtered_4FGL_J1439.7+4958_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/683504/ft2_4FGL_J1439.7+4958_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/683504/ltcube_490752001_491011201_4FGL_J1439.7+4958_daily_bin970.fits outfile=/scratch/kocevski/683504/expmap_490752001_491011201_4FGL_J1439.7+4958_daily_bin970.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/683504/ltcube_490752001_491011201_4FGL_J1439.7+4958_daily_bin970.fits
.....................!
real 190.58
user 185.28
sys 4.94

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/683504/ft1_filtered_4FGL_J1439.7+4958_daily_bin970.fits scfile=/scratch/kocevski/683504/ft2_4FGL_J1439.7+4958_daily_bin970.fits outfile=/scratch/kocevski/683504/cmap_490752001_491011201_4FGL_J1439.7+4958_daily_bin970.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683504/ft1_filtered_4FGL_J1439.7+4958_daily_bin970.fits scfile=/scratch/kocevski/683504/ft2_4FGL_J1439.7+4958_daily_bin970.fits outfile=/scratch/kocevski/683504/cmap_HighResolution_490752001_491011201_4FGL_J1439.7+4958_daily_bin970.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/683504/ft1_filtered_4FGL_J1439.7+4958_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/683504/ft2_4FGL_J1439.7+4958_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/683504/Model_4FGL_J1439.7+4958_daily_bin970.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/683504/ft1_filtered_4FGL_J1439.7+4958_daily_bin970.fits.....................!
real 32.73
user 31.47
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36425E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .13739E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    28.736       1.0000         .10000E-03   10000.    
     8 'norm      '    6.8514       1.0000         .10000E-03   10000.    
     9 'Prefactor '    493.20       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.885       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7525       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.001       1.0000         .10000E-03   10000.    
    16 'Prefactor '    67.005       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1137       1.0000         .10000E-03   10000.    
    18 'Prefactor '    70.316       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.765       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.2778       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.5290       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.363       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.508       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2002       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .34217       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=   3207.638     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     5261 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.656        .45145E-07** at limit **
   2  Prefactor     .10001E-03    218.47       -.26871E-05** at limit **
   3  norm          .10000E-03    1.7304        .78955E-08** at limit **
   4  Prefactor     .10000E-03    55.840        .56356E-06** at limit **
   5  Prefactor     .10000E-03    37.129        .28673E-06** at limit **
   6  norm          .10000E-03    1.0700        .70832E-07** at limit **
   7  norm          28.772        75.031        .14463E-05    .55706E-04
   8  norm          6.8521        5.5550        .12588E-06   -.16341E-04
   9  Prefactor     493.05        788.87        .67221E-06   -.95958E-05
  10  Prefactor     41.867        72.382        .37785E-06   -.32940E-04
  11  Prefactor     .10000E-03    58.945       -.20366E-06** at limit **
  12  Prefactor     3.7519        5.2809        .18745E-06    .21869E-04
  13  Prefactor     .10000E-03    6.3620        .13200E-07** at limit **
  14  Prefactor     .10000E-03    1.4993       -.24514E-06** at limit **
  15  Prefactor     35.001        23.515        .12591E-06   -.36073E-05
  16  Prefactor     67.009        40.548        .69443E-07    .32706E-04
  17  Prefactor     4.1078        47.860        .10001E-05   -.40351E-05
  18  Prefactor     70.311        75.387       -.48244E-06   -.69496E-05
  19  Prefactor     .10000E-03    9.4726        .11603E-06** at limit **
  20  Prefactor     .10000E-03    68.453       -.31070E-06** at limit **
  21  Prefactor     14.763        28.254        .22646E-06   -.68330E-05
  22  Prefactor     .10000E-03    30.206       -.68273E-06** at limit **
  23  Prefactor     .10000E-03    16.678       -.12505E-06** at limit **
  24  norm          5.2777        2.6748       -.38709E-07    .27191E-07
  25  Prefactor     .10000E-03    3.7035        .28111E-07** at limit **
  26  Prefactor     7.5299        9.6891        .28197E-05   -.13487E-03
  27  Prefactor     .10000E-03    10.050        .12789E-06** at limit **
  28  norm          .10000E-03    2.2700       -.18793E-07** at limit **
  29  Prefactor     13.363        15.058       -.12078E-05   -.13219E-04
  30  Prefactor     .10000E-03    60.579       -.67971E-06** at limit **
  31  Prefactor     10.508        26.275        .41419E-05   -.29147E-04
  32  Normalizat    1.2001        .22862       -.67050E-06    .28383E-04
  33  Prefactor     .34219        .24384       -.21005E-05   -.14107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.7717
  norm       = 6.85213
  Prefactor  = 493.047
  Prefactor  = 41.8667
  Prefactor  = 0.0001
  Prefactor  = 3.75188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0005
  Prefactor  = 67.0088
  Prefactor  = 4.10784
  Prefactor  = 70.3105
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.7635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.27774
  Prefactor  = 0.0001
  Prefactor  = 7.52992
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3629
  Prefactor  = 0.0001
  Prefactor  = 10.5077
  Normalizat = 1.20014
  Prefactor  = 0.342193
 **********
 **   18 **HESSE 
 **********

 FCN=   3207.638     FROM HESSE     STATUS=OK           681 CALLS     5942 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    221.93        .21306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7339        .72755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    55.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.3832        .11335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.772        74.974        .74737E-04   -1.4635    
   8  norm          6.8521        5.5650        .11424E-03   -1.5184    
   9  Prefactor     493.05        788.35        .92363E-04   -1.1230    
  10  Prefactor     41.867        72.227        .61940E-04   -1.4413    
  11  Prefactor     .10000E-03    59.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7519        5.2704        .14907E-03   -1.5321    
  13  Prefactor     .10000E-03    6.3640        .13953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5010        .67540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.001        23.534        .67737E-04   -1.4524    
  16  Prefactor     67.009        40.528        .49032E-04   -1.4069    
  17  Prefactor     4.1078        47.481        .19876E-03   -1.5303    
  18  Prefactor     70.311        75.303        .47872E-04   -1.4029    
  19  Prefactor     .10000E-03    9.4767        .17026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    68.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.763        28.242        .10423E-03   -1.4939    
  22  Prefactor     .10000E-03    30.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.2777        2.6735        .63232E-04   -1.5248    
  25  Prefactor     .10000E-03    3.7051        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.5299        9.6647        .73079E-03   -1.5159    
  27  Prefactor     .10000E-03    10.221        .17529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.2806        .83162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.363        14.974        .10957E-03   -1.4977    
  30  Prefactor     .10000E-03    61.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     10.508        26.294        .61800E-03   -1.5060    
  32  Normalizat    1.2001        .24837        .18878E-03   -.86599    
  33  Prefactor     .34219        .26070        .36477E-03   -1.1987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6992e-10
Minuit parameter uncertainties:
  1  7.21402e-06
  2  0.00225786
  3  1.72621e-06
  4  0.000349945
  5  0.000157364
  6  0.00011755
  7  75.2214
  8  5.56543
  9  806.899
  10  72.3788
  11  0.000246966
  12  5.2711
  13  1.03604e-06
  14  3.0154e-06
  15  23.54
  16  40.5448
  17  27.9593
  18  75.4049
  19  2.86001e-05
  20  0.000468862
  21  28.2679
  22  0.000154816
  23  1.16291e-06
  24  2.6736
  25  1.33179e-06
  26  9.66673
  27  5.62066e-06
  28  1.68147e-06
  29  14.9778
  30  0.000276311
  31  26.3228
  32  0.248612
  33  0.261598
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  1.548e-04  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:  3.422e-01  2.616e-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.200e+00  2.486e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/683504/likelihoodResults_490752001_491011201_4FGL_J1439.7+4958_daily_bin970.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) = 3207.63776643
delta logL = -0.000156527735726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3207.63760988
delta logL = 1.41553755384e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3393       1.0000          .0000       10.000    
     3 'Normalizat'    1.2002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34221       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=   3207.638     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      209 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    50.694        .90712E-02** at limit **
   2  Index         2.3999        6.1778        .50000       -.16956E-04
   3  Normalizat    1.2001        .21800        .34887E-01    .62315E-03
   4  Prefactor     .34219        .23573        .82331E-01    .19317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Index      = 2.39994
  Normalizat = 1.20014
  Prefactor  = 0.34219
 **********
 **   18 **HESSE 
 **********

 FCN=   3207.638     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    8012.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3999        5.5847        .50000       -.54686    
   3  Normalizat    1.2001        .11576        .18877E-03   -.86598    
   4  Prefactor     .34219        .12488        .36477E-03   -1.1987    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.74915e-07
Minuit parameter uncertainties:
  1  0.0288852
  2  61.1028
  3  0.11578
  4  0.124981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683504': 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) = 3207.63760953
delta logL = 3.64783318219e-07

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  2.889e-02  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.400e+00  6.110e+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:  3.422e-01  1.250e-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.200e+00  1.158e-01  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/683504/cmap_HighResolution_490752001_491011201_4FGL_J1439.7+4958_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-10 04:18:19.814147', job_id='683504', GAL2='0.34', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631272699.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.34', dlogl='3.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='970' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 04:18:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 683504: <4FGL_J1439.7+4958_daily_bin970> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin970> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 04:06:14 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:06:16 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:16 2021
Terminated at Fri Sep 10 04:18:20 2021
Results reported at Fri Sep 10 04:18:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin970 219.941 49.9775 490752001 491011201 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 :                                   705.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

