/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 228 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin46
RA = 193.733, Dec = 11.6495
tmin = 251251201, tmax = 251510401
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='993144', job_status='RUN', time_executed='2021-09-06 09:24:56.458494', time_epoch_executed='1630945496.46' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993144/ft1_4FGL_J1254.9+1138_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993144/ft2_4FGL_J1254.9+1138_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993144/ft1_4FGL_J1254.9+1138_daily_bin46.fits outfile=/scratch/kocevski/993144/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin46.fits ra=193.733 dec=11.6495 rad=12.0 tmin=251251201.0 tmax=251510401.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 1.54
user 1.30
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993144/ft2_4FGL_J1254.9+1138_daily_bin46.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/993144/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin46.fits evtable="EVENTS" outfile="/scratch/kocevski/993144/ft1_filtered_4FGL_J1254.9+1138_daily_bin46.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993144/ft1_filtered_4FGL_J1254.9+1138_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/993144/ft2_4FGL_J1254.9+1138_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/993144/ltcube_251251201_251510401_4FGL_J1254.9+1138_daily_bin46.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/993144/ft2_4FGL_J1254.9+1138_daily_bin46.fits
.....................!
real 12.62
user 12.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993144/ft1_filtered_4FGL_J1254.9+1138_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/993144/ft2_4FGL_J1254.9+1138_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/993144/ltcube_251251201_251510401_4FGL_J1254.9+1138_daily_bin46.fits outfile=/scratch/kocevski/993144/expmap_251251201_251510401_4FGL_J1254.9+1138_daily_bin46.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/993144/ltcube_251251201_251510401_4FGL_J1254.9+1138_daily_bin46.fits
.....................!
real 191.81
user 187.22
sys 3.87

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/993144/ft1_filtered_4FGL_J1254.9+1138_daily_bin46.fits scfile=/scratch/kocevski/993144/ft2_4FGL_J1254.9+1138_daily_bin46.fits outfile=/scratch/kocevski/993144/cmap_251251201_251510401_4FGL_J1254.9+1138_daily_bin46.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993144/ft1_filtered_4FGL_J1254.9+1138_daily_bin46.fits scfile=/scratch/kocevski/993144/ft2_4FGL_J1254.9+1138_daily_bin46.fits outfile=/scratch/kocevski/993144/cmap_HighResolution_251251201_251510401_4FGL_J1254.9+1138_daily_bin46.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.59
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0764       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.841       1.0000         .10000E-03   10000.    
     5 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    121.20       1.0000         .10000E-03   10000.    
     7 'norm      '    5.4730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1233       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5928       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4309       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.888       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.526       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86119       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2193       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=   10001.54     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2027 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4508       -.22065E-06** at limit **
   2  Prefactor     .10000E-03    7.0614        .17220E-07** at limit **
   3  norm          1.0747        2.0257       -.46620E-06   -.68631E-03
   4  Prefactor     37.844        23.909       -.19960E-06    .42108E-04
   5  norm          .10000E-03    17.207        .24316E-06** at limit **
   6  Prefactor     121.13        115.97        .34833E-05    .95412E-04
   7  norm          5.4732        .83530        .36561E-08    .15273E-02
   8  Prefactor     .10000E-03    2.7543       -.42478E-07** at limit **
   9  Prefactor     1.1072        97.986       -.20351E-04    .31204E-04
  10  norm          1.5925        1.2125       -.17684E-06    .31804E-03
  11  Prefactor     .10000E-03    8.4014       -.70173E-07** at limit **
  12  Prefactor     .10000E-03    25.779        .53639E-06** at limit **
  13  Prefactor     4.4300        5.0791       -.47927E-06    .11914E-03
  14  Prefactor     1.8499        8.5331       -.30000E-05    .16677E-03
  15  Prefactor     .10000E-03    6.7948        .16294E-06** at limit **
  16  Prefactor     .10000E-03    5.7895       -.35987E-06** at limit **
  17  Prefactor     22.889        31.217       -.71673E-06    .10396E-04
  18  Prefactor     20.532        22.103       -.45887E-06   -.25055E-04
  19  Normalizat    .86118        .15909        .17580E-05    .19578E-03
  20  Prefactor     1.2193        .13396        .31055E-06    .53311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07469
  Prefactor  = 37.8436
  norm       = 0.0001
  Prefactor  = 121.129
  norm       = 5.47324
  Prefactor  = 0.0001
  Prefactor  = 1.10719
  norm       = 1.59248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.43001
  Prefactor  = 1.84986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8892
  Prefactor  = 20.5316
  Normalizat = 0.861176
  Prefactor  = 1.21934
 **********
 **   18 **HESSE 
 **********

 FCN=   10001.54     FROM HESSE     STATUS=OK           291 CALLS     2318 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4834        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.0679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0747        1.7910        .18637E-02   -1.5501    
   4  Prefactor     37.844        23.892        .65154E-04   -1.4477    
   5  norm          .10000E-03    17.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     121.13        117.70        .18278E-03   -1.3502    
   7  norm          5.4732        .82237        .33111E-04   -1.5240    
   8  Prefactor     .10000E-03    2.7573        .16196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1072        99.075        .68649E-02   -1.5498    
  10  norm          1.5925        1.1972        .91040E-04   -1.5456    
  11  Prefactor     .10000E-03    8.4113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4300        5.0745        .19131E-03   -1.5287    
  14  Prefactor     1.8499        8.4522        .30655E-03   -1.5436    
  15  Prefactor     .10000E-03    6.8757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.889        31.237        .83725E-04   -1.4751    
  18  Prefactor     20.532        22.114        .88406E-04   -1.4801    
  19  Normalizat    .86118        .18630        .30210E-03   -.97838    
  20  Prefactor     1.2193        .16016        .22930E-03   -.85738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93505e-10
