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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1549
RA = 193.637, Dec = 22.1808
tmin = 640828801, tmax = 641088001
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='993015', job_status='RUN', time_executed='2021-09-06 09:22:47.290773', time_epoch_executed='1630945367.29' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993015

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993015/ft1_4FGL_J1254.5+2210_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993015/ft2_4FGL_J1254.5+2210_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993015/ft1_4FGL_J1254.5+2210_daily_bin1549.fits outfile=/scratch/kocevski/993015/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1549.fits ra=193.637 dec=22.1808 rad=12.0 tmin=640828801.0 tmax=641088001.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.11
user 2.89
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993015/ft2_4FGL_J1254.5+2210_daily_bin1549.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/993015/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1549.fits evtable="EVENTS" outfile="/scratch/kocevski/993015/ft1_filtered_4FGL_J1254.5+2210_daily_bin1549.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.49
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993015/ft1_filtered_4FGL_J1254.5+2210_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/993015/ft2_4FGL_J1254.5+2210_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/993015/ltcube_640828801_641088001_4FGL_J1254.5+2210_daily_bin1549.fits outfile=/scratch/kocevski/993015/expmap_640828801_641088001_4FGL_J1254.5+2210_daily_bin1549.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/993015/ltcube_640828801_641088001_4FGL_J1254.5+2210_daily_bin1549.fits
.....................!
real 190.54
user 185.41
sys 4.79

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/993015/ft1_filtered_4FGL_J1254.5+2210_daily_bin1549.fits scfile=/scratch/kocevski/993015/ft2_4FGL_J1254.5+2210_daily_bin1549.fits outfile=/scratch/kocevski/993015/cmap_640828801_641088001_4FGL_J1254.5+2210_daily_bin1549.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/993015/ft1_filtered_4FGL_J1254.5+2210_daily_bin1549.fits scfile=/scratch/kocevski/993015/ft2_4FGL_J1254.5+2210_daily_bin1549.fits outfile=/scratch/kocevski/993015/cmap_HighResolution_640828801_641088001_4FGL_J1254.5+2210_daily_bin1549.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2958       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7007       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5641       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4948       1.0000         .10000E-03   10000.    
     7 'norm      '    .31585       1.0000         .10000E-03   10000.    
     8 'norm      '    .17843E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11976E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.378       1.0000         .10000E-03   10000.    
    13 'Prefactor '    77.883       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0800       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16114E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0927       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.6856       1.0000         .10000E-03   10000.    
    20 'norm      '    11.071       1.0000         .10000E-03   10000.    
    21 'norm      '    .19658E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.553       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98321       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95226       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=   6245.910     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3719 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6603        3.1989       -.50519E-08    .15728E-03
   2  Prefactor     3.2958        3.9673        .37075E-06    .38540E-03
   3  norm          2.7009        2.3153        .79775E-07    .19802E-03
   4  Prefactor     .10000E-03    1.5569        .23414E-07** at limit **
   5  Prefactor     1.5647        1.3957       -.64635E-07    .13118E-03
   6  Prefactor     1.4934        3.1591        .76114E-06    .91825E-03
   7  norm          .31580        .19608       -.56894E-09    .11950E-02
   8  norm          .10002E-03    4.2700       -.22689E-05** at limit **
   9  Prefactor     2.2574        30.095        .15442E-05    .57126E-04
  10  Prefactor     .10000E-03    6.4769       -.14323E-06** at limit **
  11  Prefactor     .10000E-03    16.971       -.25324E-06** at limit **
  12  Prefactor     45.396        40.597        .44865E-06    .13296E-03
  13  Prefactor     77.848        85.154       -.96733E-06   -.79979E-04
  14  Prefactor     7.0793        6.8762        .12837E-06    .97361E-04
  15  Prefactor     .10002E-03    37.481       -.63614E-05** at limit **
  16  norm          4.0919        3.0966        .13491E-06    .28167E-03
  17  Prefactor     .10000E-03    4.6491       -.16111E-06** at limit **
  18  Prefactor     .10000E-03    20.075        .57583E-06** at limit **
  19  norm          7.6847        4.1290        .45963E-07    .89717E-04
  20  norm          11.063        4.6988        .38652E-06    .42781E-03
  21  norm          .10026E-03    6.6969        .10514E-05** at limit **
  22  norm          .10000E-03    5.5655        .23512E-07** at limit **
  23  norm          12.551        8.0507        .38022E-06    .29205E-03
  24  Prefactor     .10000E-03    12.935       -.18349E-06** at limit **
  25  norm          .10000E-03    10.472        .12425E-06** at limit **
  26  Prefactor     .10000E-03    8.6831        .12049E-06** at limit **
  27  Prefactor     .10000E-03    9.1756        .16767E-06** at limit **
  28  Normalizat    .98356        .17915       -.46678E-06    .27772E-03
  29  Prefactor     .95197        .18289       -.10856E-06    .21753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.6603
  Prefactor  = 3.29583
  norm       = 2.7009
  Prefactor  = 0.0001
  Prefactor  = 1.56465
  Prefactor  = 1.49337
  norm       = 0.315802
  norm       = 0.000100015
  Prefactor  = 2.25737
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 45.3963
  Prefactor  = 77.8479
  Prefactor  = 7.07926
  Prefactor  = 0.00010002
  norm       = 4.09187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.68469
  norm       = 11.0633
  norm       = 0.00010026
  norm       = 0.0001
  norm       = 12.5513
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.983558
  Prefactor  = 0.951974
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.910     FROM HESSE     STATUS=OK           557 CALLS     4276 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6603        3.1763        .11886E-03   -1.5325    
   2  Prefactor     3.2958        3.9391        .15405E-03   -1.5345    
   3  norm          2.7009        2.2811        .10535E-03   -1.5379    
   4  Prefactor     .10000E-03    1.5968        .19028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5647        1.3967        .83441E-04   -1.5458    
   6  Prefactor     1.4934        3.1331        .19859E-03   -1.5464    
   7  norm          .31580        .19065        .26213E-04   -1.5596    
   8  norm          .10002E-03    7.7465        .21397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2574        30.273        .27375E-03   -1.5407    
  10  Prefactor     .10000E-03    21.650        .37975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.396        40.781        .29759E-03   -1.4359    
  13  Prefactor     77.848        85.113        .22752E-03   -1.3941    
  14  Prefactor     7.0793        6.8708        .15076E-03   -1.5176    
  15  Prefactor     .10002E-03    38.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0919        3.0911        .11618E-03   -1.5303    
  17  Prefactor     .10000E-03    4.6524        .16642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.6847        4.1272        .11236E-03   -1.5153    
  20  norm          11.063        4.0104        .90057E-04   -1.5043    
  21  norm          .10026E-03    40.057        .28550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.5668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.551        8.0036        .11306E-03   -1.4999    
  24  Prefactor     .10000E-03    12.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    10.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.7098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.1958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .98356        .20322        .25210E-03   -.93583    
  29  Prefactor     .95197        .20967        .26780E-03   -.94348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93248e-09
