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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin978
RA = 224.673, Dec = 37.3726
tmin = 492825601, tmax = 493084801
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='920068', job_status='RUN', time_executed='2021-09-10 16:51:24.877313', time_epoch_executed='1631317884.88' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920068

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920068/ft1_4FGL_J1458.6+3722_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920068/ft2_4FGL_J1458.6+3722_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920068/ft1_4FGL_J1458.6+3722_daily_bin978.fits outfile=/scratch/kocevski/920068/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin978.fits ra=224.673 dec=37.3726 rad=12.0 tmin=492825601.0 tmax=493084801.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 3.70
user 3.51
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/920068/ft2_4FGL_J1458.6+3722_daily_bin978.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/920068/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin978.fits evtable="EVENTS" outfile="/scratch/kocevski/920068/ft1_filtered_4FGL_J1458.6+3722_daily_bin978.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/920068/ft1_filtered_4FGL_J1458.6+3722_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/920068/ft2_4FGL_J1458.6+3722_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/920068/ltcube_492825601_493084801_4FGL_J1458.6+3722_daily_bin978.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/920068/ft2_4FGL_J1458.6+3722_daily_bin978.fits
.....................!
real 11.72
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920068/ft1_filtered_4FGL_J1458.6+3722_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/920068/ft2_4FGL_J1458.6+3722_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/920068/ltcube_492825601_493084801_4FGL_J1458.6+3722_daily_bin978.fits outfile=/scratch/kocevski/920068/expmap_492825601_493084801_4FGL_J1458.6+3722_daily_bin978.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/920068/ltcube_492825601_493084801_4FGL_J1458.6+3722_daily_bin978.fits
.....................!
real 190.07
user 185.04
sys 4.67

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/920068/ft1_filtered_4FGL_J1458.6+3722_daily_bin978.fits scfile=/scratch/kocevski/920068/ft2_4FGL_J1458.6+3722_daily_bin978.fits outfile=/scratch/kocevski/920068/cmap_492825601_493084801_4FGL_J1458.6+3722_daily_bin978.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920068/ft1_filtered_4FGL_J1458.6+3722_daily_bin978.fits scfile=/scratch/kocevski/920068/ft2_4FGL_J1458.6+3722_daily_bin978.fits outfile=/scratch/kocevski/920068/cmap_HighResolution_492825601_493084801_4FGL_J1458.6+3722_daily_bin978.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4386       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5910       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5460       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .96014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.670       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8245       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3181       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.908       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55419       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7684       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.750       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4382       1.0000         .10000E-03   10000.    
    24 'norm      '    8.7946       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .86624E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    33.097       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.6861       1.0000         .10000E-03   10000.    
    28 'norm      '    6.8652       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.9485       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .52966       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1409       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=   5904.840     FROM MIGRAD    STATUS=CONVERGED   1429 CALLS     4746 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2989        .15559E-02** at limit **
   2  Prefactor     .10000E-03    11.405        .18142E-02** at limit **
   3  Prefactor     5.4357        14.461        .86152E-03    .56582E-04
   4  norm          4.4671        3.0604        .10761E-03   -.24299E-05
   5  Prefactor     2.7678        64.804        .24672E-03    .49305E-05
   6  Prefactor     8.5294        32.817        .13676E-03   -.33833E-04
   7  Prefactor     3.5456        2.7741        .10896E-03    .43090E-04
   8  norm          .10000E-03    3.7589        .14549E-02** at limit **
   9  Prefactor     .10000E-03    9.1061        .18142E-02** at limit **
  10  norm          .96180        8.1608        .40124E-03    .13147E-04
  11  Prefactor     20.668        37.276        .88098E-04   -.70975E-05
  12  Prefactor     7.8054        29.504        .14335E-03   -.30137E-05
  13  norm          5.3179        5.5499        .87140E-03    .25610E-04
  14  Prefactor     .10000E-03    3.7789        .14575E-02** at limit **
  15  Prefactor     15.907        9.0498        .10042E-03    .93967E-05
  16  Prefactor     .54757        22.744        .28278E-02    .59820E-03
  17  norm          2.7677        1.5939        .65708E-04   -.35815E-04
  18  norm          .10000E-03    2.2511        .11125E-02** at limit **
  19  Prefactor     .10000E-03    6.5736        .18142E-02** at limit **
  20  Prefactor     .10000E-03    83.770        .18142E-02** at limit **
  21  Prefactor     .10000E-03    3.2817        .13562E-02** at limit **
  22  Prefactor     14.749        18.285        .10429E-03    .58103E-04
  23  Prefactor     3.4391        12.759        .21813E-03    .77031E-04
  24  norm          8.7934        1.6911        .41321E-04    .27791E-02
  25  Prefactor     .10014E-03    40.520        .38261E-02** at limit **
  26  Prefactor     33.095        24.961        .69652E-04    .10567E-03
  27  Prefactor     9.6858        12.842        .12876E-03    .98006E-05
  28  norm          6.8654        7.7590        .15313E-03    .66820E-05
  29  Prefactor     8.9490        20.085        .13399E-03    .21212E-05
  30  Normalizat    .52989        .20152        .28415E-03    .20809E-03
  31  Prefactor     1.1406        .19735        .21572E-03    .50562E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.43574
  norm       = 4.46712
  Prefactor  = 2.76778
  Prefactor  = 8.52938
  Prefactor  = 3.54555
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.961804
  Prefactor  = 20.6679
  Prefactor  = 7.80544
  norm       = 5.31791
  Prefactor  = 0.0001
  Prefactor  = 15.9072
  Prefactor  = 0.547573
  norm       = 2.76769
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.749
  Prefactor  = 3.43912
  norm       = 8.79342
  Prefactor  = 0.000100144
  Prefactor  = 33.0949
  Prefactor  = 9.68581
  norm       = 6.86537
  Prefactor  = 8.94905
  Normalizat = 0.529889
  Prefactor  = 1.14059
 **********
 **   18 **HESSE 
 **********

 FCN=   5904.840     FROM HESSE     STATUS=OK           596 CALLS     5342 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2989        .31118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4357        14.458        .17230E-03   -1.5242    
   4  norm          4.4671        3.0601        .43044E-05   -1.5285    
   5  Prefactor     2.7678        63.168        .98688E-05   -1.5375    
   6  Prefactor     8.5294        32.406        .54705E-05   -1.5124    
   7  Prefactor     3.5456        2.7738        .43586E-05   -1.5331    
   8  norm          .10000E-03    3.7589        .29098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.1065        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .96180        8.1455        .16050E-04   -1.5512    
  11  Prefactor     20.668        37.286        .35239E-05   -1.4798    
  12  Prefactor     7.8054        29.493        .57340E-05   -1.5149    
  13  norm          5.3179        5.5497        .34856E-04   -1.5247    
  14  Prefactor     .10000E-03    3.7790        .29151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.907        9.0495        .40167E-05   -1.4910    
  16  Prefactor     .54757        22.591        .11311E-03   -1.5560    
  17  norm          2.7677        1.5938        .26283E-05   -1.5375    
  18  norm          .10000E-03    2.2518        .22251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    83.795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2821        .27125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.749        18.269        .41716E-05   -1.4940    
  23  Prefactor     3.4391        12.741        .87253E-05   -1.5337    
  24  norm          8.7934        1.6854        .82641E-05   -1.5115    
  25  Prefactor     .10014E-03    41.266        .15305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     33.095        24.958        .13930E-04   -1.4557    
  27  Prefactor     9.6858        12.841        .51504E-05   -1.5085    
  28  norm          6.8654        7.7591        .61250E-05   -1.5184    
  29  Prefactor     8.9490        20.082        .53595E-05   -1.5110    
  30  Normalizat    .52989        .20139        .11366E-04   -1.1105    
  31  Prefactor     1.1406        .19744        .43143E-04   -.88180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5042e-09
