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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin431
RA = 194.31, Dec = 36.7706
tmin = 351043201, tmax = 351302401
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='34445', job_status='RUN', time_executed='2021-09-06 11:38:51.680325', time_epoch_executed='1630953531.68' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34445

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34445/ft1_4FGL_J1257.2+3646_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34445/ft1_4FGL_J1257.2+3646_daily_bin431.fits outfile=/scratch/kocevski/34445/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin431.fits ra=194.31 dec=36.7706 rad=12.0 tmin=351043201.0 tmax=351302401.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.41
user 3.20
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.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/34445/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin431.fits evtable="EVENTS" outfile="/scratch/kocevski/34445/ft1_filtered_4FGL_J1257.2+3646_daily_bin431.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/34445/ft1_filtered_4FGL_J1257.2+3646_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/34445/ltcube_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.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/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits
.....................!
real 12.71
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34445/ft1_filtered_4FGL_J1257.2+3646_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/34445/ltcube_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.fits outfile=/scratch/kocevski/34445/expmap_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.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/34445/ltcube_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.fits
.....................!
real 190.26
user 185.83
sys 4.06

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 J1257.2+3646 @ 194.31 36.7706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/34445/ft1_filtered_4FGL_J1257.2+3646_daily_bin431.fits scfile=/scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits outfile=/scratch/kocevski/34445/cmap_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.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=194.31 yref=36.7706 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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34445/ft1_filtered_4FGL_J1257.2+3646_daily_bin431.fits scfile=/scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits outfile=/scratch/kocevski/34445/cmap_HighResolution_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.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=194.31 yref=36.7706 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34445/ft1_filtered_4FGL_J1257.2+3646_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34445/Model_4FGL_J1257.2+3646_daily_bin431.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/34445/ft1_filtered_4FGL_J1257.2+3646_daily_bin431.fits.....................!
real 47.56
user 46.13
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/34445/ft1_filtered_4FGL_J1257.2+3646_daily_bin431.fits', '/scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits', expMap='/scratch/kocevski/34445/expmap_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.fits', expCube='/scratch/kocevski/34445/ltcube_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/34445/Model_4FGL_J1257.2+3646_daily_bin431.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.2+3646'

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.472e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/34445/ft1_filtered_4FGL_J1257.2+3646_daily_bin431.fits
Spacecraft file(s): /scratch/kocevski/34445/ft2_4FGL_J1257.2+3646_daily_bin431.fits
Exposure map: /scratch/kocevski/34445/expmap_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.fits
Exposure cube: /scratch/kocevski/34445/ltcube_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/34445/Model_4FGL_J1257.2+3646_daily_bin431.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) = 5712.28118745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9156       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0852       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0934       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0166       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.805       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3863       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5924       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.852       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.211       1.0000         .10000E-03   10000.    
    17 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.651       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4343       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4493       1.0000         .10000E-03   10000.    
    23 'Prefactor '    58.809       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1442       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5712.269     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3062 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9130        49.652        .21803E-06   -.77725E-04
   2  norm          3.0852        2.5719       -.91850E-07   -.16054E-03
   3  Prefactor     .10000E-03    1.5913        .18081E-09** at limit **
   4  Prefactor     3.0933        2.2132       -.60604E-07   -.45245E-04
   5  Prefactor     7.7984        2.8654       -.21331E-06    .14938E-04
   6  Prefactor     8.0163        7.2190        .43643E-05    .10280E-04
   7  Prefactor     32.796        35.497        .14528E-05    .77595E-05
   8  Prefactor     6.3822        12.029        .20821E-04   -.26177E-04
   9  Prefactor     29.923        90.645       -.13164E-04   -.17871E-04
  10  Prefactor     .10000E-03    1.4678       -.59330E-07** at limit **
  11  norm          2.5830        5.4948        .54096E-05   -.24165E-03
  12  Prefactor     45.844        46.017       -.29271E-05    .78643E-05
  13  Prefactor     12.455        21.021       -.22128E-04   -.10710E-03
  14  Prefactor     .10000E-03    7.1240        .38270E-07** at limit **
  15  norm          .10000E-03    1.0830        .86969E-07** at limit **
  16  norm          19.211        14.808       -.40614E-05    .32478E-05
  17  norm          .10000E-03    3.6277        .60417E-06** at limit **
  18  norm          6.6735        4.9343        .65013E-06   -.45965E-05
  19  Prefactor     .10000E-03    2.5665        .70522E-06** at limit **
  20  Prefactor     13.649        16.122       -.52558E-06   -.31007E-04
  21  Prefactor     5.1413        177.81       -.33089E-04   -.90721E-05
  22  Prefactor     5.4320        18.103       -.66644E-05   -.39307E-04
  23  Prefactor     58.787        66.579        .27062E-05    .16617E-04
  24  Normalizat    1.1445        .17719        .36301E-05   -.27090E-03
  25  Prefactor     .62118        .20774       -.29291E-05    .74109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91298
  norm       = 3.08517
  Prefactor  = 0.0001
  Prefactor  = 3.09333
  Prefactor  = 7.79835
  Prefactor  = 8.0163
  Prefactor  = 32.7961
  Prefactor  = 6.38224
  Prefactor  = 29.9226
  Prefactor  = 0.0001
  norm       = 2.58297
  Prefactor  = 45.8439
  Prefactor  = 12.4549
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.2107
  norm       = 0.000100001
  norm       = 6.67353
  Prefactor  = 0.000100001
  Prefactor  = 13.6494
  Prefactor  = 5.14128
  Prefactor  = 5.43202
  Prefactor  = 58.7868
  Normalizat = 1.14452
  Prefactor  = 0.621182
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.269     FROM HESSE     STATUS=OK           435 CALLS     3497 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9130        49.898        .30029E-03   -1.5431    
   2  norm          3.0852        2.5843        .10128E-03   -1.5357    
   3  Prefactor     .10000E-03    1.5926        .93107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0933        2.2287        .87105E-04   -1.5356    
   5  Prefactor     7.7984        2.8645        .74581E-04   -1.5149    
   6  Prefactor     8.0163        7.2167        .14161E-03   -1.5142    
   7  Prefactor     32.796        35.546        .69961E-04   -1.4562    
   8  Prefactor     6.3822        11.979        .15883E-03   -1.5203    
   9  Prefactor     29.923        89.810        .73243E-04   -1.4613    
  10  Prefactor     .10000E-03    1.4701        .89417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5830        5.3498        .20125E-03   -1.5387    
  12  Prefactor     45.844        46.030        .59211E-04   -1.4353    
  13  Prefactor     12.455        20.853        .11355E-03   -1.5002    
  14  Prefactor     .10000E-03    7.1838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0840        .76810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.211        14.810        .45690E-03   -1.4831    
  17  norm          .10000E-03    3.7039        .27884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6735        4.9121        .13829E-03   -1.5191    
  19  Prefactor     .10000E-03    2.6533        .23463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.649        15.965        .10841E-03   -1.4969    
  21  Prefactor     5.1413        175.54        .17237E-03   -1.5254    
  22  Prefactor     5.4320        18.121        .17213E-03   -1.5242    
  23  Prefactor     58.787        67.112        .52316E-04   -1.4173    
  24  Normalizat    1.1445        .20612        .20625E-03   -.88335    
  25  Prefactor     .62118        .23782        .33559E-03   -1.0670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49703e-09
