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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1553
RA = 193.733, Dec = 11.6495
tmin = 641865601, tmax = 642124801
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='811', job_status='RUN', time_executed='2021-09-06 09:48:58.927963', time_epoch_executed='1630946938.93' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811/ft1_4FGL_J1254.9+1138_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811/ft1_4FGL_J1254.9+1138_daily_bin1553.fits outfile=/scratch/kocevski/811/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1553.fits ra=193.733 dec=11.6495 rad=12.0 tmin=641865601.0 tmax=642124801.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 4.37
user 4.11
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.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/811/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1553.fits evtable="EVENTS" outfile="/scratch/kocevski/811/ft1_filtered_4FGL_J1254.9+1138_daily_bin1553.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811/ft1_filtered_4FGL_J1254.9+1138_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/811/ltcube_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.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/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits
.....................!
real 15.22
user 14.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811/ft1_filtered_4FGL_J1254.9+1138_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/811/ltcube_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.fits outfile=/scratch/kocevski/811/expmap_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.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/811/ltcube_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.fits
.....................!
real 189.70
user 185.12
sys 4.15

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.9+1138 @ 193.733 11.6495

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/811/ft1_filtered_4FGL_J1254.9+1138_daily_bin1553.fits scfile=/scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits outfile=/scratch/kocevski/811/cmap_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.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=193.733 yref=11.6495 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811/ft1_filtered_4FGL_J1254.9+1138_daily_bin1553.fits scfile=/scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits outfile=/scratch/kocevski/811/cmap_HighResolution_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.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=193.733 yref=11.6495 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811/ft1_filtered_4FGL_J1254.9+1138_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811/Model_4FGL_J1254.9+1138_daily_bin1553.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/811/ft1_filtered_4FGL_J1254.9+1138_daily_bin1553.fits.....................!
real 46.79
user 45.10
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/811/ft1_filtered_4FGL_J1254.9+1138_daily_bin1553.fits', '/scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits', expMap='/scratch/kocevski/811/expmap_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.fits', expCube='/scratch/kocevski/811/ltcube_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/811/Model_4FGL_J1254.9+1138_daily_bin1553.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.9+1138'

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/811/ft1_filtered_4FGL_J1254.9+1138_daily_bin1553.fits
Spacecraft file(s): /scratch/kocevski/811/ft2_4FGL_J1254.9+1138_daily_bin1553.fits
Exposure map: /scratch/kocevski/811/expmap_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.fits
Exposure cube: /scratch/kocevski/811/ltcube_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/811/Model_4FGL_J1254.9+1138_daily_bin1553.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) = 4993.14261449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5891       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4700       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.582       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.802       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22968E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.587       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1836       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .70838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4993.124     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2032 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2667       -.32354E-07** at limit **
   2  Prefactor     .10000E-03    9.2099        .12883E-06** at limit **
   3  norm          .10000E-03    1.5134       -.19218E-06** at limit **
   4  Prefactor     .10000E-03    55.089        .63191E-05** at limit **
   5  norm          1.6051        142.75        .23758E-04   -.42814E-04
   6  Prefactor     .10000E-03    82.723        .23174E-05** at limit **
   7  norm          2.7726        .91247       -.12168E-06   -.33446E-03
   8  Prefactor     .10000E-03    4.8031       -.18094E-06** at limit **
   9  Prefactor     .10000E-03    11.657        .15121E-06** at limit **
  10  norm          1.4696        1.7220       -.13694E-06   -.62498E-03
  11  Prefactor     .10000E-03    19.796       -.29486E-06** at limit **
  12  Prefactor     10.620        42.604        .52505E-04    .21435E-04
  13  Prefactor     10.799        9.2554       -.28765E-06   -.41087E-04
  14  Prefactor     30.477        18.486       -.54791E-05    .19965E-03
  15  Prefactor     .10001E-03    45.968       -.15551E-04** at limit **
  16  Prefactor     .10000E-03    8.5413        .71681E-07** at limit **
  17  Prefactor     .10000E-03    27.487        .29796E-05** at limit **
  18  Prefactor     40.595        39.718        .64243E-05    .18549E-05
  19  Normalizat    1.1839        .21366        .11988E-05    .48965E-04
  20  Prefactor     .70832        .17029       -.18190E-05    .12486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60514
  Prefactor  = 0.0001
  norm       = 2.77264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4696
  Prefactor  = 0.0001
  Prefactor  = 10.6203
  Prefactor  = 10.7985
  Prefactor  = 30.4775
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.5951
  Normalizat = 1.1839
  Prefactor  = 0.708323
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.124     FROM HESSE     STATUS=OK           287 CALLS     2319 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2740        .77655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5235        .84801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    55.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6051        142.46        .33665E-03   -1.5455    
   6  Prefactor     .10000E-03    82.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7726        .90804        .35343E-04   -1.5375    
   8  Prefactor     .10000E-03    4.8171        .15124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4696        1.6969        .94230E-04   -1.5466    
  11  Prefactor     .10000E-03    19.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.620        42.782        .12317E-03   -1.5056    
  13  Prefactor     10.799        9.2688        .12190E-03   -1.5051    
  14  Prefactor     30.477        18.517        .72617E-04   -1.4603    
  15  Prefactor     .10001E-03    47.309        .40201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.595        39.728        .62919E-04   -1.4433    
  19  Normalizat    1.1839        .25518        .24859E-03   -.87102    
  20  Prefactor     .70832        .20220        .25620E-03   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28223e-10
