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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin58
RA = 193.637, Dec = 22.1808
tmin = 254361601, tmax = 254620801
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='985044', job_status='RUN', time_executed='2021-09-06 08:55:44.550212', time_epoch_executed='1630943744.55' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985044/ft1_4FGL_J1254.5+2210_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985044/ft2_4FGL_J1254.5+2210_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985044/ft1_4FGL_J1254.5+2210_daily_bin58.fits outfile=/scratch/kocevski/985044/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin58.fits ra=193.637 dec=22.1808 rad=12.0 tmin=254361601.0 tmax=254620801.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.41
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985044/ft1_filtered_4FGL_J1254.5+2210_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/985044/ft2_4FGL_J1254.5+2210_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/985044/ltcube_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.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/985044/ft2_4FGL_J1254.5+2210_daily_bin58.fits
.....................!
real 12.43
user 12.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985044/ft1_filtered_4FGL_J1254.5+2210_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/985044/ft2_4FGL_J1254.5+2210_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/985044/ltcube_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.fits outfile=/scratch/kocevski/985044/expmap_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.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/985044/ltcube_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.fits
.....................!
real 190.28
user 185.02
sys 4.91

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/985044/ft1_filtered_4FGL_J1254.5+2210_daily_bin58.fits scfile=/scratch/kocevski/985044/ft2_4FGL_J1254.5+2210_daily_bin58.fits outfile=/scratch/kocevski/985044/cmap_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.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.66
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985044/ft1_filtered_4FGL_J1254.5+2210_daily_bin58.fits scfile=/scratch/kocevski/985044/ft2_4FGL_J1254.5+2210_daily_bin58.fits outfile=/scratch/kocevski/985044/cmap_HighResolution_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.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.56
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/985044/ft1_filtered_4FGL_J1254.5+2210_daily_bin58.fits', '/scratch/kocevski/985044/ft2_4FGL_J1254.5+2210_daily_bin58.fits', expMap='/scratch/kocevski/985044/expmap_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.fits', expCube='/scratch/kocevski/985044/ltcube_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/985044/Model_4FGL_J1254.5+2210_daily_bin58.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/985044/ft1_filtered_4FGL_J1254.5+2210_daily_bin58.fits
Spacecraft file(s): /scratch/kocevski/985044/ft2_4FGL_J1254.5+2210_daily_bin58.fits
Exposure map: /scratch/kocevski/985044/expmap_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.fits
Exposure cube: /scratch/kocevski/985044/ltcube_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/985044/Model_4FGL_J1254.5+2210_daily_bin58.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) = 5715.98805439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12558       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8045       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4992       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58741E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9129       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20310E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52956E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5993       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3325       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11233E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.354       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6676       1.0000         .10000E-03   10000.    
    20 'norm      '    5.3875       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5005       1.0000         .10000E-03   10000.    
    22 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    18.043       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.8598       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2264       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76261       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=   5715.922     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3180 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9614        3.2511       -.26453E-08    .20448E-03
   2  Prefactor     .10178        1.6782       -.27146E-06    .48325E-03
   3  norm          5.8052        2.9061       -.55323E-08    .14666E-04
   4  Prefactor     1.4991        1.4532       -.31425E-07    .41141E-05
   5  Prefactor     5.8009        2.4607       -.64927E-08    .44702E-05
   6  Prefactor     .10000E-03    1.9967        .11513E-07** at limit **
   7  norm          .10000E-03    .46585E-01    .69464E-08** at limit **
   8  norm          .10000E-03    2.3934        .20518E-07** at limit **
   9  Prefactor     .10001E-03    6.5264       -.13505E-06** at limit **
  10  Prefactor     6.9124        10.701        .16771E-06    .15192E-05
  11  Prefactor     .10000E-03    38.151        .24672E-06** at limit **
  12  Prefactor     .10000E-03    29.249        .18000E-07** at limit **
  13  Prefactor     .10000E-03    275.51       -.32464E-05** at limit **
  14  Prefactor     .10000E-03    1.6767        .94454E-08** at limit **
  15  Prefactor     3.6371        12.889       -.41936E-05    .73981E-05
  16  norm          3.3332        3.3328        .30136E-07   -.56349E-05
  17  Prefactor     .10000E-03    13.447        .53029E-06** at limit **
  18  Prefactor     29.332        22.266       -.96375E-07   -.52543E-04
  19  norm          1.6676        1.8451       -.30680E-07    .22512E-05
  20  norm          5.3884        3.7026        .19788E-07   -.24378E-05
  21  norm          3.5003        4.7643       -.46817E-08   -.86737E-05
  22  norm          .10000E-03    10.274       -.35959E-07** at limit **
  23  norm          .10000E-03    6.1569        .14127E-07** at limit **
  24  Prefactor     .10000E-03    22.746       -.88638E-07** at limit **
  25  norm          18.043        8.8123        .54171E-08    .13252E-05
  26  Prefactor     .10000E-03    8.3510        .26394E-07** at limit **
  27  Prefactor     8.8590        17.418        .14390E-06    .14749E-05
  28  Normalizat    1.2264        .17600        .26064E-06    .18623E-04
  29  Prefactor     .76267        .17555       -.47980E-06    .56693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.96143
  Prefactor  = 0.101775
  norm       = 5.80519
  Prefactor  = 1.49913
  Prefactor  = 5.8009
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 6.9124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.63706
  norm       = 3.33318
  Prefactor  = 0.0001
  Prefactor  = 29.3318
  norm       = 1.66757
  norm       = 5.38843
  norm       = 3.50028
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0428
  Prefactor  = 0.0001
  Prefactor  = 8.85896
  Normalizat = 1.22639
  Prefactor  = 0.762665
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.922     FROM HESSE     STATUS=OK           557 CALLS     3737 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9614        3.5283        .99350E-04   -1.5262    
   2  Prefactor     .10178        22.257        .17356E-02   -1.5644    
   3  norm          5.8052        2.9059        .87697E-04   -1.5226    
   4  Prefactor     1.4991        1.4714        .86446E-04   -1.5463    
   5  Prefactor     5.8009        2.4600        .73290E-04   -1.5226    
   6  Prefactor     .10000E-03    2.0067        .10432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .48676E-01    .31815E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4181        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    31.103        .37301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9124        10.696        .15259E-03   -1.5182    
  11  Prefactor     .10000E-03    38.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    274.13        .42257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6785        .95605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6371        12.833        .21299E-03   -1.5327    
  16  norm          3.3332        3.3255        .13271E-03   -1.5343    
  17  Prefactor     .10000E-03    13.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.332        22.292        .73949E-04   -1.4624    
  19  norm          1.6676        1.8488        .10518E-03   -1.5450    
  20  norm          5.3884        3.7327        .10814E-03   -1.5244    
  21  norm          3.5003        4.7956        .17461E-03   -1.5334    
  22  norm          .10000E-03    10.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.2408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          18.043        8.7964        .94291E-04   -1.4858    
  26  Prefactor     .10000E-03    8.3847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.8590        17.423        .13466E-03   -1.5113    
  28  Normalizat    1.2264        .21091        .21963E-03   -.85791    
  29  Prefactor     .76267        .20960        .27736E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68761e-09
