/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 39 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 = 7392
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1363
RA = 193.637, Dec = 22.1808
tmin = 592617601, tmax = 592876801
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='992750', job_status='RUN', time_executed='2021-09-06 09:21:26.389621', time_epoch_executed='1630945286.39' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992750

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992750/ft1_4FGL_J1254.5+2210_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992750/ft2_4FGL_J1254.5+2210_daily_bin1363.fits


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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992750/ft1_filtered_4FGL_J1254.5+2210_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/992750/ft2_4FGL_J1254.5+2210_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/992750/ltcube_592617601_592876801_4FGL_J1254.5+2210_daily_bin1363.fits outfile=/scratch/kocevski/992750/expmap_592617601_592876801_4FGL_J1254.5+2210_daily_bin1363.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/992750/ltcube_592617601_592876801_4FGL_J1254.5+2210_daily_bin1363.fits
.....................!
real 191.67
user 186.39
sys 4.67

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/992750/ft1_filtered_4FGL_J1254.5+2210_daily_bin1363.fits scfile=/scratch/kocevski/992750/ft2_4FGL_J1254.5+2210_daily_bin1363.fits outfile=/scratch/kocevski/992750/cmap_592617601_592876801_4FGL_J1254.5+2210_daily_bin1363.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992750/ft1_filtered_4FGL_J1254.5+2210_daily_bin1363.fits scfile=/scratch/kocevski/992750/ft2_4FGL_J1254.5+2210_daily_bin1363.fits outfile=/scratch/kocevski/992750/cmap_HighResolution_592617601_592876801_4FGL_J1254.5+2210_daily_bin1363.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.5603       1.0000         .10000E-03   10000.    
     3 'norm      '    12.485       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2064       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9875       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .26837E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3789       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7438       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.343       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11754E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57276E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9360       1.0000         .10000E-03   10000.    
    16 'norm      '    .13539E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .66963E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    17.556       1.0000         .10000E-03   10000.    
    21 'norm      '    14.946       1.0000         .10000E-03   10000.    
    22 'norm      '    16.034       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11455E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3719       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1418       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0920       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=   5788.043     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3270 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68632       -.35315E-08** at limit **
   2  Prefactor     2.5605        2.2930        .30901E-07   -.12174E-04
   3  norm          12.485        4.0133       -.48093E-07   -.30461E-04
   4  Prefactor     1.2064        1.0853       -.42542E-07   -.79261E-04
   5  Prefactor     1.9876        1.5885       -.61338E-07    .19548E-04
   6  Prefactor     .10000E-03    7.2612        .67859E-07** at limit **
   7  norm          .26618E-01    .12477        .59940E-07   -.44029E-03
   8  norm          5.3800        3.8284       -.58737E-07   -.11192E-03
   9  Prefactor     .10000E-03    4.0685       -.30905E-07** at limit **
  10  Prefactor     3.7447        7.0484        .45776E-05    .13536E-02
  11  Prefactor     17.343        27.546        .42400E-06    .22438E-04
  12  Prefactor     .10000E-03    95.436        .37653E-05** at limit **
  13  Prefactor     .10000E-03    55.611       -.45991E-05** at limit **
  14  Prefactor     .10001E-03    7.9857        .33000E-05** at limit **
  15  Prefactor     8.9338        15.791        .11249E-05    .24933E-03
  16  norm          .10000E-03    3.4434        .87145E-06** at limit **
  17  Prefactor     .10000E-03    10.891       -.39111E-06** at limit **
  18  Prefactor     .10000E-03    25.964       -.29042E-05** at limit **
  19  norm          .10039E-03    12.759       -.82785E-05** at limit **
  20  norm          17.553        7.9092        .23799E-06    .64830E-03
  21  norm          14.946        13.042       -.90646E-07    .16397E-03
  22  norm          16.025        23.594        .17217E-06    .65114E-04
  23  norm          .10000E-03    2.5759       -.22625E-07** at limit **
  24  Prefactor     .10000E-03    13.877        .43472E-06** at limit **
  25  norm          .10000E-03    10.737        .10374E-06** at limit **
  26  Prefactor     1.3730        21.993        .18789E-05    .10029E-03
  27  Prefactor     .10000E-03    6.3385        .50238E-07** at limit **
  28  Normalizat    1.1416        .18946       -.52685E-06    .24544E-03
  29  Prefactor     1.0922        .19397       -.41058E-06    .15449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.56046
  norm       = 12.4853
  Prefactor  = 1.20636
  Prefactor  = 1.98759
  Prefactor  = 0.0001
  norm       = 0.0266178
  norm       = 5.37996
  Prefactor  = 0.0001
  Prefactor  = 3.74473
  Prefactor  = 17.3427
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 8.93376
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100387
  norm       = 17.5526
  norm       = 14.9456
  norm       = 16.0253
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.37303
  Prefactor  = 0.0001
  Normalizat = 1.14157
  Prefactor  = 1.0922
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.043     FROM HESSE     STATUS=OK           561 CALLS     3831 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .68753        .61541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5605        2.2848        .10576E-03   -1.5388    
   3  norm          12.485        4.0095        .83377E-04   -1.5001    
   4  Prefactor     1.2064        1.2101        .72966E-03   -1.5488    
   5  Prefactor     1.9876        1.5824        .82796E-04   -1.5426    
   6  Prefactor     .10000E-03    7.5829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .26618E-01    .32647        .50076E-03   -1.5675    
   8  norm          5.3800        3.8223        .12142E-03   -1.5244    
   9  Prefactor     .10000E-03    4.0713        .14985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7447        8.0666        .10434E-02   -1.5321    
  11  Prefactor     17.343        27.537        .96173E-04   -1.4875    
  12  Prefactor     .10000E-03    95.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    55.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    34.730        .37803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9338        15.820        .13408E-03   -1.5110    
  16  norm          .10000E-03    6.8568        .26795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10039E-03    33.168        .22795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.553        7.9395        .95589E-04   -1.4870    
  21  norm          14.946        13.178        .10360E-03   -1.4935    
  22  norm          16.025        23.494        .10002E-03   -1.4907    
  23  norm          .10000E-03    2.5858        .11920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.3730        22.416        .37215E-03   -1.5474    
  27  Prefactor     .10000E-03    6.3421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1416        .22399        .24794E-03   -.88428    
  29  Prefactor     1.0922        .23199        .26798E-03   -.89716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02968e-08
