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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin41
RA = 193.637, Dec = 22.1808
tmin = 249955201, tmax = 250214401
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='985019', job_status='RUN', time_executed='2021-09-06 08:58:51.095433', time_epoch_executed='1630943931.1' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985019/ft1_4FGL_J1254.5+2210_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985019/ft2_4FGL_J1254.5+2210_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985019/ft1_4FGL_J1254.5+2210_daily_bin41.fits outfile=/scratch/kocevski/985019/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin41.fits ra=193.637 dec=22.1808 rad=12.0 tmin=249955201.0 tmax=250214401.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.43
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985019/ft2_4FGL_J1254.5+2210_daily_bin41.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/985019/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/985019/ft1_filtered_4FGL_J1254.5+2210_daily_bin41.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985019/ft1_filtered_4FGL_J1254.5+2210_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/985019/ft2_4FGL_J1254.5+2210_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/985019/ltcube_249955201_250214401_4FGL_J1254.5+2210_daily_bin41.fits outfile=/scratch/kocevski/985019/expmap_249955201_250214401_4FGL_J1254.5+2210_daily_bin41.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/985019/ltcube_249955201_250214401_4FGL_J1254.5+2210_daily_bin41.fits
.....................!
real 189.93
user 185.28
sys 4.28

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/985019/ft1_filtered_4FGL_J1254.5+2210_daily_bin41.fits scfile=/scratch/kocevski/985019/ft2_4FGL_J1254.5+2210_daily_bin41.fits outfile=/scratch/kocevski/985019/cmap_249955201_250214401_4FGL_J1254.5+2210_daily_bin41.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.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985019/ft1_filtered_4FGL_J1254.5+2210_daily_bin41.fits scfile=/scratch/kocevski/985019/ft2_4FGL_J1254.5+2210_daily_bin41.fits outfile=/scratch/kocevski/985019/cmap_HighResolution_249955201_250214401_4FGL_J1254.5+2210_daily_bin41.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77806       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.7686       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6852       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .26847       1.0000         .10000E-03   10000.    
     8 'norm      '    .23052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.645       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8489       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .97657       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6148       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    26.004       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .29168       1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.269       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.858       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3954       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95983       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1328       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=   7257.161     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3179 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77704        2.3245        .81979E-06   -.14404E-03
   2  Prefactor     .10000E-03    1.4502       -.48874E-07** at limit **
   3  norm          5.7685        3.2296        .95404E-07    .74156E-04
   4  Prefactor     5.6851        2.8227        .23036E-06    .21840E-03
   5  Prefactor     9.7268        2.9485       -.30206E-06   -.67012E-03
   6  Prefactor     .10000E-03    6.5705        .13113E-05** at limit **
   7  norm          .26833        .23337        .56145E-07   -.42094E-03
   8  norm          .10000E-03    3.9332        .11668E-06** at limit **
   9  Prefactor     .10000E-03    3.0312       -.44203E-07** at limit **
  10  Prefactor     10.643        7.9452        .41999E-07   -.37176E-04
  11  Prefactor     9.8460        13.623       -.44243E-06   -.61574E-04
  12  Prefactor     .10000E-03    24.639       -.91306E-06** at limit **
  13  Prefactor     .10000E-03    11.207       -.11375E-05** at limit **
  14  Prefactor     11.687        7.4881        .29563E-06   -.15704E-03
  15  Prefactor     .97646        8.2527        .33550E-05   -.18029E-03
  16  norm          .10000E-03    1.4246        .18076E-07** at limit **
  17  Prefactor     .10000E-03    5.2393       -.12043E-05** at limit **
  18  Prefactor     9.6124        18.227       -.83570E-06   -.54450E-04
  19  norm          .10000E-03    .89760        .65388E-08** at limit **
  20  norm          26.006        5.7423        .91998E-07   -.81884E-04
  21  norm          .10000E-03    4.4641        .55727E-06** at limit **
  22  norm          .10000E-03    15.742        .11406E-05** at limit **
  23  norm          .24981        2.3510        .53431E-06   -.84526E-03
  24  Prefactor     42.261        29.850       -.26624E-05   -.22114E-03
  25  norm          .10000E-03    1.7191       -.69596E-07** at limit **
  26  Prefactor     12.856        11.198        .27263E-06    .35601E-04
  27  Prefactor     2.3864        29.095       -.34895E-05   -.69167E-04
  28  Normalizat    .96005        .16840       -.11744E-05   -.10950E-03
  29  Prefactor     1.1327        .17102       -.60326E-06   -.11742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.777045
  Prefactor  = 0.0001
  norm       = 5.76847
  Prefactor  = 5.68509
  Prefactor  = 9.72683
  Prefactor  = 0.0001
  norm       = 0.268327
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.6432
  Prefactor  = 9.84601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6866
  Prefactor  = 0.976455
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.61236
  norm       = 0.0001
  norm       = 26.0056
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.249809
  Prefactor  = 42.2607
  norm       = 0.0001
  Prefactor  = 12.8561
  Prefactor  = 2.38636
  Normalizat = 0.960046
  Prefactor  = 1.13271
 **********
 **   18 **HESSE 
 **********

 FCN=   7257.161     FROM HESSE     STATUS=OK           567 CALLS     3746 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77704        2.2613        .21221E-03   -1.5532    
   2  Prefactor     .10000E-03    2.3980        .19335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.7685        3.2349        .10719E-03   -1.5228    
   4  Prefactor     5.6851        2.8305        .94235E-04   -1.5231    
   5  Prefactor     9.7268        2.9641        .76713E-04   -1.5084    
   6  Prefactor     .10000E-03    6.7398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .26833        .22089        .35730E-03   -1.5604    
   8  norm          .10000E-03    10.528        .31880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0352        .14483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.643        7.9388        .12280E-03   -1.5055    
  11  Prefactor     9.8460        13.639        .12769E-03   -1.5080    
  12  Prefactor     .10000E-03    24.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.687        7.5115        .58590E-03   -1.5024    
  15  Prefactor     .97646        8.9040        .48505E-03   -1.5510    
  16  norm          .10000E-03    1.4301        .99260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6124        18.244        .12924E-03   -1.5088    
  19  norm          .10000E-03    .90212        .78808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          26.006        5.7374        .78558E-04   -1.4688    
  21  norm          .10000E-03    4.4799        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    15.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .24981        2.6752        .88841E-01   -1.5608    
  24  Prefactor     42.261        30.212        .61660E-04   -1.4407    
  25  norm          .10000E-03    1.7209        .10905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.856        11.180        .11171E-03   -1.4991    
  27  Prefactor     2.3864        29.501        .26459E-03   -1.5399    
  28  Normalizat    .96005        .19981        .26274E-03   -.94381    
  29  Prefactor     1.1327        .20271        .25551E-03   -.88428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75234e-09
