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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin940
RA = 224.753, Dec = 71.6733
tmin = 482976001, tmax = 483235201
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='927842', job_status='RUN', time_executed='2021-09-10 17:16:34.090611', time_epoch_executed='1631319394.09' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927842/ft1_4FGL_J1459.0+7140_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927842/ft2_4FGL_J1459.0+7140_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927842/ft1_4FGL_J1459.0+7140_daily_bin940.fits outfile=/scratch/kocevski/927842/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin940.fits ra=224.753 dec=71.6733 rad=12.0 tmin=482976001.0 tmax=483235201.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.17
user 3.90
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/927842/ft2_4FGL_J1459.0+7140_daily_bin940.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/927842/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin940.fits evtable="EVENTS" outfile="/scratch/kocevski/927842/ft1_filtered_4FGL_J1459.0+7140_daily_bin940.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927842/ft1_filtered_4FGL_J1459.0+7140_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/927842/ft2_4FGL_J1459.0+7140_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/927842/ltcube_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.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/927842/ft2_4FGL_J1459.0+7140_daily_bin940.fits
.....................!
real 11.81
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927842/ft1_filtered_4FGL_J1459.0+7140_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/927842/ft2_4FGL_J1459.0+7140_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/927842/ltcube_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.fits outfile=/scratch/kocevski/927842/expmap_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.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/927842/ltcube_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.fits
.....................!
real 191.44
user 185.57
sys 5.49

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/927842/ft1_filtered_4FGL_J1459.0+7140_daily_bin940.fits scfile=/scratch/kocevski/927842/ft2_4FGL_J1459.0+7140_daily_bin940.fits outfile=/scratch/kocevski/927842/cmap_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927842/ft1_filtered_4FGL_J1459.0+7140_daily_bin940.fits scfile=/scratch/kocevski/927842/ft2_4FGL_J1459.0+7140_daily_bin940.fits outfile=/scratch/kocevski/927842/cmap_HighResolution_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/927842/ft1_filtered_4FGL_J1459.0+7140_daily_bin940.fits', '/scratch/kocevski/927842/ft2_4FGL_J1459.0+7140_daily_bin940.fits', expMap='/scratch/kocevski/927842/expmap_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.fits', expCube='/scratch/kocevski/927842/ltcube_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/927842/Model_4FGL_J1459.0+7140_daily_bin940.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/927842/ft1_filtered_4FGL_J1459.0+7140_daily_bin940.fits
Spacecraft file(s): /scratch/kocevski/927842/ft2_4FGL_J1459.0+7140_daily_bin940.fits
Exposure map: /scratch/kocevski/927842/expmap_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.fits
Exposure cube: /scratch/kocevski/927842/ltcube_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/927842/Model_4FGL_J1459.0+7140_daily_bin940.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) = 7150.22918914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24666E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25834E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39412E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99620E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19811E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7847       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .40236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.802       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22817E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12221E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.003       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12336E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5751       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.766       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0854       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34919E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5743       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .98709E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3223       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .27363E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3381       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .68053       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=   7150.128     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3083 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    144.12        .63053E-05** at limit **
   2  Prefactor     .10000E-03    19.296        .95159E-06** at limit **
   3  Prefactor     .10000E-03    30.547       -.32332E-05** at limit **
   4  Prefactor     .10000E-03    1.1738        .35639E-07** at limit **
   5  Prefactor     .10000E-03    32.062       -.14885E-05** at limit **
   6  Prefactor     .10000E-03    2.6030        .32252E-07** at limit **
   7  Prefactor     4.9262        8.9089        .48377E-05   -.10832E-02
   8  Prefactor     .10000E-03    17.854       -.10870E-06** at limit **
   9  Prefactor     24.894        22.945        .17817E-05    .28742E-03
  10  Prefactor     .10003E-03    158.69        .92439E-05** at limit **
  11  Prefactor     .10000E-03    39.308       -.18946E-05** at limit **
  12  Prefactor     .10000E-03    21.879        .30555E-05** at limit **
  13  Prefactor     25.283        25.216        .18789E-06    .32306E-04
  14  Prefactor     17.001        26.086       -.26509E-06   -.24136E-04
  15  Prefactor     .10000E-03    18.434       -.58496E-06** at limit **
  16  Prefactor     8.1683        17.133       -.20697E-05   -.38369E-03
  17  Prefactor     16.387        28.940       -.17539E-05   -.24796E-03
  18  norm          5.0824        2.9613        .49174E-07   -.11060E-04
  19  Prefactor     .10000E-03    31.820        .43657E-06** at limit **
  20  norm          2.9583        51.252        .19771E-05    .50549E-04
  21  Prefactor     .10001E-03    123.60       -.44626E-05** at limit **
  22  Prefactor     .10000E-03    51.175        .23804E-05** at limit **
  23  norm          .10000E-03    .26260        .79624E-07** at limit **
  24  Prefactor     1.3684        3.2876        .34073E-06    .52272E-04
  25  Prefactor     .10000E-03    23.094       -.27809E-05** at limit **
  26  Prefactor     .10003E-03    55.471       -.10572E-04** at limit **
  27  Normalizat    1.3361        .16169       -.72397E-06    .59744E-04
  28  Prefactor     .68177        .14324       -.30828E-06    .66799E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.92623
  Prefactor  = 0.0001
  Prefactor  = 24.8938
  Prefactor  = 0.000100027
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 25.2833
  Prefactor  = 17.001
  Prefactor  = 0.0001
  Prefactor  = 8.16832
  Prefactor  = 16.3875
  norm       = 5.08237
  Prefactor  = 0.0001
  norm       = 2.95831
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.36836
  Prefactor  = 0.000100002
  Prefactor  = 0.000100028
  Normalizat = 1.33609
  Prefactor  = 0.681767
 **********
 **   18 **HESSE 
 **********

 FCN=   7150.128     FROM HESSE     STATUS=OK           509 CALLS     3592 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    146.42        .18291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.351        .19985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.922        .19513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1818        .89441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.952        .36291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6099        .13322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9262        10.207        .91964E-03   -1.5264    
   8  Prefactor     .10000E-03    18.069        .21261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.894        23.100        .80435E-04   -1.4710    
  10  Prefactor     .10003E-03    160.89        .18273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.441        .20625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.283        25.258        .79354E-04   -1.4702    
  14  Prefactor     17.001        26.089        .97131E-04   -1.4883    
  15  Prefactor     .10000E-03    18.458        .20618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1683        17.351        .14571E-03   -1.5136    
  17  Prefactor     16.387        28.912        .95023E-04   -1.4898    
  18  norm          5.0824        2.9622        .10805E-03   -1.5257    
  19  Prefactor     .10000E-03    31.849        .21325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9583        48.080        .21376E-03   -1.5364    
  21  Prefactor     .10001E-03    124.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    51.624        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .35609        .84054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3684        3.1730        .20163E-03   -1.5474    
  25  Prefactor     .10000E-03    23.479        .19926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10003E-03    58.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3361        .19302        .21228E-03   -.82495    
  28  Prefactor     .68177        .16841        .25860E-03   -1.0425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60776e-09
