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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1534
RA = 193.637, Dec = 22.1808
tmin = 636940801, tmax = 637200001
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='992993', job_status='RUN', time_executed='2021-09-06 09:23:07.593490', time_epoch_executed='1630945387.59' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1534'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992993/ft1_4FGL_J1254.5+2210_daily_bin1534.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992993/ft2_4FGL_J1254.5+2210_daily_bin1534.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992993/ft1_4FGL_J1254.5+2210_daily_bin1534.fits outfile=/scratch/kocevski/992993/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1534.fits ra=193.637 dec=22.1808 rad=12.0 tmin=636940801.0 tmax=637200001.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.35
user 5.05
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992993/ft2_4FGL_J1254.5+2210_daily_bin1534.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/992993/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1534.fits evtable="EVENTS" outfile="/scratch/kocevski/992993/ft1_filtered_4FGL_J1254.5+2210_daily_bin1534.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992993/ft1_filtered_4FGL_J1254.5+2210_daily_bin1534.fits evtable="EVENTS" scfile=/scratch/kocevski/992993/ft2_4FGL_J1254.5+2210_daily_bin1534.fits sctable="SC_DATA" expcube=/scratch/kocevski/992993/ltcube_636940801_637200001_4FGL_J1254.5+2210_daily_bin1534.fits outfile=/scratch/kocevski/992993/expmap_636940801_637200001_4FGL_J1254.5+2210_daily_bin1534.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/992993/ltcube_636940801_637200001_4FGL_J1254.5+2210_daily_bin1534.fits
.....................!
real 191.10
user 185.19
sys 5.21

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/992993/ft1_filtered_4FGL_J1254.5+2210_daily_bin1534.fits scfile=/scratch/kocevski/992993/ft2_4FGL_J1254.5+2210_daily_bin1534.fits outfile=/scratch/kocevski/992993/cmap_636940801_637200001_4FGL_J1254.5+2210_daily_bin1534.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8535       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0808       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9724       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3259       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.370       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.451       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.152       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6808       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9115       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.3767       1.0000         .10000E-03   10000.    
    20 'norm      '    40.233       1.0000         .10000E-03   10000.    
    21 'norm      '    .77341       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    26.554       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2220       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63100       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=   5349.295     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3739 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5578        3.1102       -.71687E-06    .98134E-04
   2  Prefactor     1.8538        3.7528        .44318E-05   -.42339E-04
   3  norm          2.0808        2.7414        .16392E-06    .50059E-04
   4  Prefactor     5.9725        3.4804       -.11052E-06    .62296E-04
   5  Prefactor     2.3260        2.9325        .10437E-06    .51612E-04
   6  Prefactor     10.370        7.6598        .15875E-06    .13792E-03
   7  norm          .10000E-03    .12173       -.14284E-06** at limit **
   8  norm          .10000E-03    3.6036       -.10666E-06** at limit **
   9  Prefactor     .10000E-03    4.4648        .76162E-08** at limit **
  10  Prefactor     22.346        13.964        .24073E-06    .40133E-04
  11  Prefactor     15.456        32.742       -.71411E-06    .33709E-04
  12  Prefactor     61.216        127.39       -.85970E-05    .55880E-05
  13  Prefactor     29.841        31.282       -.20392E-06    .67626E-05
  14  Prefactor     .10000E-03    4.2357       -.17136E-06** at limit **
  15  Prefactor     9.6817        13.945        .40717E-06    .33947E-04
  16  norm          5.9106        7.4709        .94312E-06    .25119E-03
  17  Prefactor     10.654        16.530        .27518E-06    .30446E-04
  18  Prefactor     .10000E-03    25.599        .12019E-06** at limit **
  19  norm          2.3768        2.6766        .61709E-07    .51568E-04
  20  norm          40.238        16.931        .19348E-06    .66597E-03
  21  norm          .76652        38.627       -.44455E-05    .17745E-03
  22  norm          .10000E-03    8.8391       -.85382E-06** at limit **
  23  norm          .10000E-03    3.9637        .59613E-07** at limit **
  24  Prefactor     .10000E-03    36.972       -.11924E-06** at limit **
  25  norm          26.556        12.172        .21113E-06   -.64626E-05
  26  Prefactor     .10000E-03    6.5979        .12989E-06** at limit **
  27  Prefactor     .10000E-03    10.007        .53157E-06** at limit **
  28  Normalizat    1.2217        .21085       -.34600E-05    .39218E-04
  29  Prefactor     .63123        .18438        .34176E-05    .19543E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55779
  Prefactor  = 1.85379
  norm       = 2.08084
  Prefactor  = 5.97251
  Prefactor  = 2.32599
  Prefactor  = 10.3702
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3459
  Prefactor  = 15.4563
  Prefactor  = 61.2165
  Prefactor  = 29.8407
  Prefactor  = 0.0001
  Prefactor  = 9.6817
  norm       = 5.91064
  Prefactor  = 10.6542
  Prefactor  = 0.0001
  norm       = 2.37676
  norm       = 40.2375
  norm       = 0.766523
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 26.5565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22167
  Prefactor  = 0.631226
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.295     FROM HESSE     STATUS=OK           561 CALLS     4300 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5578        3.1151        .11186E-03   -1.5331    
   2  Prefactor     1.8538        3.8108        .93267E-03   -1.5436    
   3  norm          2.0808        2.7276        .13029E-03   -1.5419    
   4  Prefactor     5.9725        3.4771        .96128E-04   -1.5219    
   5  Prefactor     2.3260        2.9040        .12865E-03   -1.5403    
   6  Prefactor     10.370        7.6375        .12442E-03   -1.5064    
   7  norm          .10000E-03    .15195        .49312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.6429        .13533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4687        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.346        13.943        .84736E-04   -1.4762    
  11  Prefactor     15.456        32.794        .10189E-03   -1.4921    
  12  Prefactor     61.216        127.66        .51310E-04   -1.4142    
  13  Prefactor     29.841        31.275        .73346E-04   -1.4615    
  14  Prefactor     .10000E-03    4.2578        .14699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.6817        13.914        .12879E-03   -1.5086    
  16  norm          5.9106        7.4918        .16516E-03   -1.5222    
  17  Prefactor     10.654        16.495        .12276E-03   -1.5055    
  18  Prefactor     .10000E-03    25.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3768        2.6707        .12323E-03   -1.5400    
  20  norm          40.238        17.000        .63194E-04   -1.4438    
  21  norm          .76652        158.48        .46246E-02   -1.5533    
  22  norm          .10000E-03    8.8544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.9708        .14199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    37.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          26.556        12.197        .77742E-04   -1.4677    
  26  Prefactor     .10000E-03    6.6032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2217        .24637        .24244E-03   -.85936    
  29  Prefactor     .63123        .21603        .30901E-03   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49928e-09
