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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1323
RA = 193.637, Dec = 22.1808
tmin = 582249601, tmax = 582508801
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='992692', job_status='RUN', time_executed='2021-09-06 09:23:48.465089', time_epoch_executed='1630945428.47' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992692

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992692/ft1_4FGL_J1254.5+2210_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992692/ft2_4FGL_J1254.5+2210_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992692/ft1_4FGL_J1254.5+2210_daily_bin1323.fits outfile=/scratch/kocevski/992692/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1323.fits ra=193.637 dec=22.1808 rad=12.0 tmin=582249601.0 tmax=582508801.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.36
user 5.06
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992692/ft2_4FGL_J1254.5+2210_daily_bin1323.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/992692/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1323.fits evtable="EVENTS" outfile="/scratch/kocevski/992692/ft1_filtered_4FGL_J1254.5+2210_daily_bin1323.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.61
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992692/ft1_filtered_4FGL_J1254.5+2210_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/992692/ft2_4FGL_J1254.5+2210_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/992692/ltcube_582249601_582508801_4FGL_J1254.5+2210_daily_bin1323.fits outfile=/scratch/kocevski/992692/expmap_582249601_582508801_4FGL_J1254.5+2210_daily_bin1323.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/992692/ltcube_582249601_582508801_4FGL_J1254.5+2210_daily_bin1323.fits
.....................!
real 189.87
user 185.16
sys 4.22

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/992692/ft1_filtered_4FGL_J1254.5+2210_daily_bin1323.fits scfile=/scratch/kocevski/992692/ft2_4FGL_J1254.5+2210_daily_bin1323.fits outfile=/scratch/kocevski/992692/cmap_582249601_582508801_4FGL_J1254.5+2210_daily_bin1323.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    2.0765       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2997       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0526       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8321       1.0000         .10000E-03   10000.    
     7 'norm      '    .62429       1.0000         .10000E-03   10000.    
     8 'norm      '    20.939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6864       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.863       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.637       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.981       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    42.539       1.0000         .10000E-03   10000.    
    21 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10432E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    19.855       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8425       1.0000         .10000E-03   10000.    
    25 'norm      '    7.3209       1.0000         .10000E-03   10000.    
    26 'Prefactor '    33.943       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.436       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95490       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78892       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=   5179.085     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3767 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .85232       -.55149E-07** at limit **
   2  Prefactor     2.0766        2.5101        .74065E-08   -.44715E-04
   3  norm          3.2997        3.3835        .19741E-07   -.24178E-04
   4  Prefactor     2.0526        2.0653       -.24637E-07    .23107E-04
   5  Prefactor     8.7822        3.8807        .78672E-07   -.13099E-05
   6  Prefactor     3.8328        7.1394       -.10836E-05   -.71215E-04
   7  norm          .62430        .30154        .23059E-07    .10123E-03
   8  norm          20.939        8.5966       -.50161E-06   -.51129E-04
   9  Prefactor     11.395        10.294       -.11934E-06   -.82299E-04
  10  Prefactor     8.6851        13.096       -.12670E-07   -.70944E-05
  11  Prefactor     .10000E-03    52.900        .56110E-05** at limit **
  12  Prefactor     .10000E-03    47.722       -.49933E-05** at limit **
  13  Prefactor     53.848        67.497       -.36547E-05   -.12451E-04
  14  Prefactor     12.638        9.8515       -.28452E-06   -.89165E-05
  15  Prefactor     .10000E-03    6.6294       -.11862E-06** at limit **
  16  norm          .10000E-03    6.6170        .20981E-05** at limit **
  17  Prefactor     .10000E-03    3.5462       -.11536E-06** at limit **
  18  Prefactor     13.006        51.068       -.78856E-05   -.57090E-04
  19  norm          .10000E-03    5.1820        .45673E-07** at limit **
  20  norm          42.541        10.290        .24480E-06   -.47151E-03
  21  norm          .10000E-03    20.457        .30548E-05** at limit **
  22  norm          .10014E-03    27.104       -.34388E-06** at limit **
  23  norm          19.857        13.816       -.30936E-06    .23844E-04
  24  Prefactor     4.8447        20.589       -.16286E-06   -.40777E-05
  25  norm          7.3197        14.714       -.15436E-07   -.22043E-05
  26  Prefactor     33.950        33.651        .92046E-06   -.67132E-06
  27  Prefactor     23.428        32.247       -.44673E-06   -.20330E-05
  28  Normalizat    .95492        .21517       -.43753E-06   -.43126E-04
  29  Prefactor     .78888        .19478        .72726E-06   -.85608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.07661
  norm       = 3.29971
  Prefactor  = 2.05258
  Prefactor  = 8.78219
  Prefactor  = 3.83283
  norm       = 0.624302
  norm       = 20.9395
  Prefactor  = 11.3954
  Prefactor  = 8.6851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.8479
  Prefactor  = 12.6379
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 13.0064
  norm       = 0.0001
  norm       = 42.541
  norm       = 0.0001
  norm       = 0.000100138
  norm       = 19.8566
  Prefactor  = 4.84468
  norm       = 7.31974
  Prefactor  = 33.9498
  Prefactor  = 23.4282
  Normalizat = 0.954918
  Prefactor  = 0.788877
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.085     FROM HESSE     STATUS=OK           563 CALLS     4330 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .85382        .64855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0766        2.4951        .12107E-03   -1.5420    
   3  norm          3.2997        3.3788        .12480E-03   -1.5345    
   4  Prefactor     2.0526        2.0775        .97500E-04   -1.5421    
   5  Prefactor     8.7822        3.8811        .86527E-04   -1.5115    
   6  Prefactor     3.8328        7.1430        .20617E-03   -1.5316    
   7  norm          .62430        .29921        .25944E-04   -1.5550    
   8  norm          20.939        8.5744        .87531E-04   -1.4792    
   9  Prefactor     11.395        10.299        .11868E-03   -1.5033    
  10  Prefactor     8.6851        13.080        .13600E-03   -1.5118    
  11  Prefactor     .10000E-03    53.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    47.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     53.848        67.550        .54652E-04   -1.4239    
  14  Prefactor     12.638        9.8545        .11268E-03   -1.4997    
  15  Prefactor     .10000E-03    6.6413        .18074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.129        .32322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.5479        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.006        54.405        .11118E-03   -1.4987    
  19  norm          .10000E-03    5.3609        .31945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          42.541        10.186        .30732E-03   -1.4403    
  21  norm          .10000E-03    20.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10014E-03    213.72        .68525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          19.857        13.259        .89888E-04   -1.4816    
  24  Prefactor     4.8447        20.609        .18281E-03   -1.5268    
  25  norm          7.3197        14.609        .14824E-03   -1.5167    
  26  Prefactor     33.950        33.660        .68781E-04   -1.4542    
  27  Prefactor     23.428        32.230        .82742E-04   -1.4740    
  28  Normalizat    .95492        .24871        .27676E-03   -.94556    
  29  Prefactor     .78888        .22405        .28889E-03   -1.0014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46705e-10
