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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1013
RA = 193.637, Dec = 22.1808
tmin = 501897601, tmax = 502156801
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='991149', job_status='RUN', time_executed='2021-09-06 09:16:51.888597', time_epoch_executed='1630945011.89' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991149/ft1_4FGL_J1254.5+2210_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991149/ft2_4FGL_J1254.5+2210_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991149/ft1_4FGL_J1254.5+2210_daily_bin1013.fits outfile=/scratch/kocevski/991149/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1013.fits ra=193.637 dec=22.1808 rad=12.0 tmin=501897601.0 tmax=502156801.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.52
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991149/ft2_4FGL_J1254.5+2210_daily_bin1013.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/991149/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/991149/ft1_filtered_4FGL_J1254.5+2210_daily_bin1013.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/991149/ft1_filtered_4FGL_J1254.5+2210_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/991149/ft2_4FGL_J1254.5+2210_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/991149/ltcube_501897601_502156801_4FGL_J1254.5+2210_daily_bin1013.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/991149/ft2_4FGL_J1254.5+2210_daily_bin1013.fits
.....................!
real 11.89
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991149/ft1_filtered_4FGL_J1254.5+2210_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/991149/ft2_4FGL_J1254.5+2210_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/991149/ltcube_501897601_502156801_4FGL_J1254.5+2210_daily_bin1013.fits outfile=/scratch/kocevski/991149/expmap_501897601_502156801_4FGL_J1254.5+2210_daily_bin1013.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/991149/ltcube_501897601_502156801_4FGL_J1254.5+2210_daily_bin1013.fits
.....................!
real 191.22
user 185.13
sys 4.69

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/991149/ft1_filtered_4FGL_J1254.5+2210_daily_bin1013.fits scfile=/scratch/kocevski/991149/ft2_4FGL_J1254.5+2210_daily_bin1013.fits outfile=/scratch/kocevski/991149/cmap_501897601_502156801_4FGL_J1254.5+2210_daily_bin1013.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991149/ft1_filtered_4FGL_J1254.5+2210_daily_bin1013.fits scfile=/scratch/kocevski/991149/ft2_4FGL_J1254.5+2210_daily_bin1013.fits outfile=/scratch/kocevski/991149/cmap_HighResolution_501897601_502156801_4FGL_J1254.5+2210_daily_bin1013.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0311       1.0000         .10000E-03   10000.    
     3 'norm      '    13.406       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .35808       1.0000         .10000E-03   10000.    
     8 'norm      '    8.0562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.136       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.577       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20705E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2990       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23917E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0993       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.9682       1.0000         .10000E-03   10000.    
    20 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.593       1.0000         .10000E-03   10000.    
    23 'norm      '    12.538       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.5833       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.0270       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95682       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6251.459     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     2563 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .73486        .48889E-07** at limit **
   2  Prefactor     4.0301        2.8164       -.32346E-06    .10679E-03
   3  norm          13.406        4.2591        .34017E-05    .76560E-04
   4  Prefactor     .10000E-03    .99484        .57724E-06** at limit **
   5  Prefactor     4.7447        2.4937       -.85293E-06   -.46481E-04
   6  Prefactor     .10000E-03    1.9135        .58901E-06** at limit **
   7  norm          .35809        .19940        .21238E-06    .14050E-02
   8  norm          8.0570        4.8763       -.34902E-05   -.15120E-03
   9  Prefactor     16.133        1.0861        .99319E-06   -.10695E-03
  10  Prefactor     .10000E-03    3.8390        .28955E-05** at limit **
  11  Prefactor     28.604        2.6884       -.32054E-05    .19764E-03
  12  Prefactor     .10000E-03    23.161        .27332E-05** at limit **
  13  Prefactor     .10201E-03    123.29        .20926E-03** at limit **
  14  Prefactor     8.3003        1.5369        .54343E-05    .52871E-02
  15  Prefactor     .10087E-03    259.81       -.29443E-03** at limit **
  16  norm          4.0994        3.6072        .10392E-05    .10225E-03
  17  Prefactor     .10000E-03    9.2099        .12827E-05** at limit **
  18  Prefactor     .10000E-03    7.3832       -.72263E-06** at limit **
  19  norm          5.9681        3.3971        .16323E-05   -.10401E-03
  20  norm          .10000E-03    1.6817        .10526E-05** at limit **
  21  norm          .10000E-03    2.6675        .26126E-05** at limit **
  22  norm          12.593        1.0020       -.67181E-07   -.15316E-03
  23  norm          12.536        1.0439       -.62702E-06   -.24441E-02
  24  Prefactor     .10000E-03    19.121       -.15749E-04** at limit **
  25  norm          8.5816        1.0323       -.74574E-06   -.13854E-02
  26  Prefactor     .10000E-03    49.868       -.26290E-04** at limit **
  27  Prefactor     3.9914        8.2645        .52708E-04    .22656E-02
  28  Normalizat    .95715        .21628        .41102E-05    .33889E-03
  29  Prefactor     1.2072        .22901        .23914E-05    .33456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.03005
  norm       = 13.4059
  Prefactor  = 0.0001
  Prefactor  = 4.74475
  Prefactor  = 0.0001
  norm       = 0.358093
  norm       = 8.05701
  Prefactor  = 16.1333
  Prefactor  = 0.0001
  Prefactor  = 28.6036
  Prefactor  = 0.000100003
  Prefactor  = 0.000102014
  Prefactor  = 8.30033
  Prefactor  = 0.000100872
  norm       = 4.09941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.96808
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.5928
  norm       = 12.5363
  Prefactor  = 0.0001
  norm       = 8.58158
  Prefactor  = 0.000100001
  Prefactor  = 3.99143
  Normalizat = 0.957148
  Prefactor  = 1.20716
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.459     FROM HESSE     STATUS=OK           617 CALLS     3180 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .72998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0301        2.8266        .50211E-02   -1.5306    
   3  norm          13.406        4.2698        .27349E-02   -1.4976    
   4  Prefactor     .10000E-03    .98750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7447        2.4984        .46179E-02   -1.5272    
   6  Prefactor     .10000E-03    1.9097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .35809        .20317        .57280E-02   -1.5588    
   8  norm          8.0570        4.8988        .35315E-02   -1.5140    
   9  Prefactor     16.133        12.609        .24926E-02   -1.4904    
  10  Prefactor     .10000E-03    3.8188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.604        27.323        .18736E-02   -1.4638    
  12  Prefactor     .10000E-03    23.188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10201E-03    141.29        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3003        8.8713        .34791E-02   -1.5132    
  15  Prefactor     .10087E-03    8.1009        .91420E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0994        3.6146        .49778E-02   -1.5303    
  17  Prefactor     .10000E-03    9.1690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.3852        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9681        3.4132        .41091E-02   -1.5219    
  20  norm          .10000E-03    1.6588        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.593        13.444        .28219E-02   -1.4998    
  23  norm          12.536        7.8122        .28281E-02   -1.5000    
  24  Prefactor     .10000E-03    19.080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.5816        9.7997        .34206E-02   -1.5122    
  26  Prefactor     .10000E-03    47.951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.9914        28.075        .50238E-02   -1.5308    
  28  Normalizat    .95715        .18993        .45624E-01   -.94480    
  29  Prefactor     1.2072        .19551        .59278E-01   -.86111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09503e-07
