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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin962
RA = 193.733, Dec = 11.6495
tmin = 488678401, tmax = 488937601
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='997691', job_status='RUN', time_executed='2021-09-06 09:36:25.178620', time_epoch_executed='1630946185.18' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='962'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997691/ft1_4FGL_J1254.9+1138_daily_bin962.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997691/ft2_4FGL_J1254.9+1138_daily_bin962.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997691/ft1_4FGL_J1254.9+1138_daily_bin962.fits outfile=/scratch/kocevski/997691/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin962.fits ra=193.733 dec=11.6495 rad=12.0 tmin=488678401.0 tmax=488937601.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.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997691/ft2_4FGL_J1254.9+1138_daily_bin962.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/997691/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin962.fits evtable="EVENTS" outfile="/scratch/kocevski/997691/ft1_filtered_4FGL_J1254.9+1138_daily_bin962.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997691/ft1_filtered_4FGL_J1254.9+1138_daily_bin962.fits evtable="EVENTS" scfile=/scratch/kocevski/997691/ft2_4FGL_J1254.9+1138_daily_bin962.fits sctable="SC_DATA" expcube=/scratch/kocevski/997691/ltcube_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.fits outfile=/scratch/kocevski/997691/expmap_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.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/997691/ltcube_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.fits
.....................!
real 189.30
user 184.59
sys 4.33

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/997691/ft1_filtered_4FGL_J1254.9+1138_daily_bin962.fits scfile=/scratch/kocevski/997691/ft2_4FGL_J1254.9+1138_daily_bin962.fits outfile=/scratch/kocevski/997691/cmap_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997691/ft1_filtered_4FGL_J1254.9+1138_daily_bin962.fits scfile=/scratch/kocevski/997691/ft2_4FGL_J1254.9+1138_daily_bin962.fits outfile=/scratch/kocevski/997691/cmap_HighResolution_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/997691/ft1_filtered_4FGL_J1254.9+1138_daily_bin962.fits', '/scratch/kocevski/997691/ft2_4FGL_J1254.9+1138_daily_bin962.fits', expMap='/scratch/kocevski/997691/expmap_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.fits', expCube='/scratch/kocevski/997691/ltcube_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/997691/Model_4FGL_J1254.9+1138_daily_bin962.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/997691/ft1_filtered_4FGL_J1254.9+1138_daily_bin962.fits
Spacecraft file(s): /scratch/kocevski/997691/ft2_4FGL_J1254.9+1138_daily_bin962.fits
Exposure map: /scratch/kocevski/997691/expmap_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.fits
Exposure cube: /scratch/kocevski/997691/ltcube_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/997691/Model_4FGL_J1254.9+1138_daily_bin962.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) = 5507.01489751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8548       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0666       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    98.441       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0756       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.137       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7133       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.626       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12077E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37394E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36310E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11133E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2184       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0428       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=   5506.932     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     2345 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8553        2.9035        .15345E-03    .42972E-04
   2  Prefactor     .10000E-03    16.874        .18142E-02** at limit **
   3  norm          1.0623        3.9552        .23142E-03    .98941E-04
   4  Prefactor     .10000E-03    26.872        .18142E-02** at limit **
   5  norm          19.170        51.017        .91648E-04    .26174E-04
   6  Prefactor     98.646        165.25        .20258E-03    .39912E-04
   7  norm          1.0754        .72395        .48709E-04   -.20749E-03
   8  Prefactor     .10000E-03    3.8817        .14269E-02** at limit **
   9  Prefactor     22.131        18.909        .85133E-04    .85065E-04
  10  norm          4.7142        2.1694        .70057E-04   -.26029E-03
  11  Prefactor     16.649        54.585        .98227E-04    .77545E-05
  12  Prefactor     .10000E-03    24.514        .18142E-02** at limit **
  13  Prefactor     .10000E-03    3.7465        .13989E-02** at limit **
  14  Prefactor     .10008E-03    34.755        .41427E-02** at limit **
  15  Prefactor     .10000E-03    159.84        .41632E-02** at limit **
  16  Prefactor     .10000E-03    2.7551        .12024E-02** at limit **
  17  Prefactor     .10000E-03    28.521        .18142E-02** at limit **
  18  Prefactor     .10000E-03    36.332        .18142E-02** at limit **
  19  Normalizat    1.2180        .24901        .26207E-03    .43799E-03
  20  Prefactor     1.0430        .21954        .24812E-03    .75073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85533
  Prefactor  = 0.0001
  norm       = 1.06235
  Prefactor  = 0.0001
  norm       = 19.1697
  Prefactor  = 98.6457
  norm       = 1.07536
  Prefactor  = 0.0001
  Prefactor  = 22.1309
  norm       = 4.71423
  Prefactor  = 16.6488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21802
  Prefactor  = 1.04301
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.932     FROM HESSE     STATUS=OK           271 CALLS     2616 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8553        2.9033        .61379E-05   -1.5436    
   2  Prefactor     .10000E-03    16.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0623        3.9516        .92566E-05   -1.5502    
   4  Prefactor     .10000E-03    26.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.170        51.024        .36659E-05   -1.4832    
   6  Prefactor     98.646        165.24        .40516E-04   -1.3718    
   7  norm          1.0754        .72392        .19483E-05   -1.5501    
   8  Prefactor     .10000E-03    3.8818        .28538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.131        18.909        .17027E-04   -1.4767    
  10  norm          4.7142        2.1693        .28023E-05   -1.5274    
  11  Prefactor     16.649        54.639        .39291E-05   -1.4892    
  12  Prefactor     .10000E-03    24.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7469        .27978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    35.127        .82854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    165.66        .16653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7551        .24049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2180        .24876        .52414E-04   -.86048    
  20  Prefactor     1.0430        .21964        .49623E-04   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25647e-09
