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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1584
RA = 193.637, Dec = 22.1808
tmin = 649900801, tmax = 650160001
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='993064', job_status='RUN', time_executed='2021-09-06 09:21:12.222918', time_epoch_executed='1630945272.22' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993064

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993064/ft1_4FGL_J1254.5+2210_daily_bin1584.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993064/ft2_4FGL_J1254.5+2210_daily_bin1584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993064/ft1_4FGL_J1254.5+2210_daily_bin1584.fits outfile=/scratch/kocevski/993064/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1584.fits ra=193.637 dec=22.1808 rad=12.0 tmin=649900801.0 tmax=650160001.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 5.01
user 4.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993064/ft1_filtered_4FGL_J1254.5+2210_daily_bin1584.fits" evtable="EVENTS" scfile=/scratch/kocevski/993064/ft2_4FGL_J1254.5+2210_daily_bin1584.fits sctable="SC_DATA" outfile=/scratch/kocevski/993064/ltcube_649900801_650160001_4FGL_J1254.5+2210_daily_bin1584.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/993064/ft2_4FGL_J1254.5+2210_daily_bin1584.fits
.....................!
real 11.64
user 11.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993064/ft1_filtered_4FGL_J1254.5+2210_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/993064/ft2_4FGL_J1254.5+2210_daily_bin1584.fits sctable="SC_DATA" expcube=/scratch/kocevski/993064/ltcube_649900801_650160001_4FGL_J1254.5+2210_daily_bin1584.fits outfile=/scratch/kocevski/993064/expmap_649900801_650160001_4FGL_J1254.5+2210_daily_bin1584.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/993064/ltcube_649900801_650160001_4FGL_J1254.5+2210_daily_bin1584.fits
.....................!
real 190.50
user 185.11
sys 4.92

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/993064/ft1_filtered_4FGL_J1254.5+2210_daily_bin1584.fits scfile=/scratch/kocevski/993064/ft2_4FGL_J1254.5+2210_daily_bin1584.fits outfile=/scratch/kocevski/993064/cmap_649900801_650160001_4FGL_J1254.5+2210_daily_bin1584.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.65
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993064/ft1_filtered_4FGL_J1254.5+2210_daily_bin1584.fits scfile=/scratch/kocevski/993064/ft2_4FGL_J1254.5+2210_daily_bin1584.fits outfile=/scratch/kocevski/993064/cmap_HighResolution_649900801_650160001_4FGL_J1254.5+2210_daily_bin1584.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14488E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5034       1.0000         .10000E-03   10000.    
     3 'norm      '    9.7658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6353       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .56304       1.0000         .10000E-03   10000.    
     8 'norm      '    51.300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17954E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0685       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2496       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6523       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6138       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0451       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    67.934       1.0000         .10000E-03   10000.    
    25 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.925       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3336       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76954       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=   5665.124     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3702 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10881        1.8698        .27449E-06   -.34085E-03
   2  Prefactor     1.4797        3.3538       -.12951E-07   -.81337E-03
   3  norm          9.7649        4.3169        .68410E-06    .15355E-03
   4  Prefactor     .10000E-03    2.3542       -.57409E-06** at limit **
   5  Prefactor     3.6359        2.5979        .14727E-07   -.44200E-04
   6  Prefactor     .10000E-03    4.5217       -.16563E-07** at limit **
   7  norm          .56286        .28850        .89519E-07   -.24545E-03
   8  norm          51.304        10.521        .83400E-07   -.47613E-04
   9  Prefactor     16.773        15.722        .37531E-05   -.55371E-04
  10  Prefactor     .10000E-03    8.2169        .25392E-05** at limit **
  11  Prefactor     .10000E-03    86.517        .16412E-05** at limit **
  12  Prefactor     73.899        86.497        .20203E-04   -.87389E-05
  13  Prefactor     .10000E-03    13.354        .99587E-05** at limit **
  14  Prefactor     5.0777        9.0398       -.51341E-05   -.17368E-03
  15  Prefactor     .10000E-03    3.4952       -.20861E-06** at limit **
  16  norm          5.2508        6.1929       -.28299E-05   -.28507E-03
  17  Prefactor     .10000E-03    14.126       -.74509E-05** at limit **
  18  Prefactor     7.6638        90.247        .28149E-04    .47925E-05
  19  norm          2.6149        2.9942        .48254E-06    .96848E-04
  20  norm          6.0465        5.9433       -.19753E-05   -.38865E-03
  21  norm          .10000E-03    3.7796        .34966E-06** at limit **
  22  norm          .10000E-03    14.056       -.46036E-05** at limit **
  23  norm          .10000E-03    2.3938        .46485E-06** at limit **
  24  Prefactor     67.980        47.071        .40542E-04   -.11965E-04
  25  norm          .10000E-03    8.9398       -.39963E-05** at limit **
  26  Prefactor     17.936        21.236        .20876E-05   -.26556E-04
  27  Prefactor     .10000E-03    13.663        .40367E-05** at limit **
  28  Normalizat    1.3338        .21371       -.17377E-05    .43076E-04
  29  Prefactor     .76877        .20156       -.49268E-05    .49355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.108813
  Prefactor  = 1.47971
  norm       = 9.76486
  Prefactor  = 0.0001
  Prefactor  = 3.63586
  Prefactor  = 0.0001
  norm       = 0.562861
  norm       = 51.3042
  Prefactor  = 16.7733
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 73.8988
  Prefactor  = 0.0001
  Prefactor  = 5.07767
  Prefactor  = 0.0001
  norm       = 5.25081
  Prefactor  = 0.0001
  Prefactor  = 7.66377
  norm       = 2.61487
  norm       = 6.04651
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 67.9797
  norm       = 0.0001
  Prefactor  = 17.9362
  Prefactor  = 0.0001
  Normalizat = 1.33378
  Prefactor  = 0.768768
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.124     FROM HESSE     STATUS=OK           557 CALLS     4259 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10881        18.438        .19204E-02   -1.5642    
   2  Prefactor     1.4797        3.3375        .19235E-03   -1.5465    
   3  norm          9.7649        4.2874        .99561E-04   -1.5083    
   4  Prefactor     .10000E-03    2.4013        .22390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6359        2.5973        .98055E-04   -1.5327    
   6  Prefactor     .10000E-03    4.5650        .15621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .56286        .28732        .27583E-04   -1.5558    
   8  norm          51.304        10.522        .55994E-04   -1.4274    
   9  Prefactor     16.773        15.672        .97630E-04   -1.4889    
  10  Prefactor     .10000E-03    8.2704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    86.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     73.899        86.538        .46711E-04   -1.3987    
  13  Prefactor     .10000E-03    13.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0777        9.0505        .17860E-03   -1.5257    
  15  Prefactor     .10000E-03    3.4976        .13742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2508        6.1517        .17287E-03   -1.5250    
  17  Prefactor     .10000E-03    14.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6638        88.408        .14497E-03   -1.5154    
  19  norm          2.6149        2.9928        .13493E-03   -1.5385    
  20  norm          6.0465        5.8952        .15574E-03   -1.5216    
  21  norm          .10000E-03    3.7831        .14269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    14.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.3991        .11372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     67.980        46.966        .24349E-03   -1.4057    
  25  norm          .10000E-03    9.1957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.936        21.270        .94600E-04   -1.4861    
  27  Prefactor     .10000E-03    13.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3338        .25602        .25838E-03   -.82564    
  29  Prefactor     .76877        .24126        .31727E-03   -1.0089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18571e-09
