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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin236
RA = 224.673, Dec = 37.3726
tmin = 300499201, tmax = 300758401
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='913969', job_status='RUN', time_executed='2021-09-10 16:31:27.618723', time_epoch_executed='1631316687.62' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913969/ft1_4FGL_J1458.6+3722_daily_bin236.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913969/ft2_4FGL_J1458.6+3722_daily_bin236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913969/ft1_4FGL_J1458.6+3722_daily_bin236.fits outfile=/scratch/kocevski/913969/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin236.fits ra=224.673 dec=37.3726 rad=12.0 tmin=300499201.0 tmax=300758401.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.46
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913969/ft1_filtered_4FGL_J1458.6+3722_daily_bin236.fits" evtable="EVENTS" scfile=/scratch/kocevski/913969/ft2_4FGL_J1458.6+3722_daily_bin236.fits sctable="SC_DATA" outfile=/scratch/kocevski/913969/ltcube_300499201_300758401_4FGL_J1458.6+3722_daily_bin236.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/913969/ft2_4FGL_J1458.6+3722_daily_bin236.fits
.....................!
real 11.76
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913969/ft1_filtered_4FGL_J1458.6+3722_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/913969/ft2_4FGL_J1458.6+3722_daily_bin236.fits sctable="SC_DATA" expcube=/scratch/kocevski/913969/ltcube_300499201_300758401_4FGL_J1458.6+3722_daily_bin236.fits outfile=/scratch/kocevski/913969/expmap_300499201_300758401_4FGL_J1458.6+3722_daily_bin236.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/913969/ltcube_300499201_300758401_4FGL_J1458.6+3722_daily_bin236.fits
.....................!
real 190.16
user 185.32
sys 4.40

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/913969/ft1_filtered_4FGL_J1458.6+3722_daily_bin236.fits scfile=/scratch/kocevski/913969/ft2_4FGL_J1458.6+3722_daily_bin236.fits outfile=/scratch/kocevski/913969/cmap_300499201_300758401_4FGL_J1458.6+3722_daily_bin236.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913969/ft1_filtered_4FGL_J1458.6+3722_daily_bin236.fits scfile=/scratch/kocevski/913969/ft2_4FGL_J1458.6+3722_daily_bin236.fits outfile=/scratch/kocevski/913969/cmap_HighResolution_300499201_300758401_4FGL_J1458.6+3722_daily_bin236.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8349       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.597       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8187       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.185       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.148       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2097       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5765       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8691       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.326       1.0000         .10000E-03   10000.    
    24 'norm      '    18.105       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10550E-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      '    22.286       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2175       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75664       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=   7294.298     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     3505 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8349        18.583       -.97156E-07    .39253E-05
   2  Prefactor     .10000E-03    5.8106       -.34634E-05** at limit **
   3  Prefactor     .10000E-03    6.2797       -.20740E-05** at limit **
   4  norm          4.9995        3.9029       -.69409E-06   -.31672E-03
   5  Prefactor     12.598        11.084        .47416E-08    .74731E-05
   6  Prefactor     .10000E-03    6.5666        .67452E-06** at limit **
   7  Prefactor     7.8189        3.6029        .26849E-06    .19772E-03
   8  norm          .10000E-03    5.4062        .12970E-05** at limit **
   9  Prefactor     .10000E-03    18.998       -.29072E-05** at limit **
  10  norm          .10000E-03    2.3799       -.77015E-07** at limit **
  11  Prefactor     52.183        40.422       -.79960E-06   -.17122E-04
  12  Prefactor     .10000E-03    102.33       -.90862E-05** at limit **
  13  norm          .10000E-03    4.6643       -.52605E-06** at limit **
  14  Prefactor     11.148        10.565       -.17547E-07   -.13236E-03
  15  Prefactor     4.2095        4.6634        .80616E-06   -.19953E-02
  16  Prefactor     5.5766        6.6800        .79906E-06   -.14913E-02
  17  norm          1.8690        1.2574       -.65459E-07   -.14129E-03
  18  norm          .10000E-03    .92512       -.71200E-08** at limit **
  19  Prefactor     .10000E-03    3.7363        .13521E-06** at limit **
  20  Prefactor     .10000E-03    99.538        .71314E-05** at limit **
  21  Prefactor     .10000E-03    5.3442        .18138E-05** at limit **
  22  Prefactor     .10000E-03    30.227        .25583E-05** at limit **
  23  Prefactor     11.337        11.252        .22186E-06   -.54310E-04
  24  norm          18.105        2.3099       -.39771E-07   -.12298E-02
  25  Prefactor     .10002E-03    4.2831        .99892E-06** at limit **
  26  Prefactor     .10000E-03    18.585       -.11914E-05** at limit **
  27  Prefactor     .10000E-03    6.8548        .39815E-05** at limit **
  28  norm          22.287        15.616       -.13777E-06   -.70543E-04
  29  Prefactor     .10000E-03    8.5113       -.26377E-05** at limit **
  30  Normalizat    1.2175        .17744        .11444E-06    .40843E-05
  31  Prefactor     .75668        .17384        .11674E-06   -.96636E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.83494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.99953
  Prefactor  = 12.5981
  Prefactor  = 0.0001
  Prefactor  = 7.81889
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.1831
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 11.1481
  Prefactor  = 4.20947
  Prefactor  = 5.57656
  norm       = 1.86897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3374
  norm       = 18.105
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.287
  Prefactor  = 0.0001
  Normalizat = 1.21746
  Prefactor  = 0.756677
 **********
 **   18 **HESSE 
 **********

 FCN=   7294.298     FROM HESSE     STATUS=OK           616 CALLS     4121 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8349        18.619        .12778E-03   -1.5081    
   2  Prefactor     .10000E-03    5.8589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9995        3.9154        .14344E-03   -1.5261    
   5  Prefactor     12.598        11.106        .11286E-03   -1.4998    
   6  Prefactor     .10000E-03    6.5813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8189        3.6080        .10602E-03   -1.5149    
   8  norm          .10000E-03    5.4200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3956        .12863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.183        40.483        .55519E-04   -1.4262    
  12  Prefactor     .10000E-03    104.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.6950        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.148        10.565        .59994E-03   -1.5040    
  15  Prefactor     4.2095        5.8863        .98205E-03   -1.5298    
  16  Prefactor     5.5766        8.0173        .85063E-03   -1.5236    
  17  norm          1.8690        1.2595        .74417E-04   -1.5435    
  18  norm          .10000E-03    .92669        .80194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.7459        .16096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    100.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.337        11.282        .11904E-03   -1.5034    
  24  norm          18.105        2.2647        .43393E-04   -1.4857    
  25  Prefactor     .10002E-03    14.412        .33242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.9197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          22.287        15.644        .84847E-04   -1.4763    
  29  Prefactor     .10000E-03    8.5508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2175        .21851        .24122E-03   -.86065    
  31  Prefactor     .75668        .21032        .30463E-03   -1.0135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32849e-09
