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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1503
RA = 193.637, Dec = 22.1808
tmin = 628905601, tmax = 629164801
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='992949', job_status='RUN', time_executed='2021-09-06 09:20:57.313126', time_epoch_executed='1630945257.31' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992949/ft1_4FGL_J1254.5+2210_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992949/ft2_4FGL_J1254.5+2210_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992949/ft1_4FGL_J1254.5+2210_daily_bin1503.fits outfile=/scratch/kocevski/992949/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1503.fits ra=193.637 dec=22.1808 rad=12.0 tmin=628905601.0 tmax=629164801.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.66
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992949/ft1_filtered_4FGL_J1254.5+2210_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/992949/ft2_4FGL_J1254.5+2210_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/992949/ltcube_628905601_629164801_4FGL_J1254.5+2210_daily_bin1503.fits outfile=/scratch/kocevski/992949/expmap_628905601_629164801_4FGL_J1254.5+2210_daily_bin1503.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/992949/ltcube_628905601_629164801_4FGL_J1254.5+2210_daily_bin1503.fits
.....................!
real 190.43
user 185.15
sys 4.79

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/992949/ft1_filtered_4FGL_J1254.5+2210_daily_bin1503.fits scfile=/scratch/kocevski/992949/ft2_4FGL_J1254.5+2210_daily_bin1503.fits outfile=/scratch/kocevski/992949/cmap_628905601_629164801_4FGL_J1254.5+2210_daily_bin1503.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992949/ft1_filtered_4FGL_J1254.5+2210_daily_bin1503.fits scfile=/scratch/kocevski/992949/ft2_4FGL_J1254.5+2210_daily_bin1503.fits outfile=/scratch/kocevski/992949/cmap_HighResolution_628905601_629164801_4FGL_J1254.5+2210_daily_bin1503.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12916E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.5535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30523       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .23567E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.9584       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.638       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5097       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.4845       1.0000         .10000E-03   10000.    
    20 'norm      '    12.110       1.0000         .10000E-03   10000.    
    21 'norm      '    4.3408       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .18635E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .31022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.718       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97725       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2183       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=   6900.557     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3228 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3948        .20728E-06** at limit **
   2  Prefactor     .10000E-03    1.2803       -.89990E-07** at limit **
   3  norm          7.5527        3.3978        .44268E-08    .19472E-03
   4  Prefactor     1.1284        1.9390        .80363E-07   -.11993E-03
   5  Prefactor     .30608        1.3484       -.24247E-07   -.29502E-03
   6  Prefactor     .10000E-03    4.5687        .11236E-07** at limit **
   7  norm          .10002E-03    .18523        .13279E-06** at limit **
   8  norm          6.9578        4.0339        .15049E-06    .15679E-03
   9  Prefactor     9.3112        10.804        .12031E-05   -.36483E-03
  10  Prefactor     .10000E-03    3.3945       -.47969E-06** at limit **
  11  Prefactor     16.638        20.061       -.68446E-06   -.46473E-04
  12  Prefactor     .10000E-03    20.452        .26184E-05** at limit **
  13  Prefactor     .10000E-03    13.136        .69438E-06** at limit **
  14  Prefactor     .10000E-03    2.2803       -.46349E-06** at limit **
  15  Prefactor     8.5139        10.403        .16316E-05   -.49011E-03
  16  norm          3.9142        3.2712       -.68902E-06   -.96742E-03
  17  Prefactor     .10000E-03    5.9522        .46238E-06** at limit **
  18  Prefactor     .10000E-03    13.985       -.14160E-05** at limit **
  19  norm          7.4850        4.2925        .89662E-07    .86318E-04
  20  norm          12.111        5.9949       -.10903E-06   -.43386E-03
  21  norm          4.3407        8.2828        .43917E-07   -.18211E-03
  22  norm          .10000E-03    18.295       -.95818E-06** at limit **
  23  norm          .10002E-03    5.8175       -.64128E-06** at limit **
  24  Prefactor     .10000E-03    19.547        .55017E-06** at limit **
  25  norm          .10000E-03    7.3002        .71493E-06** at limit **
  26  Prefactor     .10000E-03    4.5269        .38228E-06** at limit **
  27  Prefactor     11.720        15.880        .12766E-06   -.75266E-05
  28  Normalizat    .97718        .17219       -.49612E-06   -.14491E-03
  29  Prefactor     1.2182        .17412       -.17459E-06   -.14647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.55268
  Prefactor  = 1.12839
  Prefactor  = 0.306082
  Prefactor  = 0.0001
  norm       = 0.000100023
  norm       = 6.95779
  Prefactor  = 9.31122
  Prefactor  = 0.0001
  Prefactor  = 16.6378
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.51387
  norm       = 3.91423
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.48499
  norm       = 12.1109
  norm       = 4.34072
  norm       = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7201
  Normalizat = 0.97718
  Prefactor  = 1.21815
 **********
 **   18 **HESSE 
 **********

 FCN=   6900.557     FROM HESSE     STATUS=OK           567 CALLS     3795 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3953        .18947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.2978        .91704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.5527        3.3845        .93324E-04   -1.5158    
   4  Prefactor     1.1284        1.8697        .13832E-03   -1.5496    
   5  Prefactor     .30608        2.4704        .17821E-02   -1.5597    
   6  Prefactor     .10000E-03    4.6408        .17307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10002E-03    .22884        .93094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.9578        4.0309        .12224E-03   -1.5180    
   9  Prefactor     9.3112        11.198        .65673E-03   -1.5098    
  10  Prefactor     .10000E-03    3.4191        .14981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.638        20.066        .98191E-04   -1.4892    
  12  Prefactor     .10000E-03    21.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3065        .12304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.5139        11.274        .68709E-03   -1.5124    
  16  norm          3.9142        3.3951        .13765E-03   -1.5312    
  17  Prefactor     .10000E-03    6.0129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.4850        4.3003        .12435E-03   -1.5161    
  20  norm          12.111        6.0636        .10532E-03   -1.5012    
  21  norm          4.3407        8.3725        .19334E-03   -1.5291    
  22  norm          .10000E-03    18.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10002E-03    30.990        .34269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    30.027        .38710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.5480        .17290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.720        15.889        .11703E-03   -1.5023    
  28  Normalizat    .97718        .20077        .25783E-03   -.93799    
  29  Prefactor     1.2182        .20524        .24901E-03   -.85774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99192e-08
