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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1435
RA = 193.637, Dec = 22.1808
tmin = 611280001, tmax = 611539201
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='992852', job_status='RUN', time_executed='2021-09-06 09:23:06.632558', time_epoch_executed='1630945386.63' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992852/ft1_4FGL_J1254.5+2210_daily_bin1435.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992852/ft2_4FGL_J1254.5+2210_daily_bin1435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992852/ft1_4FGL_J1254.5+2210_daily_bin1435.fits outfile=/scratch/kocevski/992852/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1435.fits ra=193.637 dec=22.1808 rad=12.0 tmin=611280001.0 tmax=611539201.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.50
user 3.29
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992852/ft1_filtered_4FGL_J1254.5+2210_daily_bin1435.fits evtable="EVENTS" scfile=/scratch/kocevski/992852/ft2_4FGL_J1254.5+2210_daily_bin1435.fits sctable="SC_DATA" expcube=/scratch/kocevski/992852/ltcube_611280001_611539201_4FGL_J1254.5+2210_daily_bin1435.fits outfile=/scratch/kocevski/992852/expmap_611280001_611539201_4FGL_J1254.5+2210_daily_bin1435.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/992852/ltcube_611280001_611539201_4FGL_J1254.5+2210_daily_bin1435.fits
.....................!
real 190.30
user 185.80
sys 4.12

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/992852/ft1_filtered_4FGL_J1254.5+2210_daily_bin1435.fits scfile=/scratch/kocevski/992852/ft2_4FGL_J1254.5+2210_daily_bin1435.fits outfile=/scratch/kocevski/992852/cmap_611280001_611539201_4FGL_J1254.5+2210_daily_bin1435.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992852/ft1_filtered_4FGL_J1254.5+2210_daily_bin1435.fits scfile=/scratch/kocevski/992852/ft2_4FGL_J1254.5+2210_daily_bin1435.fits outfile=/scratch/kocevski/992852/cmap_HighResolution_611280001_611539201_4FGL_J1254.5+2210_daily_bin1435.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6418       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62748E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12234E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10956       1.0000         .10000E-03   10000.    
     8 'norm      '    4.6591       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35357E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.780       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.176       1.0000         .10000E-03   10000.    
    16 'norm      '    .56068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3614       1.0000         .10000E-03   10000.    
    19 'norm      '    .10840E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.1885       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1569       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.2844       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.242       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2691       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71399       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=   5511.845     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3712 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6399        2.8729       -.57234E-07   -.41008E-05
   2  Prefactor     .68818E-01    1.5505       -.41462E-07    .89161E-04
   3  norm          4.1826        2.6923       -.15212E-06   -.10427E-03
   4  Prefactor     .10000E-03    1.3776        .11557E-06** at limit **
   5  Prefactor     .10000E-03    .65186        .53612E-07** at limit **
   6  Prefactor     .10000E-03    4.0602       -.40367E-06** at limit **
   7  norm          .10956        .17571       -.11989E-06   -.33492E-02
   8  norm          4.6585        3.6459        .93818E-06   -.23579E-03
   9  Prefactor     .10005E-03    6.0731        .59969E-05** at limit **
  10  Prefactor     14.965        10.580       -.48621E-06   -.20648E-04
  11  Prefactor     31.753        24.995       -.24003E-04    .54188E-04
  12  Prefactor     .10000E-03    21.417        .10013E-04** at limit **
  13  Prefactor     .10000E-03    16.669       -.10152E-04** at limit **
  14  Prefactor     .10000E-03    2.1954        .18658E-06** at limit **
  15  Prefactor     11.178        11.580        .42843E-06   -.46461E-04
  16  norm          .56421        7.1713        .59095E-05    .30690E-04
  17  Prefactor     9.5899        10.866       -.24144E-06   -.32095E-04
  18  Prefactor     2.3423        83.063       -.66310E-04   -.47704E-04
  19  norm          .10000E-03    3.5673       -.68597E-06** at limit **
  20  norm          8.1892        4.6863        .98400E-06    .29040E-03
  21  norm          .10000E-03    3.4666       -.37558E-07** at limit **
  22  norm          .10000E-03    6.4480       -.15933E-05** at limit **
  23  norm          2.1573        3.9661       -.25542E-06   -.34494E-03
  24  Prefactor     .10000E-03    9.7586        .15411E-05** at limit **
  25  norm          7.2847        6.5657       -.85593E-06   -.93427E-03
  26  Prefactor     15.245        17.667        .11839E-05   -.53080E-04
  27  Prefactor     .10000E-03    6.5435        .15040E-06** at limit **
  28  Normalizat    1.2689        .18539        .27435E-05   -.18651E-03
  29  Prefactor     .71404        .18615        .13016E-05   -.47039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.63994
  Prefactor  = 0.0688176
  norm       = 4.18264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.109564
  norm       = 4.65845
  Prefactor  = 0.000100053
  Prefactor  = 14.9651
  Prefactor  = 31.7532
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.1775
  norm       = 0.564208
  Prefactor  = 9.58988
  Prefactor  = 2.34231
  norm       = 0.0001
  norm       = 8.18919
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.15732
  Prefactor  = 0.0001
  norm       = 7.28469
  Prefactor  = 15.2452
  Prefactor  = 0.0001
  Normalizat = 1.26892
  Prefactor  = 0.714042
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.845     FROM HESSE     STATUS=OK           565 CALLS     4277 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6399        3.0156        .92022E-04   -1.5277    
   2  Prefactor     .68818E-01    26.202        .17094E-02   -1.5656    
   3  norm          4.1826        2.6169        .92246E-04   -1.5299    
   4  Prefactor     .10000E-03    3.8848        .16473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .65858        .58475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1121        .14597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10956        .15735        .37332E-03   -1.5642    
   8  norm          4.6585        3.6421        .12107E-03   -1.5276    
   9  Prefactor     .10005E-03    27.945        .34987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.965        10.572        .10354E-03   -1.4934    
  11  Prefactor     31.753        24.816        .71077E-04   -1.4580    
  12  Prefactor     .10000E-03    21.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2048        .10742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.178        11.570        .11984E-03   -1.5039    
  16  norm          .56421        6.1387        .31348E-03   -1.5558    
  17  Prefactor     9.5899        10.855        .12941E-03   -1.5089    
  18  Prefactor     2.3423        71.429        .26669E-03   -1.5402    
  19  norm          .10000E-03    3.7271        .27359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.1892        4.6676        .11217E-03   -1.5136    
  21  norm          .10000E-03    3.4693        .13477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.4508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1573        3.9375        .19013E-03   -1.5414    
  24  Prefactor     .10000E-03    9.7618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.2847        6.5747        .74306E-03   -1.5168    
  26  Prefactor     15.245        17.698        .10259E-03   -1.4927    
  27  Prefactor     .10000E-03    6.5480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2689        .22250        .21639E-03   -.84499    
  29  Prefactor     .71404        .22223        .29060E-03   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17978e-09
