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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin760
RA = 224.673, Dec = 37.3726
tmin = 436320001, tmax = 436579201
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='918357', job_status='RUN', time_executed='2021-09-10 16:46:39.479689', time_epoch_executed='1631317599.48' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918357/ft1_4FGL_J1458.6+3722_daily_bin760.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918357/ft1_4FGL_J1458.6+3722_daily_bin760.fits outfile=/scratch/kocevski/918357/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin760.fits ra=224.673 dec=37.3726 rad=12.0 tmin=436320001.0 tmax=436579201.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.22
user 4.98
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.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/918357/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/918357/ft1_filtered_4FGL_J1458.6+3722_daily_bin760.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918357/ft1_filtered_4FGL_J1458.6+3722_daily_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/918357/ltcube_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.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/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits
.....................!
real 11.90
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918357/ft1_filtered_4FGL_J1458.6+3722_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/918357/ltcube_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.fits outfile=/scratch/kocevski/918357/expmap_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.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/918357/ltcube_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.fits
.....................!
real 190.10
user 184.92
sys 4.85

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

Setting source of interest to:
4FGL J1458.6+3722 @ 224.673 37.3726

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/918357/ft1_filtered_4FGL_J1458.6+3722_daily_bin760.fits scfile=/scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits outfile=/scratch/kocevski/918357/cmap_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.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.673 yref=37.3726 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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918357/ft1_filtered_4FGL_J1458.6+3722_daily_bin760.fits scfile=/scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits outfile=/scratch/kocevski/918357/cmap_HighResolution_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.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.673 yref=37.3726 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918357/ft1_filtered_4FGL_J1458.6+3722_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918357/Model_4FGL_J1458.6+3722_daily_bin760.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/918357/ft1_filtered_4FGL_J1458.6+3722_daily_bin760.fits.....................!
real 49.78
user 48.52
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/918357/ft1_filtered_4FGL_J1458.6+3722_daily_bin760.fits', '/scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits', expMap='/scratch/kocevski/918357/expmap_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.fits', expCube='/scratch/kocevski/918357/ltcube_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/918357/Model_4FGL_J1458.6+3722_daily_bin760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1458.6+3722'

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.413e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.185e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/918357/ft1_filtered_4FGL_J1458.6+3722_daily_bin760.fits
Spacecraft file(s): /scratch/kocevski/918357/ft2_4FGL_J1458.6+3722_daily_bin760.fits
Exposure map: /scratch/kocevski/918357/expmap_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.fits
Exposure cube: /scratch/kocevski/918357/ltcube_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/918357/Model_4FGL_J1458.6+3722_daily_bin760.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) = 6265.81070195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16588E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4212       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2446       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.185       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.571       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5655       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4557       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.925       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7504       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9234       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1407       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .70826       1.0000         .10000E-03   10000.    
    24 'norm      '    8.7519       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    18.712       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98399       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1400       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6265.512     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4261 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10295E-03    37.476        .49154E-05** at limit **
   2  Prefactor     .10000E-03    11.858        .17982E-06** at limit **
   3  Prefactor     4.4129        31.823       -.80966E-07    .19093E-04
   4  norm          1.2434        5.3787        .69356E-06    .15937E-04
   5  Prefactor     13.645        31.657        .48742E-05    .32701E-04
   6  Prefactor     6.1979        75.370       -.11245E-04   -.66119E-04
   7  Prefactor     .10000E-03    1.3693       -.15181E-07** at limit **
   8  norm          21.185        19.097       -.14112E-06    .97099E-04
   9  Prefactor     .10000E-03    14.947        .14892E-06** at limit **
  10  norm          .10000E-03    2.7105        .18901E-07** at limit **
  11  Prefactor     33.247        34.620        .44110E-06   -.13402E-04
  12  Prefactor     36.577        39.579        .43777E-07    .20092E-05
  13  norm          4.9567        7.0957        .65243E-07   -.36266E-04
  14  Prefactor     3.5524        24.373        .47261E-06   -.16289E-04
  15  Prefactor     3.4577        7.0362        .26372E-06   -.37890E-04
  16  Prefactor     11.926        8.2367        .46781E-07    .28747E-04
  17  norm          .10000E-03    .57942       -.82806E-07** at limit **
  18  norm          .10000E-03    1.8697        .15237E-09** at limit **
  19  Prefactor     9.7536        8.7054        .71492E-07    .72292E-04
  20  Prefactor     .10000E-03    31.239       -.23873E-06** at limit **
  21  Prefactor     3.9224        7.9675        .21103E-05    .11691E-03
  22  Prefactor     3.1526        30.267        .16761E-05    .13837E-05
  23  Prefactor     .68706        10.601        .35145E-06   -.12002E-03
  24  norm          8.7511        1.9154       -.19834E-07   -.59286E-04
  25  Prefactor     .10000E-03    9.8905        .15091E-07** at limit **
  26  Prefactor     .10000E-03    16.470       -.57523E-07** at limit **
  27  Prefactor     .10000E-03    22.644       -.24127E-06** at limit **
  28  norm          18.700        14.783        .13193E-06   -.36847E-04
  29  Prefactor     .10000E-03    10.062       -.14608E-06** at limit **
  30  Normalizat    .98379        .21456       -.45749E-06   -.11664E-03
  31  Prefactor     1.1402        .19336        .30559E-06   -.30137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000102954
  Prefactor  = 0.0001
  Prefactor  = 4.41287
  norm       = 1.24344
  Prefactor  = 13.6454
  Prefactor  = 6.19791
  Prefactor  = 0.0001
  norm       = 21.1845
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.2473
  Prefactor  = 36.5772
  norm       = 4.95671
  Prefactor  = 3.5524
  Prefactor  = 3.45771
  Prefactor  = 11.926
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.75355
  Prefactor  = 0.0001
  Prefactor  = 3.92236
  Prefactor  = 3.15255
  Prefactor  = 0.687057
  norm       = 8.75108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.7
  Prefactor  = 0.0001
  Normalizat = 0.983791
  Prefactor  = 1.14024
 **********
 **   18 **HESSE 
 **********

 FCN=   6265.512     FROM HESSE     STATUS=OK           636 CALLS     4897 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10295E-03    28.411        .11792       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4129        31.907        .19152E-03   -1.5288    
   4  norm          1.2434        5.2991        .34134E-03   -1.5485    
   5  Prefactor     13.645        31.527        .10830E-03   -1.4969    
   6  Prefactor     6.1979        76.851        .16255E-03   -1.5210    
   7  Prefactor     .10000E-03    1.3732        .90431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.185        19.018        .87022E-04   -1.4787    
   9  Prefactor     .10000E-03    14.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.7227        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.247        34.619        .69496E-04   -1.4554    
  12  Prefactor     36.577        39.689        .66271E-04   -1.4498    
  13  norm          4.9567        7.0799        .18065E-03   -1.5263    
  14  Prefactor     3.5524        24.095        .21404E-03   -1.5331    
  15  Prefactor     3.4577        6.9766        .21755E-03   -1.5336    
  16  Prefactor     11.926        8.2332        .11600E-03   -1.5017    
  17  norm          .10000E-03    .58536        .58703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8774        .10558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.7536        9.1462        .12833E-03   -1.5083    
  20  Prefactor     .10000E-03    31.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9224        8.1193        .10184E-02   -1.5312    
  22  Prefactor     3.1526        31.021        .22874E-03   -1.5353    
  23  Prefactor     .68706        100.13        .41348E-02   -1.5542    
  24  norm          8.7511        1.9168        .47693E-04   -1.5116    
  25  Prefactor     .10000E-03    9.9687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          18.700        14.754        .92590E-04   -1.4843    
  29  Prefactor     .10000E-03    10.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98379        .25494        .27727E-03   -.93575    
  31  Prefactor     1.1402        .23186        .25994E-03   -.88191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16002e-09