Minuit parameter uncertainties:
  1  1.25703e-05
  2  4.96031e-06
  3  3.38463
  4  1.86976
  5  1.73895
  6  7.60026e-06
  7  0.000144125
  8  4.03108
  9  11.2004
  10  3.1341e-05
  11  20.0745
  12  0.000477049
  13  9.63842e-05
  14  2.67832e-05
  15  11.2766
  16  3.39527
  17  4.1952e-05
  18  0.000169182
  19  4.30044
  20  6.06394
  21  8.3748
  22  0.000147576
  23  0.00153549
  24  9.19387e-05
  25  0.000196167
  26  3.15797e-05
  27  15.8942
  28  0.200925
  29  0.205377
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.678e-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:  1.218e+00  2.054e-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.772e-01  2.009e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992949/likelihoodResults_628905601_629164801_4FGL_J1254.5+2210_daily_bin1503.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) = 6900.55911099
delta logL = -0.0020518450001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6900.5570591
delta logL = 4.58094291389e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0765       1.0000          .0000       10.000    
     3 'Normalizat'    .97718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2182       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=   6900.557     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10114E-03    52.636        .12381E-02** at limit **
   2  Index         2.0083        8.7004        .50000        .35054E-04
   3  Normalizat    .97718        .20138E-01    .25783E-03   -.10715E-04
   4  Prefactor     1.2182        .21530E-01    .24901E-03   -.69396E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6900.557     FROM SIMPLEX   STATUS=UNCHANGED    135 CALLS      375 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10114E-03    52.636        .23235E-03** at limit **
   2  Index         2.0083        8.7004        .37969E-03    .35054E-04
   3  Normalizat    .97718        .20138E-01    .45389E-05   -.10715E-04
   4  Prefactor     1.2182        .21530E-01    .39979E-05   -.69396E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6900.557     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      418 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.686        .24762E-02** at limit **
   2  Index         1.7277        5.4445        .50000        .12737E-06
   3  Normalizat    .97718        .18322E-01    .10313E-04    .18167E-03
   4  Prefactor     1.2182        .19590E-01    .99605E-05    .18993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.72771
  Normalizat = 0.977181
  Prefactor  = 1.21815
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    221.47        .49525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7277        5.1152        .50000       -.71347    
   3  Normalizat    .97718        .44019E-01    .20626E-05   -.93799    
   4  Prefactor     1.2182        .47029E-01    .19921E-05   -.85774    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.47078e-09
Minuit parameter uncertainties:
  1  0.000137345
  2  949.917
  3  0.0440205
  4  0.0470305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992949': 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) = 6900.55705712
delta logL = 2.02324281418e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.373e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.728e+00  9.499e+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:  1.218e+00  4.703e-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:  9.772e-01  4.402e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/992949/cmap_HighResolution_628905601_629164801_4FGL_J1254.5+2210_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-06 09:34:53.852159', job_id='992949', GAL2='1.22', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630946093.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1503' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:34:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 992949: <4FGL_J1254.5+2210_daily_bin1503> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1503 193.637 22.1808 628905601 629164801 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 :                                   827.00 sec.
    Max Memory :                                 1110 MB
    Average Memory :                             341.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

