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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1338
RA = 224.753, Dec = 71.6733
tmin = 586137601, tmax = 586396801
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='930540', job_status='RUN', time_executed='2021-09-10 17:26:20.385518', time_epoch_executed='1631319980.39' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/930540

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/930540/ft1_4FGL_J1459.0+7140_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/930540/ft2_4FGL_J1459.0+7140_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/930540/ft1_4FGL_J1459.0+7140_daily_bin1338.fits outfile=/scratch/kocevski/930540/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1338.fits ra=224.753 dec=71.6733 rad=12.0 tmin=586137601.0 tmax=586396801.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.54
user 4.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/930540/ft2_4FGL_J1459.0+7140_daily_bin1338.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/930540/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1338.fits evtable="EVENTS" outfile="/scratch/kocevski/930540/ft1_filtered_4FGL_J1459.0+7140_daily_bin1338.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/930540/ft1_filtered_4FGL_J1459.0+7140_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/930540/ft2_4FGL_J1459.0+7140_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/930540/ltcube_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.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/930540/ft2_4FGL_J1459.0+7140_daily_bin1338.fits
.....................!
real 10.51
user 10.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/930540/ft1_filtered_4FGL_J1459.0+7140_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/930540/ft2_4FGL_J1459.0+7140_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/930540/ltcube_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.fits outfile=/scratch/kocevski/930540/expmap_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.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/930540/ltcube_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.fits
.....................!
real 191.64
user 185.85
sys 5.24

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/930540/ft1_filtered_4FGL_J1459.0+7140_daily_bin1338.fits scfile=/scratch/kocevski/930540/ft2_4FGL_J1459.0+7140_daily_bin1338.fits outfile=/scratch/kocevski/930540/cmap_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/930540/ft1_filtered_4FGL_J1459.0+7140_daily_bin1338.fits scfile=/scratch/kocevski/930540/ft2_4FGL_J1459.0+7140_daily_bin1338.fits outfile=/scratch/kocevski/930540/cmap_HighResolution_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/930540/ft1_filtered_4FGL_J1459.0+7140_daily_bin1338.fits', '/scratch/kocevski/930540/ft2_4FGL_J1459.0+7140_daily_bin1338.fits', expMap='/scratch/kocevski/930540/expmap_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.fits', expCube='/scratch/kocevski/930540/ltcube_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/930540/Model_4FGL_J1459.0+7140_daily_bin1338.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/930540/ft1_filtered_4FGL_J1459.0+7140_daily_bin1338.fits
Spacecraft file(s): /scratch/kocevski/930540/ft2_4FGL_J1459.0+7140_daily_bin1338.fits
Exposure map: /scratch/kocevski/930540/expmap_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.fits
Exposure cube: /scratch/kocevski/930540/ltcube_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/930540/Model_4FGL_J1459.0+7140_daily_bin1338.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.782       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4750       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.690       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2668       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.025       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.036       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.808       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.516       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7201       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.181       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0127       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1453       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.571       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74305       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=   6622.172     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3530 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.573        .32492E-05** at limit **
   2  Prefactor     14.783        25.634       -.17057E-06   -.79438E-05
   3  Prefactor     .10000E-03    12.696       -.54084E-06** at limit **
   4  Prefactor     .10000E-03    2.9307       -.18705E-06** at limit **
   5  Prefactor     15.195        12.116        .16393E-07   -.24773E-04
   6  Prefactor     8.1620        7.6109        .91308E-06   -.50526E-04
   7  Prefactor     2.4751        4.3608       -.30377E-06   -.43649E-03
   8  Prefactor     .10000E-03    13.282        .10288E-05** at limit **
   9  Prefactor     .10000E-03    22.246       -.12736E-05** at limit **
  10  Prefactor     .10000E-03    162.64       -.10447E-04** at limit **
  11  Prefactor     33.687        62.763       -.29967E-05   -.19647E-05
  12  Prefactor     7.2670        9.9980       -.55694E-06   -.45482E-03
  13  Prefactor     23.027        22.781       -.57192E-06   -.16073E-04
  14  Prefactor     10.036        34.466       -.58989E-06   -.87778E-05
  15  Prefactor     33.809        40.365       -.81408E-09   -.14121E-05
  16  Prefactor     4.9183        19.964        .13528E-04   -.21446E-04
  17  Prefactor     21.497        48.947       -.20614E-04   -.63091E-04
  18  norm          2.7200        2.4295        .49765E-08   -.10748E-03
  19  Prefactor     .10000E-03    64.315        .30611E-04** at limit **
  20  norm          4.4198        14.909       -.66271E-06   -.67890E-04
  21  Prefactor     .10000E-03    55.380       -.27282E-04** at limit **
  22  Prefactor     21.178        46.743       -.25962E-05   -.56086E-05
  23  norm          1.0128        .78877        .21985E-07   -.17904E-03
  24  Prefactor     5.1452        2.9633       -.37068E-07   -.22047E-03
  25  Prefactor     14.570        21.010        .35660E-06   -.13884E-04
  26  Prefactor     .10000E-03    13.674       -.25722E-06** at limit **
  27  Normalizat    1.0643        .15834       -.72456E-06   -.35119E-04
  28  Prefactor     .74312        .14378        .11188E-05   -.12632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.7825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1951
  Prefactor  = 8.16202
  Prefactor  = 2.47512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6874
  Prefactor  = 7.26698
  Prefactor  = 23.0265
  Prefactor  = 10.0356
  Prefactor  = 33.8085
  Prefactor  = 4.91829
  Prefactor  = 21.4969
  norm       = 2.71997
  Prefactor  = 0.0001
  norm       = 4.41984
  Prefactor  = 0.0001
  Prefactor  = 21.1784
  norm       = 1.01275
  Prefactor  = 5.14521
  Prefactor  = 14.5699
  Prefactor  = 0.0001
  Normalizat = 1.06434
  Prefactor  = 0.743117
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.172     FROM HESSE     STATUS=OK           529 CALLS     4059 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.783        25.632        .10417E-03   -1.4939    
   3  Prefactor     .10000E-03    12.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9833        .27077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.195        12.129        .10275E-03   -1.4928    
   6  Prefactor     8.1620        7.5779        .14034E-03   -1.5137    
   7  Prefactor     2.4751        4.3483        .21853E-03   -1.5393    
   8  Prefactor     .10000E-03    13.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    162.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.687        62.763        .69038E-04   -1.4546    
  12  Prefactor     7.2670        10.028        .74397E-03   -1.5169    
  13  Prefactor     23.027        22.815        .83477E-04   -1.4748    
  14  Prefactor     10.036        34.469        .12649E-03   -1.5074    
  15  Prefactor     33.809        40.364        .68918E-04   -1.4544    
  16  Prefactor     4.9183        19.360        .18147E-03   -1.5264    
  17  Prefactor     21.497        48.041        .86351E-04   -1.4780    
  18  norm          2.7200        2.4342        .11641E-03   -1.5378    
  19  Prefactor     .10000E-03    64.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4198        14.921        .19153E-03   -1.5287    
  21  Prefactor     .10000E-03    55.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.178        46.415        .87030E-04   -1.4787    
  23  norm          1.0128        .78893        .54777E-04   -1.5507    
  24  Prefactor     5.1452        2.9572        .10038E-03   -1.5254    
  25  Prefactor     14.570        20.993        .10493E-03   -1.4944    
  26  Prefactor     .10000E-03    13.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0643        .18235        .22144E-03   -.90905    
  28  Prefactor     .74312        .16521        .23776E-03   -1.0186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29613e-10