Minuit parameter uncertainties:
  1  0.0183295
  2  7.7275e-06
  3  23.7497
  4  5.13442
  5  31.5653
  6  43.7187
  7  7.25574e-07
  8  19.0231
  9  2.55844e-05
  10  3.45515e-06
  11  34.6395
  12  39.718
  13  7.08108
  14  18.514
  15  6.97823
  16  8.23399
  17  2.72409e-06
  18  2.36095e-06
  19  9.14748
  20  2.30723e-05
  21  8.12156
  22  19.7913
  23  16.6155
  24  1.9168
  25  2.97985e-05
  26  4.42277e-07
  27  7.09997e-05
  28  14.7572
  29  8.91073e-06
  30  0.255258
  31  0.232064
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  3.458e+00  6.978e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.185e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.140e+00  2.321e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.838e-01  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 224.673 37.373
Photon Flux Upper Limit: 8.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918357/likelihoodResults_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.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) = 6265.37563582
delta logL = 0.135956108218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6265.34767492
delta logL = 0.163917012092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5375       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9608       1.0000          .0000       10.000    
     3 'Normalizat'    .96112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6265.348     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      260 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5336        58.611        .85991E-02    .70808E-03
   2  Index         2.9617        3.6389        .13984        .12763E-03
   3  Normalizat    .96124        .49116E-01    .45678E-01    .42595E-05
   4  Prefactor     1.1539        .47186E-01    .58473E-01   -.49026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53362
  Index      = 2.96166
  Normalizat = 0.961242
  Prefactor  = 1.15392
 **********
 **   18 **HESSE 
 **********

 FCN=   6265.348     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5336        31.233        .13346E-03   -1.5460    
   2  Index         2.9617        3.7606        .80224E-02   -.41990    
   3  Normalizat    .96124        .24188        .28014E-03   -.94340    
   4  Prefactor     1.1539        .23649        .25858E-03   -.87761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74331e-10
Minuit parameter uncertainties:
  1  13.8498
  2  4.41889
  3  0.242157
  4  0.236709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918357': 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) = 6265.34767431
delta logL = 0.16391761763

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.534e+00  1.385e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.962e+00  4.419e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.154e+00  2.367e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.612e-01  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
Ra Dec: 224.673 37.373

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/918357/cmap_HighResolution_436320001_436579201_4FGL_J1458.6+3722_daily_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.46e-08', time_completed='2021-09-10 17:02:27.362472', job_id='918357', GAL2='1.15', fit_tolerance='1e-08', EG2='0.96', EG='0.98', time_epoch_completed='1631318547.36', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.64e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='760' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:02:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 918357: <4FGL_J1458.6+3722_daily_bin760> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin760> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 16:46:21 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:46:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 16:46:23 2021
Terminated at Fri Sep 10 17:02:28 2021
Results reported at Fri Sep 10 17:02:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin760 224.673 37.3726 436320001 436579201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1458.6+3722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   946.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