Minuit parameter uncertainties:
  1  2.83245
  2  3.33791
  3  4.28755
  4  1.72511e-05
  5  2.59737
  6  1.37073e-05
  7  0.287317
  8  10.5226
  9  15.6763
  10  1.05276e-06
  11  0.000836755
  12  86.6858
  13  2.12437e-06
  14  9.05294
  15  2.89957e-06
  16  6.15241
  17  3.96882e-05
  18  52.1559
  19  2.99301
  20  5.89579
  21  2.09758e-05
  22  5.06389e-05
  23  9.06728e-06
  24  46.9919
  25  0.000101892
  26  21.2788
  27  1.29741e-05
  28  0.25626
  29  0.241595
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  5.078e+00  9.053e+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:  7.688e-01  2.416e-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.334e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.39
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993064/likelihoodResults_649900801_650160001_4FGL_J1254.5+2210_daily_bin1584.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) = 5665.0480556
delta logL = 0.0756332905285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5665.02950004
delta logL = 0.0941888488424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4728       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5455       1.0000          .0000       10.000    
     3 'Normalizat'    1.3163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77784       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=   5665.030     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4725        10.381        .19122E-03   -.14727E-03
   2  Index         2.5456        1.4551        .83169E-02   -.18492E-04
   3  Normalizat    1.3164        .24872        .25981E-03   -.18139E-03
   4  Prefactor     .77783        .23710        .31556E-03   -.18637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.4725
  Index      = 2.54565
  Normalizat = 1.31635
  Prefactor  = 0.777828
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.030     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4725        7.9586        .76487E-05   -1.5335    
   2  Index         2.5456        1.1225        .33267E-03   -.51309    
   3  Normalizat    1.3164        .24656        .51963E-04   -.83080    
   4  Prefactor     .77783        .23500        .12622E-04   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80801e-11
Minuit parameter uncertainties:
  1  7.96104
  2  1.13534
  3  0.246783
  4  0.235307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993064': 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) = 5665.02950002
delta logL = 0.09418887226

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.472e+00  7.961e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.546e+00  1.135e+00  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.778e-01  2.353e-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.316e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/993064/cmap_HighResolution_649900801_650160001_4FGL_J1254.5+2210_daily_bin1584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-06 09:33:44.549433', job_id='993064', GAL2='0.78', fit_tolerance='1e-08', EG2='1.32', EG='1.33', time_epoch_completed='1630946024.55', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='9.42e-02', ts2='0.57', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1584' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:33:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 993064: <4FGL_J1254.5+2210_daily_bin1584> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1584> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:52 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:54 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:54 2021
Terminated at Mon Sep  6 09:33:45 2021
Results reported at Mon Sep  6 09:33:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1584 193.637 22.1808 649900801 650160001 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 :                                   746.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

