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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1299
RA = 193.733, Dec = 11.6495
tmin = 576028801, tmax = 576288001
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='999430', job_status='RUN', time_executed='2021-09-06 09:41:44.045912', time_epoch_executed='1630946504.05' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999430

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999430/ft1_4FGL_J1254.9+1138_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999430/ft2_4FGL_J1254.9+1138_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999430/ft1_4FGL_J1254.9+1138_daily_bin1299.fits outfile=/scratch/kocevski/999430/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1299.fits ra=193.733 dec=11.6495 rad=12.0 tmin=576028801.0 tmax=576288001.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.58
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999430/ft1_filtered_4FGL_J1254.9+1138_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/999430/ft2_4FGL_J1254.9+1138_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/999430/ltcube_576028801_576288001_4FGL_J1254.9+1138_daily_bin1299.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/999430/ft2_4FGL_J1254.9+1138_daily_bin1299.fits
.....................!
real 12.43
user 11.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999430/ft1_filtered_4FGL_J1254.9+1138_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/999430/ft2_4FGL_J1254.9+1138_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/999430/ltcube_576028801_576288001_4FGL_J1254.9+1138_daily_bin1299.fits outfile=/scratch/kocevski/999430/expmap_576028801_576288001_4FGL_J1254.9+1138_daily_bin1299.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/999430/ltcube_576028801_576288001_4FGL_J1254.9+1138_daily_bin1299.fits
.....................!
real 192.75
user 187.32
sys 5.09

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/999430/ft1_filtered_4FGL_J1254.9+1138_daily_bin1299.fits scfile=/scratch/kocevski/999430/ft2_4FGL_J1254.9+1138_daily_bin1299.fits outfile=/scratch/kocevski/999430/cmap_576028801_576288001_4FGL_J1254.9+1138_daily_bin1299.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999430/ft1_filtered_4FGL_J1254.9+1138_daily_bin1299.fits scfile=/scratch/kocevski/999430/ft2_4FGL_J1254.9+1138_daily_bin1299.fits outfile=/scratch/kocevski/999430/cmap_HighResolution_576028801_576288001_4FGL_J1254.9+1138_daily_bin1299.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.346       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5816       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    26.966       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15106E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .47955       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.444       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13671E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9162       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7221       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.912       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4289       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0037       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95936       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=   5253.793     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2007 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0424        .46065E-07** at limit **
   2  Prefactor     12.325        25.410        .34286E-04   -.86236E-05
   3  norm          2.5841        5.6076        .16411E-05   -.66809E-03
   4  Prefactor     .10000E-03    19.206        .26177E-05** at limit **
   5  norm          26.916        69.386       -.30642E-04   -.19592E-04
   6  Prefactor     .10000E-03    61.517       -.11103E-04** at limit **
   7  norm          .47957        .64342        .30513E-06   -.12978E-02
   8  Prefactor     13.804        13.070        .93575E-05    .80426E-04
   9  Prefactor     22.460        34.002       -.40367E-04    .23979E-05
  10  norm          .10000E-03    .55013       -.89236E-07** at limit **
  11  Prefactor     .10000E-03    62.591        .69559E-05** at limit **
  12  Prefactor     .10000E-03    19.570        .38003E-05** at limit **
  13  Prefactor     .10000E-03    1.5275        .41923E-07** at limit **
  14  Prefactor     2.9080        23.510       -.45184E-05    .27170E-04
  15  Prefactor     6.7273        17.762       -.14412E-04    .94533E-05
  16  Prefactor     17.910        12.889        .80497E-05    .63694E-04
  17  Prefactor     .10000E-03    19.438       -.67294E-05** at limit **
  18  Prefactor     3.1446        241.14       -.76308E-04   -.56320E-05
  19  Normalizat    1.0039        .21583        .58970E-05    .94280E-05
  20  Prefactor     .95923        .17725        .35145E-06    .26462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.325
  norm       = 2.58405
  Prefactor  = 0.0001
  norm       = 26.916
  Prefactor  = 0.0001
  norm       = 0.479567
  Prefactor  = 13.8041
  Prefactor  = 22.46
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.90797
  Prefactor  = 6.72729
  Prefactor  = 17.9099
  Prefactor  = 0.0001
  Prefactor  = 3.14458
  Normalizat = 1.00389
  Prefactor  = 0.959231
 **********
 **   18 **HESSE 
 **********

 FCN=   5253.793     FROM HESSE     STATUS=OK           295 CALLS     2302 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0528        .72259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.325        25.349        .11401E-03   -1.5006    
   3  norm          2.5841        5.4598        .16968E-03   -1.5386    
   4  Prefactor     .10000E-03    19.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          26.916        68.458        .77146E-04   -1.4670    
   6  Prefactor     .10000E-03    61.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .47957        .60154        .59902E-03   -1.5569    
   8  Prefactor     13.804        13.056        .10779E-03   -1.4965    
   9  Prefactor     22.460        34.035        .84549E-04   -1.4760    
  10  norm          .10000E-03    .56364        .10488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    62.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5283        .87488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9080        22.494        .23791E-03   -1.5367    
  15  Prefactor     6.7273        17.361        .15476E-03   -1.5189    
  16  Prefactor     17.910        12.896        .94634E-04   -1.4861    
  17  Prefactor     .10000E-03    19.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1446        243.10        .21844E-03   -1.5353    
  19  Normalizat    1.0039        .25696        .26207E-03   -.92900    
  20  Prefactor     .95923        .21161        .23093E-03   -.94101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16922e-10