Minuit parameter uncertainties:
  1  2.90357
  2  6.31239e-05
  3  3.95254
  4  8.33057e-05
  5  51.1402
  6  166.018
  7  0.723922
  8  1.24912e-05
  9  18.9138
  10  2.16936
  11  54.8035
  12  6.26899e-05
  13  2.06132e-05
  14  0.00337957
  15  0.000655909
  16  6.30143e-06
  17  3.78027e-05
  18  1.85049e-05
  19  0.249
  20  0.219832
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.001e-04  3.380e-03  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:  1.043e+00  2.198e-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.218e+00  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997691/likelihoodResults_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.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) = 5506.931752
delta logL = -0.000135858099384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5506.93161953
delta logL = -3.38408881362e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38574E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8833       1.0000          .0000       10.000    
     3 'Normalizat'    1.2181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0432       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=   5506.932     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      258 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    87.819        .41727E-02** at limit **
   2  Index         2.8900        6.4412        .89553E-01   -.30488E-04
   3  Normalizat    1.2180        .24403        .26207E-03    .27318E-03
   4  Prefactor     1.0430        .21682        .24812E-03    .28779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100495
  Index      = 2.89004
  Normalizat = 1.21802
  Prefactor  = 1.04301
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.932     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10050E-03    63.545        .16691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8900        6.4223        .17911E-01   -.43564    
   3  Normalizat    1.2180        .24405        .52413E-04   -.86048    
   4  Prefactor     1.0430        .21699        .49624E-04   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.508e-09
Minuit parameter uncertainties:
  1  0.0112293
  2  4.53365
  3  0.244278
  4  0.217169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997691': 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) = 5506.93161549
delta logL = 6.5348467615e-07

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.005e-04  1.123e-02  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.890e+00  4.534e+00  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:  1.043e+00  2.172e-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.218e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.733 11.649

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/997691/cmap_HighResolution_488678401_488937601_4FGL_J1254.9+1138_daily_bin962.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.35e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-06 09:46:16.778534', job_id='997691', GAL2='1.04', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630946776.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='962' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 997691: <4FGL_J1254.9+1138_daily_bin962> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin962> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 09:36:11 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:36:12 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:36:12 2021
Terminated at Mon Sep  6 09:46:17 2021
Results reported at Mon Sep  6 09:46:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin962 193.733 11.6495 488678401 488937601 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 :                                   577.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            606 sec.

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