Minuit parameter uncertainties:
  1  3.5284
  2  3.00978
  3  2.90596
  4  1.47141
  5  2.46004
  6  2.26394e-07
  7  4.01678e-08
  8  2.36553e-07
  9  0.000951054
  10  10.699
  11  0.000126256
  12  2.89408e-05
  13  0.00135875
  14  2.01279e-07
  15  12.843
  16  3.32572
  17  0.000118449
  18  22.2982
  19  1.84883
  20  3.73284
  21  4.79614
  22  1.1327e-05
  23  1.10942e-06
  24  4.72166e-05
  25  8.79703
  26  2.5464e-06
  27  17.4331
  28  0.211061
  29  0.209822
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.013e-07  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.627e-01  2.098e-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.226e+00  2.111e-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: 3.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985044/likelihoodResults_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.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) = 5715.92438298
delta logL = -0.00270485076999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5715.92167763
delta logL = 4.98903318658e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0672       1.0000          .0000       10.000    
     3 'Normalizat'    1.2265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76259       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5715.922     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10229E-03    2.2257        .97580E-02** at limit **
   2  Index         1.9883        5.1428        .50000        .90828E-04
   3  Normalizat    1.2264        .47889E-02    .21963E-03    .83505E-04
   4  Prefactor     .76267        .49087E-02    .27736E-03    .86486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102293
  Index      = 1.98826
  Normalizat = 1.22639
  Prefactor  = 0.762665
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.922     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10229E-03    33.861        .99944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9883        6.4103        .50000       -.64644    
   3  Normalizat    1.2264        .19022E-01    .43925E-04   -.85791    
   4  Prefactor     .76267        .19497E-01    .11095E-04   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25861e-07
Minuit parameter uncertainties:
  1  0.0176319
  2  223.268
  3  0.0190223
  4  0.0194977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985044': 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) = 5715.92167623
delta logL = 1.900364623e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.023e-04  1.763e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.988e+00  2.233e+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.627e-01  1.950e-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.226e+00  1.902e-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/985044/cmap_HighResolution_254361601_254620801_4FGL_J1254.5+2210_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-03', job_status='DONE', photon_flux_upper_limit='3.67e-08', time_completed='2021-09-06 09:07:40.638019', job_id='985044', GAL2='0.76', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630944460.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.90e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='58' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:07:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 985044: <4FGL_J1254.5+2210_daily_bin58> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin58> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:33 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:34 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:34 2021
Terminated at Mon Sep  6 09:07:41 2021
Results reported at Mon Sep  6 09:07:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin58 193.637 22.1808 254361601 254620801 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 :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

