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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin18
RA = 193.637, Dec = 22.1808
tmin = 243993601, tmax = 244252801
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='984987', job_status='RUN', time_executed='2021-09-06 08:57:24.109528', time_epoch_executed='1630943844.11' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984987/ft1_4FGL_J1254.5+2210_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984987/ft1_4FGL_J1254.5+2210_daily_bin18.fits outfile=/scratch/kocevski/984987/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin18.fits ra=193.637 dec=22.1808 rad=12.0 tmin=243993601.0 tmax=244252801.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.46
user 1.23
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.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/984987/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/984987/ft1_filtered_4FGL_J1254.5+2210_daily_bin18.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.52
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984987/ft1_filtered_4FGL_J1254.5+2210_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/984987/ltcube_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.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/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits
.....................!
real 12.38
user 11.91
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984987/ft1_filtered_4FGL_J1254.5+2210_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/984987/ltcube_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.fits outfile=/scratch/kocevski/984987/expmap_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.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/984987/ltcube_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.fits
.....................!
real 190.25
user 185.04
sys 4.68

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/984987/ft1_filtered_4FGL_J1254.5+2210_daily_bin18.fits scfile=/scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits outfile=/scratch/kocevski/984987/cmap_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.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.637 yref=22.1808 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984987/ft1_filtered_4FGL_J1254.5+2210_daily_bin18.fits scfile=/scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits outfile=/scratch/kocevski/984987/cmap_HighResolution_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.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.637 yref=22.1808 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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984987/ft1_filtered_4FGL_J1254.5+2210_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984987/Model_4FGL_J1254.5+2210_daily_bin18.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/984987/ft1_filtered_4FGL_J1254.5+2210_daily_bin18.fits.....................!
real 53.66
user 51.86
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984987/ft1_filtered_4FGL_J1254.5+2210_daily_bin18.fits', '/scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits', expMap='/scratch/kocevski/984987/expmap_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.fits', expCube='/scratch/kocevski/984987/ltcube_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984987/Model_4FGL_J1254.5+2210_daily_bin18.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/984987/ft1_filtered_4FGL_J1254.5+2210_daily_bin18.fits
Spacecraft file(s): /scratch/kocevski/984987/ft2_4FGL_J1254.5+2210_daily_bin18.fits
Exposure map: /scratch/kocevski/984987/expmap_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.fits
Exposure cube: /scratch/kocevski/984987/ltcube_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984987/Model_4FGL_J1254.5+2210_daily_bin18.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) = 5868.3133243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1446       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63986       1.0000         .10000E-03   10000.    
     3 'norm      '    11.574       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0148       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0074       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17367E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .30599       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2331       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8743       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.2602       1.0000         .10000E-03   10000.    
    20 'norm      '    13.854       1.0000         .10000E-03   10000.    
    21 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
    25 'norm      '    30.050       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3286       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77716       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5868.306     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3658 TOTAL
                     EDM=   .89E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1443        1.5899        .40436E-08   -.21461E-05
   2  Prefactor     .64131        3.0053        .44647E-06   -.59057E-04
   3  norm          11.574        4.3090        .15211E-07   -.39872E-05
   4  Prefactor     2.0148        1.8825        .21712E-08    .93704E-06
   5  Prefactor     5.0075        2.5884        .46489E-07   -.17593E-04
   6  Prefactor     .10000E-03    4.3442        .75011E-07** at limit **
   7  norm          .30598        .24494        .21496E-07   -.10631E-03
   8  norm          .10000E-03    1.9026        .30816E-08** at limit **
   9  Prefactor     5.3835        10.073        .69685E-06   -.27959E-04
  10  Prefactor     .10000E-03    2.5347        .18841E-07** at limit **
  11  Prefactor     37.040        35.011        .23466E-05    .19303E-04
  12  Prefactor     .10000E-03    23.333       -.57021E-06** at limit **
  13  Prefactor     .10000E-03    24.453        .53404E-06** at limit **
  14  Prefactor     .10000E-03    6.7110        .94219E-07** at limit **
  15  Prefactor     7.2344        10.350        .65605E-06   -.16234E-04
  16  norm          1.8741        3.3409       -.58147E-07   -.14757E-04
  17  Prefactor     4.7409        13.204        .29391E-05   -.44432E-05
  18  Prefactor     .10000E-03    9.7195        .65622E-07** at limit **
  19  norm          5.2606        3.8471        .64443E-07   -.88274E-05
  20  norm          13.853        4.8140        .73291E-08   -.30030E-04
  21  norm          .10000E-03    6.8342        .12068E-06** at limit **
  22  norm          .10000E-03    6.8492        .10168E-06** at limit **
  23  norm          .10000E-03    3.9260        .54655E-07** at limit **
  24  Prefactor     10.533        21.505        .13203E-05    .46437E-05
  25  norm          30.058        12.321        .42978E-07   -.13971E-04
  26  Prefactor     .10000E-03    4.4555        .55251E-08** at limit **
  27  Prefactor     .10000E-03    7.1036       -.26044E-06** at limit **
  28  Normalizat    1.3283        .19333       -.49717E-06    .10019E-04
  29  Prefactor     .77743        .18750       -.73164E-06   -.25490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14433
  Prefactor  = 0.641312
  norm       = 11.5744
  Prefactor  = 2.01484
  Prefactor  = 5.00755
  Prefactor  = 0.0001
  norm       = 0.30598
  norm       = 0.0001
  Prefactor  = 5.38345
  Prefactor  = 0.0001
  Prefactor  = 37.0403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.23443
  norm       = 1.87412
  Prefactor  = 4.74086
  Prefactor  = 0.0001
  norm       = 5.26059
  norm       = 13.8533
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.5327
  norm       = 30.0579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32832
  Prefactor  = 0.77743
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.306     FROM HESSE     STATUS=OK           559 CALLS     4217 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1443        1.5382        .10786E-03   -1.5494    
   2  Prefactor     .64131        2.9836        .24594E-03   -1.5548    
   3  norm          11.574        4.3082        .90162E-04   -1.5027    
   4  Prefactor     2.0148        1.8899        .95833E-04   -1.5424    
   5  Prefactor     5.0075        2.5864        .83730E-04   -1.5260    
   6  Prefactor     .10000E-03    13.980        .30719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .30598        .23743        .31725E-04   -1.5597    
   8  norm          .10000E-03    1.9185        .10312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3835        10.067        .86637E-03   -1.5244    
  10  Prefactor     .10000E-03    2.5363        .11910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.040        35.075        .65840E-04   -1.4490    
  12  Prefactor     .10000E-03    23.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2344        10.300        .74571E-03   -1.5170    
  16  norm          1.8741        3.3140        .18083E-03   -1.5434    
  17  Prefactor     4.7409        13.216        .92410E-03   -1.5272    
  18  Prefactor     .10000E-03    9.7273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.2606        3.8468        .12396E-03   -1.5249    
  20  norm          13.853        4.7959        .95264E-04   -1.4963    
  21  norm          .10000E-03    6.8585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.8515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.9437        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.533        21.533        .12343E-03   -1.5059    
  25  norm          30.058        12.350        .73089E-04   -1.4611    
  26  Prefactor     .10000E-03    4.4581        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.1071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3283        .22893        .23476E-03   -.82725    
  29  Prefactor     .77743        .22068        .30145E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9717e-11
