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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1022
RA = 224.673, Dec = 37.3726
tmin = 504230401, tmax = 504489601
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='920132', job_status='RUN', time_executed='2021-09-10 16:55:14.171964', time_epoch_executed='1631318114.17' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920132

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920132/ft1_4FGL_J1458.6+3722_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920132/ft2_4FGL_J1458.6+3722_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920132/ft1_4FGL_J1458.6+3722_daily_bin1022.fits outfile=/scratch/kocevski/920132/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1022.fits ra=224.673 dec=37.3726 rad=12.0 tmin=504230401.0 tmax=504489601.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.63
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/920132/ft2_4FGL_J1458.6+3722_daily_bin1022.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/920132/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/920132/ft1_filtered_4FGL_J1458.6+3722_daily_bin1022.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/920132/ft1_filtered_4FGL_J1458.6+3722_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/920132/ft2_4FGL_J1458.6+3722_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/920132/ltcube_504230401_504489601_4FGL_J1458.6+3722_daily_bin1022.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/920132/ft2_4FGL_J1458.6+3722_daily_bin1022.fits
.....................!
real 11.96
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920132/ft1_filtered_4FGL_J1458.6+3722_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/920132/ft2_4FGL_J1458.6+3722_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/920132/ltcube_504230401_504489601_4FGL_J1458.6+3722_daily_bin1022.fits outfile=/scratch/kocevski/920132/expmap_504230401_504489601_4FGL_J1458.6+3722_daily_bin1022.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/920132/ltcube_504230401_504489601_4FGL_J1458.6+3722_daily_bin1022.fits
.....................!
real 190.69
user 185.45
sys 4.87

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/920132/ft1_filtered_4FGL_J1458.6+3722_daily_bin1022.fits scfile=/scratch/kocevski/920132/ft2_4FGL_J1458.6+3722_daily_bin1022.fits outfile=/scratch/kocevski/920132/cmap_504230401_504489601_4FGL_J1458.6+3722_daily_bin1022.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/920132/ft1_filtered_4FGL_J1458.6+3722_daily_bin1022.fits scfile=/scratch/kocevski/920132/ft2_4FGL_J1458.6+3722_daily_bin1022.fits outfile=/scratch/kocevski/920132/cmap_HighResolution_504230401_504489601_4FGL_J1458.6+3722_daily_bin1022.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4698       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2549       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7355       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10587E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.699       1.0000         .10000E-03   10000.    
    10 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13160       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.5395       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.758       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.589       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7898       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53547       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.650       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.133       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.5536       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5498       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.2672       1.0000         .10000E-03   10000.    
    28 'norm      '    .10711E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5321       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .33321       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=   5817.330     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4195 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.4827        .63165E-07** at limit **
   2  Prefactor     .10000E-03    4.9907        .95587E-07** at limit **
   3  Prefactor     6.4823        43.033       -.15523E-06   -.71086E-04
   4  norm          3.2551        3.2814        .77018E-07    .88583E-04
   5  Prefactor     2.7574        13.426       -.54786E-06    .11543E-03
   6  Prefactor     11.222        21.691        .15874E-05    .28112E-03
   7  Prefactor     .10000E-03    1.5806        .27512E-07** at limit **
   8  norm          .10001E-03    8.0023        .25669E-05** at limit **
   9  Prefactor     44.678        35.198       -.15704E-06   -.52992E-04
  10  norm          .10000E-03    4.4587        .80622E-07** at limit **
  11  Prefactor     .10339E-03    46.023       -.70833E-06** at limit **
  12  Prefactor     .10000E-03    11.507        .44475E-08** at limit **
  13  norm          8.5393        8.1486       -.41668E-06   -.61936E-03
  14  Prefactor     24.759        17.445       -.33361E-07   -.16731E-03
  15  Prefactor     21.591        10.221        .17170E-06    .27539E-03
  16  Prefactor     .10000E-03    3.2872       -.20168E-07** at limit **
  17  norm          .10000E-03    .64964        .37470E-06** at limit **
  18  norm          2.7891        3.5211        .74280E-06   -.45581E-03
  19  Prefactor     .54007        22.990       -.90619E-05   -.90821E-05
  20  Prefactor     30.661        35.918       -.20628E-06   -.68903E-04
  21  Prefactor     .10000E-03    5.7951       -.34132E-07** at limit **
  22  Prefactor     11.135        13.063        .19275E-06    .14342E-03
  23  Prefactor     .10000E-03    6.6668        .32913E-06** at limit **
  24  norm          4.5533        1.5161       -.11126E-06   -.22096E-03
  25  Prefactor     1.5507        3.8913        .24382E-05   -.10937E-02
  26  Prefactor     .10000E-03    24.321       -.22138E-07** at limit **
  27  Prefactor     9.2803        18.792       -.16760E-06   -.11109E-03
  28  norm          .10000E-03    13.707       -.10321E-05** at limit **
  29  Prefactor     .10000E-03    9.4991       -.28318E-08** at limit **
  30  Normalizat    1.5320        .20228       -.12174E-05   -.42321E-03
  31  Prefactor     .33326        .18351        .11404E-05   -.16202E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48229
  norm       = 3.25511
  Prefactor  = 2.75738
  Prefactor  = 11.2218
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 44.6776
  norm       = 0.0001
  Prefactor  = 0.000103392
  Prefactor  = 0.0001
  norm       = 8.53934
  Prefactor  = 24.7589
  Prefactor  = 21.5909
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.78912
  Prefactor  = 0.540065
  Prefactor  = 30.6612
  Prefactor  = 0.0001
  Prefactor  = 11.135
  Prefactor  = 0.0001
  norm       = 4.55329
  Prefactor  = 1.55073
  Prefactor  = 0.0001
  Prefactor  = 9.28034
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.53202
  Prefactor  = 0.333259
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.330     FROM HESSE     STATUS=OK           626 CALLS     4821 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9918        .16642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4823        44.025        .15779E-03   -1.5199    
   4  norm          3.2551        3.2809        .13404E-03   -1.5347    
   5  Prefactor     2.7574        12.974        .24618E-03   -1.5376    
   6  Prefactor     11.222        21.585        .11935E-03   -1.5038    
   7  Prefactor     .10000E-03    1.5933        .93615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    8.6126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.678        35.324        .59967E-04   -1.4370    
  10  norm          .10000E-03    4.4991        .15719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10339E-03    45.502        .14969       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.5393        8.2245        .13718E-03   -1.5123    
  14  Prefactor     24.759        17.454        .80506E-04   -1.4712    
  15  Prefactor     21.591        10.247        .86204E-04   -1.4778    
  16  Prefactor     .10000E-03    3.3317        .13502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .67244        .60480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7891        3.7662        .12411E-03   -1.5374    
  19  Prefactor     .54007        31.218        .35930E-02   -1.5561    
  20  Prefactor     30.661        35.936        .72371E-04   -1.4600    
  21  Prefactor     .10000E-03    5.8462        .17928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.135        13.037        .12007E-03   -1.5040    
  23  Prefactor     .10000E-03    6.7319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.5533        1.6724        .50390E-04   -1.5281    
  25  Prefactor     1.5507        11.915        .17108E-02   -1.5459    
  26  Prefactor     .10000E-03    24.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.2803        18.761        .13165E-03   -1.5099    
  28  norm          .10000E-03    13.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.5118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.5320        .22834        .20285E-03   -.76882    
  31  Prefactor     .33326        .20052        .38549E-03   -1.2036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5257e-08