Minuit parameter uncertainties:
  1  0.00251601
  2  0.000143941
  3  0.00063981
  4  4.91431e-07
  5  0.000320443
  6  1.23872e-06
  7  10.2105
  8  2.9753e-05
  9  23.1087
  10  0.00417747
  11  0.000427398
  12  0.00048372
  13  25.2684
  14  26.1064
  15  9.14678e-05
  16  17.362
  17  28.9367
  18  2.96229
  19  9.68098e-05
  20  23.8749
  21  0.00177651
  22  0.000588714
  23  1.4666e-06
  24  3.17343
  25  0.000468912
  26  0.00257048
  27  0.193128
  28  0.168534
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.528e+01  2.527e+01  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:  6.818e-01  1.685e-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:  1.336e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.66e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 7.72e-06 +/- 7.71e-06

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

Saving results to:
/scratch/kocevski/927842/likelihoodResults_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.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) = 7150.11971846
delta logL = 0.00800245835671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7150.11689316
delta logL = 0.0108277526842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.340       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3773       1.0000          .0000       10.000    
     3 'Normalizat'    1.3398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67930       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=   7150.117     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      263 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.341        30.501        .76618E-04   -.16880E-03
   2  Index         2.3774        .82490        .10082E-01   -.92354E-04
   3  Normalizat    1.3395        .18308        .21205E-03    .19338E-03
   4  Prefactor     .67954        .16413        .25897E-03    .17393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3412
  Index      = 2.37743
  Normalizat = 1.33953
  Prefactor  = 0.679539
 **********
 **   18 **HESSE 
 **********

 FCN=   7150.117     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.341        29.747        .15324E-04   -1.4662    
   2  Index         2.3774        .80431        .40329E-03   -.55214    
   3  Normalizat    1.3395        .18316        .42410E-04   -.82394    
   4  Prefactor     .67954        .16420        .10359E-04   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66502e-10
Minuit parameter uncertainties:
  1  29.7627
  2  0.809172
  3  0.183245
  4  0.164317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927842': 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) = 7150.11689196
delta logL = 0.0108289579402

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.734e+01  2.976e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.377e+00  8.092e-01  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:  6.795e-01  1.643e-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:  1.340e+00  1.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 224.753 71.673
Photon Index (Free Index): 2.38 +/- 0.81
Photon Flux (Free Index): 2.44e-08 +/- 2.90e-08
Energy Flux (Free Index): 8.26e-06 +/- 9.19e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/927842/cmap_HighResolution_482976001_483235201_4FGL_J1459.0+7140_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', comment='SUCCESS', photon_flux='2.66e-08', energy_flux2='8.26e-06', photon_flux_error='2.65e-08', dlogl='1.08e-02', energy_flux='7.72e-06', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-09-10 17:32:41.005445', photon_index_error2='0.81', photon_index2='2.38', ts='1.51', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='8.70e-08', energy_flux_error2='9.19e-06', EG='1.34', time_epoch_completed='1631320361.01', return_code='0', job_id='927842', GAL2='0.68', EG2='1.34', return_code2='0', energy_flux_error='7.71e-06', photon_flux_error2='2.90e-08', ts2='1.53', photon_index='2.50' WHERE bin_id='940' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:32:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 927842: <4FGL_J1459.0+7140_daily_bin940> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin940> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 17:16:16 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:16: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:16:17 2021
Terminated at Fri Sep 10 17:32:41 2021
Results reported at Fri Sep 10 17:32:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin940 224.753 71.6733 482976001 483235201 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 :                                   964.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

