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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1565
RA = 193.733, Dec = 11.6495
tmin = 644976001, tmax = 645235201
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='830', job_status='RUN', time_executed='2021-09-06 09:49:31.114488', time_epoch_executed='1630946971.11' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830/ft1_4FGL_J1254.9+1138_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830/ft2_4FGL_J1254.9+1138_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830/ft1_4FGL_J1254.9+1138_daily_bin1565.fits outfile=/scratch/kocevski/830/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1565.fits ra=193.733 dec=11.6495 rad=12.0 tmin=644976001.0 tmax=645235201.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 2.96
user 2.74
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830/ft2_4FGL_J1254.9+1138_daily_bin1565.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/830/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1565.fits evtable="EVENTS" outfile="/scratch/kocevski/830/ft1_filtered_4FGL_J1254.9+1138_daily_bin1565.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/830/ft1_filtered_4FGL_J1254.9+1138_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/830/ft2_4FGL_J1254.9+1138_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/830/ltcube_644976001_645235201_4FGL_J1254.9+1138_daily_bin1565.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/830/ft2_4FGL_J1254.9+1138_daily_bin1565.fits
.....................!
real 12.19
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830/ft1_filtered_4FGL_J1254.9+1138_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/830/ft2_4FGL_J1254.9+1138_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/830/ltcube_644976001_645235201_4FGL_J1254.9+1138_daily_bin1565.fits outfile=/scratch/kocevski/830/expmap_644976001_645235201_4FGL_J1254.9+1138_daily_bin1565.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/830/ltcube_644976001_645235201_4FGL_J1254.9+1138_daily_bin1565.fits
.....................!
real 193.00
user 187.67
sys 4.98

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/830/ft1_filtered_4FGL_J1254.9+1138_daily_bin1565.fits scfile=/scratch/kocevski/830/ft2_4FGL_J1254.9+1138_daily_bin1565.fits outfile=/scratch/kocevski/830/cmap_644976001_645235201_4FGL_J1254.9+1138_daily_bin1565.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.76
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830/ft1_filtered_4FGL_J1254.9+1138_daily_bin1565.fits scfile=/scratch/kocevski/830/ft2_4FGL_J1254.9+1138_daily_bin1565.fits outfile=/scratch/kocevski/830/cmap_HighResolution_644976001_645235201_4FGL_J1254.9+1138_daily_bin1565.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.72
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.508       1.0000         .10000E-03   10000.    
     3 'norm      '    .62131       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6683       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11244E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7071       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98161       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0230       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=   8141.563     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1737 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60677        1.9691        .12953E-05    .26011E-03
   2  Prefactor     25.505        21.220       -.34876E-06   -.44561E-04
   3  norm          .62180        2.1415        .15513E-05    .38112E-03
   4  Prefactor     .10000E-03    11.290       -.16440E-06** at limit **
   5  norm          .10000E-03    14.706       -.17661E-06** at limit **
   6  Prefactor     .10000E-03    31.007        .10003E-07** at limit **
   7  norm          2.6488        .76364       -.47030E-07   -.40683E-03
   8  Prefactor     19.683        9.6637       -.36466E-07    .30654E-04
   9  Prefactor     .10000E-03    7.1424       -.10336E-06** at limit **
  10  norm          4.5841        1.8282        .75180E-08   -.55798E-04
  11  Prefactor     .10000E-03    32.555       -.99720E-08** at limit **
  12  Prefactor     .10000E-03    26.417       -.37286E-06** at limit **
  13  Prefactor     2.6707        6.0464        .90896E-06    .10544E-03
  14  Prefactor     15.258        12.292        .15248E-05    .74506E-03
  15  Prefactor     .10013E-03    8.9676       -.30694E-05** at limit **
  16  Prefactor     .10000E-03    3.7277        .72006E-07** at limit **
  17  Prefactor     .10000E-03    11.537        .16058E-06** at limit **
  18  Prefactor     3.7885        123.81       -.47756E-06    .25095E-04
  19  Normalizat    .98177        .17763       -.21510E-06    .39612E-03
  20  Prefactor     1.0227        .14740       -.19372E-06    .34771E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.606767
  Prefactor  = 25.5053
  norm       = 0.621797
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.64876
  Prefactor  = 19.6829
  Prefactor  = 0.0001
  norm       = 4.58413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.67069
  Prefactor  = 15.2583
  Prefactor  = 0.000100131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78853
  Normalizat = 0.981768
  Prefactor  = 1.0227
 **********
 **   18 **HESSE 
 **********

 FCN=   8141.563     FROM HESSE     STATUS=OK           289 CALLS     2026 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60677        1.9653        .21695E-03   -1.5552    
   2  Prefactor     25.505        21.181        .79316E-04   -1.4697    
   3  norm          .62180        2.1161        .23236E-03   -1.5550    
   4  Prefactor     .10000E-03    11.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6488        .75991        .39168E-04   -1.5382    
   8  Prefactor     19.683        9.6646        .90282E-04   -1.4820    
   9  Prefactor     .10000E-03    7.1518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5841        1.8247        .72170E-04   -1.5280    
  11  Prefactor     .10000E-03    32.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6707        6.0331        .24950E-03   -1.5381    
  14  Prefactor     15.258        12.444        .51256E-03   -1.4927    
  15  Prefactor     .10013E-03    26.925        .41579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7388        .17012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7885        120.76        .20974E-03   -1.5319    
  19  Normalizat    .98177        .20407        .27803E-03   -.93644    
  20  Prefactor     1.0227        .17067        .23748E-03   -.91977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40022e-09