Minuit parameter uncertainties:
  1  3.17646
  2  3.93944
  3  2.28116
  4  2.5077e-06
  5  1.39669
  6  3.13344
  7  0.190653
  8  0.000687505
  9  16.5432
  10  0.000506628
  11  8.52309e-05
  12  40.8056
  13  85.2469
  14  6.87161
  15  0.00176063
  16  3.09125
  17  1.52452e-05
  18  0.000151726
  19  4.12734
  20  4.01047
  21  0.00645419
  22  5.54103e-06
  23  8.00433
  24  6.47613e-05
  25  1.76229e-05
  26  2.32005e-05
  27  4.12504e-05
  28  0.203383
  29  0.209844
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  7.079e+00  6.872e+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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  9.520e-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:  9.836e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/993015/likelihoodResults_640828801_641088001_4FGL_J1254.5+2210_daily_bin1549.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) = 6245.90881033
delta logL = 0.000749683806134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6245.90859067
delta logL = 0.000969341189375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9290       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1175       1.0000          .0000       10.000    
     3 'Normalizat'    .98264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95238       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=   6245.909     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9290        169.73        .38103E-02    .23265E-03
   2  Index         2.1175        3.3258        .19484        .65163E-04
   3  Normalizat    .98264        .67775E-01    .45949E-01    .11689E-04
   4  Prefactor     .95238        .57376E-01    .45669E-01    .11461E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.92896
  Index      = 2.11749
  Normalizat = 0.982637
  Prefactor  = 0.952379
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.909     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9290        7.7939        .15241E-03   -1.5181    
   2  Index         2.1175        .66507        .69521E-02   -.61444    
   3  Normalizat    .98264        .19671        .25220E-03   -.93614    
   4  Prefactor     .95238        .20612        .26774E-03   -.94334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65962e-09
Minuit parameter uncertainties:
  1  7.79508
  2  0.668048
  3  0.196858
  4  0.206293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993015': 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) = 6245.90859067
delta logL = 0.000969341492237

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  6.929e+00  7.795e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.117e+00  6.680e-01  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:  9.524e-01  2.063e-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:  9.826e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.12 +/- 0.67
Photon Flux (Free Index): 2.88e-08 +/- 3.50e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.76e-05

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/993015/cmap_HighResolution_640828801_641088001_4FGL_J1254.5+2210_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='1.52e-05', photon_flux_error='2.69e-08', dlogl='9.69e-04', energy_flux='1.56e-05', photon_flux2='2.88e-08', job_status='DONE', time_completed='2021-09-06 09:35:53.462421', photon_index_error2='0.67', photon_index2='2.12', ts='2.10', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.27e-08', energy_flux_error2='1.76e-05', EG='0.98', time_epoch_completed='1630946153.46', return_code='0', job_id='993015', GAL2='0.95', EG2='0.98', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='3.50e-08', ts2='2.10', photon_index='2.09' WHERE bin_id='1549' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 993015: <4FGL_J1254.5+2210_daily_bin1549> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1549> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:48 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:20:49 2021
Terminated at Mon Sep  6 09:35:54 2021
Results reported at Mon Sep  6 09:35:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1549 193.637 22.1808 640828801 641088001 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 :                                   780.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

