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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin635
RA = 224.673, Dec = 37.3726
tmin = 403920001, tmax = 404179201
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='916969', job_status='RUN', time_executed='2021-09-10 16:45:01.770682', time_epoch_executed='1631317501.77' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916969

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916969/ft1_4FGL_J1458.6+3722_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916969/ft2_4FGL_J1458.6+3722_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916969/ft1_4FGL_J1458.6+3722_daily_bin635.fits outfile=/scratch/kocevski/916969/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin635.fits ra=224.673 dec=37.3726 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.04
user 9.68
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916969/ft1_filtered_4FGL_J1458.6+3722_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/916969/ft2_4FGL_J1458.6+3722_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/916969/ltcube_403920001_404179201_4FGL_J1458.6+3722_daily_bin635.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/916969/ft2_4FGL_J1458.6+3722_daily_bin635.fits
.....................!
real 9.06
user 8.74
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916969/ft1_filtered_4FGL_J1458.6+3722_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/916969/ft2_4FGL_J1458.6+3722_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/916969/ltcube_403920001_404179201_4FGL_J1458.6+3722_daily_bin635.fits outfile=/scratch/kocevski/916969/expmap_403920001_404179201_4FGL_J1458.6+3722_daily_bin635.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/916969/ltcube_403920001_404179201_4FGL_J1458.6+3722_daily_bin635.fits
.....................!
real 192.02
user 186.95
sys 4.71

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/916969/ft1_filtered_4FGL_J1458.6+3722_daily_bin635.fits scfile=/scratch/kocevski/916969/ft2_4FGL_J1458.6+3722_daily_bin635.fits outfile=/scratch/kocevski/916969/cmap_403920001_404179201_4FGL_J1458.6+3722_daily_bin635.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916969/ft1_filtered_4FGL_J1458.6+3722_daily_bin635.fits scfile=/scratch/kocevski/916969/ft2_4FGL_J1458.6+3722_daily_bin635.fits outfile=/scratch/kocevski/916969/cmap_HighResolution_403920001_404179201_4FGL_J1458.6+3722_daily_bin635.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/916969/ft1_filtered_4FGL_J1458.6+3722_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/916969/ft2_4FGL_J1458.6+3722_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916969/Model_4FGL_J1458.6+3722_daily_bin635.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/916969/ft1_filtered_4FGL_J1458.6+3722_daily_bin635.fits.....................!
real 29.85
user 28.53
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.8884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    42.489       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.652       1.0000         .10000E-03   10000.    
    10 'norm      '    9.8451       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.3979       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.653       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4977       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.892       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.9301       1.0000         .10000E-03   10000.    
    24 'norm      '    8.4783       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.044       1.0000         .10000E-03   10000.    
    28 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .57784       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .81405       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=   2872.342     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     4061 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.947        35.036       -.73030E-06   -.21884E-04
   2  Prefactor     10.853        28.689        .56270E-05    .75205E-04
   3  Prefactor     .10000E-03    76.827        .43625E-04** at limit **
   4  norm          7.8895        5.9415       -.57391E-06    .98213E-04
   5  Prefactor     .10000E-03    20.304       -.74180E-05** at limit **
   6  Prefactor     .10000E-03    10.334       -.67930E-05** at limit **
   7  Prefactor     .10000E-03    3.8599        .76474E-07** at limit **
   8  norm          42.489        27.157       -.33238E-06    .88291E-04
   9  Prefactor     49.669        36.083        .12389E-04   -.33487E-04
  10  norm          9.8498        10.933       -.91800E-06    .19892E-04
  11  Prefactor     .10000E-03    23.850        .46775E-06** at limit **
  12  Prefactor     .10000E-03    91.848       -.70337E-04** at limit **
  13  norm          5.3962        10.112       -.76808E-06   -.29047E-04
  14  Prefactor     32.008        24.122        .41113E-05    .14547E-03
  15  Prefactor     .10000E-03    5.4028        .59750E-07** at limit **
  16  Prefactor     11.653        7.7726       -.58088E-07   -.52845E-04
  17  norm          .10000E-03    .69583        .34379E-07** at limit **
  18  norm          6.4957        5.6555       -.21597E-05    .64398E-04
  19  Prefactor     .10000E-03    19.754       -.63029E-05** at limit **
  20  Prefactor     .10000E-03    89.744       -.51232E-04** at limit **
  21  Prefactor     .10000E-03    4.8917        .47589E-07** at limit **
  22  Prefactor     50.878        36.977       -.15741E-04   -.36414E-04
  23  Prefactor     4.9498        30.007        .24101E-04    .19534E-03
  24  norm          8.4786        2.5409        .47316E-07   -.19095E-03
  25  Prefactor     .10000E-03    19.061       -.29470E-05** at limit **
  26  Prefactor     .10000E-03    74.934        .64908E-04** at limit **
  27  Prefactor     19.038        23.490       -.48795E-06   -.21064E-03
  28  norm          .10000E-03    16.814        .12673E-04** at limit **
  29  Prefactor     .10000E-03    9.8463        .52937E-05** at limit **
  30  Normalizat    .57731        .23544       -.50771E-05    .54436E-04
  31  Prefactor     .81458        .22265        .22701E-05   -.10227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 30.9473
  Prefactor  = 10.8527
  Prefactor  = 0.000100002
  norm       = 7.88954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 42.4894
  Prefactor  = 49.6686
  norm       = 9.84978
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.39618
  Prefactor  = 32.0079
  Prefactor  = 0.0001
  Prefactor  = 11.6528
  norm       = 0.0001
  norm       = 6.49571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.8781
  Prefactor  = 4.9498
  norm       = 8.47864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0376
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.57731
  Prefactor  = 0.814582
 **********
 **   18 **HESSE 
 **********

 FCN=   2872.342     FROM HESSE     STATUS=OK           610 CALLS     4671 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.947        35.164        .72024E-04   -1.4595    
   2  Prefactor     10.853        28.617        .12164E-03   -1.5049    
   3  Prefactor     .10000E-03    77.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.8895        5.9435        .10844E-03   -1.5146    
   5  Prefactor     .10000E-03    20.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.348        .16830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8955        .10274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          42.489        27.140        .61500E-04   -1.4403    
   9  Prefactor     49.669        36.245        .56911E-04   -1.4297    
  10  norm          9.8498        10.953        .12771E-03   -1.5080    
  11  Prefactor     .10000E-03    23.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    92.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3962        10.108        .17296E-03   -1.5243    
  14  Prefactor     32.008        24.214        .70837E-04   -1.4576    
  15  Prefactor     .10000E-03    5.4435        .12163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.653        7.7722        .11736E-03   -1.5025    
  17  norm          .10000E-03    .70188        .43627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4957        5.5988        .10267E-03   -1.5198    
  19  Prefactor     .10000E-03    19.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    89.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8941        .11577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     50.878        36.503        .56216E-04   -1.4280    
  23  Prefactor     4.9498        28.475        .18114E-03   -1.5263    
  24  norm          8.4786        2.5371        .44033E-04   -1.5126    
  25  Prefactor     .10000E-03    19.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    74.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     19.038        23.444        .91780E-04   -1.4835    
  28  norm          .10000E-03    16.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.8541        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .57731        .27551        .26587E-03   -1.0896    
  31  Prefactor     .81458        .26070        .23200E-03   -.99193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47588e-10