Minuit parameter uncertainties:
  1  9.08354e-06
  2  2.82672
  3  4.26993
  4  2.28665e-06
  5  2.49847
  6  5.9437e-07
  7  0.203167
  8  4.89909
  9  12.6115
  10  2.95818e-05
  11  27.335
  12  0.000542797
  13  0.0338178
  14  8.87272
  15  0.00531512
  16  3.61479
  17  4.17974e-05
  18  4.81997e-05
  19  3.41333
  20  1.29444e-05
  21  2.32268e-05
  22  13.4469
  23  7.81285
  24  8.36395e-05
  25  9.80151
  26  0.000520415
  27  21.1856
  28  0.190065
  29  0.195626
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  8.300e+00  8.873e+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.207e+00  1.956e-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.571e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.95e-05

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

Saving results to:
/scratch/kocevski/991149/likelihoodResults_501897601_502156801_4FGL_J1254.5+2210_daily_bin1013.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) = 6250.77073197
delta logL = 0.688753528492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6250.7634254
delta logL = 0.696060103867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7271       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9252       1.0000          .0000       10.000    
     3 'Normalizat'    .91178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2346       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=   6250.763     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7316        34.514        .61647E-02    .49491E-03
   2  Index         2.9252        2.2973        .11504        .15656E-03
   3  Normalizat    .91204        .56737E-01    .45052E-01    .12931E-04
   4  Prefactor     1.2345        .58570E-01    .58671E-01    .12268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.73156
  Index      = 2.92524
  Normalizat = 0.912038
  Prefactor  = 1.23446
 **********
 **   18 **HESSE 
 **********

 FCN=   6250.763     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7316        7.9417        .89342E-04   -1.5377    
   2  Index         2.9252        1.2510        .40165E-02   -.42789    
   3  Normalizat    .91204        .21863        .27680E-03   -.96038    
   4  Prefactor     1.2345        .23132        .12973E-02   -.85277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0369e-08
Minuit parameter uncertainties:
  1  7.94479
  2  1.26733
  3  0.218845
  4  0.231509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991149': 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) = 6250.76341999
delta logL = 0.696065514526

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  2.732e+00  7.945e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.925e+00  1.267e+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:  1.234e+00  2.315e-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.120e-01  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.93 +/- 1.27
Photon Flux (Free Index): 6.85e-08 +/- 5.16e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.25e-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/991149/cmap_HighResolution_501897601_502156801_4FGL_J1254.5+2210_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='1.42e-05', photon_flux_error='3.48e-08', dlogl='6.96e-01', energy_flux='1.83e-05', photon_flux2='6.85e-08', job_status='DONE', time_completed='2021-09-06 09:29:03.798428', photon_index_error2='1.27', photon_index2='2.93', ts='1.12', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.25e-05', EG='0.96', time_epoch_completed='1630945743.8', return_code='0', job_id='991149', GAL2='1.23', EG2='0.91', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='5.16e-08', ts2='2.55', photon_index='2.09' WHERE bin_id='1013' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:29:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 991149: <4FGL_J1254.5+2210_daily_bin1013> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1013 193.637 22.1808 501897601 502156801 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 :                                   726.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

