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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin219
RA = 224.673, Dec = 37.3726
tmin = 296092801, tmax = 296352001
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='913943', job_status='RUN', time_executed='2021-09-10 16:31:29.894595', time_epoch_executed='1631316689.89' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913943/ft1_4FGL_J1458.6+3722_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913943/ft2_4FGL_J1458.6+3722_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913943/ft1_4FGL_J1458.6+3722_daily_bin219.fits outfile=/scratch/kocevski/913943/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin219.fits ra=224.673 dec=37.3726 rad=12.0 tmin=296092801.0 tmax=296352001.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 2.41
user 2.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913943/ft2_4FGL_J1458.6+3722_daily_bin219.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/913943/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin219.fits evtable="EVENTS" outfile="/scratch/kocevski/913943/ft1_filtered_4FGL_J1458.6+3722_daily_bin219.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.35
sys 0.12

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913943/ft1_filtered_4FGL_J1458.6+3722_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/913943/ft2_4FGL_J1458.6+3722_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/913943/ltcube_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.fits outfile=/scratch/kocevski/913943/expmap_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.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/913943/ltcube_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.fits
.....................!
real 189.43
user 184.68
sys 4.39

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/913943/ft1_filtered_4FGL_J1458.6+3722_daily_bin219.fits scfile=/scratch/kocevski/913943/ft2_4FGL_J1458.6+3722_daily_bin219.fits outfile=/scratch/kocevski/913943/cmap_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913943/ft1_filtered_4FGL_J1458.6+3722_daily_bin219.fits scfile=/scratch/kocevski/913943/ft2_4FGL_J1458.6+3722_daily_bin219.fits outfile=/scratch/kocevski/913943/cmap_HighResolution_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.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.54
user 0.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913943/ft1_filtered_4FGL_J1458.6+3722_daily_bin219.fits', '/scratch/kocevski/913943/ft2_4FGL_J1458.6+3722_daily_bin219.fits', expMap='/scratch/kocevski/913943/expmap_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.fits', expCube='/scratch/kocevski/913943/ltcube_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913943/Model_4FGL_J1458.6+3722_daily_bin219.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/913943/ft1_filtered_4FGL_J1458.6+3722_daily_bin219.fits
Spacecraft file(s): /scratch/kocevski/913943/ft2_4FGL_J1458.6+3722_daily_bin219.fits
Exposure map: /scratch/kocevski/913943/expmap_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.fits
Exposure cube: /scratch/kocevski/913943/ltcube_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913943/Model_4FGL_J1458.6+3722_daily_bin219.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) = 6675.11471202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.201       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.055       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.376       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55651E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.0780       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.129       1.0000         .10000E-03   10000.    
    10 'norm      '    10.983       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.022       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38748       1.0000         .10000E-03   10000.    
    17 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7850       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2011       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.108       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.225       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.810       1.0000         .10000E-03   10000.    
    24 'norm      '    8.3679       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.4527       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0114       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84115       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=   6675.078     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     4174 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.201        15.693        .89910E-08    .26282E-04
   2  Prefactor     14.046        25.133        .70811E-07    .19457E-04
   3  Prefactor     19.379        18.826       -.70539E-07    .17909E-04
   4  norm          3.0063        3.1681        .42285E-07    .29770E-04
   5  Prefactor     24.726        21.052        .31473E-06    .63074E-04
   6  Prefactor     .10000E-03    25.133       -.47248E-05** at limit **
   7  Prefactor     .10000E-03    2.4521        .15453E-07** at limit **
   8  norm          6.0838        15.057        .18766E-06    .66195E-04
   9  Prefactor     33.131        20.351       -.25558E-07    .25868E-04
  10  norm          10.983        6.7073        .13306E-07    .31851E-04
  11  Prefactor     42.022        31.501        .11584E-07    .96754E-05
  12  Prefactor     .10000E-03    26.427        .20079E-06** at limit **
  13  norm          .10000E-03    3.8503       -.96393E-08** at limit **
  14  Prefactor     .10000E-03    3.9829        .53799E-07** at limit **
  15  Prefactor     .10000E-03    1.7893        .99558E-08** at limit **
  16  Prefactor     .39468        2.8607        .13586E-07   -.39496E-04
  17  norm          .10000E-03    .47169        .46236E-07** at limit **
  18  norm          5.7848        3.9659       -.18504E-06   -.83034E-04
  19  Prefactor     2.2006        11.196        .20937E-05    .10003E-04
  20  Prefactor     40.106        42.476       -.40731E-07   -.66295E-05
  21  Prefactor     9.9128        6.7030       -.14083E-07    .22734E-05
  22  Prefactor     28.221        23.067       -.16385E-06   -.53035E-04
  23  Prefactor     12.817        16.234       -.83580E-06   -.41721E-04
  24  norm          8.3681        1.7612       -.13147E-07   -.26474E-05
  25  Prefactor     .10000E-03    8.8595        .38796E-07** at limit **
  26  Prefactor     .10000E-03    14.267        .20412E-08** at limit **
  27  Prefactor     .10000E-03    6.3923        .35080E-07** at limit **
  28  norm          4.4549        8.8511        .27152E-06   -.82464E-05
  29  Prefactor     .10000E-03    5.5188       -.19369E-07** at limit **
  30  Normalizat    1.0111        .18474        .12648E-05   -.53585E-04
  31  Prefactor     .84143        .17988       -.14251E-05    .66034E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2006
  Prefactor  = 14.0465
  Prefactor  = 19.3793
  norm       = 3.00631
  Prefactor  = 24.7258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.08378
  Prefactor  = 33.1306
  norm       = 10.9835
  Prefactor  = 42.0223
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.394683
  norm       = 0.0001
  norm       = 5.78478
  Prefactor  = 2.20058
  Prefactor  = 40.1064
  Prefactor  = 9.9128
  Prefactor  = 28.221
  Prefactor  = 12.8171
  norm       = 8.36808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.45489
  Prefactor  = 0.0001
  Normalizat = 1.01111
  Prefactor  = 0.841425
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.078     FROM HESSE     STATUS=OK           630 CALLS     4804 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.201        15.687        .11025E-03   -1.4981    
   2  Prefactor     14.046        25.071        .10684E-03   -1.4958    
   3  Prefactor     19.379        18.858        .90989E-04   -1.4827    
   4  norm          3.0063        3.1579        .14357E-03   -1.5361    
   5  Prefactor     24.726        21.122        .80502E-04   -1.4713    
   6  Prefactor     .10000E-03    25.539        .21103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5156        .24955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.0838        14.958        .16285E-03   -1.5215    
   9  Prefactor     33.131        20.370        .69618E-04   -1.4556    
  10  norm          10.983        6.7108        .12089E-03   -1.5045    
  11  Prefactor     42.022        31.501        .61840E-04   -1.4411    
  12  Prefactor     .10000E-03    26.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8621        .15654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9875        .15920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7933        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39468        14.529        .26491E-02   -1.5582    
  17  norm          .10000E-03    .66626        .10842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.7848        3.9362        .11901E-03   -1.5227    
  19  Prefactor     2.2006        10.599        .27733E-03   -1.5411    
  20  Prefactor     40.106        42.399        .63292E-04   -1.4441    
  21  Prefactor     9.9128        6.7039        .12727E-03   -1.5078    
  22  Prefactor     28.221        23.006        .75409E-04   -1.4645    
  23  Prefactor     12.817        15.937        .11192E-03   -1.4992    
  24  norm          8.3681        1.7600        .46969E-04   -1.5129    
  25  Prefactor     .10000E-03    8.9409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.3929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.4549        8.8358        .19083E-03   -1.5286    
  29  Prefactor     .10000E-03    5.5190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0111        .20848        .24404E-03   -.92659    
  31  Prefactor     .84143        .20237        .27066E-03   -.98219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95745e-08
