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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1081
RA = 193.637, Dec = 22.1808
tmin = 519523201, tmax = 519782401
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='991247', job_status='RUN', time_executed='2021-09-06 09:16:41.905321', time_epoch_executed='1630945001.91' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991247

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991247/ft1_4FGL_J1254.5+2210_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991247/ft2_4FGL_J1254.5+2210_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991247/ft1_4FGL_J1254.5+2210_daily_bin1081.fits outfile=/scratch/kocevski/991247/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1081.fits ra=193.637 dec=22.1808 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.97
user 2.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991247/ft1_filtered_4FGL_J1254.5+2210_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/991247/ft2_4FGL_J1254.5+2210_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/991247/ltcube_519523201_519782401_4FGL_J1254.5+2210_daily_bin1081.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/991247/ft2_4FGL_J1254.5+2210_daily_bin1081.fits
.....................!
real 9.91
user 9.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991247/ft1_filtered_4FGL_J1254.5+2210_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/991247/ft2_4FGL_J1254.5+2210_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/991247/ltcube_519523201_519782401_4FGL_J1254.5+2210_daily_bin1081.fits outfile=/scratch/kocevski/991247/expmap_519523201_519782401_4FGL_J1254.5+2210_daily_bin1081.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/991247/ltcube_519523201_519782401_4FGL_J1254.5+2210_daily_bin1081.fits
.....................!
real 191.19
user 185.66
sys 4.88

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/991247/ft1_filtered_4FGL_J1254.5+2210_daily_bin1081.fits scfile=/scratch/kocevski/991247/ft2_4FGL_J1254.5+2210_daily_bin1081.fits outfile=/scratch/kocevski/991247/cmap_519523201_519782401_4FGL_J1254.5+2210_daily_bin1081.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991247/ft1_filtered_4FGL_J1254.5+2210_daily_bin1081.fits scfile=/scratch/kocevski/991247/ft2_4FGL_J1254.5+2210_daily_bin1081.fits outfile=/scratch/kocevski/991247/cmap_HighResolution_519523201_519782401_4FGL_J1254.5+2210_daily_bin1081.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/991247/ft1_filtered_4FGL_J1254.5+2210_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/991247/ft2_4FGL_J1254.5+2210_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991247/Model_4FGL_J1254.5+2210_daily_bin1081.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/991247/ft1_filtered_4FGL_J1254.5+2210_daily_bin1081.fits.....................!
real 46.45
user 44.93
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0867       1.0000         .10000E-03   10000.    
     3 'norm      '    4.8215       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4000       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7554       1.0000         .10000E-03   10000.    
     7 'norm      '    .20296E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    17.242       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25389E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.250       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.919       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.802       1.0000         .10000E-03   10000.    
    16 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.842       1.0000         .10000E-03   10000.    
    19 'norm      '    3.5703       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    44.526       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.4302       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    74.884       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0816       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=   5088.733     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3709 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9786        .21959E-07** at limit **
   2  Prefactor     2.0863        2.9359       -.14194E-07    .22680E-04
   3  norm          4.8217        3.1102       -.19368E-07    .14109E-03
   4  Prefactor     .10000E-03    1.6306       -.10436E-06** at limit **
   5  Prefactor     4.4007        2.4467       -.52628E-07    .42505E-03
   6  Prefactor     6.7553        7.1715       -.10736E-06    .35104E-04
   7  norm          .20290E-01    .17741        .33233E-06    .53085E-02
   8  norm          17.243        7.1616        .17348E-07    .25836E-03
   9  Prefactor     .10000E-03    45.122        .69986E-06** at limit **
  10  Prefactor     .10159E-03    34.686       -.67072E-05** at limit **
  11  Prefactor     41.253        36.932        .19261E-05    .12556E-03
  12  Prefactor     .10000E-03    25.376       -.63728E-06** at limit **
  13  Prefactor     10.918        80.416        .41312E-06    .33275E-05
  14  Prefactor     .10000E-03    3.6630        .52836E-07** at limit **
  15  Prefactor     19.801        17.661       -.11307E-06    .10604E-04
  16  norm          .10000E-03    3.3658       -.18939E-05** at limit **
  17  Prefactor     .10000E-03    8.1620       -.77770E-08** at limit **
  18  Prefactor     32.862        32.484       -.94787E-06    .34033E-05
  19  norm          3.5703        3.5891        .25623E-07    .74037E-04
  20  norm          .10000E-03    1.8439       -.75061E-06** at limit **
  21  norm          .10000E-03    2.2638       -.22970E-06** at limit **
  22  norm          44.536        26.696       -.48009E-06   -.92593E-04
  23  norm          .10000E-03    5.7619        .29883E-06** at limit **
  24  Prefactor     .10001E-03    56.829       -.67107E-05** at limit **
  25  norm          3.4299        6.8229        .55191E-07    .40756E-04
  26  Prefactor     .10000E-03    6.8850        .10566E-07** at limit **
  27  Prefactor     74.882        33.316        .88814E-07    .47713E-04
  28  Normalizat    1.0584        .20933        .14006E-05    .23196E-03
  29  Prefactor     1.0819        .21559       -.13338E-05    .28660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.08633
  norm       = 4.82168
  Prefactor  = 0.0001
  Prefactor  = 4.40073
  Prefactor  = 6.7553
  norm       = 0.0202897
  norm       = 17.2435
  Prefactor  = 0.0001
  Prefactor  = 0.000101585
  Prefactor  = 41.2533
  Prefactor  = 0.0001
  Prefactor  = 10.9185
  Prefactor  = 0.0001
  Prefactor  = 19.8013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8619
  norm       = 3.57032
  norm       = 0.0001
  norm       = 0.0001
  norm       = 44.5357
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 3.42985
  Prefactor  = 0.0001
  Prefactor  = 74.8816
  Normalizat = 1.05837
  Prefactor  = 1.08186
 **********
 **   18 **HESSE 
 **********

 FCN=   5088.733     FROM HESSE     STATUS=OK           547 CALLS     4256 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0254        .19565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0863        2.9166        .13969E-03   -1.5419    
   3  norm          4.8217        3.1021        .97412E-04   -1.5269    
   4  Prefactor     .10000E-03    1.6548        .88732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4007        2.4188        .78906E-04   -1.5288    
   6  Prefactor     6.7553        7.1678        .15438E-03   -1.5188    
   7  norm          .20290E-01    .20591        .18248E-03   -1.5680    
   8  norm          17.243        7.1523        .96455E-04   -1.4877    
   9  Prefactor     .10000E-03    46.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10159E-03    122.69        .39531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.253        37.030        .62414E-04   -1.4423    
  12  Prefactor     .10000E-03    25.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.918        79.982        .12124E-03   -1.5047    
  14  Prefactor     .10000E-03    3.6774        .13331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.801        17.609        .90006E-04   -1.4818    
  16  norm          .10000E-03    3.4104        .12782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.862        32.328        .69922E-04   -1.4561    
  19  norm          3.5703        3.5840        .13060E-03   -1.5330    
  20  norm          .10000E-03    1.8665        .94569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.2673        .10482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          44.536        26.732        .30041E-03   -1.4372    
  23  norm          .10000E-03    5.8966        .33303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    59.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.4299        6.7876        .21840E-03   -1.5338    
  26  Prefactor     .10000E-03    6.8936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     74.882        33.373        .46399E-04   -1.3975    
  28  Normalizat    1.0584        .24556        .25784E-03   -.91100    
  29  Prefactor     1.0819        .25378        .27136E-03   -.90048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48365e-08