Minuit parameter uncertainties:
  1  9.53497e-06
  2  1.42379e-05
  3  1.79112
  4  23.8978
  5  7.89975e-06
  6  117.929
  7  0.822368
  8  4.0658e-06
  9  20.982
  10  1.1972
  11  5.00094e-06
  12  0.000176915
  13  5.07504
  14  7.90994
  15  2.96189e-05
  16  2.03642e-05
  17  31.2596
  18  22.1227
  19  0.186441
  20  0.160224
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.850e+00  7.910e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.219e+00  1.602e-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.612e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993144/likelihoodResults_251251201_251510401_4FGL_J1254.9+1138_daily_bin46.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) = 10001.4783501
delta logL = 0.0653997408881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10001.3883533
delta logL = 0.155396554806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14338E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5374       1.0000          .0000       10.000    
     3 'Normalizat'    .83720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2355       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=   10001.39     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      283 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14003E-01    .24364        .45823E-02    .14903E-01
   2  Index         7.5578        3.4622        .36981        .10769E-03
   3  Normalizat    .83743        .19131E-01    .69177E-01    .46393E-04
   4  Prefactor     1.2354        .17026E-01    .51580E-01    .10781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0140026
  Index      = 7.55777
  Normalizat = 0.837434
  Prefactor  = 1.23537
 **********
 **   18 **HESSE 
 **********

 FCN=   10001.39     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      316 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14003E-01    2.2051        .19941E-04   -1.5684    
   2  Index         7.5578        5.3287        .18930E-01    .53699    
   3  Normalizat    .83743        .12507        .30608E-03   -.98695    
   4  Prefactor     1.2354        .10971        .22804E-03   -.85250    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47414e-09
Minuit parameter uncertainties:
  1  0.350194
  2  17.4792
  3  0.125116
  4  0.109729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993144': 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) = 10001.3883447
delta logL = 0.155405164873

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.400e-02  3.502e-01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  7.558e+00  1.748e+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.235e+00  1.097e-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.374e-01  1.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 193.733 11.649

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/993144/cmap_HighResolution_251251201_251510401_4FGL_J1254.9+1138_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.25e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-06 09:37:35.479968', job_id='993144', GAL2='1.24', fit_tolerance='1e-08', EG2='0.84', EG='0.86', time_epoch_completed='1630946255.48', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.55e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='46' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:37:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 993144: <4FGL_J1254.9+1138_daily_bin46> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin46> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:57 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:59 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:20:59 2021
Terminated at Mon Sep  6 09:37:36 2021
Results reported at Mon Sep  6 09:37:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin46 193.733 11.6495 251251201 251510401 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 :                                   754.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            999 sec.

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