Minuit parameter uncertainties:
  1  18.6297
  2  9.16803e-05
  3  5.84789e-05
  4  3.9156
  5  11.1077
  6  2.25002e-05
  7  3.60808
  8  3.65789e-05
  9  0.000137254
  10  3.55979e-07
  11  40.5048
  12  0.00102748
  13  1.25774e-05
  14  10.5669
  15  5.88706
  16  8.01885
  17  1.25948
  18  9.74957e-07
  19  3.96954e-06
  20  0.000707337
  21  4.06885e-05
  22  5.2777e-05
  23  11.2841
  24  2.26472
  25  0.000932202
  26  6.61469e-05
  27  0.000115409
  28  15.6464
  29  8.82802e-05
  30  0.218679
  31  0.210538
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  4.209e+00  5.887e+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:  7.567e-01  2.105e-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.217e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913969/likelihoodResults_300499201_300758401_4FGL_J1458.6+3722_daily_bin236.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) = 7294.29596585
delta logL = 0.00229154759108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7294.29472563
delta logL = 0.00353177125817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5644       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1169       1.0000          .0000       10.000    
     3 'Normalizat'    1.2186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75578       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=   7294.295     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      252 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5647        7.8238        .18842E-03    .31556E-04
   2  Index         2.1169        .84032        .10274E-01    .32326E-03
   3  Normalizat    1.2186        .20409        .24112E-03    .89725E-04
   4  Prefactor     .75578        .20865        .30480E-03    .79149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.56467
  Index      = 2.11693
  Normalizat = 1.21864
  Prefactor  = 0.755778
 **********
 **   18 **HESSE 
 **********

 FCN=   7294.295     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5647        7.4244        .75367E-05   -1.5281    
   2  Index         2.1169        .79826        .20547E-02   -.61458    
   3  Normalizat    1.2186        .20423        .96449E-05   -.86029    
   4  Prefactor     .75578        .20880        .12192E-04   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30955e-11
Minuit parameter uncertainties:
  1  7.42588
  2  0.80343
  3  0.204362
  4  0.209014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913969': 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) = 7294.29472563
delta logL = 0.00353177194484

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  4.565e+00  7.426e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.117e+00  8.034e-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:  7.558e-01  2.090e-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.219e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/913969/cmap_HighResolution_300499201_300758401_4FGL_J1458.6+3722_daily_bin236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2021-09-10 16:47:18.800472', job_id='913969', GAL2='0.76', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631317638.8', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.53e-03', ts2='0.77', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='236' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 913969: <4FGL_J1458.6+3722_daily_bin236> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin236 224.673 37.3726 300499201 300758401 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 :                                   948.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            967 sec.

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