Minuit parameter uncertainties:
  1  3.11528
  2  3.81135
  3  2.72774
  4  3.47717
  5  2.9042
  6  7.63818
  7  2.69283e-06
  8  3.70945e-06
  9  2.08018e-05
  10  13.9446
  11  32.8324
  12  128.236
  13  31.2919
  14  1.66643e-05
  15  13.919
  16  7.49298
  17  16.5016
  18  0.000137093
  19  2.67083
  20  17.0021
  21  22.1017
  22  8.08202e-06
  23  1.00716e-05
  24  0.000135361
  25  12.1977
  26  9.62872e-06
  27  2.09851e-05
  28  0.246608
  29  0.216312
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.666e-05  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:  6.312e-01  2.163e-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.222e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/992993/likelihoodResults_636940801_637200001_4FGL_J1254.5+2210_daily_bin1534.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5349.2960139
delta logL = -0.0011158845582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5349.29489802
delta logL = -9.90348780761e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0936       1.0000          .0000       10.000    
     3 'Normalizat'    1.2217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63123       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=   5349.295     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    111.14        .90712E-02** at limit **
   2  Index         2.0981        7.7170        .50000       -.89418E-05
   3  Normalizat    1.2217        .26106E-01    .54830E-01   -.35713E-05
   4  Prefactor     .63122        .24800E-01    .69816E-01    .20507E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09809
  Normalizat = 1.22167
  Prefactor  = 0.631222
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.295     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    810.39        .14710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0981        5.7768        .50000       -.61920    
   3  Normalizat    1.2217        .10662        .24244E-03   -.85936    
   4  Prefactor     .63122        .10107        .30901E-03   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34743e-08
Minuit parameter uncertainties:
  1  7.69217e-05
  2  56.9594
  3  0.106641
  4  0.101103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992993': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5349.29489799
delta logL = 1.95313987206e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.692e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.098e+00  5.696e+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:  6.312e-01  1.011e-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.222e+00  1.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/992993/cmap_HighResolution_636940801_637200001_4FGL_J1254.5+2210_daily_bin1534.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-06 09:35:49.353386', job_id='992993', GAL2='0.63', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630946149.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1534' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 992993: <4FGL_J1254.5+2210_daily_bin1534> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1534 193.637 22.1808 636940801 637200001 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 :                                   728.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