Minuit parameter uncertainties:
  1  35.1871
  2  28.6534
  3  0.000802651
  4  5.94394
  5  0.000170574
  6  5.11879e-05
  7  1.74165e-05
  8  27.1481
  9  36.2611
  10  10.9547
  11  6.1049e-05
  12  0.000430454
  13  10.1108
  14  24.2218
  15  3.38879e-06
  16  7.77287
  17  4.17599e-06
  18  5.59923
  19  0.000178703
  20  0.000228055
  21  1.57454e-06
  22  36.5192
  23  23.7612
  24  2.53711
  25  6.17961e-07
  26  5.07144e-05
  27  23.4551
  28  5.38197e-05
  29  5.66206e-06
  30  0.276171
  31  0.261095
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.389e-06  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.146e-01  2.611e-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:  5.773e-01  2.762e-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: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916969/likelihoodResults_403920001_404179201_4FGL_J1458.6+3722_daily_bin635.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) = 2872.34310542
delta logL = -0.000872061656992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2872.34223335
delta logL = 1.05310391518e-08

Fit tolerance = 1e-08

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

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

 FCN=   2872.342     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    89.282        .12199E-02** at limit **
   2  Index         2.1444        6.0638        .50000        .11082E-04
   3  Normalizat    .57731        .21469E-01    .26587E-03   -.18173E-05
   4  Prefactor     .81459        .22189E-01    .23199E-03   -.75957E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010035
  Index      = 2.14441
  Normalizat = 0.577307
  Prefactor  = 0.814586
 **********
 **   18 **HESSE 
 **********

 FCN=   2872.342     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    380.96        .24397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1444        7.6104        .50000       -.60787    
   3  Normalizat    .57731        .47783E-01    .10635E-04   -1.0896    
   4  Prefactor     .81459        .49342E-01    .92798E-05   -.99193    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81539e-08
Minuit parameter uncertainties:
  1  0.0232292
  2  811.86
  3  0.0477865
  4  0.0493442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916969': 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) = 2872.34223327
delta logL = 8.4889052232e-08

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.003e-04  2.323e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.144e+00  8.119e+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.146e-01  4.934e-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:  5.773e-01  4.779e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/916969/cmap_HighResolution_403920001_404179201_4FGL_J1458.6+3722_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-10 16:55:14.707675', job_id='916969', GAL2='0.81', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1631318114.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='635' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:55:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 916969: <4FGL_J1458.6+3722_daily_bin635> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin635> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 16:41:22 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:41: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:41:23 2021
Terminated at Fri Sep 10 16:55:15 2021
Results reported at Fri Sep 10 16:55:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin635 224.673 37.3726 403920001 404179201 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 :                                   608.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