Minuit parameter uncertainties:
  1  9.24936e-06
  2  25.6511
  3  1.23186e-06
  4  2.02218e-05
  5  12.131
  6  7.5788
  7  4.34887
  8  2.86838e-06
  9  2.01406e-05
  10  9.3132e-07
  11  62.8863
  12  10.0306
  13  22.8233
  14  34.5376
  15  40.3965
  16  19.3848
  17  48.1276
  18  2.43429
  19  2.48117e-05
  20  14.9338
  21  2.32609e-06
  22  46.4947
  23  0.788939
  24  2.95732
  25  21.0038
  26  7.83739e-07
  27  0.182459
  28  0.165322
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.303e+01  2.282e+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:  7.431e-01  1.653e-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.064e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 7.03e-06 +/- 6.97e-06

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

Saving results to:
/scratch/kocevski/930540/likelihoodResults_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.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) = 6622.11081787
delta logL = 0.0607376338112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6622.10775205
delta logL = 0.0638034485892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.705       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1884       1.0000          .0000       10.000    
     3 'Normalizat'    1.0733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73801       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=   6622.108     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      285 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.709        26.449        .79012E-04   -.15748E-02
   2  Index         2.1884        .84038        .11684E-01   -.55025E-03
   3  Normalizat    1.0731        .17730        .22063E-03    .46322E-03
   4  Prefactor     .73823        .16110        .23844E-03    .39724E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7094
  Index      = 2.18839
  Normalizat = 1.07305
  Prefactor  = 0.73823
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.108     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.709        26.377        .15802E-04   -1.4693    
   2  Index         2.1884        .83789        .46738E-03   -.59719    
   3  Normalizat    1.0731        .17739        .44126E-04   -.90622    
   4  Prefactor     .73823        .16120        .47688E-04   -1.0205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95666e-08
Minuit parameter uncertainties:
  1  26.3894
  2  0.843731
  3  0.177489
  4  0.161299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/930540': 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) = 6622.10775097
delta logL = 0.0638045353398

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.571e+01  2.639e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.188e+00  8.437e-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:  7.382e-01  1.613e-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.073e+00  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 224.753 71.673
Photon Index (Free Index): 2.19 +/- 0.84
Photon Flux (Free Index): 1.82e-08 +/- 2.55e-08
Energy Flux (Free Index): 8.33e-06 +/- 1.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/930540/cmap_HighResolution_586137601_586396801_4FGL_J1459.0+7140_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='8.33e-06', photon_flux_error='2.40e-08', dlogl='6.38e-02', energy_flux='7.03e-06', photon_flux2='1.82e-08', job_status='DONE', time_completed='2021-09-10 17:42:38.875430', photon_index_error2='0.84', photon_index2='2.19', ts='1.84', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='8.16e-08', energy_flux_error2='1.00e-05', EG='1.06', time_epoch_completed='1631320958.88', return_code='0', job_id='930540', GAL2='0.74', EG2='1.07', return_code2='0', energy_flux_error='6.97e-06', photon_flux_error2='2.55e-08', ts2='1.97', photon_index='2.50' WHERE bin_id='1338' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:42:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 930540: <4FGL_J1459.0+7140_daily_bin1338> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin1338> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 17:26:01 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:26:02 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:26:02 2021
Terminated at Fri Sep 10 17:42:39 2021
Results reported at Fri Sep 10 17:42:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1338 224.753 71.6733 586137601 586396801 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 :                                   975.05 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             315.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            998 sec.

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