Minuit parameter uncertainties:
  1  1.96549
  2  21.1868
  3  2.11634
  4  1.71545e-05
  5  3.32402e-05
  6  2.63995e-05
  7  0.759916
  8  9.66539
  9  5.40501e-06
  10  1.82472
  11  5.40819e-05
  12  0.000113821
  13  6.03444
  14  12.4463
  15  0.00376443
  16  2.82703e-06
  17  1.74712e-05
  18  42.8725
  19  0.204228
  20  0.170762
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.526e+01  1.245e+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:  1.023e+00  1.708e-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:  9.818e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.02e-08 +/- 4.90e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.11e-05

TS (Fixed Index): 2.17
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830/likelihoodResults_644976001_645235201_4FGL_J1254.9+1138_daily_bin1565.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8140.56233349
delta logL = 1.00021415895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8140.52139655
delta logL = 1.04115110213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6066       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4556       1.0000          .0000       10.000    
     3 'Normalizat'    .89600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0776       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.

 FCN=   8140.521     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5988        37.876        .46884E-02    .44681E-03
   2  Index         4.4569        3.5079        .16760        .13063E-03
   3  Normalizat    .89605        .56842E-01    .65499E-01    .30228E-04
   4  Prefactor     1.0775        .49144E-01    .38507E-01   -.13631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.59884
  Index      = 4.45687
  Normalizat = 0.896047
  Prefactor  = 1.07754
 **********
 **   18 **HESSE 
 **********

 FCN=   8140.521     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5988        48.261        .98828E-04   -1.5279    
   2  Index         4.4569        7.0137        .62800E-02   -.10884    
   3  Normalizat    .89605        .20863        .28973E-03   -.96599    
   4  Prefactor     1.0775        .18052        .23210E-03   -.90188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4009e-07
Minuit parameter uncertainties:
  1  29.8261
  2  5.19158
  3  0.208815
  4  0.18062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830': 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) = 8140.52139594
delta logL = 1.04115170951

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  4.599e+00  2.983e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.457e+00  5.192e+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.078e+00  1.806e-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:  8.960e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 193.733 11.649
Photon Index (Free Index): 4.46 +/- 5.19
Photon Flux (Free Index): 1.20e-07 +/- 6.77e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/830/cmap_HighResolution_644976001_645235201_4FGL_J1254.9+1138_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='6.02e-08', energy_flux2='1.68e-05', photon_flux_error='4.90e-08', dlogl='1.04e+00', energy_flux='1.36e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-06 10:00:18.550635', photon_index_error2='5.19', photon_index2='4.46', ts='2.17', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.45e-05', EG='0.98', time_epoch_completed='1630947618.55', return_code='0', job_id='830', GAL2='1.08', EG2='0.90', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='6.77e-08', ts2='4.88', photon_index='2.79' WHERE bin_id='1565' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 10:00:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 830: <4FGL_J1254.9+1138_daily_bin1565> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1565> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:45:38 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:45:41 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:41 2021
Terminated at Mon Sep  6 10:00:19 2021
Results reported at Mon Sep  6 10:00:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1565 193.733 11.6495 644976001 645235201 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 :                                   643.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             235.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            881 sec.

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