Minuit parameter uncertainties:
  1  15.6922
  2  25.0895
  3  18.8634
  4  3.15803
  5  21.1282
  6  5.98432e-05
  7  3.9252e-06
  8  14.9673
  9  20.3746
  10  6.71125
  11  31.5133
  12  1.98102e-05
  13  4.98721e-06
  14  5.16533e-06
  15  7.89888e-07
  16  4.78991
  17  3.1872e-06
  18  3.9364
  19  9.66132
  20  42.4313
  21  6.70444
  22  23.0135
  23  15.9422
  24  1.76006
  25  3.15489e-06
  26  5.26245e-06
  27  7.10104e-06
  28  8.83835
  29  7.69519e-06
  30  0.208647
  31  0.202552
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  7.899e-07  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:  8.414e-01  2.026e-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:  1.011e+00  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913943/likelihoodResults_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6675.08090952
delta logL = -0.00261747057812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6675.07829135
delta logL = 7.05324964656e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1589       1.0000          .0000       10.000    
     3 'Normalizat'    1.0111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84145       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6675.078     FROM MIGRAD    STATUS=FAILED        87 CALLS      232 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    21.603        .10962E-02** at limit **
   2  Index         2.1026        8.9445        .50000        .10136E-03
   3  Normalizat    1.0111        .13800E-01    .24404E-03   -.18401E-04
   4  Prefactor     .84142        .14163E-01    .27066E-03   -.33897E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6675.078     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      358 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    21.603        .22305E-03** at limit **
   2  Index         2.1026        8.9445        .13351E-02    .10136E-03
   3  Normalizat    1.0111        .13800E-01    .13326E-04   -.18401E-04
   4  Prefactor     .84142        .14163E-01    .13136E-04   -.33897E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6675.078     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      405 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.025        .21924E-02** at limit **
   2  Index         1.5961        7.6624        .50000        .45877E-06
   3  Normalizat    1.0111        .14827E-01    .97616E-05    .87534E-03
   4  Prefactor     .84143        .15217E-01    .10826E-04    .81572E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.59614
  Normalizat = 1.01111
  Prefactor  = 0.841425
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.078     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      434 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    145.10        .43848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5961        5.1180        .50000       -.74882    
   3  Normalizat    1.0111        .33412E-01    .19523E-05   -.92659    
   4  Prefactor     .84143        .34291E-01    .21653E-05   -.98219    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08068e-09
Minuit parameter uncertainties:
  1  0.000472489
  2  512.515
  3  0.0334125
  4  0.0342921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913943': 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) = 6675.07828407
delta logL = 7.98422024673e-06

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  4.725e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.596e+00  5.125e+02  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:  8.414e-01  3.429e-02  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:  1.011e+00  3.341e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 224.673 37.373

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/913943/cmap_HighResolution_296092801_296352001_4FGL_J1458.6+3722_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2021-09-10 16:47:21.134322', job_id='913943', GAL2='0.84', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631317641.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.98e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='219' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:47:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 913943: <4FGL_J1458.6+3722_daily_bin219> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin219> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep 10 16:31:13 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:31:15 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:31:15 2021
Terminated at Fri Sep 10 16:47:21 2021
Results reported at Fri Sep 10 16:47:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin219 224.673 37.3726 296092801 296352001 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 :                                   949.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            968 sec.

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