Minuit parameter uncertainties:
  1  1.53826
  2  2.76652
  3  4.30831
  4  1.88998
  5  2.58647
  6  5.34417e-05
  7  0.237426
  8  1.1824e-06
  9  10.0698
  10  5.91362e-07
  11  35.0941
  12  2.18099e-06
  13  7.13513e-06
  14  7.34722e-06
  15  10.3021
  16  3.31437
  17  13.2241
  18  5.87729e-06
  19  3.84698
  20  4.79606
  21  5.04622e-06
  22  2.10011e-06
  23  4.40541e-06
  24  21.5491
  25  12.3514
  26  1.15618e-06
  27  7.35862e-07
  28  0.22911
  29  0.22093
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.347e-06  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  7.774e-01  2.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.328e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 6.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984987/likelihoodResults_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.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) = 5868.307126
delta logL = -0.000693355574185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5868.30643266
delta logL = -1.41171767609e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0997       1.0000          .0000       10.000    
     3 'Normalizat'    1.3283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77743       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5868.306     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2949        .90712E-02** at limit **
   2  Index         2.1100        5.1650        .50000       -.11735E-04
   3  Normalizat    1.3283        .33137E-02    .53096E-01   -.11896E-03
   4  Prefactor     .77743        .33697E-02    .68132E-01   -.35661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11
  Normalizat = 1.32832
  Prefactor  = 0.777431
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.306     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    167.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1100        5.1027        .50000       -.61627    
   3  Normalizat    1.3283        .23986E-01    .23476E-03   -.82725    
   4  Prefactor     .77743        .24361E-01    .30145E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.46781e-07
Minuit parameter uncertainties:
  1  0.000235923
  2  238.309
  3  0.0239865
  4  0.0243617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984987': 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) = 5868.30643258
delta logL = 6.36655386188e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.359e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.110e+00  2.383e+02  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  7.774e-01  2.436e-02  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.328e+00  2.399e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

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/984987/cmap_HighResolution_243993601_244252801_4FGL_J1254.5+2210_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-06 09:10:14.477468', job_id='984987', GAL2='0.78', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630944614.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='18' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 984987: <4FGL_J1254.5+2210_daily_bin18> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin18> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:29 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:55:30 2021
Terminated at Mon Sep  6 09:10:17 2021
Results reported at Mon Sep  6 09:10:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin18 193.637 22.1808 243993601 244252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            888 sec.

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