Minuit parameter uncertainties:
  1  1.20138e-07
  2  2.28486
  3  4.00954
  4  1.21017
  5  1.58247
  6  1.56482e-05
  7  0.18609
  8  3.82245
  9  4.01752e-06
  10  8.06897
  11  27.557
  12  0.000498712
  13  0.000463137
  14  0.00139701
  15  15.8274
  16  0.000162708
  17  8.65424e-06
  18  0.000163753
  19  0.00716755
  20  7.93993
  21  13.1806
  22  23.5075
  23  3.62979e-07
  24  2.33347e-05
  25  3.49878e-06
  26  11.1
  27  2.30003e-06
  28  0.224178
  29  0.232207
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.397e-03  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.092e+00  2.322e-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.142e+00  2.242e-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: 7.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992750/likelihoodResults_592617601_592876801_4FGL_J1254.5+2210_daily_bin1363.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) = 5788.04289021
delta logL = -0.000135138902806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5788.04274092
delta logL = 1.41460950545e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20037E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2304       1.0000          .0000       10.000    
     3 'Normalizat'    1.1420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0918       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.

 FCN=   5788.016     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      317 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57675        8.6013        .23634E-03    .62101E-04
   2  Index         2.7210        2.3801        .94291E-02    .22173E-04
   3  Normalizat    1.1343        .21871        .24866E-03   -.16585E-03
   4  Prefactor     1.0932        .23067        .26786E-03    .70497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.576754
  Index      = 2.721
  Normalizat = 1.13431
  Prefactor  = 1.09323
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.016     FROM HESSE     STATUS=OK            25 CALLS      342 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57675        5.0455        .94537E-05   -1.5556    
   2  Index         2.7210        1.8649        .37716E-03   -.47327    
   3  Normalizat    1.1343        .21900        .49731E-04   -.88658    
   4  Prefactor     1.0932        .23076        .10714E-04   -.89683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11211e-10
Minuit parameter uncertainties:
  1  3.41184
  2  1.92433
  3  0.219178
  4  0.230969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992750': 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) = 5788.01564889
delta logL = 0.0271061831681

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  5.768e-01  3.412e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.721e+00  1.924e+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.093e+00  2.310e-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.134e+00  2.192e-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/992750/cmap_HighResolution_592617601_592876801_4FGL_J1254.5+2210_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.44e-08', time_completed='2021-09-06 09:34:09.361720', job_id='992750', GAL2='1.09', fit_tolerance='1e-08', EG2='1.13', EG='1.14', time_epoch_completed='1630946049.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.71e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1363' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:34:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 992750: <4FGL_J1254.5+2210_daily_bin1363> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1363 193.637 22.1808 592617601 592876801 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 :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

