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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1148
RA = 193.733, Dec = 11.6495
tmin = 536889601, tmax = 537148801
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='999179', job_status='RUN', time_executed='2021-09-06 09:43:00.994343', time_epoch_executed='1630946580.99' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999179

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999179/ft1_4FGL_J1254.9+1138_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999179/ft2_4FGL_J1254.9+1138_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999179/ft1_4FGL_J1254.9+1138_daily_bin1148.fits outfile=/scratch/kocevski/999179/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1148.fits ra=193.733 dec=11.6495 rad=12.0 tmin=536889601.0 tmax=537148801.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.88
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999179/ft1_filtered_4FGL_J1254.9+1138_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/999179/ft2_4FGL_J1254.9+1138_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/999179/ltcube_536889601_537148801_4FGL_J1254.9+1138_daily_bin1148.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/999179/ft2_4FGL_J1254.9+1138_daily_bin1148.fits
.....................!
real 12.06
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999179/ft1_filtered_4FGL_J1254.9+1138_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/999179/ft2_4FGL_J1254.9+1138_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/999179/ltcube_536889601_537148801_4FGL_J1254.9+1138_daily_bin1148.fits outfile=/scratch/kocevski/999179/expmap_536889601_537148801_4FGL_J1254.9+1138_daily_bin1148.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/999179/ltcube_536889601_537148801_4FGL_J1254.9+1138_daily_bin1148.fits
.....................!
real 190.96
user 185.33
sys 5.16

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/999179/ft1_filtered_4FGL_J1254.9+1138_daily_bin1148.fits scfile=/scratch/kocevski/999179/ft2_4FGL_J1254.9+1138_daily_bin1148.fits outfile=/scratch/kocevski/999179/cmap_536889601_537148801_4FGL_J1254.9+1138_daily_bin1148.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.95
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999179/ft1_filtered_4FGL_J1254.9+1138_daily_bin1148.fits scfile=/scratch/kocevski/999179/ft2_4FGL_J1254.9+1138_daily_bin1148.fits outfile=/scratch/kocevski/999179/cmap_HighResolution_536889601_537148801_4FGL_J1254.9+1138_daily_bin1148.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.91
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1182       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.961       1.0000         .10000E-03   10000.    
     5 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3975       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58634       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9053       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11721E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.158       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.846       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5490       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9445       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .98994       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.647       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79830       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2188       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=   7684.393     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2058 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3316        2.8365       -.61779E-07   -.21904E-04
   2  Prefactor     .10000E-03    10.923       -.18412E-06** at limit **
   3  norm          2.1210        2.6984       -.84435E-07   -.48351E-04
   4  Prefactor     28.914        27.994        .32624E-05    .15232E-05
   5  norm          .10000E-03    62.027       -.36082E-07** at limit **
   6  Prefactor     .10000E-03    32.900       -.17261E-05** at limit **
   7  norm          1.3975        .63519        .32340E-07    .27076E-04
   8  Prefactor     .59342        1.0969        .32412E-06   -.13903E-02
   9  Prefactor     .10000E-03    11.581        .25888E-06** at limit **
  10  norm          4.9055        1.6732        .11456E-07    .15559E-04
  11  Prefactor     .10000E-03    17.737       -.50430E-06** at limit **
  12  Prefactor     29.087        30.615       -.10600E-05    .97324E-05
  13  Prefactor     .10000E-03    1.9523       -.61792E-07** at limit **
  14  Prefactor     16.864        12.262       -.33910E-05    .55406E-04
  15  Prefactor     3.5545        12.837       -.68816E-05    .19158E-04
  16  Prefactor     6.9398        7.6963       -.88861E-06   -.20134E-04
  17  Prefactor     .74851        29.331        .33373E-06   -.15595E-03
  18  Prefactor     16.717        38.962        .39188E-04    .83750E-05
  19  Normalizat    .79813        .18508        .22354E-05   -.77219E-04
  20  Prefactor     1.2188        .15662       -.15592E-05    .19860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.3316
  Prefactor  = 0.0001
  norm       = 2.12101
  Prefactor  = 28.9145
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39746
  Prefactor  = 0.593416
  Prefactor  = 0.0001
  norm       = 4.90547
  Prefactor  = 0.0001
  Prefactor  = 29.0869
  Prefactor  = 0.0001
  Prefactor  = 16.8637
  Prefactor  = 3.55448
  Prefactor  = 6.93977
  Prefactor  = 0.748512
  Prefactor  = 16.7168
  Normalizat = 0.798126
  Prefactor  = 1.21882
 **********
 **   18 **HESSE 
 **********

 FCN=   7684.393     FROM HESSE     STATUS=OK           303 CALLS     2361 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3316        2.8310        .13141E-03   -1.5343    
   2  Prefactor     .10000E-03    10.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1210        2.6746        .14962E-03   -1.5417    
   4  Prefactor     28.914        27.993        .74447E-04   -1.4632    
   5  norm          .10000E-03    62.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3975        .62494        .42847E-04   -1.5472    
   8  Prefactor     .59342        12.244        .23237E-02   -1.5554    
   9  Prefactor     .10000E-03    11.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9055        1.6708        .62441E-04   -1.5265    
  11  Prefactor     .10000E-03    17.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.087        30.605        .74196E-04   -1.4629    
  13  Prefactor     .10000E-03    1.9558        .11961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.864        12.227        .97582E-04   -1.4886    
  15  Prefactor     3.5545        12.782        .21455E-03   -1.5331    
  16  Prefactor     6.9398        7.6970        .15224E-03   -1.5181    
  17  Prefactor     .74851        36.911        .13577       -1.5535    
  18  Prefactor     16.717        39.014        .98165E-04   -1.4890    
  19  Normalizat    .79813        .22007        .31077E-03   -1.0014    
  20  Prefactor     1.2188        .18833        .22597E-03   -.85754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33764e-09
