/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 7 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 = 7566
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1459.0+7140_daily_bin40
RA = 224.753, Dec = 71.6733
tmin = 249696001, tmax = 249955201
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='923366', job_status='RUN', time_executed='2021-09-10 17:01:32.876909', time_epoch_executed='1631318492.88' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/923366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/923366/ft1_4FGL_J1459.0+7140_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/923366/ft1_4FGL_J1459.0+7140_daily_bin40.fits outfile=/scratch/kocevski/923366/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin40.fits ra=224.753 dec=71.6733 rad=12.0 tmin=249696001.0 tmax=249955201.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 1.47
user 1.27
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.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/923366/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/923366/ft1_filtered_4FGL_J1459.0+7140_daily_bin40.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/923366/ft1_filtered_4FGL_J1459.0+7140_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/923366/ltcube_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.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/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits
.....................!
real 12.96
user 12.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/923366/ft1_filtered_4FGL_J1459.0+7140_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/923366/ltcube_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.fits outfile=/scratch/kocevski/923366/expmap_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.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/923366/ltcube_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.fits
.....................!
real 192.01
user 186.99
sys 4.66

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

Setting source of interest to:
4FGL J1459.0+7140 @ 224.753 71.6733

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/923366/ft1_filtered_4FGL_J1459.0+7140_daily_bin40.fits scfile=/scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits outfile=/scratch/kocevski/923366/cmap_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.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=224.753 yref=71.6733 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/923366/ft1_filtered_4FGL_J1459.0+7140_daily_bin40.fits scfile=/scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits outfile=/scratch/kocevski/923366/cmap_HighResolution_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.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=224.753 yref=71.6733 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/923366/ft1_filtered_4FGL_J1459.0+7140_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/923366/Model_4FGL_J1459.0+7140_daily_bin40.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/923366/ft1_filtered_4FGL_J1459.0+7140_daily_bin40.fits.....................!
real 65.61
user 64.20
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/923366/ft1_filtered_4FGL_J1459.0+7140_daily_bin40.fits', '/scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits', expMap='/scratch/kocevski/923366/expmap_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.fits', expCube='/scratch/kocevski/923366/ltcube_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/923366/Model_4FGL_J1459.0+7140_daily_bin40.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1459.0+7140'

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  8.846e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.499e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/923366/ft1_filtered_4FGL_J1459.0+7140_daily_bin40.fits
Spacecraft file(s): /scratch/kocevski/923366/ft2_4FGL_J1459.0+7140_daily_bin40.fits
Exposure map: /scratch/kocevski/923366/expmap_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.fits
Exposure cube: /scratch/kocevski/923366/ltcube_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/923366/Model_4FGL_J1459.0+7140_daily_bin40.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) = 6535.05223679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    99.933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.633       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.028       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    103.39       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2981       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.6081       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85915       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1400       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6534.997     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3463 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.794        95.431       -.11167E-03    .15609E-05
   2  Prefactor     .10000E-03    24.374        .10589E-05** at limit **
   3  Prefactor     21.565        57.179       -.66972E-04   -.17427E-04
   4  Prefactor     .10000E-03    1.3696        .38259E-06** at limit **
   5  Prefactor     16.443        27.936        .41982E-04    .13178E-03
   6  Prefactor     .10000E-03    2.3446       -.69029E-08** at limit **
   7  Prefactor     .10000E-03    10.837        .36591E-05** at limit **
   8  Prefactor     16.021        18.877       -.29360E-05   -.28587E-04
   9  Prefactor     .10000E-03    80.170       -.11216E-04** at limit **
  10  Prefactor     .10000E-03    166.37        .41187E-04** at limit **
  11  Prefactor     .10000E-03    23.879       -.11370E-07** at limit **
  12  Prefactor     .10000E-03    5.4677        .34883E-07** at limit **
  13  Prefactor     .10000E-03    9.8856       -.20980E-06** at limit **
  14  Prefactor     .10000E-03    24.164        .63877E-06** at limit **
  15  Prefactor     .10000E-03    26.246       -.23414E-05** at limit **
  16  Prefactor     .10000E-03    11.385       -.42901E-05** at limit **
  17  Prefactor     .10000E-03    12.031       -.31969E-05** at limit **
  18  norm          1.2897        1.6440        .77333E-06    .52673E-03
  19  Prefactor     103.33        85.272       -.49692E-04    .16849E-04
  20  norm          .10000E-03    13.609        .81756E-05** at limit **
  21  Prefactor     .10000E-03    82.979        .26331E-05** at limit **
  22  Prefactor     .10000E-03    15.101       -.66319E-05** at limit **
  23  norm          .10000E-03    .50337       -.30727E-06** at limit **
  24  Prefactor     .10000E-03    2.1203       -.14259E-06** at limit **
  25  Prefactor     3.3012        38.670       -.19771E-05    .57817E-04
  26  Prefactor     2.5892        53.769       -.35663E-05   -.67880E-04
  27  Normalizat    .85942        .16973        .96978E-05   -.90347E-04
  28  Prefactor     1.1397        .15263        .15702E-06    .42154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.794
  Prefactor  = 0.0001
  Prefactor  = 21.5655
  Prefactor  = 0.0001
  Prefactor  = 16.443
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.0213
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28972
  Prefactor  = 103.328
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30124
  Prefactor  = 2.5892
  Normalizat = 0.859419
  Prefactor  = 1.13974
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.997     FROM HESSE     STATUS=OK           511 CALLS     3974 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.794        95.424        .20108E-03   -1.3707    
   2  Prefactor     .10000E-03    24.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.565        57.039        .86116E-04   -1.4779    
   4  Prefactor     .10000E-03    1.3756        .92367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.443        27.989        .98793E-04   -1.4897    
   6  Prefactor     .10000E-03    2.3464        .12088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.021        18.879        .10004E-03   -1.4907    
   9  Prefactor     .10000E-03    80.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    166.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2897        1.6248        .11339E-03   -1.5481    
  19  Prefactor     103.33        85.267        .19772E-03   -1.3671    
  20  norm          .10000E-03    13.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    83.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .73718        .96416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.1467        .22653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.3012        29.220        .22293E-03   -1.5345    
  26  Prefactor     2.5892        52.381        .25259E-03   -1.5386    
  27  Normalizat    .85942        .19456        .25802E-03   -.97901    
  28  Prefactor     1.1397        .17526        .21211E-03   -.88206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8093e-09