Minuit parameter uncertainties:
  1  19.5577
  2  2.58441
  3  1.70663e-06
  4  2.22871
  5  2.86456
  6  7.21748
  7  35.5691
  8  11.9837
  9  90.2195
  10  8.77739e-06
  11  5.35076
  12  46.0656
  13  20.8649
  14  1.7247e-05
  15  6.43126e-06
  16  14.813
  17  0.000125851
  18  4.91243
  19  0.000116551
  20  15.9704
  21  60.2749
  22  18.1391
  23  67.1986
  24  0.206262
  25  0.238208
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  8.777e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  6.212e-01  2.382e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.145e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 3.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34445/likelihoodResults_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.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) = 5712.27209485
delta logL = -0.00302955250481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5712.26906506
delta logL = 2.32015736401e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0029       1.0000          .0000       10.000    
     3 'Normalizat'    1.1445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62120       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5712.269     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10197E-03    25.934        .91849E-03** at limit **
   2  Index         1.9337        5.1916        .50000        .11851E-03
   3  Normalizat    1.1445        .16115E-01    .20624E-03   -.85594E-04
   4  Prefactor     .62118        .19924E-01    .33560E-03   -.65279E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5712.269     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      363 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.934        .16237E-03** at limit **
   2  Index         1.9298        5.1916        .13664E-02    .11851E-03
   3  Normalizat    1.1445        .16115E-01    .13044E-04   -.85594E-04
   4  Prefactor     .62114        .19924E-01    .22935E-04   -.65279E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5712.269     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      417 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.727        .18370E-02** at limit **
   2  Index         1.4825        5.4137        .50000        .28710E-06
   3  Normalizat    1.1445        .16640E-01    .41249E-04    .29584E-03
   4  Prefactor     .62118        .20574E-01    .13424E-04    .21731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.48251
  Normalizat = 1.14453
  Prefactor  = 0.621178
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.269     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    152.83        .36740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4825        5.7058        .50000       -.78031    
   3  Normalizat    1.1445        .37748E-01    .82498E-05   -.88335    
   4  Prefactor     .62118        .46676E-01    .26848E-05   -1.0670    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09556e-10
Minuit parameter uncertainties:
  1  0.000220662
  2  561.588
  3  0.0377489
  4  0.046679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34445': 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) = 5712.26905583
delta logL = 9.46047384787e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.207e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.483e+00  5.616e+02  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  6.212e-01  4.668e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.145e+00  3.775e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

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/34445/cmap_HighResolution_351043201_351302401_4FGL_J1257.2+3646_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', job_status='DONE', photon_flux_upper_limit='3.06e-08', time_completed='2021-09-06 11:50:59.018834', job_id='34445', GAL2='0.62', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630954259.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='9.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='431' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:50:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 34445: <4FGL_J1257.2+3646_daily_bin431> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin431> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:26 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:35:27 2021
Terminated at Mon Sep  6 11:50:59 2021
Results reported at Mon Sep  6 11:50:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin431 194.31 36.7706 351043201 351302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.2+3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             244.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