Minuit parameter uncertainties:
  1  2.26152
  2  1.19409e-05
  3  3.23499
  4  2.83053
  5  2.96419
  6  6.05019e-05
  7  0.220895
  8  0.000230763
  9  5.79475e-07
  10  7.93962
  11  13.6431
  12  6.79221e-05
  13  6.84119e-05
  14  7.51212
  15  5.8981
  16  2.31831e-06
  17  4.13235e-05
  18  18.2545
  19  1.12071e-06
  20  5.73751
  21  1.86508e-05
  22  0.000118304
  23  1.63475
  24  30.2233
  25  2.49614e-06
  26  11.1816
  27  16.7909
  28  0.199967
  29  0.202853
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.169e+01  7.512e+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:  1.133e+00  2.029e-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.600e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.63
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.66e-05

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) = 7257.15001223
delta logL = 0.0113751885492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7257.14231254
delta logL = 0.0190748812374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.666       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1871       1.0000          .0000       10.000    
     3 'Normalizat'    .95343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1365       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=   7257.142     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.670        152.45        .30670E-02    .14038E-03
   2  Index         2.1869        3.3026        .11706        .17368E-03
   3  Normalizat    .95346        .10862        .45581E-01   -.87157E-05
   4  Prefactor     1.1365        .74107E-01    .57698E-01    .66998E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6699
  Index      = 2.18686
  Normalizat = 0.953465
  Prefactor  = 1.13649
 **********
 **   18 **HESSE 
 **********

 FCN=   7257.142     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.670        9.3127        .12268E-03   -1.5055    
   2  Index         2.1869        .53582        .61703E-02   -.59756    
   3  Normalizat    .95346        .19493        .26354E-03   -.94606    
   4  Prefactor     1.1365        .20182        .25514E-03   -.88309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58569e-11
Minuit parameter uncertainties:
  1  9.31393
  2  0.537333
  3  0.195076
  4  0.201955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985019': 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) = 7257.14231237
delta logL = 0.0190750484926

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.067e+01  9.314e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.187e+00  5.373e-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:  1.136e+00  2.020e-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.535e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.64
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.19 +/- 0.54
Photon Flux (Free Index): 5.10e-08 +/- 4.08e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/985019/cmap_HighResolution_249955201_250214401_4FGL_J1254.5+2210_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='2.35e-05', photon_flux_error='2.94e-08', dlogl='1.91e-02', energy_flux='2.57e-05', photon_flux2='5.10e-08', job_status='DONE', time_completed='2021-09-06 09:10:50.541128', photon_index_error2='0.54', photon_index2='2.19', ts='5.63', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='0.96', time_epoch_completed='1630944650.54', return_code='0', job_id='985019', GAL2='1.14', EG2='0.95', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='4.08e-08', ts2='5.64', photon_index='2.09' WHERE bin_id='41' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 985019: <4FGL_J1254.5+2210_daily_bin41> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin41 193.637 22.1808 249955201 250214401 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 :                                   718.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