Minuit parameter uncertainties:
  1  1.18097e-05
  2  1.37462e-05
  3  33.822
  4  3.28106
  5  11.9662
  6  21.5999
  7  2.82582e-06
  8  0.000501511
  9  35.341
  10  1.34407e-05
  11  0.0248651
  12  3.68892e-06
  13  8.22563
  14  17.4575
  15  10.2476
  16  1.59676e-06
  17  2.11237e-05
  18  3.76648
  19  8.21586
  20  35.9614
  21  4.63538e-06
  22  13.0398
  23  9.36078e-05
  24  1.67239
  25  8.59909
  26  1.14298e-06
  27  18.7728
  28  0.000249372
  29  1.18471e-06
  30  0.228497
  31  0.200936
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  2.159e+01  1.025e+01  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:  3.333e-01  2.009e-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.532e+00  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.43
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 8.19e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 1.80e-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) = 5817.25463637
delta logL = 0.0749875062693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5817.24792492
delta logL = 0.081698959184

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.104       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3388       1.0000          .0000       10.000    
     3 'Normalizat'    1.5191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34152       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=   5817.248     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      240 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.120        147.25        .23533E-02   -.17283E-03
   2  Index         2.3381        2.6851        .99020E-01    .52817E-04
   3  Normalizat    1.5191        .10335        .46035E-01   -.25072E-03
   4  Prefactor     .34149        .79364E-01    .85993E-01   -.30243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1201
  Index      = 2.3381
  Normalizat = 1.51909
  Prefactor  = 0.341494
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.248     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.120        12.833        .94131E-04   -1.4856    
   2  Index         2.3381        .40677        .39169E-02   -.56141    
   3  Normalizat    1.5191        .21126        .20349E-03   -.77243    
   4  Prefactor     .34149        .19732        .38104E-03   -1.1991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61116e-11
Minuit parameter uncertainties:
  1  12.8349
  2  0.407397
  3  0.211388
  4  0.197711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920132': 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) = 5817.24792329
delta logL = 0.0817005869239

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.812e+01  1.283e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.338e+00  4.074e-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:  3.415e-01  1.977e-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.519e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.61
Ra Dec: 224.673 37.373
Photon Index (Free Index): 2.34 +/- 0.41
Photon Flux (Free Index): 9.34e-08 +/- 4.98e-08
Energy Flux (Free Index): 3.34e-05 +/- 1.83e-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/920132/cmap_HighResolution_504230401_504489601_4FGL_J1458.6+3722_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.19e-08', energy_flux2='3.34e-05', photon_flux_error='3.88e-08', dlogl='8.17e-02', energy_flux='3.78e-05', photon_flux2='9.34e-08', job_status='DONE', time_completed='2021-09-10 17:07:46.433721', photon_index_error2='0.41', photon_index2='2.34', ts='12.43', fit_tolerance='1e-08', GAL='0.33', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.53', time_epoch_completed='1631318866.43', return_code='0', job_id='920132', GAL2='0.34', EG2='1.52', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='4.98e-08', ts2='12.61', photon_index='2.18' WHERE bin_id='1022' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:07:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 920132: <4FGL_J1458.6+3722_daily_bin1022> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1022 224.673 37.3726 504230401 504489601 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 :                                   748.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

