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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1284
RA = 193.733, Dec = 11.6495
tmin = 572140801, tmax = 572400001
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='999406', job_status='RUN', time_executed='2021-09-06 09:41:39.412035', time_epoch_executed='1630946499.41' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999406

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999406/ft1_4FGL_J1254.9+1138_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999406/ft2_4FGL_J1254.9+1138_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999406/ft1_4FGL_J1254.9+1138_daily_bin1284.fits outfile=/scratch/kocevski/999406/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1284.fits ra=193.733 dec=11.6495 rad=12.0 tmin=572140801.0 tmax=572400001.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.42
user 3.00
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999406/ft1_filtered_4FGL_J1254.9+1138_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/999406/ft2_4FGL_J1254.9+1138_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/999406/ltcube_572140801_572400001_4FGL_J1254.9+1138_daily_bin1284.fits outfile=/scratch/kocevski/999406/expmap_572140801_572400001_4FGL_J1254.9+1138_daily_bin1284.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/999406/ltcube_572140801_572400001_4FGL_J1254.9+1138_daily_bin1284.fits
.....................!
real 190.73
user 185.24
sys 4.57

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/999406/ft1_filtered_4FGL_J1254.9+1138_daily_bin1284.fits scfile=/scratch/kocevski/999406/ft2_4FGL_J1254.9+1138_daily_bin1284.fits outfile=/scratch/kocevski/999406/cmap_572140801_572400001_4FGL_J1254.9+1138_daily_bin1284.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999406/ft1_filtered_4FGL_J1254.9+1138_daily_bin1284.fits scfile=/scratch/kocevski/999406/ft2_4FGL_J1254.9+1138_daily_bin1284.fits outfile=/scratch/kocevski/999406/cmap_HighResolution_572140801_572400001_4FGL_J1254.9+1138_daily_bin1284.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4584       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    50.425       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .67581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.655       1.0000         .10000E-03   10000.    
    10 'norm      '    6.6202       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.287       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2350       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1554       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95455       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=   7674.237     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2041 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4583        3.1556        .21913E-07   -.76186E-05
   2  Prefactor     .10000E-03    8.2493       -.72784E-07** at limit **
   3  norm          .10000E-03    3.0090       -.18577E-05** at limit **
   4  Prefactor     .10000E-03    24.001       -.49237E-07** at limit **
   5  norm          50.403        47.702        .13814E-05   -.14870E-03
   6  Prefactor     .10000E-03    82.891       -.24482E-06** at limit **
   7  norm          .67583        .57264       -.11914E-06   -.97726E-03
   8  Prefactor     16.534        12.219        .20113E-07    .69247E-05
   9  Prefactor     24.654        27.175       -.11046E-07   -.66455E-05
  10  norm          6.6197        2.0871        .76335E-07    .66012E-03
  11  Prefactor     12.286        31.500        .58117E-06    .99300E-05
  12  Prefactor     .10000E-03    18.287        .29236E-07** at limit **
  13  Prefactor     1.2356        8.1295        .96158E-06   -.56347E-04
  14  Prefactor     2.9146        6.6880        .31490E-05   -.36298E-03
  15  Prefactor     .10000E-03    8.8503        .40397E-07** at limit **
  16  Prefactor     .10000E-03    2.8159        .13078E-07** at limit **
  17  Prefactor     50.578        34.906        .61721E-07   -.17692E-04
  18  Prefactor     .10000E-03    44.101        .50855E-07** at limit **
  19  Normalizat    1.1555        .18837       -.65845E-06    .85771E-04
  20  Prefactor     .95449        .15598        .17117E-06    .10977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45832
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 50.4034
  Prefactor  = 0.0001
  norm       = 0.675833
  Prefactor  = 16.5339
  Prefactor  = 24.6542
  norm       = 6.61972
  Prefactor  = 12.2856
  Prefactor  = 0.0001
  Prefactor  = 1.23557
  Prefactor  = 2.91456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.578
  Prefactor  = 0.0001
  Normalizat = 1.15551
  Prefactor  = 0.954494
 **********
 **   18 **HESSE 
 **********

 FCN=   7674.237     FROM HESSE     STATUS=OK           295 CALLS     2336 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4583        3.1549        .12700E-03   -1.5286    
   2  Prefactor     .10000E-03    8.2544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.4516        .31069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          50.403        48.147        .56475E-04   -1.4287    
   6  Prefactor     .10000E-03    82.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .67583        .55190        .54949E-03   -1.5544    
   8  Prefactor     16.534        12.213        .98497E-04   -1.4895    
   9  Prefactor     24.654        27.189        .80674E-04   -1.4714    
  10  norm          6.6197        2.0827        .65637E-04   -1.5193    
  11  Prefactor     12.286        31.467        .11428E-03   -1.5007    
  12  Prefactor     .10000E-03    18.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2356        8.2391        .40414E-03   -1.5486    
  14  Prefactor     2.9146        6.8638        .11901E-02   -1.5367    
  15  Prefactor     .10000E-03    8.9095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8218        .14355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     50.578        34.924        .56389E-04   -1.4284    
  18  Prefactor     .10000E-03    44.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1555        .22524        .27433E-03   -.87989    
  20  Prefactor     .95449        .18711        .25103E-03   -.94262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01913e-09
Minuit parameter uncertainties:
  1  3.15504
  2  1.16643e-05
  3  0.000175409
  4  9.4141e-06
  5  48.184
  6  3.10619e-05
  7  0.551904
  8  12.2152
  9  27.203
  10  2.08276
  11  31.5092
  12  6.1495e-06
  13  6.38224
  14  6.86563
  15  2.75179e-06
  16  1.65607e-06
  17  34.9381
  18  4.11866e-06
  19  0.225426
  20  0.187239
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.915e+00  6.866e+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:  9.545e-01  1.872e-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.156e+00  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999406/likelihoodResults_572140801_572400001_4FGL_J1254.9+1138_daily_bin1284.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) = 7674.10159205
delta logL = 0.135857328453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7674.09260007
delta logL = 0.144849302616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3307       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1855       1.0000          .0000       10.000    
     3 'Normalizat'    1.1604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94974       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=   7674.093     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      275 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3488        686.72        .48392E-02    .12011E-03
   2  Index         2.1886        5.5912        .36864       -.20040E-04
   3  Normalizat    1.1606        .12637        .61897E-01    .11561E-04
   4  Prefactor     .94962        .13653        .45636E-01    .12834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.34881
  Index      = 2.18862
  Normalizat = 1.16058
  Prefactor  = 0.949616
 **********
 **   18 **HESSE 
 **********

 FCN=   7674.093     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3488        7.5784        .19357E-03   -1.5291    
   2  Index         2.1886        .96760        .12831E-01   -.59714    
   3  Normalizat    1.1606        .22000        .27378E-03   -.87830    
   4  Prefactor     .94962        .18584        .25154E-03   -.94428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27641e-13
Minuit parameter uncertainties:
  1  7.58004
  2  0.976658
  3  0.220173
  4  0.185969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999406': 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) = 7674.09259293
delta logL = 0.14485644434

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  4.349e+00  7.580e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.189e+00  9.767e-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:  9.496e-01  1.860e-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.161e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/999406/cmap_HighResolution_572140801_572400001_4FGL_J1254.9+1138_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-06 09:52:47.115638', job_id='999406', GAL2='0.95', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630947167.12', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.45e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1284' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:52:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 999406: <4FGL_J1254.9+1138_daily_bin1284> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1284 193.733 11.6495 572140801 572400001 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 :                                   654.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            682 sec.

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