Minuit parameter uncertainties:
  1  2.83113
  2  6.52181e-06
  3  2.67476
  4  28.0053
  5  1.84264e-05
  6  1.53811e-05
  7  0.62494
  8  5.39181
  9  1.71977e-05
  10  1.67082
  11  2.04465e-06
  12  30.6214
  13  7.53323e-08
  14  12.2292
  15  12.7915
  16  7.69812
  17  10.5186
  18  39.0735
  19  0.220318
  20  0.188433
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.686e+01  1.223e+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.219e+00  1.884e-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:  7.981e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.80
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.65e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/999179/likelihoodResults_536889601_537148801_4FGL_J1254.9+1138_daily_bin1148.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) = 7684.37111704
delta logL = 0.021894239776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7684.36873484
delta logL = 0.0242764436507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.496       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6266       1.0000          .0000       10.000    
     3 'Normalizat'    .80910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2123       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=   7684.369     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      243 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.497        12.536        .95752E-04   -.32698E-03
   2  Index         2.6266        .73539        .10582E-01   -.83315E-04
   3  Normalizat    .80910        .21734        .30882E-03    .10418E-03
   4  Prefactor     1.2122        .18725        .22648E-03    .16783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4967
  Index      = 2.62659
  Normalizat = 0.8091
  Prefactor  = 1.21223
 **********
 **   18 **HESSE 
 **********

 FCN=   7684.369     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.497        12.467        .38301E-05   -1.4871    
   2  Index         2.6266        .73039        .42327E-03   -.49460    
   3  Normalizat    .80910        .21752        .12353E-04   -.99732    
   4  Prefactor     1.2122        .18735        .45296E-04   -.85956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23689e-10
Minuit parameter uncertainties:
  1  12.4692
  2  0.733784
  3  0.217751
  4  0.187451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999179': 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) = 7684.36873479
delta logL = 0.0242764946024

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.750e+01  1.247e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.627e+00  7.338e-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:  1.212e+00  1.875e-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.091e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 193.733 11.649
Photon Index (Free Index): 2.63 +/- 0.73
Photon Flux (Free Index): 5.91e-08 +/- 5.48e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.08e-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/999179/cmap_HighResolution_536889601_537148801_4FGL_J1254.9+1138_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='6.65e-08', energy_flux2='1.51e-05', photon_flux_error='4.82e-08', dlogl='2.43e-02', energy_flux='1.50e-05', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-09-06 09:55:39.804948', photon_index_error2='0.73', photon_index2='2.63', ts='3.80', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.08e-05', EG='0.80', time_epoch_completed='1630947339.81', return_code='0', job_id='999179', GAL2='1.21', EG2='0.81', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='5.48e-08', ts2='3.83', photon_index='2.79' WHERE bin_id='1148' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:55:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 999179: <4FGL_J1254.9+1138_daily_bin1148> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1148 193.733 11.6495 536889601 537148801 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 :                                   655.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