Minuit parameter uncertainties:
  1  3.0157
  2  2.68486
  3  2.617
  4  8.58422e-05
  5  3.28086e-06
  6  3.05412e-05
  7  0.157354
  8  3.64228
  9  0.0024442
  10  10.5734
  11  24.8243
  12  0.000265146
  13  0.000251805
  14  7.35077e-06
  15  11.5723
  16  3.72224
  17  10.8573
  18  25.903
  19  2.15387e-05
  20  4.66778
  21  1.15478e-05
  22  1.76348e-05
  23  3.938
  24  3.6219e-05
  25  6.57531
  26  17.7044
  27  1.59965e-05
  28  0.222666
  29  0.222506
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.351e-06  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.140e-01  2.225e-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.269e+00  2.227e-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: 4.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992852/likelihoodResults_611280001_611539201_4FGL_J1254.5+2210_daily_bin1435.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) = 5511.84687998
delta logL = -0.00212288490729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5511.84475714
delta logL = -4.38731149188e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0696       1.0000          .0000       10.000    
     3 'Normalizat'    1.2689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5511.845     FROM MIGRAD    STATUS=FAILED        85 CALLS      240 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10172E-03    40.890        .10911E-02** at limit **
   2  Index         2.0012        5.8109        .50000        .59769E-04
   3  Normalizat    1.2689        .18760E-01    .21639E-03    .62141E-04
   4  Prefactor     .71404        .19541E-01    .29060E-03    .74448E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5511.845     FROM SIMPLEX   STATUS=PROGRESS     128 CALLS      368 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10162E-03    40.890        .19476E-03** at limit **
   2  Index         1.9998        5.8109        .48890E-03    .59769E-04
   3  Normalizat    1.2689        .18760E-01    .37786E-05    .62141E-04
   4  Prefactor     .71403        .19541E-01    .44922E-05    .74448E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5511.845     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      418 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.193        .21823E-02** at limit **
   2  Index         1.6203        5.8101        .50000       -.15098E-07
   3  Normalizat    1.2689        .18400E-01    .43278E-04   -.44236E-04
   4  Prefactor     .71404        .19167E-01    .11624E-04   -.32471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.62033
  Normalizat = 1.26892
  Prefactor  = 0.71404
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.845     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      447 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    202.27        .43645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6203        5.7543        .50000       -.74223    
   3  Normalizat    1.2689        .42133E-01    .86557E-05   -.84499    
   4  Prefactor     .71404        .43879E-01    .23248E-05   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.94756e-09
Minuit parameter uncertainties:
  1  0.0002772
  2  743.147
  3  0.0421346
  4  0.0438814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992852': 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) = 5511.84475291
delta logL = 4.18228046328e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.772e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.620e+00  7.431e+02  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.140e-01  4.388e-02  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.269e+00  4.213e-02  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/992852/cmap_HighResolution_611280001_611539201_4FGL_J1254.5+2210_daily_bin1435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', job_status='DONE', photon_flux_upper_limit='4.16e-08', time_completed='2021-09-06 09:36:12.508930', job_id='992852', GAL2='0.71', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630946172.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1435' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:12 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1435 193.637 22.1808 611280001 611539201 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 :                                   761.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