Minuit parameter uncertainties:
  1  1.83003e-06
  2  25.3707
  3  5.46086
  4  8.41389e-05
  5  68.6591
  6  7.19708e-05
  7  0.601546
  8  13.0591
  9  34.0639
  10  4.41882e-06
  11  0.000345693
  12  8.35143e-05
  13  1.07097e-06
  14  16.1836
  15  17.3735
  16  12.8984
  17  2.22285e-06
  18  55.5316
  19  0.257279
  20  0.211788
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.908e+00  1.618e+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:  9.592e-01  2.118e-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.004e+00  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999430/likelihoodResults_576028801_576288001_4FGL_J1254.9+1138_daily_bin1299.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) = 5253.24644327
delta logL = 0.546118110388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5253.22748499
delta logL = 0.565076393144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92615       1.0000         .10000E-03   10000.    
     2 'Index     '    5.2465       1.0000          .0000       10.000    
     3 'Normalizat'    .92978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0028       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=   5253.227     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      248 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92000        16.406        .12902E-01    .84468E-03
   2  Index         5.2513        4.0668        .20162        .82660E-04
   3  Normalizat    .92994        .44607E-01    .45281E-01   -.31991E-04
   4  Prefactor     1.0026        .38732E-01    .44729E-01   -.76014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.919998
  Index      = 5.25134
  Normalizat = 0.929937
  Prefactor  = 1.00263
 **********
 **   18 **HESSE 
 **********

 FCN=   5253.227     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      283 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92000        46.966        .69428E-03   -1.5516    
   2  Index         5.2513        7.3745        .81549E-02    .50289E-01
   3  Normalizat    .92994        .18623        .27106E-03   -.95416    
   4  Prefactor     1.0026        .15452        .22643E-03   -.92642    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.35473e-11
Minuit parameter uncertainties:
  1  13.1569
  2  10.3528
  3  0.186364
  4  0.154587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999430': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5253.22748337
delta logL = 0.565078013384

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  9.200e-01  1.316e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  5.251e+00  1.035e+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.003e+00  1.546e-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.299e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 193.733 11.649
Photon Index (Free Index): 5.25 +/- 10.35
Photon Flux (Free Index): 6.55e-08 +/- 8.75e-08
Energy Flux (Free Index): 8.54e-06 +/- 1.64e-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/999430/cmap_HighResolution_576028801_576288001_4FGL_J1254.9+1138_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='8.54e-06', dlogl='5.65e-01', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-09-06 09:50:50.707734', photon_index_error2='10.35', photon_index2='5.25', ts='0.05', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.64e-05', EG='1.00', time_epoch_completed='1630947050.71', return_code='0', job_id='999430', GAL2='1.00', EG2='0.93', return_code2='102', photon_flux_error2='8.75e-08', ts2='1.34', photon_index='2.79' WHERE bin_id='1299' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:50:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 999430: <4FGL_J1254.9+1138_daily_bin1299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1299 193.733 11.6495 576028801 576288001 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 :                                   538.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            564 sec.

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