Minuit parameter uncertainties:
  1  7.15522e-07
  2  2.39938e-06
  3  8.37456e-06
  4  2.49566e-05
  5  30.3174
  6  1.80205e-05
  7  0.908046
  8  7.89033e-07
  9  2.05084e-06
  10  1.697
  11  6.81093e-06
  12  42.6844
  13  9.27002
  14  18.5201
  15  0.00115072
  16  3.95183e-06
  17  4.22815e-06
  18  39.754
  19  0.255453
  20  0.202411
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.048e+01  1.852e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.083e-01  2.024e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.184e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 7.29e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.64e-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) = 4992.87311821
delta logL = 0.250537221873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4992.86639656
delta logL = 0.257258872954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.637       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2267       1.0000          .0000       10.000    
     3 'Normalizat'    1.1489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72877       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   4992.866     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      301 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.645        18.478        .80703E-04    .13270E-03
   2  Index         3.2266        .67065        .60448E-02    .28168E-04
   3  Normalizat    1.1485        .25522        .25179E-03    .20615E-03
   4  Prefactor     .72905        .20395        .25293E-03   -.50207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6452
  Index      = 3.2266
  Normalizat = 1.14853
  Prefactor  = 0.729055
 **********
 **   18 **HESSE 
 **********

 FCN=   4992.866     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.645        17.694        .32281E-05   -1.4715    
   2  Index         3.2266        .64172        .24179E-03   -.36257    
   3  Normalizat    1.1485        .25553        .50357E-04   -.88208    
   4  Prefactor     .72905        .20409        .10117E-04   -1.0240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90768e-10
Minuit parameter uncertainties:
  1  17.698
  2  0.643751
  3  0.255803
  4  0.204297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811': 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) = 4992.86639545
delta logL = 0.257259979225

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.465e+01  1.770e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.227e+00  6.438e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.291e-01  2.043e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.149e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.58
Ra Dec: 193.733 11.649
Photon Index (Free Index): 3.23 +/- 0.64
Photon Flux (Free Index): 1.52e-07 +/- 8.75e-08
Energy Flux (Free Index): 2.75e-05 +/- 1.48e-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/811/cmap_HighResolution_641865601_642124801_4FGL_J1254.9+1138_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='2.75e-05', photon_flux_error='7.29e-08', dlogl='2.57e-01', energy_flux='2.71e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-06 09:57:25.999655', photon_index_error2='0.64', photon_index2='3.23', ts='4.99', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.18', time_epoch_completed='1630947446.0', return_code='0', job_id='811', GAL2='0.73', EG2='1.15', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='8.75e-08', ts2='5.58', photon_index='2.79' WHERE bin_id='1553' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:57:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 811: <4FGL_J1254.9+1138_daily_bin1553> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1553> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:45:36 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:45:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:45:38 2021
Terminated at Mon Sep  6 09:57:27 2021
Results reported at Mon Sep  6 09:57:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1553 193.733 11.6495 641865601 642124801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.9+1138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   499.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            711 sec.

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