Minuit parameter uncertainties:
  1  1.00278e-07
  2  2.49518
  3  3.37895
  4  2.0776
  5  3.88117
  6  7.14459
  7  0.299207
  8  8.57489
  9  10.3004
  10  13.0847
  11  5.50392e-05
  12  0.00010035
  13  67.6466
  14  9.85574
  15  3.20154e-05
  16  0.000609547
  17  1.06162e-06
  18  53.2852
  19  6.18845e-06
  20  10.1866
  21  0.000107846
  22  0.0108828
  23  13.2606
  24  19.9957
  25  14.616
  26  33.6791
  27  32.2534
  28  0.249016
  29  0.224307
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.264e+01  9.856e+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.889e-01  2.243e-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.549e-01  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.42
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 2.17e-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) = 5178.82803939
delta logL = 0.257103481044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5178.81729806
delta logL = 0.26784481498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.622       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6327       1.0000          .0000       10.000    
     3 'Normalizat'    .97746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78062       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=   5178.817     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      236 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.622        24.070        .26186E-02    .15343E-03
   2  Index         1.6326        .99215        .18342       -.15365E-04
   3  Normalizat    .97746        .20807        .45884E-01    .10682E-04
   4  Prefactor     .78063        .19340        .65616E-01    .13428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6222
  Index      = 1.63261
  Normalizat = 0.977462
  Prefactor  = 0.780625
 **********
 **   18 **HESSE 
 **********

 FCN=   5178.817     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.622        12.377        .10474E-03   -1.4943    
   2  Index         1.6326        .58315        .93318E-02   -.73890    
   3  Normalizat    .97746        .22759        .27379E-03   -.93789    
   4  Prefactor     .78063        .21852        .29027E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03484e-10
Minuit parameter uncertainties:
  1  12.3792
  2  0.585595
  3  0.22782
  4  0.218758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992692': 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) = 5178.81729805
delta logL = 0.267844818011

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.462e+01  1.238e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.633e+00  5.856e-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:  7.806e-01  2.188e-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.775e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.93
Ra Dec: 193.637 22.181
Photon Index (Free Index): 1.63 +/- 0.59
Photon Flux (Free Index): 2.60e-08 +/- 3.31e-08
Energy Flux (Free Index): 5.27e-05 +/- 6.72e-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/992692/cmap_HighResolution_582249601_582508801_4FGL_J1254.5+2210_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='5.27e-05', photon_flux_error='3.86e-08', dlogl='2.68e-01', energy_flux='2.78e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-09-06 09:35:26.613690', photon_index_error2='0.59', photon_index2='1.63', ts='4.42', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='6.72e-05', EG='0.95', time_epoch_completed='1630946126.61', return_code='0', job_id='992692', GAL2='0.78', EG2='0.98', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='3.31e-08', ts2='4.93', photon_index='2.09' WHERE bin_id='1323' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 992692: <4FGL_J1254.5+2210_daily_bin1323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1323 193.637 22.1808 582249601 582508801 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 :                                   639.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             260.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