Minuit parameter uncertainties:
  1  3.17004e-07
  2  4.25738e-05
  3  14.4675
  4  3.06019
  5  26.4761
  6  32.4734
  7  2.77391
  8  6.76323e-06
  9  1.17445e-05
  10  5.59874
  11  37.3279
  12  29.548
  13  5.55022
  14  4.95162e-07
  15  9.05025
  16  7.03642
  17  1.59383
  18  1.14857e-05
  19  6.02009e-05
  20  6.62955e-05
  21  2.61096e-06
  22  18.2755
  23  12.7514
  24  1.68538
  25  0.00487443
  26  24.9657
  27  12.845
  28  7.76024
  29  20.0969
  30  0.201664
  31  0.197568
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.591e+01  9.050e+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.141e+00  1.976e-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.299e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.84
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.03e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 1.59e-05

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) = 5904.64662386
delta logL = 0.192968992274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5904.61424694
delta logL = 0.225345918196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.533       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5245       1.0000          .0000       10.000    
     3 'Normalizat'    .50370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1584       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=   5904.614     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.526        83.840        .30864E-02    .15459E-03
   2  Index         2.5248        2.5219        .10045        .16697E-03
   3  Normalizat    .50370        .78426E-01    .65701E-01    .25596E-04
   4  Prefactor     1.1583        .66013E-01    .35698E-01   -.39424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5262
  Index      = 2.52484
  Normalizat = 0.503703
  Prefactor  = 1.15833
 **********
 **   18 **HESSE 
 **********

 FCN=   5904.614     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.526        11.422        .11381E-03   -1.5059    
   2  Index         2.5248        .61422        .38147E-02   -.51787    
   3  Normalizat    .50370        .18238        .29078E-03   -1.1224    
   4  Prefactor     1.1583        .19397        .21421E-03   -.87623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89023e-11
Minuit parameter uncertainties:
  1  11.4249
  2  0.616284
  3  0.182595
  4  0.194085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920068': 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) = 5904.61424663
delta logL = 0.225346221187

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.053e+01  1.142e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.525e+00  6.163e-01  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.158e+00  1.941e-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.037e-01  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.41
Ra Dec: 224.673 37.373
Photon Index (Free Index): 2.52 +/- 0.62
Photon Flux (Free Index): 8.03e-08 +/- 4.74e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.29e-05

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/920068/cmap_HighResolution_492825601_493084801_4FGL_J1458.6+3722_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.03e-08', energy_flux2='2.27e-05', photon_flux_error='3.43e-08', dlogl='2.25e-01', energy_flux='2.79e-05', photon_flux2='8.03e-08', job_status='DONE', time_completed='2021-09-10 17:04:56.154572', photon_index_error2='0.62', photon_index2='2.52', ts='8.84', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='0.53', time_epoch_completed='1631318696.15', return_code='0', job_id='920068', GAL2='1.16', EG2='0.50', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='4.74e-08', ts2='9.41', photon_index='2.18' WHERE bin_id='978' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:04:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 920068: <4FGL_J1458.6+3722_daily_bin978> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin978> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 16:51:07 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:51:10 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:51:10 2021
Terminated at Fri Sep 10 17:04:56 2021
Results reported at Fri Sep 10 17:04:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin978 224.673 37.3726 492825601 493084801 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 :                                   810.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            829 sec.

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