Minuit parameter uncertainties:
  1  95.5716
  2  6.77322e-05
  3  57.1833
  4  3.48257e-05
  5  28.0114
  6  2.03189e-05
  7  0.000216128
  8  18.8856
  9  0.000534315
  10  3.13276e-05
  11  3.70129e-05
  12  1.31923e-05
  13  5.28748e-05
  14  0.000107237
  15  8.31756e-05
  16  2.06874e-05
  17  4.67729e-06
  18  1.62486
  19  85.3685
  20  9.58988e-05
  21  0.000171647
  22  4.05148e-05
  23  1.83599e-05
  24  3.83005e-05
  25  19.6556
  26  23.3146
  27  0.19472
  28  0.175348
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  5.287e-05  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.499e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.140e+00  1.753e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  8.594e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 224.753 71.673
Photon Flux Upper Limit: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/923366/likelihoodResults_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.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) = 6534.99724484
delta logL = -0.000481289391246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6534.99676369
delta logL = -1.33584762807e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4864       1.0000          .0000       10.000    
     3 'Normalizat'    .85953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1396       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+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=   6534.997     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      248 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.353        .18142E-01** at limit **
   2  Index         2.0237        8.9878        .50000       -.21737E-07
   3  Normalizat    .85942        .10835E-01    .25802E-03    .81955E-05
   4  Prefactor     1.1397        .10163E-01    .21211E-03    .12328E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0237
  Normalizat = 0.859424
  Prefactor  = 1.13974
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.997     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    836.07        .26617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0237        5.1454        .50000       -.63759    
   3  Normalizat    .85942        .38820E-01    .10321E-04   -.97901    
   4  Prefactor     1.1397        .36413E-01    .84844E-05   -.88206    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.24703e-10
Minuit parameter uncertainties:
  1  0.000158595
  2  2044.46
  3  0.0388208
  4  0.0364135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/923366': 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) = 6534.99676289
delta logL = 6.61877493258e-07

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  1.586e-04  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.024e+00  2.044e+03  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.140e+00  3.641e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  8.594e-01  3.882e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 224.753 71.673

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/923366/cmap_HighResolution_249696001_249955201_4FGL_J1459.0+7140_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-10 17:16:52.120068', job_id='923366', GAL2='1.14', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631319412.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='40' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:16:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 923366: <4FGL_J1459.0+7140_daily_bin40> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin40> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 17:01:15 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:01:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 17:01:17 2021
Terminated at Fri Sep 10 17:16:52 2021
Results reported at Fri Sep 10 17:16:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin40 224.753 71.6733 249696001 249955201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1459.0+7140 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   918.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