Minuit parameter uncertainties:
  1  6.03808e-07
  2  2.91684
  3  3.10218
  4  4.55557e-07
  5  2.4189
  6  7.16875
  7  0.128954
  8  7.15269
  9  1.63765e-05
  10  0.0279472
  11  37.0507
  12  9.26959e-05
  13  59.2142
  14  1.73141e-06
  15  17.614
  16  7.07332e-05
  17  5.20353e-06
  18  32.3456
  19  3.58422
  20  2.05202e-05
  21  6.85142e-06
  22  26.7397
  23  1.27885e-05
  24  0.00174468
  25  6.78908
  26  1.32293e-06
  27  33.381
  28  0.245825
  29  0.254063
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.731e-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:  1.082e+00  2.541e-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.058e+00  2.458e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991247/likelihoodResults_519523201_519782401_4FGL_J1254.5+2210_daily_bin1081.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) = 5088.73397817
delta logL = -0.00129013248988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5088.73268793
delta logL = 1.02880221675e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0705       1.0000          .0000       10.000    
     3 'Normalizat'    1.0584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0818       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=   5088.733     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    42.193        .13511E-02** at limit **
   2  Index         2.0242        5.6426        .50000        .33728E-04
   3  Normalizat    1.0584        .16949E-01    .12892E-02   -.11658E-04
   4  Prefactor     1.0819        .18097E-01    .27136E-03   -.12149E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100891
  Index      = 2.02423
  Normalizat = 1.05837
  Prefactor  = 1.08186
 **********
 **   18 **HESSE 
 **********

 FCN=   5088.733     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10089E-03    183.16        .27021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0242        8.9133        .50000       -.63746    
   3  Normalizat    1.0584        .36972E-01    .51568E-04   -.91100    
   4  Prefactor     1.0819        .39467E-01    .10855E-04   -.90048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20915e-08
Minuit parameter uncertainties:
  1  0.0256281
  2  419.328
  3  0.0369733
  4  0.0394681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991247': 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) = 5088.73268755
delta logL = 4.85925738758e-07

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.009e-04  2.563e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.024e+00  4.193e+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:  1.082e+00  3.947e-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.058e+00  3.697e-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/991247/cmap_HighResolution_519523201_519782401_4FGL_J1254.5+2210_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-09-06 09:28:59.829135', job_id='991247', GAL2='1.08', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630945739.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1081' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:28:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 991247: <4FGL_J1254.5+2210_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1081> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:15:37 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:15:39 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:15:39 2021
Terminated at Mon Sep  6 09:29:00 2021
Results reported at Mon Sep  6 09:29:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1081 193.637 22.1808 519523201 519782401 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 :                                   729.35 sec.
    Max Memory :                                 1071 MB
    Average Memory :                             299.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

